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.
Related
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
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.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I am new to Python, and keep running into the same problem: I can't find up-to-date examples of common Python solutions.
For example, googling "python html parser" gives me this as first result:
http://docs.python.org/2/library/htmlparser.html
The problem is that the code in this official doc is not working on Python 3.3.2 on windows, which is the latest download.
For example:
from HTMLParser import HTMLParser # does NOT work for Python 3.3
is not working. Instead, one should use:
from html.parser import HTMLParser # works for Python 3.3
This is just one example. Also a significant number of Stackoverflow Python codes answers do not work straight; for example:
print "text" # does NOT work for Python 3.3
is now:
print ("text") # works for Python 3.3
So my question is: how can I find up-to-date documentation and code examples that work for Python 3.3 on windows?
You tell Google the version of Python: python 3.3 html parser
First result: http://docs.python.org/3/library/html.parser.html
Note that a lot of support libraries don't fully support Python 3.x at this time. Which is why Python 2 still is the default for many projects.
If you plan to stay on 3.3, you may want to read "What's New in Python", especially "What's New In Python 3.0".
If you see on the top left of the documentation page, there's 2.7.5, the latest version for Python under version 3. You can click it and choose your version for the most up to date documentation.
On the example you gave, the top mentions that the module has been renamed in Python 3. If we go to a module that works in both 2 and 3, such as itertools, changing the number will redirect you to the updated documentation on itertools.
here you can find Python 3 documentation: http://docs.python.org/3/
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.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a book, tool, software library, tutorial or other 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 8 years ago.
Improve this question
I want to install Scapy on Windows using Python 2.7, but the required package pypcap doesn't support Python 2.7. Is there a patch or a workaround to be able to install pypcap on Python 2.7?
I built a pypcap extension for Python 2.7 Windows a couple of days ago. Mario Vilas has regrouped the whole that so you may find the installers over here then: http://breakingcode.wordpress.com/2012/07/16/quickpost-updated-impacketpcapy-installers-for-python-2-5-2-6-2-7/
Read this, and follow the instructions: http://code.google.com/p/pypcap/issues/detail?id=27#c6