Problems with dependencies when running an automation

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:
  1. 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:
  1. 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

    • 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 ...
    • Keeping your remote session active when using Runner

      In some cases where a VM is used to run the automation, keeping the remote session active is necessary to avoid problems with the graphical interface, such as the OSError: screen grab failed error. This error is usually thrown when trying to perform ...
    • What to do when Runner seems stuck when executing a new task?

      In sporadic situations, the Runner may seem stuck after pulling a new task for execution. In this situation, the execution is not started, and the Runner status remains as Executing task ... until the Runner is restarted. Overall, the resources used ...
    • How to open a support ticket?

      If the knowledge base articles or our documentation portal did not resolve your questions or issues, you can open a new support ticket through the portal. After detailing the type of support you need, the ticket will be directed to our team so that ...
    • Where can I find content to learn more about using BotCity?

      A great alternative to have a first contact with the tools is to access the courses available on BotCity Academy. Additionally, you can also access the tutorials available on the documentation portal: Getting started with BotCity Developing your ...