# Pabot does not read imports

**URL:** <https://forum.robotframework.org/t/pabot-does-not-read-imports/6260>\
**Category:** Pabot\
**Created:** [27 September 2023 13:15 UTC](https://forum.robotframework.org/t/pabot-does-not-read-imports/6260 "2023-09-27T13:15:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Saga](https://avatars.discourse-cdn.com/v4/letter/s/54ee81/32.png) [@Saga](https://forum.robotframework.org/u/Saga)\
**Post date:** [27 September 2023 13:15 UTC](https://forum.robotframework.org/t/pabot-does-not-read-imports/6260/1 "2023-09-27T13:15:36Z")

</div>

Hi. When I run my tests in Pycharm with command ‘python -m pabot.pabot --processes 10 tests/test\_suites1’ everything works, but when I use the same command using cmd I get errors for every import ‘[ERROR] Error in file ’ ’ on line 19: Resource file ‘.robot’ does not exist.’ I’ve activated virtual env.

---

<div class="post-metadata">

**Author:** ![Saga](https://avatars.discourse-cdn.com/v4/letter/s/54ee81/32.png) [@Saga](https://forum.robotframework.org/u/Saga)\
**Post date:** [27 September 2023 14:24 UTC](https://forum.robotframework.org/t/pabot-does-not-read-imports/6260/2 "2023-09-27T14:24:16Z")

</div>

robotframework 6.1.1  
robotframework-pabot 2.16.0

---

<div class="post-metadata">

**Author:** ![damies13](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/damies13/32/623_2.png) [@damies13](https://forum.robotframework.org/u/damies13)\
**Post date:** [28 September 2023 02:52 UTC](https://forum.robotframework.org/t/pabot-does-not-read-imports/6260/3 "2023-09-28T02:52:15Z")

</div>

Hi Tom,

FYI - I don’t use Pycharm myself, so I may be wrong, take what I say here with a grain of salt.

If I remember correctly Pycharm uses a python Virtual Environment (venv), so when you run using cmd outside Pycharm you need to either:

- switch to the same venv as Pycharm uses
- install the libraries in your non-venv python environment

Hope that helps,

Dave.

---

<div class="post-metadata">

**Author:** ![Saga](https://avatars.discourse-cdn.com/v4/letter/s/54ee81/32.png) [@Saga](https://forum.robotframework.org/u/Saga)\
**Post date:** [29 September 2023 15:32 UTC](https://forum.robotframework.org/t/pabot-does-not-read-imports/6260/4 "2023-09-29T15:32:24Z")

</div>

Thanks for your answer. I’ve solved the problem. It helped to use ‘set PYTHONPATH=path/to/working/directory’ before running script.
