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/pydevd.py --multiproc --qt-support --client '0.0.0.0' --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/setup_cython.py" 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/pydevd.py", line 1580, in <module>
globals = debugger.run(setup['file'], None, None, is_module)
File "/phaedrus/home/kfowler/.pycharm_helpers/pydev/pydevd.py", line 964, in run
pydev_imports.execfile(file, globals, locals) # execute the script
File "/phaedrus/home/kfowler/.pycharm_helpers/pydev/_pydev_imps/_pydev_execfile.py", line 11, in execfile
stream = tokenize.open(file) # @UndefinedVariable
File "/usr/local/lib/python3.5/tokenize.py", 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?
Please sign in to leave a comment.
It's duplicate of the support request in Zendesk.