You could also try:

    from rdflib import Graph

Which is what the library maintainer intended you to do, since they already 
imported all of the
important classes into rdflib.__init__.py.

- Craig -

On 12/06/2011 06:16 AM, SourceForge.net wrote:
> The following forum message was posted by willemmerson at 
> http://sourceforge.net/projects/pydev/forums/forum/293649/topic/4866331:
>
> Hi, the code I am trying to execute is:
>
> [code]from rdflib.graph import Graph[/code]
>
> The error I get is:
>
> [code]Traceback (most recent call last):
>   File "D:\Dropbox\workspace\pyNLG\src\rdflib.py", line 15, in <module>
>     from rdflib.graph import Graph
>   File "D:\Dropbox\workspace\pyNLG\src\rdflib.py", line 15, in <module>
>     from rdflib.graph import Graph
> ImportError: No module named graph
> [/code]
>
> The pythonpath in eclipse is:
>
> [code]C:\Windows\system32\python27.zip
> D:\Dropbox\workspace\pyNLG
> D:\Dropbox\workspace\pyNLG\src
> D:\Dropbox\workspace\pyNLG\src
> D:\Python27\Lib\site-packages\rdflib
> D:\python27
> D:\python27\DLLs
> D:\python27\lib
> D:\python27\lib\lib-tk
> D:\python27\lib\plat-win
> D:\python27\lib\site-packages
> D:\python27\lib\site-packages\pil-1.1.7-py2.7-win32.egg
> D:\python27\lib\site-packages\pyparsing-1.5.6-py2.7-win32.egg
> D:\python27\lib\site-packages\rdfextras-0.1-py2.7.egg
> D:\python27\lib\site-packages\simplejson-2.2.1-py2.7.egg
> D:\python27\lib\site-packages\sparqlwrapper-1.4.2-py2.7.egg
> [/code]
>
> The pythonpath from commandline is:
> [code]C:\Windows\system32\python27.zip
> D:\python27
> D:\python27\DLLs
> D:\python27\lib
> D:\python27\lib\lib-tk
> D:\python27\lib\plat-win
> D:\python27\lib\site-packages
> D:\python27\lib\site-packages\pil-1.1.7-py2.7-win32.egg
> D:\python27\lib\site-packages\pyparsing-1.5.6-py2.7-win32.egg
> D:\python27\lib\site-packages\rdfextras-0.1-py2.7.egg
> D:\python27\lib\site-packages\simplejson-2.2.1-py2.7.egg
> D:\python27\lib\site-packages\sparqlwrapper-1.4.2-py2.7.egg[/code]
>
> ------------------------------------------------------------------------------
> Cloud Services Checklist: Pricing and Packaging Optimization
> This white paper is intended to serve as a reference, checklist and point of 
> discussion for anyone considering optimizing the pricing and packaging model 
> of a cloud services business. Read Now!
> http://www.accelacomm.com/jaw/sfnl/114/51491232/
> _______________________________________________
> Pydev-users mailing list
> Pydev-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pydev-users


------------------------------------------------------------------------------
Cloud Services Checklist: Pricing and Packaging Optimization
This white paper is intended to serve as a reference, checklist and point of 
discussion for anyone considering optimizing the pricing and packaging model 
of a cloud services business. Read Now!
http://www.accelacomm.com/jaw/sfnl/114/51491232/
_______________________________________________
Pydev-users mailing list
Pydev-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pydev-users

Reply via email to