debugger not working on PyCharm CE Errno 8] Exec format error: ?

Hi guys,

I've setup my local python3 project with an virtual environment, and Its all working fine and dandy, but I'm having a little trouble with the debugger.

When I hit the debugger button (little bug) I get this error:

/Users/user/.virtualenvs/app/bin/python /Users/user/.virtualenvs/app/bin/envdir /Users/user/work/foobarapp/.envdir "/Applications/PyCharm" --multiproc --qt-support=auto --client --port 56682 --file /Users/user/.virtualenvs/importer/bin/gunicorn -w 2 -b dispatch:app

Unable to run command /Applications/PyCharm [Errno 8] Exec format error: '/Applications/PyCharm'


From what I've gathered it seems the script just freaks out when I'm trying to run it with envdir??







Hi Tom,

You're probably right, your setup might be unsupported. Please provide screenshot of your run/debug configuration which causes the issue.


HI Andrey,


It seems to work only with environment variables without envdir....

Is using envdir possible for the debugger in PyCharm CE?






Hi Tom,

I've never encountered a use case with envdir, and your launch string seems somewhat incorrect:

>/Users/user/.virtualenvs/app/bin/python /Users/user/.virtualenvs/app/bin/envdir /Users/user/work/foobarapp/.envdir "/Applications/PyCharm" --multiproc --qt-support=auto --client --port 56682 --file /Users/user/.virtualenvs/importer/bin/gunicorn -w 2 -b dispatch:app

To answer your question - no, we don't support envdir natively, but if you provide screeshot of your run configuration, we can try to see what's wrong and maybe provide some workaround.


Please sign in to leave a comment.