Problems with dependencies when running an automation
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

Warning:
If you are having a similar problem with another dependency when running your automation using BotCity Runner, check whether the dependency was correctly defined in the robot's requirements.txt file.
Related Articles
Resolving SSL certificate verification issues when running commands using 'pip'
Access blocks are quite common in corporate environments. As a result, you may encounter problems when trying to use BotCity tools and Python resources on a machine in your company's environment. One problem that may occur in these scenarios is the ...
Problems with blocking environments
If you are trying to use BotCity's tools in a corporate environment, you may encounter some issues related to environment locks. Here are some of the most common issues when using the BotCity Studio SDK in blocking environments: Installation through ...
Error Running Edge Browser via Orchestrator: How to Fix It?
Issue During the execution of robots using the Microsoft Edge browser through the orchestrator, a specific issue was identified: the browser did not start correctly, whereas when running locally, the flow executed normally. The error presented was: ...
Error Running Wizard.exe: How to Fix It?
Issue When attempting to start the installation, configuration, or authentication process of the BotCity Runner using the wizard in .exe format, you may encounter difficulties opening the file. This error usually occurs due to company security ...
How to fix Python environment preparation failed error
A very common error when executing automations through the Runner is Python Environment Preparation Failed. As the name suggests, the Runner fails when trying to prepare the Python environment for the robot's execution. This error occurs in different ...