[wingide-users] zc.buildout & Getopt Error

James Mackenzie james.mackenzie81 at googlemail.com
Wed Nov 18 07:18:09 MST 2009


I've created a bootstrapped python executable using zc.buildout following
http://jacobian.org/writing/django-apps-with-buildout/ tutorial.
Whenever i set this particular executable as an option for project
properties and restart wing ide, an exception with a traceback provided
bellow occurs:

 Traceback (most recent call last):
  File "/home/user/programming//bin/python", line 19, in <module>
    _options, _args = __import__("getopt").getopt(sys.argv[1:], 'ic:m:')
  File "/usr/lib/python2.6/getopt.py", line 91, in getopt
    opts, args = do_shorts(opts, args[0][1:], shortopts, args[1:])
  File "/usr/lib/python2.6/getopt.py", line 191, in do_shorts
    if short_has_arg(opt, shortopts):
  File "/usr/lib/python2.6/getopt.py", line 207, in short_has_arg
    raise GetoptError('option -%s not recognized' % opt, opt)
getopt.GetoptError: option -u not recognized

it turns out, that wingide tries to run the python executable with the '-u'
and, for some unknown(for me) reason, the zc.buildout's generated custom
python executable doesn't accept this '-u' parameter.

Is there a way to run python executable in the wingide's Python shell tab
without the "-u" option?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/wingide-users/attachments/20091118/eb5c5049/attachment.html

More information about the wingide-users mailing list