I've sorted the DLL issues, now I can import neo4j along with my os.environ path additions.
On Fri, Sep 23, 2011 at 10:55 AM, Jacob Hansson-2 [via Neo4j Community Discussions] <ml-node+s438527n3361314...@n3.nabble.com> wrote: > For the DLL issues, see the windows section of the installation > instructions, here: > > > http://docs.neo4j.org/chunked/1.5-SNAPSHOT/python-embedded-installation.html > > Keep me posted! > Jake > > On Fri, Sep 23, 2011 at 10:37 AM, bmeagle <[hidden > email]<http://user/SendEmail.jtp?type=node&node=3361314&i=0>> > wrote: > > > On Thu, Sep 22, 2011 at 3:37 PM, Jacob Hansson-2 [via Neo4j Community > > Discussions] <[hidden > > email]<http://user/SendEmail.jtp?type=node&node=3361314&i=1>> > wrote: > > > Update on this: > > > > > > I just pushed this to master, you will be able to follow the build via > > our > > > build control panel. When the "deploy Embedded Python" project has run > > > successfully, the updated version should be available on pypi for > > download. > > > There is currently almost 200 builds queued up, so it may take a > while.. > > > > > > > > > > > http://builder.neo4j.org/project.html?projectId=project34&tab=projectOverview > > > (just click "login as guest") > > > > > > Thanks for reporting this, it turned out to be a proper bug (using ":" > > > instead of ";" as classpath separators on windows). Let me know if the > > fix > > > worked! > > > > > > /Jake > > > > I downloaded and installed the newest version, but I still got the same > > error, classpath was still incorrect. > > > > print os.environ['CLASSPATH'] > > > > .;C:\Program > > > > > Files\Java\jre1.6.0_07\lib\ext\QTJava.zip;C:\Python27\Lib\site-packages\neo4j\javalib\ > > > > > >>> import neo4j > > > > Traceback (most recent call last): > > File "<pyshell#3>", 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 19, in <module> > > > from _backend import * > > File "C:\Python27\lib\site-packages\neo4j\_backend.py", line 158, in > > <module> > > raise ImportError("Cannot find Neo4j java classes, used classpath: %s" > % > > classpath) > > ImportError: Cannot find Neo4j java classes, used classpath: .;C:\Program > > > > > > Files\Java\jre1.6.0_07\lib\ext\QTJava.zip;C:\Python27\Lib\site-packages\neo4j\javalib\ > > > > > I then updated the classpath with a modified version of your code: > > > > >>> libpath = 'C:\\Python27\\Lib\\site-packages\\neo4j\\javalib\\' > > > > >>> os.environ['CLASSPATH']=';'.join(libpath+p for p in > > os.listdir(libpath)) > > > > print os.environ['CLASSPATH'] > > > > > > > C:\Python27\Lib\site-packages\neo4j\javalib\antlr-2.7.7.jar;C:\Python27\Lib\site-packages\neo4j\javalib\asm-3.2.jar;C:\Python27\Lib\site-packages\neo4j\javalib\asm-analysis-3.2.jar;C:\Python27\Lib\site-packages\neo4j\javalib\asm-commons-3.2.jar;C:\Python27\Lib\site-packages\neo4j\javalib\asm-tree-3.2.jar;C:\Python27\Lib\site-packages\neo4j\javalib\asm-util-3.2.jar;C:\Python27\Lib\site-packages\neo4j\javalib\blueprints-core-0.9.jar;C:\Python27\Lib\site-packages\neo4j\javalib\geronimo-jta_1.1_spec-1.1.1.jar;C:\Python27\Lib\site-packages\neo4j\javalib\gremlin-1.2.jar;C:\Python27\Lib\site-packages\neo4j\javalib\groovy-1.8.1.jar;C:\Python27\Lib\site-packages\neo4j\javalib\jansi-1.5.jar;C:\Python27\Lib\site-packages\neo4j\javalib\jettison-1.3.jar;C:\Python27\Lib\site-packages\neo4j\javalib\lucene-core-3.1.0.jar;C:\Python27\Lib\site-packages\neo4j\javalib\neo4j-1.5-SNAPSHOT.jar;C:\Python27\Lib\site-packages\neo4j\javalib\neo4j-cypher-1.5-SNAPSHOT.jar;C:\Python27\Lib\site-packages\ > > ne > > > > > > > o4j\javalib\neo4j-graph-algo-1.5-SNAPSHOT.jar;C:\Python27\Lib\site-packages\neo4j\javalib\neo4j-graph-matching-1.5-SNAPSHOT.jar;C:\Python27\Lib\site-packages\neo4j\javalib\neo4j-jmx-1.5-SNAPSHOT.jar;C:\Python27\Lib\site-packages\neo4j\javalib\neo4j-kernel-1.5-SNAPSHOT.jar;C:\Python27\Lib\site-packages\neo4j\javalib\neo4j-lucene-index-1.5-SNAPSHOT.jar;C:\Python27\Lib\site-packages\neo4j\javalib\neo4j-udc-1.5-SNAPSHOT.jar;C:\Python27\Lib\site-packages\neo4j\javalib\pipes-0.7.jar;C:\Python27\Lib\site-packages\neo4j\javalib\scala-library-2.9.0-1.jar;C:\Python27\Lib\site-packages\neo4j\javalib\stax-api-1.0.1.jar;C:\Python27\Lib\site-packages\neo4j\javalib\__init__.py;C:\Python27\Lib\site-packages\neo4j\javalib\__init__.pyc;C:\Python27\Lib\site-packages\neo4j\javalib\__init__.pyo > > > > > Now it complains about DLL's: > > > > >>> import neo4j > > > > Traceback (most recent call last): > > File "<pyshell#10>", 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 19, in <module> > > > from _backend import * > > File "C:\Python27\lib\site-packages\neo4j\_backend.py", line 113, in > > <module> > > raise Exception("Unable to start JVM, even though I found the JVM path. > > > If you are using windows, this may be due to missing system DLL files, > > please see the windows installation instructions in the neo4j > > documentation.",e) > > Exception: ('Unable to start JVM, even though I found the JVM path. If > you > > are using windows, this may be due to missing system DLL files, please > see > > the windows installation instructions in the neo4j documentation.', > > RuntimeError('Unable to start JVM at src/native/common/jp_env.cpp:54',)) > > > > I'll keep you posted, at least the java path check works now. > > > > -- > > Dewald Pieterse > > > > "A democracy is nothing more than mob rule, where fifty-one percent of > the > > people take away the rights of the other forty-nine." ~ Thomas Jefferson > > > > > http://www.jonathangullible.com/mmedia/PoL.English.The.Philosophy.of.Liberty.swf > > > > > > -- > > View this message in context: > > > http://neo4j-community-discussions.438527.n3.nabble.com/neo4j-python-import-error-tp3358482p3361288.html > > > Sent from the Neo4j Community Discussions mailing list archive at > > Nabble.com. > > _______________________________________________ > > Neo4j mailing list > > [hidden email] <http://user/SendEmail.jtp?type=node&node=3361314&i=2> > > https://lists.neo4j.org/mailman/listinfo/user > > > > > > -- > Jacob Hansson > Phone: +46 (0) 763503395 > Twitter: @jakewins > _______________________________________________ > Neo4j mailing list > [hidden email] <http://user/SendEmail.jtp?type=node&node=3361314&i=3> > https://lists.neo4j.org/mailman/listinfo/user > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > > http://neo4j-community-discussions.438527.n3.nabble.com/neo4j-python-import-error-tp3358482p3361314.html > To unsubscribe from neo4j python import error, click > here<http://neo4j-community-discussions.438527.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=3358482&code=ZGV3YWxkLnBpZXRlcnNlQGdtYWlsLmNvbXwzMzU4NDgyfC03MjE4ODQ5OTk=>. > > -- Dewald Pieterse "A democracy is nothing more than mob rule, where fifty-one percent of the people take away the rights of the other forty-nine." ~ Thomas Jefferson http://www.jonathangullible.com/mmedia/PoL.English.The.Philosophy.of.Liberty.swf -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/neo4j-python-import-error-tp3358482p3361315.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