Bug 430451 - debugger can't import
Summary: debugger can't import
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: eclipse-pydev
Version: 7
Hardware: i386
OS: Linux
low
high
Target Milestone: ---
Assignee: Jeff Johnston
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-01-28 04:54 UTC by Leo Lopes
Modified: 2008-02-12 21:33 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-02-12 20:25:37 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.


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