Closed irvinhomem closed 8 years ago
This isn't octal conversion: it is a type failure (maybe it was tolerant in Python-2, but isn't in Python-3) -- see https://docs.python.org/3/library/os.html?highlight=os.chmod#os.chmod
The problem is this has a built-in dependency on scapy
even if installing in Python-3 (which scapy
won't work with anyway); if you clone and set the line:
install_requires=['scapy-python3'],
you should have a successful installation.
A solution to this may be to read the python version in setup.py
, and set the appropriate package name (the import package is "scapy" in either case), e.g. something like:
import sys
scapy_name = "scapy-python3" if sys.version_info.major==3 else "scapy"
...
install_requires=[scapy_name],
...
I think that would do it.
sudo pip3 install scapy-python3
I tried to install scapy-http for scapy-python3 using:
pip3 install scapy-http
But it fails with some sort of python2 to 3 conversion issue related to how octals are represented:
Not sure where exactly this happens. NB: I have both Python2.7 and 3.4 installed and both scapy(2)and scapy3k installed respectively, with both working so far without a problem