pycharm remote debugging + virtualenv


I am struggling to get a working setup.

Here is what I am trying to accomplish:

- pycharm on windows
- virtualenv/code on a network share

I would like to be able to execute the code on a remote linux server. I have been able to configure the remote interpreter via ssh. I try to set the starting script as "pytest" but I always get

env/bin/python -u /phaedrus/home/kfowler/.pycharm_helpers/pydev/ --multiproc --qt-support --client '' --port 45009 --file pytest --help
warning: Debugger speedups using cython not found. Run '"/phaedrus/home/kfowler/eureka_repo/eureka_env/bin/python" "/phaedrus/home/kfowler/.pycharm_helpers/pydev/" build_ext --inplace' to build.
pydev debugger: process 11139 is connecting

Connected to pydev debugger (build 162.1967.10)
Traceback (most recent call last):
File "/phaedrus/home/kfowler/.pycharm_helpers/pydev/", line 1580, in <module>
globals =['file'], None, None, is_module)
File "/phaedrus/home/kfowler/.pycharm_helpers/pydev/", line 964, in run
pydev_imports.execfile(file, globals, locals) # execute the script
File "/phaedrus/home/kfowler/.pycharm_helpers/pydev/_pydev_imps/", line 11, in execfile
stream = # @UndefinedVariable
File "/usr/local/lib/python3.5/", line 454, in open
buffer = _builtin_open(filename, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: 'pytest'

I believe this may be because the "pytest" package is only installed within the virtualenv but for some reason it is not actually picking that up.

Is there something I am doing wrong here?

1 comment

It's duplicate of the support request in Zendesk.


Please sign in to leave a comment.