#930 Syntax Checking Error


When using pydev on osx with python 2.6 I received the below trace. When running from the command line no Traceback occurs. Please note the warning stating the reserved word reference as I am using Python 2.6.

/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site.py:150: Warning: 'with' will become a reserved keyword in Python 2.6
'import site' failed; use -v for traceback
Traceback (most recent call last):
File "start.py", line 2, in <module>
from pymt import *
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/pymt/__init__.py", line 13, in <module>
import sys, getopt, os
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/getopt.py", line 37, in <module>
import os
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/os.py", line 757
bs = b""
SyntaxError: invalid syntax

This works from the interactive prompt.

mark-hembrows-power-mac-g5:examples mhembrow$ python
Python 2.6.2 (r262:71600, Apr 16 2009, 09:17:39)
[GCC 4.0.1 (Apple Computer, Inc. build 5250)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> bs = b""


  • Fabio Zadrozny

    Fabio Zadrozny - 2009-06-13
    • status: open --> pending
  • Fabio Zadrozny

    Fabio Zadrozny - 2009-06-13

    Seems like you're mixing the versions of python in your configuration... Can you try removing the interpreter and making an 'auto-config' for the interpreter? (as python appears to be in your pythonpath, it should work).

    Also, check that your project is referencing the correct project.

  • Fabio Zadrozny

    Fabio Zadrozny - 2009-06-13

    Oops... it should be 'check that your project is referencing the correct interpreter'.

  • SourceForge Robot

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

  • SourceForge Robot

    • status: pending --> closed

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks