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

1
vote
1answer
8 views

How to start matlab daemon

I have a plist calling a python script every day. The python script calls different matlab routines depending on their success. This works perfectly fine when I'm using the computer but when I'm not ...
0
votes
0answers
8 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
1answer
3k views

Remote debugging with pydev > pydevd > “connection refused”. Why?

I'm trying to have remote debugging working in Eclipse (actually Aptana 3). I'm using the same computer both for server and Aptana (localhost, ubuntu 12.04) My code looks like this: ...
0
votes
1answer
5k 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 ...
-5
votes
0answers
18 views

Protein Fractal Surface [on hold]

I am trying to generate the fractal surface of the protein. The normal image of the protein can be generated using either available softwares or a short code that i have written, but i am unable to ...
0
votes
0answers
16 views

What is the best way to create a local development environment in a linux machine without being in sudoers

I use a workstation for my development but it does not include all the libraries for my case. I like to install them for my use without any system wide effect. How should I proceed this is a linux ...
1
vote
2answers
43 views

How to update git on RHEL without access to root?

I am trying to get my IDE set up at work for a project I am working on. I am coding in python and working in PyCharm because of its awesome git support. However, whenever I try to configure git on ...
0
votes
0answers
9 views

is there a way to know which class/scope a line belongs to? [on hold]

Let's say I have a file, gen_template_json.py in my example, but it doesn't really matter. I am interested in troubleshooting some code which I believe is going wrong in the classify method. Again, ...
0
votes
0answers
22 views

What kind of RAM to choose for data analysis? [on hold]

I'm planning to upgrade my computer and also want to buy some new DDR3 RAM modules. Making some research I realized that there are 2 main characteristics of RAMs (beside capacity): frequency and ...
0
votes
1answer
165 views

How to install wxpython on centos 6.5 (with python 2.7)?

I've updated python on my centos to 2.7 and installed wxpython via: yum install python-wx Unfortunately python can't find the library and I get an error: ImportError: No module named wx Did I ...
0
votes
0answers
13 views

Is there a pure perl or python client for svn? [closed]

