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
0answers
7 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
7 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 ...
0
votes
1answer
23 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 ...
1
vote
0answers
6 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
18 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
1answer
18 views

Homebrew App Not Using Python Package

I installed duply using Homebrew and tried to create a backup to Google Drive. Doing so results in the following error: BackendException: Google Docs backend requires Google Data APIs Python ...
0
votes
1answer
18 views

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

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
0answers
5 views

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 Save OK to Save?"
0
votes
0answers
24 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
1answer
635 views

How to autosave file in Aptana Studio 3 before running?

Using Aptana Studio 3 on my Windows 7 computer I'd like to have Aptana Studio 3 automatically save my Python file before running it. Does someone know which checkbox (of those hundreds) I have to ...
0
votes
1answer
60 views

Why Does Clicking on Applescript Notifications Open the AppleScript Editor?

I'm experimenting with AppleScript and with Python. But the big issue i'm having now is not about Python specifically. The end goal is to be able to write Python scripts that use AppleScript features. ...
0
votes
0answers
16 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: # ...
0
votes
2answers
66 views

How to upgrade python version 2.5.5 to 2.6.8 in Solaris 11

I am using SunOS 5.11 Solaris. Currently I have python version 2.5.5. I would like to upgrade it to 2.6.8. Can someone please help me on the steps to follow for this upgrade? Please note, I need the ...
-3
votes
1answer
29 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
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 ...
0
votes
0answers
11 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
11 views

How to batch download wikipedia pages as pdf?

I have a list of wikipedia pages that I'd like to keep updated in pdf format. What would be the easiest way to do this? The ideal workflow for me would be something that I can put into a shell or ...
0
votes
3answers
69 views

How to update Mac's system Python

I'm on Mavericks at the moment, and i want to update the Python system's version (2.7.5) to the latest (2.7.7) from http://www.python.org, because i want to install pygame. What i have to do? I would ...
2
votes
2answers
4k views

How to install .egg?

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. ...
0
votes
0answers
10 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 ...
-2
votes
0answers
18 views

Python find and replace using regex based on find

I have a regex: <\?prep include [a-z]*\.[a-z]* \?> used to find the string for example: <?prep include "file.txt" ?> I want to search in all files inside a directory for this regex. ...
0
votes
1answer
54 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
16 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
2answers
2k views

How do I fix the error socket.gaierror: [Errno -2] Name or service not known on debian/testing?

As you can see here I am able to reproduce this bug on my debian/testing system: (Debian GNU/Linux wheezy/sid) Do you have any suggestions for fixing this? My eglibc-source is up to date: ...
0
votes
1answer
199 views

How to a sudo command which keeps all environment variables

Example command is as follows, run as a normal user which python /home/me/env/development/python because the PATH environment contains a path that points out to this instance of python (instead to ...
0
votes
1answer
24 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 ...
2
votes
1answer
3k 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
17 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 ...
0
votes
1answer
28 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 ...
4
votes
4answers
767 views

Windows insists associating .py files with the wrong version of Python

I have both Python 2.7 and Python 3.3 installed on my machine (I'm on Windows 8). I would like .py files to be opened with Python 3.3 by default. The only Python path in the PATH environment variable ...
1
vote
0answers
86 views

Autostarting Python Script Can't Open txt File, DoubleClicking it Works Fine

So I have a Python 2.7 script and I'm running xubuntu. When I run the script by double clicking it, everything works fine. However, I recently added it to the autostart menu and it runs but once it's ...
0
votes
1answer
22 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 ...
1
vote
2answers
309 views

How to delete HDF5 completely?

I want to run a Python script that uses the module netCDF4. Therefore I followed the instructions here: http://netcdf4-python.googlecode.com/svn/trunk/docs/netCDF4-module.html For what reason ever, ...
1
vote
2answers
3k 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
2answers
4k views

Scatter chart, with one text (non-numerical) axis

Lets imagine I manage 100 pizza stores. I want to plot a chart each day, of how long deliveries are taking. My data might look like this: London 23 London 22 London 44 London 18 ...
0
votes
2answers
22 views

Can't use pip after download?

This is how I downloaded pip: - I installed https://bootstrap.pypa.io/get-pip.py and placed it in the Scripts sub directory of Python. - Then I ensured that the Scripts sub directory was a part ...
0
votes
0answers
12 views

PyCharm having trouble with inferring ndb property type

While developing a Google AppEngine application with PyCharm, I am constantly seeing an issue where PyCharm doesn't properly infer the ndb property type. What is the best way to work around this ...
1
vote
1answer
818 views

Problems installing python-nltk

I've tried the following : 1) sudo apt-get install python-nltk sudo apt-get install python-tk sudo apt-get install python-numpy sudo apt-get install python-matplotlib The last 3 are ...
2
votes
2answers
1k views

OpenSSL issue when installing scrapy on Python on windows

I have switched to 32 bit installers for Python Scrapy (After failing to install the 64 bit installers for scrapy to work). Followed the steps mentioned here. This is the log when I run the ...
0
votes
0answers
74 views

In OS X 10.10 Yosemite, ansible crashes immediately with error: ImportError: No module named _compat

On OS X 10.10 Yosemity, after installing ansible with brew, I run it and it crashes immediately like so: $ ansible Traceback (most recent call last): File ...
0
votes
0answers
7 views

Raw_input printing new line

I'm working with a very simple script in python. I know I can rewrite things in a given line by printing "\r", but when I use raw_input and press enter the cursor automatically goes to the next line ...
0
votes
0answers
22 views

Syntax highlighting in .vim for python segments files on windows

I use python a lot in my vimrc. On my linux machine it correctly highlights segments of code between func! VIMSCRIPT_FUNC_WITH_PYTHON() python << endpython import vim ...
5
votes
5answers
5k views

Adding programming code into LaTex / LyX

Maybe I'm just being thick, but I can't find any sensible way to simply paste in my (python) code into latex without losing all the indent information (kinda important for python). Anyone got any ...
1
vote
1answer
72 views

How do I get `set show-all-if-ambiguous on` in my .inputrc to play nice with the Python interpreter?

I noticed that after I added the set show-all-if-ambiguous on line to my ~/.inputrc, whenever I pressed tab to indent a block, it would show me the bash Display all ... possibilities? (y or n) prompt, ...
0
votes
0answers
33 views

USB modem on OS X doesn't respond to Python modules

My goal is to communicate with my USB modem on my iMac with Python so I can send commands and read the results and responses. I have a USB modem hooked up to my iMac and I can communicate with it ...
-1
votes
0answers
3 views

Import error for Ouath [migrated]

I am using Python on windows having working the same code it was working fine now it has suddent change for the updating the programme I found the error ImportError: cannot import name ...
1
vote
1answer
2k 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 ...
1
vote
2answers
845 views

cannot install matplotlib, freetype2 headers are ignored

I want to install matplotlib via pip. There is a problem with freetype2.h REQUIRED DEPENDENCIES numpy: 1.6.2 freetype2: found, but unknown version (no pkg-config) ...
0
votes
0answers
8 views

hash_hmac sha512 authentication in python [migrated]

I'm trying to write python authentication bot for: https://comkort.com/page/private_api There is no full php example. I'm guess somebody could put it here. There is only snippet of php code: ...
0
votes
0answers
23 views

Syncing a static website via WebDAV?

I am running a static website at office and the sysadmins only allow updates through WebDAV(s) (Secure WebDAV) protocol. So, I have a local copy of the files' website on my machine and I upload the ...