This problem usually occurs when the dependencies installation step is not done correctly. When running the code, a message is displayed regarding the installation of the packages:
- ModuleNotFoundError: No module named 'botcity’
The first step is to ensure the same Python interpreter is used to install the dependencies and run the code.
Something common is that the IDE creates a virtual environment for the project; if this virtual environment is used to install the dependencies but when running the system's "global" Python is being used, then this error will probably be thrown.
After ensuring the environment configuration is correct, use the same Python interpreter to install the dependencies and run the code later:
- pip install --upgrade -r requirements.txt