I was looking for something similar to phpsvnclient [https://code.google.com/p/phpsvnclient/] but didn't find any. Most options like subversion-perl or pysvn are wrappers over svn libs, and I am ...
0
votes
0answers
15 views

HTTP Error 522: Origin Connection Ti me-out [closed]

how can i fix this problem in python? "C:\Python27\lib\site-packages\mechanize_mechanize.py", line 255, in _me ch_open raise response mechanize._response.httperror_seek_wrapper: HTTP Error 522: ...
-1
votes
0answers
8 views

mechanize._response.httperror_seek_wrapper: HTTP Error 522: Origin Connection Ti me-out [duplicate]

how can i fix this problem in python File "C:\Python27\lib\site-packages\mechanize_mechanize.py", line 203, in ope n return self._mech_open(url, data, timeout=timeout) File ...
0
votes
0answers
20 views

Mercurial fails with missing attribute using Python 2 instead of Python 3

I'm working on a multiuser system with mercurial. I haven't been using the system lately, and today I wanted to start again, but mercurial refuses to work: $ hg help *** failed to import extension ...
1
vote
2answers
17 views

Is it possible to install python packages without a direct outbound network connection?

I have a server (RHEL) that I need to install specific python packages on. However, my server is firewalled off from internet access so I am not able to install any packages using pip. Is there a ...
0
votes
0answers
14 views

How to install sll for python?

I have a strange problem that is described at SO http://stackoverflow.com/questions/31549052/how-to-interpret-this-traceback We got nearly nowhere trying to solve the problem though it doesn't look ...
2
votes
1answer
35 views

How do I determine the PID of my python program if there is more then one python program running?

I have two python programs running on my system, say they are called program x and program y. I want to get the pid of program y, but not x for my bash script. When using pgrep python, I get the pid ...
0
votes
0answers
7 views

Eclipse/PyDev Import errors [closed]

I imported a large project (the OpenStack cloud computing platform) into Eclipse, but when I try debugging, I am getting loads of "Unresolved import" errors when code from inside the project is ...
1
vote
0answers
12 views

In python how do I execute CMD2 5 ms after CMD1 begins executing? [closed]

CMD1 takes 1 second to finish executing. I want to execute CMD 2 exactly 5 milliseconds after CMD1 BEGINS executing.
0
votes
1answer
41 views

Run pip for python3 on Fedora

I can't run pip for python3 (3.4) on Fedora 22. Pip for python2.7 is installed on system by default and works fine. I install package python3-pip but can't run it. pip3, pip-3.4, python3-pip, python3 ...
0
votes
0answers
9 views

Add only non-python packages to path when installing anaconda

After downloading Anaconda and installing by: bash Anaconda-2.x.x-Linux-x86[_64].sh I was prompted for adding anaconda to the path. I wanted to do this to run spyder from terminal. This however, ...
0
votes
0answers
19 views

setup vim script to execute python file

I searched SO extensively and I can't get to fix this: I'm trying to code a pathogen friendly python plugin in windows. The setup would be: In \vimfiles\bundle\plugin I have a myscript.vim with: ...
0
votes
0answers
12 views

Filtering of two object list by tuple attributes [migrated]

I have two list objects and I want only those elements in list1 with attribute tuples that match a tuple attribute in list2: list1= [ojec1, objec2, objec3,....] list2=[fig1,fig2,fig3,...] for i in ...
1
vote
1answer
3k views

How to permanently append a directory to PYTHON PATH on Mac

I tried the two common methods: import sys sys.path.append('foo/bar') AND export PYTHONPATH=$PYTHONPATH:foo/bar The first one terminates the appendage once interpreter is exited. The second ...
0
votes
0answers
26 views

build numpy from source results in wrong architecture

I build numpy from source on my mac to link it to my ATLAS library. Thus, I wanted to run it as described here with these options: export MACOSX_DEPLOYMENT_TARGET=10.10 export CFLAGS="-arch i386 ...
5
votes
2answers
8k views

How to use Latest Python 2.7.x “The Right Way” on Ubuntu 12.04 LTS?

My project needs to stay current on Python releases, but 12.04LTS is currently stuck on 2.7.3, even though 2.7.5 is out now. Is there a way I can stay more current without manually compiling? We're ...
0
votes
1answer
36 views

Screen-saver on and off at Raspberry Pi - script in Python

I'm a noob at programming in python. How do I make a script that awakes the monitor and put it to sleep on a condition? import RPi.GPIO as GPIO PIR = 23 GPIO.setmode(GPIO.BCM) GPIO.setup(PIR, ...
1
vote
2answers
398 views

IOError: [Errno 13] Permission denied with pip installation

I have asked this question on SO, but they suggested, the question is better suited for Superuser. I installed Python 2.7.9 on Windows 7. It is supposed to have pip built-in. However, during Python ...
0
votes
0answers
25 views

ADB shell cmd from python script

I'm trying to retrieve and print the firmware version of my android platform using the below listed commands in a python script; import subprocess cmd = 'su -c /system/bin/mmc extcsd read ...
0
votes
1answer
22 views

Can cron job add some information to cron log?

I am running OSX 10.10.4 and have a cron job scheduled there (it runs python script). Log file is enabled there in accordance with this answer - http://superuser.com/a/595825/172606. But the log ...
0
votes
0answers
11 views

How can I send the embedded image using python webapp

I have to be emailed the html content using python. In html content, that include also base64 encoded images. BTW, If i send the html content using python webapp, the image is not shown. So, someone ...
0
votes
0answers
7 views

Pyscripter history

Is there a way to increase the number of items shown in File>Recent Files section, which currently shows only the last 6 items, or is anyone know where this history is stored? I am using PyScripter ...
16
votes
4answers
26k views

How To Add Python to the Windows Path

How do I add python to the windows PATH permanently?
0
votes
1answer
19 views

apple store showing different page in wget

istore.apple.com live url is different that url which is downloaded using wget Open this url in browser https://itunes.apple.com/us/genre/ios-games-action/id7001?mt=8&letter=A You will see ...
0
votes
0answers
49 views

Why does python 2.7.10 install a 2.7.6 version?

I am building a custom Python 2.7.10 installation with icc via the following script: #!/bin/bash CC=icc \ CXX=icpc \ LD=xild \ CFLAGS="-O3 -xHost -fomit-frame-pointer -shared-intel -fpic -ipo ...
2
votes
1answer
619 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
2answers
16 views

“Edit with Idle” appears when I right click a python file, yet does not work. Also, python files show the wrong icon

My problem: http://imgur.com/a/a3D30 ...I can, however, open Idle manually, and then open the file. But this is a hassle. Another small thing. What is wrong with my python file's icon? How can I ...
0
votes
1answer
26 views

Trouble installing pygame from a wheel file

I'm trying to install pygame(x64) from a .whl file with pip. but the cmd gives me this error: (This is the source of the wheel file: http://www.lfd.uci.edu/~gohlke/pythonlibs/) As you can see in ...
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
1answer
23 views

Python sources on an http site, or in ISO image?

I installed SCO UnixWare 7.1.4 on VirtualBox. This installation does not include Python. I want to download the Python 2.7/2.6 source tar-ball from ftp.python.org. however: Anonymous FTP is not ...
8
votes
2answers
2k views

%paste magic function on ipython3

I'm using ipython3, installed on Ubuntu with apt-get. I can't use the paste magic function, it complains about missing Tkinter. But I do have Tkinter and the same thing works fine on ipython (2). ...
0
votes
0answers
22 views

Python/Powershell Script for Telnet

I'm most familiar with powershell and python so a solution which utilized either of them would be ideal. I'm also open to other ideas on resolving this issue. So I have a situation where an old ...
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
0answers
29 views

copy column H from all files in directory into new .csv with Python

I have 50 spreadsheets in the same folder. I need to write column H from each of those files into a new .csv, and delete duplicates if possible. I've been able to get this far: import csv f = ...
0
votes
1answer
803 views

Why do I get “unsupported architecture” errors trying to install a Python library in OSX?

I am trying to install a Python library in the Presto package, source http://www.cv.nrao.edu/~sransom/presto/ Using 'gmake fftfit' I get the following error: cd fftfit_src ; f2py-2.7 -c fftfit.pyf ...
3
votes
2answers
6k 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 ...
-2
votes
0answers
18 views

How do I make a cert and key file?

I am writing a python program using ssl for the first time. I am wanting my program to send info to and back from the client in an encrypted manner. I was following the example for server-side code ...
0
votes
0answers
25 views

`pip: command not found` and other issues

I have several virtualenvs on my computer and I use them extensively. I create new ones and modify them all the time. However, when I tried to create a new one today, I found out that none of the ...
1
vote
2answers
13k 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 ...
0
votes
2answers
2k views

Convert mp3 to flv

I want to convert mp3 files to flv Why it doesn't work? $ ffmpeg -y -i 1.mp3 -f flv -acodec libmp3 -ab 64 -ac 1 myfile.flv ffmpeg version 0.7-rc1, Copyright (c) 2000-2011 the FFmpeg developers ...