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
2k views

gcc error Python.h: No such file or directory

I have python-dev (or, as I'm on Centos, python-devel) already installed. sudo yum install mysql mysql-devel mysql-libs sudo yum install python-devel sudo yum install MySQL-python How come this ...
0
votes
0answers
131 views

Import packages to Python IDLE 2.7 from Anaconda

I installed numpy, scipy, matplotlib, etc through Anaconda. I set my PYTHONPATH environment variable to include C://Anaconda; C://Anaconda//Scripts; C://Anaconda//pkgs; (I didn't put spaces in the ...
-1
votes
1answer
83 views

Run a python script from its icon in linux

May be this question is very basic i googled it but couldn't get a proper answer. I have a python script which when run as "python2.7 mygui.py" in the terminal opens up a gui but now i want to open ...
0
votes
1answer
125 views

CPU clock and L3 cache for programming

I'm interested in how much different hardware choices affect the following use cases: Programming in Python: lots of heavy mathematical computations using numpy arrays Data Applications in Python ...
0
votes
0answers
315 views

Minted cannot find pygmentize in TexStudio on Windows 7

I want to use minted package, but when I'm xelatexing in TexStudio, there's an error: minted: You must have `pygmentize' installed to use this package. pip seems unable to find pygmentize: In my ...
0
votes
1answer
121 views

How to run pip in non-interactive mode?

Most of tools I'm using have some mode (often ON by default) where they ask me zero questions while running the command. apt-get is an example close to pip. There's -y option which makes it ...
0
votes
1answer
53 views

python-gnupg search_keys() returns different result when run as root

I have a python script that needs to be run as root (to access framebuffer on a raspberry pi with a small touchscreen). This script also needs to search for keys on a keyserver. To achieve this, I am ...
0
votes
0answers
217 views

Openerp, how to show columns using fields.function

This is a piece of my custom openerp module. I can't understand how to show this fields only if column private is equal to 't' ( True ). I know that i should use fields.function, but all my retries ...
0
votes
0answers
58 views

Can't install PIP, Easy Install or Setup Tools on a mac

I am unable to install any thing on my mac via the terminal - Pip, Easy Install or the Setup tools for python packages. A screenshot of my terminal while installing the pip looks like this: Could ...
0
votes
1answer
79 views

Running a GUI-based program remotely on windows using python

I need to run a program on a another computer which is solely GUI based. It is closed source so I do not have any way to access the backend, nor any way to send in remote signals using simple text ...
0
votes
0answers
50 views

NSRangeException using the IDLE 3.4.1 on Mac OX v. 10.9.4

I have installed Python 3.4.1 from the official website and I am having this exception when I type " on the IDLE. There's a warning or important information in the Python's official website that ...
1
vote
0answers
236 views

How to connect a Raspberry PI to a PC using wifi [closed]

For a schoolproject i'm making a quadcopter which can be flown from a laptop. On board of the quadcopter is a Raspberry PI to stabilize the aircraft and send back a video signal to the laptop. Im just ...
6
votes
0answers
356 views

Jenkins realtime console output for parallel threaded fabric command

We have a Python fabric command that runs in parallel across several hosts, something like this: $ fab --hosts=prod1.server,prod2.server,prod3.server --parallel copy_cache This will copy cache to ...
0
votes
1answer
52 views

Debugging a python program, called from another batch file

I have an annoying problem. I have a windows batch file, that does some initialization (mainly setting python paths) and then calls a python script. When the batch program is run, another window is ...
0
votes
0answers
115 views

Verify python request with wireshark or proxy HTTPS

I am working on a scraper, that is scraping data using python requests package. The website has a secured connection (https). I managed to get over the login part, over the search part, and now I have ...
1
vote
1answer
748 views

How to import enum

I installed Python 3.4.1 on my Mac (OSX 10.9.4), and I need to work with enums. I started to write a script in a text file: #!/usr/bin/python from enum import Enum And from the terminal: chmod ...
0
votes
2answers
76 views

Newer Debian versions of python3 on older Debian distros?

I would like to be able to use python3.3+ as well as the python3-bson-ext package on Wheezy. By default, Wheezy has 3.2 available, and does not have the python3-bson-ext package. But testing does. Is ...
0
votes
0answers
102 views

How can I start a Hangouts phone call with Applescript/Terminal?

I want to initiate a Google Hangouts phone call with Applescript, or Terminal ... or python. (Hangouts.app has an AS dictionary, but with only the default suites.) Basically I want to emulate ...
-1
votes
1answer
82 views

PyScripter: Where is %APPDATA%\pyScripter\skins folder located in disk?

I have PyScripter installed from the executable file downloaded from their website. But the white background is just burning up my eyes so I wanted to change the theme. I googled upon how to change ...
2
votes
0answers
42 views

Areas of Law for Computer Enthusiasts [closed]

Sorry guys if this is in the wrong place. You guys can just tell me where the right place would be and I will post my question there. I am a current 1L in law school and we just had an early internet ...
0
votes
2answers
57 views

Passing multiple files with whitespace to python script

I have to convert a lot of .ai files to .svg, and I've found ai2svg tool. I've tried for i in `find ./ -type f -name \*.ai`; do python ai2svg.py "$i"; done But I get errors like IOError: [Errno ...
1
vote
1answer
142 views

Notepad++ For Normal Text and Syntax Highlight?

I want to use Notepadd++ for taking notes on python programming language. I want to write some normal sentences and also write codes on same page simultaneously. I don't want to show line numbers for ...
1
vote
0answers
84 views

Installing specific Not-In-Repository version of python-dev within virtualenv without using VCS

I have read the question : How can I install python-dev without sudo? However it does not quite cover the issues I am facing. I have a Debian 6.0.9 server with system python 2.6.6 installed. ...
1
vote
1answer
173 views

how to cancel highlighting the 80th column in vim?

I use python-mode and solarized plugin in my vim, and I think either one of them sets highlight at 80th column, so that I get a visual on how long each line should be, but actually python-mode will ...
0
votes
0answers
49 views

Unable to install python 2.7.6

I am trying to install Python 2.7.6 on my 64bit windows 8.1 pc. When the installer indicates that it is registering components an error message appears, "key not valid for use with current status" ...
0
votes
0answers
286 views

apt-get/dpkg can't configure any python related packages

I recently installed Python 2.7 to /usr/local/bin. Now, any time I try to use apt-get it fails on certain python packages as follows: root@lebowski:/usr/local/bin# apt-get upgrade Reading package ...
0
votes
0answers
164 views

Building PyQt5 on Windows7 x64; error LNK2038 mismatch

I've been running in circles trying to get PyQt to work on Windows 7 64-bit with Python 2.7. This is as close as I've gotten. I successfully built SIP using nmake from Visual Studio 2012. Now when I ...
0
votes
1answer
35 views

Windows 7 path not being set

I've read an followed all stack overflow, super user, etc. instructions multiple times, and my GUI window shows the path to be what I want, i.e., python27. However the cmd prompt shows several lines ...
2
votes
1answer
269 views

VIM “upgraded” to expandtab and tabstop=8 on Python files

After reinstalling my OS from Kubuntu 12.10 to Kubuntu 14.04, VIM has changed its behaviour when editing Python files. Though before the reinstall all file types had noexpandtab and tabstop=4 set, now ...
0
votes
1answer
131 views

Set up Cygwin with Python executables

I have a Windows 8 laptop on which I have used Python for some time. I have both 3.3 and 2.7 installed, along with several libraries. I recently installed Cygwin, and am enjoying it immensely. I ...
1
vote
1answer
53 views

Installing Dexy looked ok, but Dexy does not work

I just tried to install Dexy on a Debian 4.7 server. Python was installed but not pip, so I did some research and found how to do it : $ python --version Python 2.7.3 $ sudo apt-get install ...
0
votes
1answer
85 views

How do I run a plist daemon on MAC OS 10.8.5 with the correct file permissions

I have a plist file saved to /Library/LaunchDaemons/local.WiFiDaemon.plist <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" ...
0
votes
1answer
70 views

Is there a way to identify the device data is being received from? (python)

Summary I have an MT4000 device connected to my computer using the serial port ttyS0. This is broadcasting data which is being received and read by a udp listener written in Python. I am also sending ...
0
votes
0answers
157 views

Python coding with VLC player (quite a basic query I expect)

I'm fairly new to the whole coding realm so my knowledge is fairly limited, and I can't seem to find any basic tutorials on how to use scripts with VLC player. More specifically, the reason I'm asking ...
1
vote
0answers
232 views

How can I tell WebSphere wsadmin to run a python package rather than a single python file?

I'm trying to create a jython package that will allow the user to conduct some WebSphere actions from the command line. I'm using jython as the language and specify the file to run with the call to ...
0
votes
1answer
724 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 ...
0
votes
1answer
431 views

Run python script on server over ssh session in the background persistantly [duplicate]

I got an account from my professor for our universities CUDA server for running some tests. I am connecting via ssh over terminal. The thing is, as I close the terminal the server also seems to kill ...
0
votes
1answer
43 views

IDLE (Python 3.4.1) on Win 7 - When I press F5 to run, I want it to just auto save my work

I can't find this anywhere! How do I stop it from interrupting my run with "Source Must Be Saved OK to Save?"
0
votes
1answer
197 views

Use VBA in windows to run a python method with arguments in Linux?

I'm using MS Access on a Windows 7 PC as the front end of a MySQL database back end that is stored on a SUSE Linux Enterprise server. Python is installed on the Linux server. The python script I want ...
0
votes
0answers
1k views

error: [Errno 10048] Only one usage of each socket address (protocol/network address/port) is normally permitted

I am creating system tests on a Windows7 machine using python, in which I need to open various socket connections to other machines. I also have several virtual IPs added to the local machine. These ...
0
votes
0answers
229 views

Fixing broken packages on debian

I have a debian (wheezy) box that has gotten into a screwy state. I can't install or remove any python-related packages with apt-get (including upgrading or downgrading python itself), I get this: # ...
-3
votes
1answer
434 views

lost and important file for python 34

My AVG internet security deleted a file called: C:\Python34\pythonw.exe I now cannot access IDLE or even re-install python 3.4, although I can access the command line. How would you chown that file?
0
votes
0answers
97 views

Install Oracle on Mac - Don't know machine value for archs=()

Disclosure, I have no idea what I'm doing so I'm giving you probably more background than needed in case I'm going down the wrong path entirely. I'm working on someone else's Python code. In ...
0
votes
0answers
68 views

Elpy and pylint: where should a pylintrc file be placed in order to customize pylint for Emacs?

I would like to remove the 80 characters per line limit when pylint is checking files in Emacs (I am using the Elpy package for Emacs). I am on Debian Wheezy, and I'm using the backported Emacs24. I ...
0
votes
1answer
229 views

Change icon of file

For those of you into Python you probably know about IDLE. I use it so often that I have it pinned to my taskbar, but I've got a metro/Modern UI theme going so I want to change the icon of it. The ...
1
vote
1answer
190 views

'Find Duplicate' function using in Sublime Text

So, the highlighduplicate plugin for sulbime text does not seem to work for me so I'd like to create my own. I need this to identity duplicates so it's a step further than Sublime's 'Permute: Unique' ...
0
votes
0answers
44 views

Writing a secure login script

I'm trying to write a secure login script to allow a user to have limited access to a server and change particular options. My method for doing so is via a python script executed by the users ...
0
votes
0answers
63 views

Sentry Raven stand alone client windows

I started to use the Sentry ( https://getsentry.com/ ) and its quite awesome. The thing that i am not able to find is a stand alone somewhat "minified" raven client for windows. Im able to write ...
1
vote
1answer
643 views

500 server error using IPython notebook on Windows

I've just done a fresh install of IPython notebook on Windows 7 Professional 64 bit. The steps I took were: Install Python 3.4.1 from python.org > pip install ipython[notebook] > pip install pywin ...
0
votes
1answer
68 views

How to delete whole python and reinstall?

I have set the python window size wrong. I set the width to something like 99999 and caused a crash. Since then, I tried to delete every package installed with python, and then reinstall, but this has ...