Ask Your Question
1

Wing version 7.2 unable to load executable Python with activated env

asked 2020-05-19 11:59:27 -0500

skirando gravatar image

updated 2020-05-20 07:22:50 -0500

I'm trying to load executable python with a django virtual env. I'd used what I usually do to load my virtual env as indicated monvenv/bin/activate and I get the following message what am I doing wrong. Thank you for your help RUNNING IN INTERP: CMD=u'monvenv/bin/activate'; ARGS=[u'monvenv/bin/activate', u'/home/christian/.wingpro7/updates/7.2.2.9/bin/ide-2.7/src/wingbase/execonearg.py', "import sys, os, keyword; sys.stdout.write('VERSION=%d.%d.%d\n' % ((sys.hexversion & (0xff << 24)) >> 24, (sys.hexversion & 0x00ff0000) >> 16, (sys.hexversion & 0x0000ff00) >> 8)); sys.stdout.write('PYTHONPATH=' + os.pathsep.join(sys.path) + '\n'); sys.stdout.write('EXECUTABLE=' + sys.executable + '\n'); sys.stdout.write('PREFIX=' + sys.prefix + '\n'); sys.stdout.write('BASEPREFIX=' + getattr(sys, 'base_prefix', 'None') + '\n'); sys.stdout.write('KEYWORDS=' + ' '.join(keyword.kwlist) + '\n'); sys.stdout.write('BUILTINS=' + ' '.join(dir(__builtins__)) + '\n'); sys.stdout.write('END OF OUTPUT FOR WING INSPECTION' + '\n')"]

Could not exec: monvenv/bin/activate; Error:

exec failed: u'monvenv/bin/activate'

WARNING: Failed to execute Python: u'monvenv/bin/activate'

edit retag flag offensive close merge delete

Comments

Does it work if you specify the full path to the .../monvenv/bin/activate file?

Wingware Support gravatar imageWingware Support ( 2020-05-20 09:21:17 -0500 )edit

It doesn't work either with the full path.

skirando gravatar imageskirando ( 2020-05-20 15:23:27 -0500 )edit

Could you submit a bug report from Wing's Help menu and include the log?

Wingware Support gravatar imageWingware Support ( 2020-05-20 15:26:49 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-05-22 10:37:29 -0500

For the record, this appears to have been a combination of not using the full path to the activate file for the Activated Env value for Python Executable, and a missing required argument on the command line of the debug process (that part of the problem was specific to the code being debugged).

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2020-05-19 11:59:27 -0500

Seen: 22 times

Last updated: May 22