Will Scapy be compatible with Python 3.2? I've been trying to find some info on how it performs, since the Scapy website has rather scarce (if any) info on Python 3.X compatibility, and I didn't come up with anything informative. Has anyone tried using it on Python 3.X and how did it perform?
Intrusive edit: Many answers below are outdated. Scapy now supports Python 3. See https://github.com/secdev/scapy
Python 3 compatibility for parts of Scapy seems to have been attempted.
It's perhaps worth filing a ticket on their bug tracker if there isn't one already (I tried searching and didn't find an obvious one, which I thought was surprising).
Update: https://bitbucket.org/secdev/scapy/issues/5082/compatibility-with-python-3
As the developers stated, they will not port Scapy2 to Python3.
I have forked the code for Scapy 2.3.1 and created a version which works with python3. You can install it with pip as scapy-python3 or see the code on https://github.com/phaethon/scapy
For the record, Scapy is now compatible with Python 3, and supports with the same code base (and, obviously, the same API) Python 2.7 and 3.3 to 3.6.
Get the latest version from https://github.com/secdev/scapy or use pip install --pre scapy (or pip3), and try it!
Related
My Mac came installed with python 2.7 as the default python version. But, this version is no longer supported by many packages and software. I searched several online forums regarding how to change the default python version on mac. But, none of them seem to work. I also installed the latest version of python, and if I type:
python --version
It returns the version as python 3.8. But if I try to install packages like Biopython, I get an error like this -
defaulting to user installation because normal site-packages is not
writeable
Collecting biopython Using cached biopython-1.77.tar.gz (16.8 MB)
ERROR: Command errored out with exit status 1:
Biopython requires Python 3.6 or later. Python 2.7 detected
I am really finding it difficult to install many packages required for my work. Any help or suggestions would be greatly appreciated.
Thank you.
Probably, you just have to change your Python symbolic link.
Please check this, and you will get it: https://dev.to/malwarebo/how-to-set-python3-as-a-default-python-version-on-mac-4jjf
It seems overkill to download and install 3.5.2 from https://www.python.org/downloads/mac-osx/ to simply updgrade from 3.5.0. Is there a Python command that will update itself?
Mac OS 10.11.6
Python 3.5.0
First question: do you need to upgrade?
See the change log. There are no new features introduced in 3.5.2 just various bug fixes. If you are not affected then your time may be better spent elsewhere.
If you do still want to upgrade there is probably no easier way than downloading an upgrade and installing it. Even if you use python to upgrade itself, it would still need to download the same files. There would be no real saving in time.
There is no Twisted for python 3.5 at https://pypi.python.org/pypi/Twisted ,I am using python 3.5.2,what should I do?
I recently encounter a similar problem.
try this Unofficial Windows Binaries for Python Extension Packages
http://www.lfd.uci.edu/~gohlke/pythonlibs/#twisted
Use command "pip install yourfilename.whl"
I used it to fix the problem while installing scrapy
Each new release of Twisted includes updates that bring full equal functionality to the python3 version. Releases are roughly monthly, so you may find that the module already works for you.
It is possible (for example with virtualenv) to install both python2 and 3 How to install both Python 2.x and Python 3.x in Windows 7
Twisted support of python 3 on windows is lagging a little behind support on other systems. So if you have access to another OS you may find that it will allow you to install twisted for python 3.
I'm running the latest Ubuntu (14.04) and have just downloaded the Node.js tarball. I'm not very familiar with Python though, and although I love Ubuntu, I'm also not familiar with the process of downloading and installing stuff on Linux as well :/
It says on the Node.js download page that Python 2.6 or 2.7 is required, but I have found that newer versions of Python are available. Will a newer version of Python build it correctly?
If you're not familiar with Linux then I don't think you want to compile node.js yourself from source. You can still use the binaries.tar.gz
There are Ubuntu packages that will install node.js for you! Installing from a package manager is easier, try https://github.com/joyent/node/wiki/installing-node.js-via-package-manager#debian-and-ubuntu-based-linux-distributions
As for building from source, there are known issues with Python 3, ref https://github.com/joyent/node/wiki/installation#known-issues, so maybe stick with 2.6 or 2.7
Python versions starting with and including 2.6 up through before 3.0 should work fine. Python 3 brought some backwards incompatible changes with Python 2.x and AFAIK gyp has not been updated to support Python 3 yet.
Something I'm doing works under the latest Windows Python 2 and 3, latest Debian Python 2 and 3, and Cygwin Python 2, but fails under Cygwin Python 3.2.3. Known bug fixes after 3.2.3 on Windows deal with the problem.
Where does that realistically leave me concerning deployment, if the latest version using traditional distribution paths (latest Cygwin Python 3) isn't high enough, should I:
tell the user oops, wait for an upgrade
tell the user to manually download a newer Python to shadow the official distro version
tell the user to use Windows Python 3 instead of Cygwin Python 3 to run this program
downgrade my code to stop using the multiprocessing class where bad things happen
I'm testing on six versions of Python right now and didn't even try OS X or BSD yet. Are compatibility issues and having to downgrade code to just not use certain Python Standard Library classes something others have to do often?
I accept the answer from Billy ONeal in the comment above