2012-07-10 82 views
1

我有一個奇怪的問題。我剛開始使用Neo4j的DB和想打一點點neo4j-python錯誤

我從

https://github.com/neo4j-examples/python-shop-categories

下載那裏代碼在這個例子中

import neo4j # works fine 

from neo4j.util import Subreference # doesnt work 

錯誤

File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main 
"__main__", fname, loader, pkg_name) 
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code 
    exec code in run_globals 
File "/home/mohit/Documents/personal_pro/python-shop-categories/shop/__main__.py", line 65, in <module> 
    options.ui.start(*args, **params) 
File "/home/mohit/Documents/personal_pro/python-shop-categories/shop/__main__.py", line 49, in start 
    exec("from shop.%sui import start" % (self.module,), environ) 
File "<string>", line 1, in <module> 
    File "/home/mohit/Documents/personal_pro/python-shop-categories/shop/__init__.py", line 13, in <module> 
    from neo4j.util import Subreference 
ImportError: cannot import name Subreference 

所以我猜一切都安裝..並建立..它是如何一個導入工程,但其他不起作用?

感謝

回答