Testing in the ironpython interactive shell:
IronPython 2.7 Beta 1 (2.7.0.10) on .NET 4.0.30319.1
Type "help", "copyright", "credits" or "license" for more information.
>>> from networkx import 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'
>>>
in the ironpython console.
Furthermore, after some fairly extensive testing, it seems I have this
problem:
http://ironpython.codeplex.com/workitem/29077
the installation didn't add the ironpython library to the visual studio
path. I have an IRONPYTHONPATH variable set in my enviromental
variables, but that doesn't seem to fix it, even after restarting visual
studio.
Federico
On 25/01/2011 19:30, Jeff Hardy wrote:
On Tue, Jan 25, 2011 at 11:04 AM, Federico Vaggi<va...@cosbi.eu> wrote:
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'
Can you try `from networkx import sys`? There are some interesting
imports in there, and I'm wondering if there's a bug in the import
system.
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.
Make sure you restart VS after setting the environment variable.
- Jeff
_______________________________________________
Users mailing list
Users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
_______________________________________________
Users mailing list
Users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com