scholrly / neo4django

Drop-in Neo4j/Django integration.
GNU General Public License v3.0
357 stars 83 forks source link

Python 3.x incompatibility #236

Closed torbjoernk closed 7 years ago

torbjoernk commented 10 years ago

It should be stated somewhere, that neo4django is not compatible with Python 3.x.

I had to learn it the hard way, while getting import exceptions in neo4jclient.py [1] and finally I gave up on rest_utils.py [2].

Are you planning or working on Python 3.x support? I'm not sure, whether I can help porting it.

1:

File "neo4django/neo4jclient.py", line 1, in <module>
    from urlparse import urlparse
ImportError: No module named 'urlparse'

Should be imported as from urllib.parse import urlparse.

2:

File "neo4django/rest_utils.py", line 2, in <module>
    from itertools import izip_longest, chain, ifilter
ImportError: cannot import name izip_longest

izip_longest might be renamed into zip_longest but there is no function filter in Python3's itertools module.

mhluongo commented 10 years ago

@torbjoernk I would love Python 3 support, but I'm struggling to keep up with Django and Neo4j right now. I'd definitely appreciate the contribution if you did have some time.

mhluongo commented 7 years ago

Closing this in favor of #260. Let's make neo4django Py3k compatible!