<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
    <title></title>
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Testing in the ironpython interactive shell:<br>
    <br>
    <small>IronPython 2.7 Beta 1 (2.7.0.10) on .NET 4.0.30319.1<br>
      Type "help", "copyright", "credits" or "license" for more
      information.<br>
      &gt;&gt;&gt; from networkx import sys<br>
      Traceback (most recent call last):<br>
      &nbsp; File "&lt;stdin&gt;", line 1, in &lt;module&gt;<br>
      &nbsp; File "C:\Python27\Lib\site-packages\networkx\__init__.py", line
      75, in &lt;module<br>
      &gt;<br>
      AttributeError: 'module' object has no attribute 'date'<br>
      &gt;&gt;&gt;</small><br>
    <br>
    in the ironpython console.<br>
    <br>
    Furthermore, after some fairly extensive testing, it seems I have
    this problem:<br>
    <br>
    <a class="moz-txt-link-freetext" href="http://ironpython.codeplex.com/workitem/29077">http://ironpython.codeplex.com/workitem/29077</a><br>
    <br>
    the installation didn't add the ironpython library to the visual
    studio path.&nbsp; I have an IRONPYTHONPATH variable set in my
    enviromental variables, but that doesn't seem to fix it, even after
    restarting visual studio.<br>
    <br>
    Federico<br>
    <br>
    On 25/01/2011 19:30, Jeff Hardy wrote:
    <blockquote cite="mid:20110125183020.22C697B4@apollo.cosbi.eu"
      type="cite">
      <pre wrap="">On Tue, Jan 25, 2011 at 11:04 AM, Federico Vaggi <a class="moz-txt-link-rfc2396E" href="mailto:vaggi@cosbi.eu">&lt;vaggi@cosbi.eu&gt;</a> wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">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.
</pre>
        <blockquote type="cite">
          <blockquote type="cite">
            <blockquote type="cite">
              <pre wrap="">import networkx
</pre>
            </blockquote>
          </blockquote>
        </blockquote>
        <pre wrap="">Traceback (most recent call last):
&nbsp; File "&lt;stdin&gt;", line 1, in &lt;module&gt;
&nbsp; File "C:\Python27\Lib\site-packages\networkx\__init__.py", line 75, in
&lt;module
</pre>
        <blockquote type="cite">
          <pre wrap="">
</pre>
        </blockquote>
        <pre wrap="">AttributeError: 'module' object has no attribute 'date'
</pre>
        <blockquote type="cite">
          <blockquote type="cite">
            <blockquote type="cite">
              <pre wrap="">import networkx.sys
</pre>
            </blockquote>
          </blockquote>
        </blockquote>
        <pre wrap="">Traceback (most recent call last):
&nbsp; File "&lt;stdin&gt;", line 1, in &lt;module&gt;
&nbsp; File "C:\Python27\Lib\site-packages\networkx\__init__.py", line 75, in
&lt;module
</pre>
        <blockquote type="cite">
          <pre wrap="">
</pre>
        </blockquote>
        <pre wrap="">AttributeError: 'module' object has no attribute 'date'
</pre>
      </blockquote>
      <pre wrap="">
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.

</pre>
      <blockquote type="cite">
        <pre wrap="">
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?&nbsp; Or __future__ not being found on developer studio is
another separate problem that I need to fix by manually adding the
ironpython standard library?&nbsp; 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.
</pre>
      </blockquote>
      <pre wrap="">
Make sure you restart VS after setting the environment variable.

- Jeff
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.ironpython.com">Users@lists.ironpython.com</a>
<a class="moz-txt-link-freetext" href="http://lists.ironpython.com/listinfo.cgi/users-ironpython.com">http://lists.ironpython.com/listinfo.cgi/users-ironpython.com</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>