The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
0answers
7 views

Python 3 Unkown Coding Error

I have this Python 3 code which is causing me issues: def setStartingVariable(inputType, text, code = None, customErrorMessage = "Error: No error message"): while True: try: ...
0
votes
0answers
16 views

Random output from line of python code appearing in Command prompt help menu [migrated]

I was playing with the interactive Python interpreter, and decided to see what the help session said about different modules. When I typed "modules", I was given a list of modules, and a user query ...
0
votes
1answer
60 views

Python logging class not working when sending stdout to /dev/null

I have a Python 3 script that has logging enabled (for debugging purposes). Whenever I run/execute this script it is working fine and the logfiles are created. I've also created a setup.sh-bash ...
0
votes
1answer
249 views

Running Python scripts in Chrome on Windows 7

I would like to run Python scripts (.py files) in Windows 7 Enterprise WITHOUT downloading anything, since I am at a school library. After some research, I found some Chrome apps that CAN run Python, ...
0
votes
1answer
204 views

Django's dev server causes permanent high CPU load with Python 3

Django's development server runs under Python 2.7.5 (on Windows 7) with a rather constant (idle) load of about 1-3% on my test system - no page loads or other calculations done. Switching to Python ...
0
votes
0answers
70 views

Replace series of empty lines with Beautifulsoup

I have a python3 script that works on html files that contain a number of <br/><br/><br/> tags. Sometimes there are as muxh as 10 such tags in a row. I want to replace them with a ...
1
vote
3answers
277 views

How can I run a Python 3 script?

I want to run a Python 3 script. I have looked in the official doc and FAQ, and they are the typical loss. I was looking for answers, I ended up with more questions. I have Windows and Linux. On ...
0
votes
1answer
168 views

Change “Edit with IDLE” default to python 3.X instead of python 2.X on windows

When i right-click a python file in windows, there's normally that "edit with IDLE" option, which is a great help. Unfortunately, on the computer I'm using right now I installed both python 3.4 and ...
0
votes
0answers
36 views

pip not working on terminal prompt, but pip3 is

I am very new to python and pip, and taking online courses. It is not a major issue (but want to understand why it is the case). Why I type in pip I get: Dhruv’s MacBook Pro:~ dhruv$ pip -bash: ...
0
votes
0answers
192 views

Installing SIP-4.16.4 and Py3.4-Qt5.3.1-x64 on windows 8.1

I have unpacked sip-4.16.4.zip from riverbankcomputing and ran configure.py from within the sip-4.16.4 directory. In Python34 I now have the folders sipgen and siplib along with sipconfig.py and a ...
1
vote
2answers
114 views

How to redirect stderr of python3 script using tee pipe?

I am a Debian and RedHat user. I would like to redirect stderr (module logging) from a Python3 script. The script outputs a lot of things and the part I want to capture can be fetched using: python3 ...
0
votes
1answer
628 views

How to install the library netifaces for Python3 in Ubuntu 12.04?

I made a program in Python3 which uses the package netifaces, I installed it with pip3 in two computers which had Ubuntu 13.04 and Ubuntu 13.10. However, I need to install it in other computer which ...
0
votes
1answer
365 views

Change pythonpath in Vim

I'm using Vim for Python coding. The problem is, that I'm writing in Python 3 and Vim settings contain only Python 2.7 paths. That does not allow me to use plugins (like python-mode) for autocomletion ...
0
votes
1answer
251 views

Is there a way to get python's help() to work in the SublimeText 3 console?

Sublime Text has a console which can be activated by using Ctrl + `. It exposes a python interpreter. On my machine, it's python 3.3. >>> import sys >>> sys.version '3.3.0 ...
6
votes
2answers
730 views

How to fix _decimal module compilation error when installing Python 3.3.2 in CentOS 5.9 (x86_64)?

I'm getting the following error when trying to compile Python 3.3.2 in CentOS 5.9 x86_64: Failed to build these modules: _decimal I get this error when executing the "make" command (after the ...
0
votes
1answer
683 views

Is this port of ScaPy compatible with Python 3.x?

I found this attempt at poring the ScaPy packet manipulator to python 3.x. Has anyone had any experience using it in Python 3.x? Does it work?
1
vote
0answers
353 views

how can I get scitools to work with Python 3.3.2 in Windows?

I just installed Python 3.3.2 on my Windows XP machine. I have been practicing Python using both Idle and PyScripter. I installed several packages to go with it, among them SciTools. The ...
0
votes
0answers
183 views

Python 3.3 (Using IDLE)

I recently installed Python 3.3 on Centos 6 (which has Python 2.6.6 already installed). When I try to open the the Python Shell with IDLE, it opens with Python 2.6.6. How do I open Python 3.3 with ...
1
vote
1answer
1k views

running python via mac ports

I have installed python via mac ports, using: sudo port install python33 I then did: sudo port select --set python python33 and got: Selecting 'python33' for 'python' succeeded. 'python33' is ...
0
votes
1answer
368 views

postfix sends mail from wrong domain / Python 3 code for sending utf8 mail

I have a machine with two domain names, say a.com and b.com. When I use postfix to send something from an address like foo@a.com, it replaces it with foo@b.com every time. My main.cf file specifies ...
1
vote
1answer
982 views

What Linux distributions come with Python 3 as the default? [closed]

I know that ArchLinux has Python 3 as the default Python install. What other Linux distributions ship with Python 3 as the default Python version? I've checked this SO question, but it seems more ...