After many years of using VSCode, I am experimenting with using Spyder as my IDE, fed up with VSCode telemetry which occurs even though 'turned off'.
OS: Linux Mint 21.3
The following code using VSCode has always found the included module CCpaths
It also works if I execute from command line.
However this does not work with spyder, which gives me a 'module not found' error, and seems to ignore sys.path
The CommandProcessor
my path is as follows:
CommandProcessorProject
.
OS: Linux Mint 21.3
The following code using VSCode has always found the included module CCpaths
It also works if I execute from command line.
However this does not work with spyder, which gives me a 'module not found' error, and seems to ignore sys.path
The CommandProcessor
my path is as follows:
CommandProcessorProject
.
├── data ├── doc ├── requirements.txt ├── src │ ├── common │ │ ├── CCpaths.py │ │ ├── images │ │ │ ├── ... │ │ ├── __init__.py │ │── core │ │ ├── CommandProcessor.py │ │ └── __init__.py ├── venv ├── ...
import sys sys.path.append("./src/common") from CCpaths import CCpaths class CommandProcessor: def __init__(self): self.cpath = CCpaths(depth=1) ...I am stumbling through the setup of Spyder, and doing OK, but this one is frustrating me.