Bug 430451 - debugger can't import
debugger can't import
Status: CLOSED NEXTRELEASE
Product: Fedora
Classification: Fedora
Component: eclipse-pydev (Show other bugs)
7
i386 Linux
low Severity high
: ---
: ---
Assigned To: Jeff Johnston
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2008-01-27 23:54 EST by Leo Lopes
Modified: 2008-02-12 16:33 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2008-02-12 15:25:37 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Leo Lopes 2008-01-27 23:54:37 EST
Description of problem:

Debugger fails to import a module that is in the same directory

Version-Release number of selected component (if applicable):
eclipse-pydev-1.3.1-5.fc7

How reproducible: allways

Steps to Reproduce:
1. Create the two files below:
---- simplestModule.py ---
def f(): pass
---- end ---
---- simplestImporter.py ---
import simplestModule as sm
sm.f()
---- end ---
2. start debugging and make simplestImporter.py the main module
  
Actual results:

The debugger throws an exception:
pydev debugger
Traceback (most recent call last):
  File
"/usr/share/eclipse/plugins/org.python.pydev.debug_1.3.1/pysrc/pydevd.py", line
697, in <module>
    debugger.run(setup['file'], None, None)
  File
"/usr/share/eclipse/plugins/org.python.pydev.debug_1.3.1/pysrc/pydevd.py", line
548, in run
    execfile(file, globals, locals) #execute the script
  File "/home/leolopes/workspace/poamsrc1/rc1/examples/simplestImporter.py",
line 1, in <module>
    import simplestModule as sm
ImportError: No module named simplestModule
Exception in thread pydevd.Writer (most likely raised during interpreter shutdown):
Traceback (most recent call last):
  File "/usr/lib/python2.5/threading.py", line 460, in __bootstrap
  File
"/usr/share/eclipse/plugins/org.python.pydev.debug_1.3.1/pysrc/pydevd_comm.py",
line 227, in run
<type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'sleep'
Unhandled exception in thread started by 
Error in sys.excepthook:

Original exception was:
---- That is all folks, the output was not truncated at bug report time! ---


Expected results: Module should be imported correctly, debugging should procede.

Additional info: using the "run configuration" button works just fine.
Comment 1 Jeff Johnston 2008-02-12 15:25:37 EST
Please try upgrading to F8.  The latest eclipse + eclipse-pydev package for F8
works fine for the above test case.  The latest release is:
eclipse-pydev-1.3.12-1.fc8 which can be found in the updates-testing repo.
Comment 2 Andrew Overholt 2008-02-12 15:40:12 EST
Jeff:  should that release perhaps be pushed to updates?
Comment 3 Jeff Johnston 2008-02-12 16:33:35 EST
Sure.  I'll promote it now.

Note You need to log in before you can comment on or make changes to this bug.