I have two files in the same folder:
-- my folder
- myfunct.py
- merge.py
In merge.py I import myfunct.py. I use conda venv, when I run directly from terminal:
conda activate da
python merge.py
everything works. When instead I run from DataSpell (with the same interpreter of that virtual environment) it gives ModuleNotFoundError: No module named 'myfunct'
I have the root folder in path and the same virtual environment, the two files are in the same folder... Everything works as usual also by setting up PyCharm, what am I missing? What can I check in DS to be sure everything is setup properly?
This bug has been fixed in DataSpell 2022.3.2 https://youtrack.jetbrains.com/issue/DS-4251/PyCharm-2022.3-Notebooks-cant-import-modules-from-Sources-Root