This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 185257 - JPyDbg can't import from __future__
Summary: JPyDbg can't import from __future__
Status: RESOLVED FIXED
Alias: None
Product: python
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: Lou Dasaro
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-29 13:22 UTC by jim22k
Modified: 2015-05-26 03:21 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jim22k 2010-04-29 13:22:51 UTC
Python plugin: 0.103
Python Platform: CPython 2.6.4

# New Project -> Create a simple HelloWorld.py
from __future__ import division
print "Hello world!"
x = 5/2
print x # <-- Place breakpoint at this line

Running the code works fine.
Debugging the code produces the following error:
>>>[LOG]PythonDebugger : overall Starting
[LOG]PythonDebugger.taskStarted : I am Starting a new Debugging Session ...
[LOG]This window is an interactive debugging context aware Python Shell 
[LOG]where you can enter python console commands while debugging 
>>>SOURCE::IMPORTERROR:No module named __future__['Traceback (most recent call last):
', '  File "D:/nbproject/Python/HelloWorld/src/helloworld.py", line 1, in <module>
    from __future__ import division
c:\documents and settings\usx19345\.netbeans\6.8\config\nbpython\debug\nbpythondebug\jpydaemon.py
', 'ImportError: No module named __future__
Debug session normal end
']
args =  ['C:\\Documents and Settings\\usx19345\\.netbeans\\6.8\\config\\nbPython\\debug\\nbpythondebug\\jpydaemon.py', 'localhost', '29100']
localDebuggee= None
JPyDbg connecting  localhost  on in=  29100 /out= 29101
JPyDbgI0001 : connected to  localhost
deamon ended
Comment 1 Lou Dasaro 2015-05-26 03:21:43 UTC
Unable to replicate. Likely Fixed by the Jython update of 2015-May-17.
See How to install new Development build(s) for testing at http://forums.nbpython.org/viewtopic.php?f=6&t=69&p=390#p390