Bug 430451

Summary: debugger can't import
Product: [Fedora] Fedora Reporter: Leo Lopes <lleeoo>
Component: eclipse-pydevAssignee: Jeff Johnston <jjohnstn>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: low    
Version: 7CC: overholt
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-02-12 20:25:37 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Leo Lopes 2008-01-28 04:54:37 UTC
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 20:25:37 UTC
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 20:40:12 UTC
Jeff:  should that release perhaps be pushed to updates?

Comment 3 Jeff Johnston 2008-02-12 21:33:35 UTC
Sure.  I'll promote it now.