Hmm, I think the error you are getting is the result of neo4j-embedded not
finding java jars that it needs (I'll add it to the backlog to add an
explicit check for that, rather than failing like this).

Normally, neo4j-embedded will set its classpath itself, pointing to the java
jars it comes bundled with. However, it is possible to override this, by
setting the environment variable "CLASSPATH" to some value. Could you check
if this is the case?

If not, please let me know what platform you are running, and what version
of neo4j-embedded you have installed, and I'll dig deeper into it.

Oh, and I'll make a note that the environment var needs to be changed to
something more specific.

/Jake

On Thu, Sep 22, 2011 at 1:46 PM, bmeagle <dewald.piete...@gmail.com> wrote:

> Hi all,
>
> Decided to give neo4j via python a try but alas:
>
> from neo4j import GraphDatabase
>
> Traceback (most recent call last):
>  File "&lt;pyshell#1&gt;", line 1, in <module>
>    from neo4j import GraphDatabase
>  File "C:\Python27\lib\site-packages\neo4j\__init__.py", line 29, in
> <module>
>    from neo4j.core import GraphDatabase, Direction, NotFoundException,
> BOTH, ANY, INCOMING, OUTGOING
>  File "C:\Python27\lib\site-packages\neo4j\core.py", line 27, in <module>
>    GraphDatabase = extends(GraphDatabaseService)
>  File "C:\Python27\lib\site-packages\neo4j\_backend.py", line 43, in
> extends
>    return ParentClass(getattr(CLASS,'__name__','Class'),(),{})
>  File "C:\Python27\lib\site-packages\neo4j\_backend.py", line 34, in
> __new__
>    return type.__new__(Class, name, (object,), body)
> TypeError: type() argument 1 must be string, not JPackage
>
> I am using winxp I installed neo4j-embedded-1.5.dev104.win32.exe and I am
> using python 2.7
>
> Regards
> bmeagle
>
> --
> View this message in context:
> http://neo4j-community-discussions.438527.n3.nabble.com/neo4j-python-import-error-tp3358482p3358482.html
> Sent from the Neo4j Community Discussions mailing list archive at
> Nabble.com.
> _______________________________________________
> Neo4j mailing list
> User@lists.neo4j.org
> https://lists.neo4j.org/mailman/listinfo/user
>



-- 
Jacob Hansson
Phone: +46 (0) 763503395
Twitter: @jakewins
_______________________________________________
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to