Python is an interpreted, general, high-level programming language. The design emphasizes readability. It is notable for using tabs to indicate block levels. As a dynamic language, it shares many similarities to Ruby, Perl, and Scheme. The language is very popular for scientific computing and ...

learn more… | top users | synonyms

0
votes
1answer
19 views

Unknown Python Bug

I am learning to write python and I am writing some scripts according to what a book says. The code is as follows cars = 100 space_in_a_car = 4 drivers = 30 passengers = 90 cars_not_driven = cars - ...
0
votes
1answer
3k views

How to launch python script as a windows Services

Using python 2.7 and windows 7. I have a python file(.py). I want to launch this script as a windows services, i.e. this code will keep on running from start to end and never terminate. I can convert ...
2
votes
1answer
4k views

How do I install python with proper permissions?

So python installed probably fine. Or perhaps it was already on here (I'm using xubuntu 12.10). But I tried to install networkx today using pip: pip install networkx then says I don't have ...
0
votes
0answers
31 views

Unknown option argument: “--multiprocessing-fork”

I have an error on Windows vim version 7.4.417 (no problems on Linux): Unknown option argument: "--multiprocessing-fork" . It is related to using python multiprocessing. How can I fix that?
0
votes
0answers
19 views

Python threads are not run in parallel [on hold]

In my python plugin I run several tasks (a lot) in parallel (16 threads). But my cpu utilization on gvim 13% (I have 8 cores). I see from process explorer that the thread are created. I tried the code ...
-1
votes
0answers
10 views

Execution from OS X terminal returns nothing

I am attempting to configure and then execute a waf file. When I run ./waf configure --mode=release --with-python --with-cpptests --with-examples --with-vamp it does not return an error and it ...
1
vote
0answers
7 views

How to add existing django project to Aptana Studio 3 without modifying files?

I have created a new Django project using django-admin startproject mysite on C:\tuts\ The initial file structure is as shown in the official documentation where the root folder of the project ...
0
votes
0answers
13 views

improving my batch “ts to mkv muxing” python script [on hold]

i have a ts2mkv python script and i wonder how i can add Search folder for files to remux Support mov,mp4,ts containers Run from commandline Run from context menu Python 2.6 on Windows Haali ...
-2
votes
0answers
28 views

MacBook Pro, Mac OS X, Version 10.7.5, 2 GHz Intel Core i7, Python 3.4.2, matplotlib 1.4.2

I have a MacBook Pro runningc OS X, Version 10.7.5, 2 GHz Intel Core i7, Python 3.4.2, matplotlib 1.4.2 Matplotlib responds with error and therefore I can not plot. ipython dialog gives In [10]: ...
1
vote
0answers
15 views

Selenium with PhantomJS, click() not working

I have a working script to manipulate a site. When running with webdriver.Chrome(chromedriver.exe) it works like a charm. But when I try with webdriver.PhantomJS(phantomjs.exe) it doesn't work. More ...
1
vote
1answer
13 views

Running (not installing - installed already) pip on windows

I have installed PIP successfully on Windows. However, the only instructions I see to run appear to be of the format $ pip install xxxx - which I take to be Linux command line I'm on Windows 8. I ...
1
vote
1answer
18 views

python broken after conda remove openssl

While trying to resolve package dependency problems, I used conda to uninstall openssl, since this appeared to be one of the packages with unsatisfiable specifications. However, once I did this, ...
2
votes
2answers
5k views

How exactly does one install `.egg` files?

When I tried downloading the Sphinx installer here, my computer couldn’t find a default application to run the installer. easy_install doesn’t work either. I’m running Python 2.7 but only have ...
-1
votes
0answers
29 views

Python script to create users and upload ssh keys to remote server from a local machine [on hold]

This is what I am trying to do. I have a user list csv file containing: user1, SSHkeys/user1.pub user2, SSHKey/user2.pub Store them respectively into $username and $SSHKey Another server list csv ...
-1
votes
0answers
12 views

How to Disable Python/IronPython Intellisense in Visual Studio

My Visual Studio 2013 Professional about window shows "Python Tools for Visual Studio 2.1.21008.00...Python Tools for Visual Studio provides IntelliSense...". How do I turn off this Python ...
3
votes
1answer
9k views

How can I run python scripts on Windows?

I'm new to Windows 7 and with my Python installation. When I specify script.py in cmd.exe and hit Return/Enter, instead of executing the python file, I am given an error message (sth like "not a ...
0
votes
1answer
24 views

Unable to communicate with peripheral over Serial USB from Linux

I am struggling with establishing comunications with a peripheral over USB serial on my Linux here (fedora 20/64bit), and I am probably missing some step: I connect the device, a /dev/ttyUSBx port ...
4
votes
6answers
1k views

Force output buffer flush in running program

I have a long-running python script that periodically outputs data to standard output that I've invoked with something like: python script.py > output.txt This script has been running for a ...
0
votes
0answers
15 views

High memory rate - how to focus on the cause?

I have an high memory rate on my app and I see that gunicorn takes about 2.74GB memory. How can I identify exactly what is the reason for that? Can I see what are the running processes within ...
1
vote
1answer
13 views

What's the exit code for “curl -I” when not HTTP 200?

I want to check what HTTP status code is returned for an HTTP(S) URL. I don't care about content, so I just request head with curl -I $url or curl --head $url But what's the exit code I should ...
0
votes
0answers
21 views

Configuring Ansible for Docker Dynamic Inventory

I'm trying to setup Ansible's Dynamic inventory for Docker. I read the instructions in the docker.py and docker.yml file. My docker.yml contains: --- defaults: host: unix:///var/run/docker.sock ...
0
votes
0answers
20 views

What is the CentOS 7 equivilent package for python's “rhpl” from CentOS 5 (textdomain_codeset)

I have legacy Python (2.4) code from a CentOS 5 machine, which I am porting to CentOS 7 with Python 2.7. The file "timeconfig.py" (used for setting system time and date "graphically" on a text ...
0
votes
0answers
10 views

WSGI, Ngnix, Python3, Debian Wheezy: what pkgs to install, how does it all fit in?

I'm working on a web-site. I would like to add some database functionality eventually: for this, i need to understand SQL, python-sqlite3, python-wsgi spec, python-uWSGI server and how all this is ...
0
votes
0answers
5 views

set tabs to 4 spaces in pudb

is there a way to set 1 tab = 4 spaces in pudb python debugger? i have tried setting my terminal tabs like so: tabs 1,+4,+4,+4,+4,+4,+4,+4,+4,+4,+4,+4,+4,+4,+4,+4,+4,+4 in ~/.bashrc and this fixes ...
6
votes
2answers
2k views

How do I add “input” to my macro, to replace text in Notepad++?

I'm trying to make a macro with an 'input' pop-up dialog that synergizes with the replace feature. It should go something like: "Paste text->ask for input->replace variable in pasted text with input ...
0
votes
0answers
47 views

Mac OS X Yosemite and Client SSL Certificates

Ever since I upgraded from Mavericks to Yosemite, my SSL Client Certificates have stopped working in certain places. They still work in web browsers and in wget, but they have stopped working in curl ...
0
votes
1answer
36 views

How to syntax highlight python scripts in PHP storm

I tried installing this script but then got this error message: I'm hoping for an answer that's similar to this one but for python instead of ruby.
1
vote
1answer
139 views

pip install python winerror 10054

Been trying to pip install selenium keep getting these same errors, but its not just selenium its any package. I believe it maybe a firewall issue because I am trying to install this on a workstation ...
0
votes
0answers
9 views

create a virtual environment with anaconda in windows

I am having a difficult time running python 3.4.2 with Anaconda/spyder/ipython. Question: if I delete Anaconda and start over, why isn't python 3.4.2 an option? Is it related to the fact that when I ...
0
votes
1answer
71 views

Python path is not recognized after adding a new variable under environment variables, picture provided

'python' is not recognized as an internal or external command, operable program or batch file. My Python folder is directly in C:\python34. Please look at the picture: What am I doing wrong?
-1
votes
1answer
39 views

I don't see 'path' under environment vaariables

I am trying to set path for Python but I have no 'path' under environment variables. Below is a link for the original issue as well a screen shot. How can I fix this?
1
vote
2answers
2k views

python3-pip installed but pip3 command not found?

I am testing a Python3 program in several computers. To do that, I need to install a library of Python with pip3. So first, I was installing python3-pip in each computer (everyone is running a ...
0
votes
0answers
29 views

MySQLdb-python installed but throws import error when run: Library not loaded: libssl.1.0.0.dylib

I'm having issues setting up my python environment on a new computer, specifically with the MySQL-python module. Im using... macbook pro version 10.10.1 the anaconda distribution for python 2.7: ...
0
votes
0answers
6 views

SASS e images not loaded

I have used webasset and cssmin on a python static site generator to merge 4 css files into a one compressed file. The individual CSS files when referenced individually does contribute to a fully ...
2
votes
2answers
4k views

using python Paramiko for ssh: sudo: no tty present and no askpass program specified

I want to use paramiko to ssh into a bunch a remote nodes and run some command line with root priviledge I have ssh key in my home directory and so i don't need to input password when I ssh into ...
0
votes
1answer
15 views

Parley says “Failed to determine interpreter for scriptfile” for all stock scripts on Mint 17 (with Python 2.7.6)

When I first tried using Parley 1.0.0 (which I had installed using the Software Manager in Mint 17, 32-bit), I downloaded many vocab files via the built-in mechanism, and when I tried the first one, ...
5
votes
3answers
4k views

Python IDLE disappeared from the right click context menu

My IDLE shortcut in the right click menu has disappeared. I think it's because I used to use Python 2.7, but I installed Python 2.5 without uninstalling Python2.7, and then uninstalled Python 2.5. I ...
3
votes
0answers
454 views

gedit indent guides

I would like some indent guides for gedit. This is very useful in python code. I couldn't find such an option in the settings, nor a plugin to add it. Does anyone know how to make such a thing ...
1
vote
1answer
3k views

Python installation errors

This is incredibly, annoying, I can't do anything in python until this is fixed. Thanks if you can help, I know it can be annoying to have to look at so much code but i'd really appreciate. I'm trying ...
0
votes
0answers
5 views

How to copy all table with python-docx? [migrated]

I use the python-docx library and I have a document named file.docx. I need to copy all the content of the .docx table to file.xlsx I'm using from docx import * f = open('file.docx') d = Document(f) ...
15
votes
6answers
18k views

installing wxpython via pip or easy_install

I am running into some problems installing wxpython using pip. Here is my current output: [myuserid]% sudo pip install wxpython Downloading/unpacking wxpython Downloading ...
0
votes
1answer
25 views

Python SimpleHTTPServer

A few questions about python's quick and easy http server module. Is it secure? It is only available to people on my lan, right? If somebody typed in my public ip xxx.xx.xx.xxx:8000 it wouldn't work? ...
1
vote
1answer
21 views

Any suggestions on a netbook/desktop setup to run Python for scientific computing?

This may seem like an inappropriate question that should be relegated to some hardware forum, but I love StackExchange for other things and thought perhaps you could help! I had my laptop stolen a ...
0
votes
0answers
13 views

Running Plone on Apache with WSGI instead of ProxyPass

I am looking for a beginner friendly documentation for using Plone 4.3.3 with WSGI. At the moment I am using simply ProxyPass, ProxyPassReverse, Balancer, and so on. Is there a step by step guide ...
1
vote
2answers
10k views

Windows scheduled tasks fail with 0x1, don't log errors

I have three Python scripts running overnight as scheduled tasks on a Windows Server 2008 VM. I can run them manually with no problems. But when I look at the Task Scheduler each morning, the first ...
6
votes
2answers
219 views

Unexpected shutdown with heavy single threaded process and single core affinity

I'm not sure what's the cause of the problem, but it happened 3 times in two weeks under similar conditions. I checked with the laptop's support desk and they made me run several tests to see if my ...
0
votes
0answers
6 views

PyDev contextual documentation in Eclipse [migrated]

I dislike the PyDev contextual documentation in Eclipse (mouse hoovers over a method, little window appear). It does not work for many methods. For example, f = open('file') will show the docs for the ...
0
votes
1answer
62 views

Anaconda distribution Python error [DatabaseError: database disk image is malformed]

There seems to be something wrong with my Anaconda Python installation. When I run Python through cmd it works and I can also run Python programs directly through cmd, and even import scipy, numpy, ...
0
votes
1answer
2k views

Change install path to /usr/bin instead of /usr/local/bin

A simple question, but I have no concrete documentation to confirm my answer. When installing software with the make install command under a unix machine, the default path is going over to ...
0
votes
2answers
2k views

Fedora 17: How do I install Python 2.7 into /usr instead of /usr/local?

I want to install Python 2.7 onto my Fedora machine, but it installs it into the /usr/local/bin. How do I make it so that won't happen? I want to do this because the setuptool I installed keeps on ...