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

> I manually added the path to the CLASSPATH windows environment variable via
> system settings.
>
> >>> print os.environ['CLASSPATH']
> .;C:\Program
>
> Files\Java\jre1.6.0_07\lib\ext\QTJava.zip;C:\Python27\Lib\site-packages\neo4j\javalib\
>
> checked it:
>
> >>> libpath = 'C:\\Python27\\Lib\\site-packages\\neo4j\\javalib\\'
> >>> print os.listdir(libpath)
> ['geronimo-jta_1.1_spec-1.1.1.jar', 'lucene-core-3.1.0.jar',
> 'neo4j-1.5-SNAPSHOT.jar', 'neo4j-cypher-1.5-SNAPSHOT.jar',
> 'neo4j-graph-algo-1.5-SNAPSHOT.jar',
> 'neo4j-graph-matching-1.5-SNAPSHOT.jar', 'neo4j-jmx-1.5-SNAPSHOT.jar',
> 'neo4j-kernel-1.5-SNAPSHOT.jar', 'neo4j-lucene-index-1.5-SNAPSHOT.jar',
> 'neo4j-udc-1.5-SNAPSHOT.jar', 'scala-library-2.9.0-1.jar', '__init__.py',
> '__init__.pyc', '__init__.pyo']
>
> but still no joy
>
> >>> import neo4j
>
> Traceback (most recent call last):
>   File "&lt;pyshell#15&gt;", line 1, in <module>
>     import neo4j
>  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
>
> Couldn't this be something else?
>

Well, yeah, but I think this is it. I was able to replicate your problem on
a local xp machine (and have a fix that seems to work, running the test
suite on it right now). It should be available for download in two hours or
so, depending on how our build servers are feeling today.

Until then, the problem with the classpath you sent above is that it just
points to the folder with the jars. The classpath needs to explicitly list
the path to each jar, separated by semicolons. The code I sent in my
previous mail should do that automatically for you, if you just give it the
correct javalib folder path.


>
> bmeagle
>
> --
> View this message in context:
> http://neo4j-community-discussions.438527.n3.nabble.com/neo4j-python-import-error-tp3358482p3358708.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