[Neo] neo4py.py Cannot import NeoService
tobias.ivarsson at neotechnology.com
Fri Jan 22 10:07:58 CET 2010
There is no module called "neo4j.py", that's just a popular name, the name
of the package is simply "neo4j". But if you have a directory with a name
that ends with .py in your PYTHONPATH then that might be a problem, I would
advice against that.
On Fri, Jan 22, 2010 at 1:43 AM, Ryan Rosario <uclamathguy at gmail.com> wrote:
> Hi Tobias,
> I found the problem. For some reason, a file named neo4j.pyc was
> created in the directory containing the directory neo4j.py/.This
> directory also contains my code. It seems that this caused some sort
> of conflict. I am curious if the naming of the module "neo4j.py"
> confuses the interpreter into thinking it is a Python script.
> - Ryan
> >>Hi Ryan!
> >>That's a very strange error. You can import the neo4j module, but not the
> >>NeoService class from it.
> >>What is the content of the neo4j module? If you write something like
> >>what is the output you get:
> >>> import neo4j
> >>> dir(neo4j)
> >>> neo4j.__file__
> >>> neo4j.NeoService
> Neo mailing list
> User at lists.neo4j.org
Tobias Ivarsson <tobias.ivarsson at neotechnology.com>
Hacker, Neo Technology
Cellphone: +46 706 534857
More information about the User