You might also try the newer cpython bindings which use jcc instead of jpype
to connect with Java.  They also don't support batch import, but I'm curious
if you run into the same issue.

https://github.com/OneSaidWho/neo4py


Aaron

On Thu, Jun 9, 2011 at 6:31 AM, oguerrer <oguer...@gmail.com> wrote:

> Hi all,
>
> I am a newbie to neo4j so please bare with me.
>
> I installed neo4j for cpython and it is working fine. I can create graph
> databases and everything. Since I need to insert a huge data set, I need to
> use the batch inserter form neo4j in its Java form.
>
> The problem that I am having is that, after creating my database using the
> batch insert in Java, I am not able to open it using the python bindings.
>
> I really need to use the python bindings because I will be doing a lot of
> analysis using some python libraries. I have attempted to create the
> database with different versions of neo4j (1.2, 1.3, and 1.4) and still get
> the same result.
>
> I am trying to open the database in python using: graphdb =
> neo4j.GraphDatabase('fleedGraph')
>
> The errors that I get are:
>
> C:\Python26\lib\site-packages\jpype\_pykeywords.py:18: DeprecationWarning:
> the sets module is deprecated
>  import sets
> Traceback (most recent call last):
>  File "C:\Documents and
> Settings\tequilamambo\Desktop\batchDataMaker\nodesIndexer.py", line 10, in
> <module>
>    graphdb = neo4j.GraphDatabase('fleedGraph')
>  File
>
> "C:\Python26\lib\site-packages\neo4j.py-0.1_snapshot-py2.6.egg\neo4j\__init__.py",
> line 522, in __new__
>    neo = core.load_neo(resource_uri, params)
>  File
>
> "C:\Python26\lib\site-packages\neo4j.py-0.1_snapshot-py2.6.egg\neo4j\_core.py",
> line 332, in load_neo
>    return load_neo(resource_uri, parameters)
>  File
>
> "C:\Python26\lib\site-packages\neo4j.py-0.1_snapshot-py2.6.egg\neo4j\_core.py",
> line 225, in load_neo
>    return GraphDatabase(resource_uri, settings, config, log)
>  File
>
> "C:\Python26\lib\site-packages\neo4j.py-0.1_snapshot-py2.6.egg\neo4j\_core.py",
> line 230, in __init__
>    neo = backend.load_neo(resource_uri, settings)
>  File
>
> "C:\Python26\lib\site-packages\neo4j.py-0.1_snapshot-py2.6.egg\neo4j\_backend\__init__.py",
> line 74, in load_neo
>    return impl(resource_uri, implementation.make_map(settings))
>  File "C:\Python26\lib\site-packages\jpype\_jclass.py", line 79, in
> _javaInit
>    self.__javaobject__ =
> self.__class__.__javaclass__.newClassInstance(*args)
> jpype._jexception.RuntimeExceptionPyRaisable:
> org.neo4j.kernel.impl.transaction.TransactionFailureException: Could not
> create data source [nioneodb], see nested exception for cause of error
>
>
> I hope someone can help me with this.
>
> Best,
>
> omar
>
>
>
> --
> View this message in context:
> http://neo4j-user-list.438527.n3.nabble.com/Neo4j-Incompatible-batch-inserted-data-with-Python-bindings-tp3043869p3043869.html
> Sent from the Neo4J User List mailing list archive at Nabble.com.
> _______________________________________________
> Neo4j mailing list
> User@lists.neo4j.org
> https://lists.neo4j.org/mailman/listinfo/user
>
_______________________________________________
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to