After upgrading eclipse, aptana, pydev, Debugger not working

前端 未结 2 2005
悲哀的现实
悲哀的现实 2020-12-21 17:44

I upgraded eclipse from 3.6 to 4.2 and Aptana from 2 to 3 with pydev

Now I cannot get the debugger to work. I get the following errors:


Traceba         


        
相关标签:
2条回答
  • 2020-12-21 18:37

    If you're encountering this error, check to make sure you don't have any other code.py modules in your PYTHONPATH - ie, in your project. For example I was using web.py and the tutorial has you create a code.py file - renaming this to main.py, the debugger was able to import InteractiveConsole from the correct module (the one in python27\lib).

    0 讨论(0)
  • 2020-12-21 18:45

    I think that the problem is that the import:

    from code import InteractiveConsole 
    

    is giving an ImportError. Check if the 'code' module is in your PYTHONPATH (should be at the Python lib: Python/lib/code.py)

    I.e.: Open a shell in the command line:

    [07:55:55 X:\]python
    Python 2.7.2 (default, Feb 23 2012, 00:24:32) [MSC v.1600 32 bit (Intel)] on win32
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import code
    >>> code.__file__
    'c:\\bin\\python-2.7.2\\lib\\code.pyc'
    

    If it's really not there, it's a problem in your Python install (should definitely be there).

    0 讨论(0)
提交回复
热议问题