[IronPython] Module has no date attribute

Federico Vaggi vaggi at cosbi.eu
Tue Jan 25 19:04:20 CET 2011


  Thanks to a lot of help from Jeff, plus some tinkering, I managed to 
solve a bunch of issues I was having with networkx, however, I have a 
minor error left over:

IronPython 2.7 Beta 1 (2.7.0.10) on .NET 4.0.30319.1
Type "help", "copyright", "credits" or "license" for more information.
 >>> import networkx
Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
   File "C:\Python27\Lib\site-packages\networkx\__init__.py", line 75, 
in <module
 >
AttributeError: 'module' object has no attribute 'date'
 >>> import networkx.sys
Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
   File "C:\Python27\Lib\site-packages\networkx\__init__.py", line 75, 
in <module
 >
AttributeError: 'module' object has no attribute 'date'

I was playing around with the interpreter, and couldn't really pinpoint 
any obvious bug, but when I opened __init__.py in visual studio, then 
tried to debug, I got this mistake:

Running C:\Python27\Lib\site-packages\networkx\__init__.py
Remote process has been reset...
Exception: IronPython.Runtime.Exceptions.ImportException: No module 
named __future__

Could this be related?  Or __future__ not being found on developer 
studio is another separate problem that I need to fix by manually adding 
the ironpython standard library?  I added a variable *IRONPYTHONPATH* to 
my path in the advanced properties of windows 7, but that doesn't seem 
to work for visual studio.

Federico


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20110125/a0d2e4e6/attachment.html>


More information about the Ironpython-users mailing list