On Wed, Aug 11, 2010 at 10:00 AM, Luis Quesada <lques...@4c.ucc.ie> wrote: > Dear all, > > I am not sure whether the following is a problem on my side or a bug of > Pydev. > The following program works fine when executed from the prompt: > > import networkx as nx > DG=nx.DiGraph() > CDG=nx.condensation(DG) > > However, when running this from Eclipse (using Pydev), I get the > following error: > > Traceback (most recent call last): > File "/home/lquesada/workspace/FeatureSubscription/src/graph/bug.py", > line 8, in <module> > CDG=nx.condensation(DG) > AttributeError: 'module' object has no attribute 'condensation' > > > The odd thing is that Pydev knows the that the module does have that > attribute. Ctrl+SCP gives me a full description of condensation... > Do you think there is something wrong in my installation? > > I am able to use other functions of Networkx without any issue... > > Thanks in advance for your help > > Cheers, > Luis >
Have you checked if the pythonpath is correct? I.e.: when running the program do: import sys; print '\n'.join(sorted(dir(sys.path)) Cheers, Fabio ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ Pydev-users mailing list Pydev-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pydev-users