I have created internal modules which follow the structure such as follows-
project
└── src
└── rogers
└──__init__.py
└── cd
├── __init__.py
├── preprocessor
└── dataOps
└── __init__.py
└── verint.py
The error I get -
Traceback (most recent call last):
File "main_scripts/PreprocessingStep/verint_preprocessing.py", line 11, in <module>
from rogers.cd.dataOPs import Verint
ImportError: No module named rogers.cd.dataOPs
The init.py in the dataops looks like this
from rogers.cd.dataOPs.boldchat import *
from rogers.cd.dataOPs.verint import *
This is what my setup.py looks like (not showing the entire file, only part of it)
classifiers=[
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
],
install_requires = external_packages,
package_dir={"": "src"},
packages= setuptools.find_namespace_packages(where="src"),
package_data={'': ['*.yaml']},
include_package_data=True,
python_requires=">=3.7",
I recently migrated from PyCharm to VSCode. The code was running fine in PyCharm but doesn't work for VSCode.