Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Package available in pip3, but not ported to python 3 #11

Open
blackbit42 opened this issue Jul 26, 2017 · 0 comments
Open

Package available in pip3, but not ported to python 3 #11

blackbit42 opened this issue Jul 26, 2017 · 0 comments

Comments

@blackbit42
Copy link

pynetfilter_conntrack can be installed with pip3.

$ sudo pip3 install pynetfilter_conntrack
Collecting pynetfilter_conntrack
Installing collected packages: pynetfilter-conntrack
Successfully installed pynetfilter-conntrack-0.7
$

The installed files are identical to what comes from pip (python 2) though:

$ DIR2="/usr/local/lib/python2.7/dist-packages/pynetfilter_conntrack"
$ DIR3="/usr/local/lib/python3.5/dist-packages/pynetfilter_conntrack"
$ find "${DIR2}" -name \*.py -printf "%f\n" | while read -r FILE; do diff -u "${DIR2}/${FILE}" "${DIR3}/${FILE}"; done
$ 

The code is not valid python3:

$ python3 -c 'import pynetfilter_conntrack'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/local/lib/python3.5/dist-packages/pynetfilter_conntrack/__init__.py", line 2, in <module>
    from pynetfilter_conntrack.tools import *
  File "/usr/local/lib/python3.5/dist-packages/pynetfilter_conntrack/tools.py", line 38
    shift = 0L
             ^
SyntaxError: invalid syntax
$

The code should either be forward-ported or be removed from pip3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant