Python Legacy - Scapy on Windows (Python 2.4) [closed] - python

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 8 years ago.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Improve this question
I have a machine that has Python 2.4, I am unable to upgrade it to a newer edition.
Also, I need to use scapy on this machine (windows)
I have searched for a scapy version for python version less than 2.4 but only found it for UNIX.
Can anyone help me find a scapy version / port to windows?
thanks

According to the Scapy Download and Installation Documentation, Scapy v1.x is your only option if you are running Python 2.4.
To install Scapy v1.x follow the instructions here. The documentation does state that Scapy has been designed for unix-like systems, but it does support Windows.

According to the official site, scapy is designed with linux in mind. Everything you should need is here. But, it looks like some of the utilities that scapy depends on do not support anything older than 2.5.
Can you use py2exe to bundle a different python interpreter with your app? Since you have to stick the app on the machine anyway, why not just give them a single "executable" with a different version of python compiled in.
You could use NSIS to install the thing, along with the appropriate dependencies. I.E. libpcap and friends for your version of python and scapy.

Related

How to test python code on multiple platforms? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I found a few online python interpreters, and I could test some code on some of them, but they are all running on Linux. Is there an online python interpreter that runs on windows or mac? Or is there some other way one could easily* test some python code on other platforms?
*Without having to buy and setup each OS I want to test.
Every tester that I'm aware of tests against actual installations or on virtual machines.
Virtual Box is one virtual machine that I've had a lot of success with on Ubuntu Linux for other distributions of Linux and my machine licensed Windows copy.
The os documentation describes the cross-compatibility of many of its functions, if you're using that a lot.
One possibility is to set up and use IPython Notebook on Windows Azure.
From linked article:
.. This VM is a complete operating system in the cloud and will be used to run the IPython Notebook ..
You can then access that VM using remote desktop:
"How to log on to the virtual machine after you create it"
If you are into writing unit tests, then travis-ci may be of interest. And it claims support Python on OS/X: "The OS X Build Environment"

Still no wxPython for Python 3 (or 3.3) yet? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I wanted to start working with wxPython, but I found out that it isn't updated for Python 3. I'm using the newest verion of Python, 3.3 that is.
So I started looking on the web and found some people who said there wasn't, but these threads were like 3 years old.
So my question: Is there still no wxPython update for Python 3? Python 3 has been out for a couple of years now! There should be, right?
Thanks
wxPython 4 is here and supports Python 2.7 and 3.5. It can be found on PyPI - https://pypi.python.org/pypi/wxPython and is installed via pip:
pip install wxPython
If you want to try the bleeding edge, there are snapshot builds here:
http://wxpython.org/Phoenix/snapshot-builds/
You will also want to check out the Migration Guide and the Classic vs Phoenix documentation page for more information about the changes to wxPython
ProjectPhoenix is in development and will allow wxpython to work with python3.
I couln't tell you how long it will be till it is released but i think it can be used already to a certain extent.
How "stable" is Phoenix
Phoenix status

Is matplotlib really only available for power pc OS X? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 8 years ago.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Improve this question
The latest matplotlib download page only shows OS X 10.3 download options for mac. Wikipedia claims OS X 10.3 is Power PC only. It seems strange to me that there is no option for downloading matplotlib for Intel based macs. Is this correct?
Matplotlib installation is a tricky beast and althought I have it installed in my python2.6 environment I cannot replicated that success (yet) under a new python2.7 (using virtualenv). So Far:
using the "10.3" dmg as suggested above appeared to install properly but throws an unknown architecture error when trying to plot.
using easy_install fails for me on an unknow architechure error during the freetype2 part of the install.
Downloading the tarball and compiling from source throws the same error. I will eventually tweek the config settings to get MY install to work but I'm not sure that that will help anyone else (sorry Dejas).
Freetype2 and libpng are common culprits for install problems. You could try to google your way through others efforts. Having installed it on a number of osx systems, tarball source install seems to be the most reliable route. If you are not up on what easy_install is (from your question) then you might want to seriously consider one of the Enthougth Python installs.
Update: One machine allowed the source and/or easy_install. I finally just rsync'ed my way to a working condition on my second machine.
Have you tried: easy_install matplotlib
Ok, found an Intel mac. Seems to work. No complaints from the installer at least.

Python version recommendation [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I have developed some internal tools at work using Python. I have been using version 2.5 (or 2.6/2.7) for that and my personal projects as they would work fine with Django and GAE. My question is - should I be switching to version 3 or shall I wait and continue to work with 2.5/2.6/2.7. How stable is 3.0 as compared to 2.x? And what is the switching curve? Thanks.
Python 3 isn't supported by Django and quite a few other notable projects. Although Python 3 (current version is 3.2.1 IIRC) is plenty stable, that's not the issues. The real issue is adoption and library support, and Python 3 does not have enough of either yet. I don't know of anyone using it in production.
The learning curve for switching is pretty small. You can pretty much learn everything you need from What's New in Python 3, and most porting of code is pretty trivial.
I would not recommend that you switch anything that you use in production or professionally to Python 3. For your personal projects, it's okay to use Python 3 as long as the libraries you are using support it (for example, a Django project would not be able to use Python 3). Likewise for AppEngine; for that, you'll have to stick to Python 2.5.
So, in short, you can play around with Python 3, but it's not wise to use it at work because it likely does not support the libraries that you need, and it's not widely installed like Python 2.x is. I'd start thinking about Python 3 and familiarize yourself with it, but don't switch just yet.
You may also be interested in Should I Choose Python 2 or 3.

Is there an equivalent of PyMongo for Python 3.2? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I attempted to install pymongo to my Windows box with Python 3.2 through easy_install, only to find that it will not install due to incompatibilities with Python 3.2.
Therefore, is there an equivalent to pymongo that will work with Python 3.2? MongoDB is an integral part of the application I was developing on Python 2.7, and to move to Python 3.2 I will need to retain this interactivity.
Thanks!
Edit: this answer is outdated. PyMongo now officially supports Python 3.
The answer was already given in comments, but I'll provide a comprehensive summary nontheless:
As of May 2011, Python 3 is not officially supported by MongoDB
Ticket for "Support for Python 3" has been some years ago (https://jira.mongodb.org/browse/PYTHON-84) so the MongoDB developers are aware of this need.
As already told by Adam, there is a port of PyMongo for Python 3 in PyPi (http://pypi.python.org/pypi/pymongo3) which could be used and is defined as "semi-official"
Source codes for the Python 3 fork are available at https://github.com/sovnarkom/mongo-python3-driver
If you want make on impact on making this fork official make an upvote to its ticket (https://jira.mongodb.org/browse/PYTHON-84)
With enough upvotes/user requests, I would expect to get an official Python 3 driver someday
Starting with the 2.2 release PyMongo supports python 3.x where x >= 1.
http://pypi.python.org/pypi/pymongo
http://api.mongodb.org/python/current/python3.html
Via freenode and #web.

Categories

Resources