Skip to content

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

@blackbit42

Description

@blackbit42

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions