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
18 views

Python: How to send a 4 byte acknowledgement.

Summary I have set up a udp listener in python, that receives data being sent over port 30000. I want to add an acknowledgement feature that sends a 4 byte acknowledgement back to the source device. ...
0
votes
0answers
8 views

What is a basic set-up to do C/C++, python, and octave programming from the bash shell?

Greetings fellow nerds, The administrator at my (Mac) computer lab is willing to install my programming set-up so I can do some coding if I want. Only problem is, I am used to having most of my ...
-1
votes
0answers
15 views

Python coded batch files

I know this is more suited to Stack Overflow but I'm not allowed to ask any questions there so here seemed like the next best thing. I'm creating a batch file for the first time and don't understand ...
2
votes
1answer
22 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 ...
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 ...
0
votes
2answers
18 views

How to give '>' as parameter to terminal in python

I was wondering if you could help me with a problem: in python I've been trying to give '>' to the subprocess.Popen([]) or subprocess.call([]), but somehow it changes the way it is entered in the ...
0
votes
1answer
13 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 ...
0
votes
1answer
15 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" ...
1
vote
1answer
438 views

Pip installs on Archlinux fails to build egg

I was trying to install nltk on my Archlinux server but it repeatedly fails with the following error output /usr/lib/python3.3/distutils/dist.py:257: UserWarning: Unknown distribution option: ...
1
vote
2answers
7k 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
1answer
290 views

Watch folder and import into database

I am trying to set up a system that whenever a new file is created in a folder it will automatically read the content and push it in a database. These files will mainly be .txt files but I might have ...
0
votes
0answers
8 views

Python: How can I log Minicom Output in a File [closed]

I have a code for logging data, which includes NMEA and iwlist scan output, I want to log data about 3G modem which I obtain by using terminal program minicom, but all should be in the same loop, this ...
0
votes
1answer
4 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 ...
-5
votes
0answers
21 views

What is the best nosql python database? [closed]

I want to create a database and then apply unsupervised machine learning to determine trends/relationships. It is my understanding that I have to use a noSQL database - is this true? Also - is there ...
0
votes
1answer
18 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
21 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
34 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
10 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
25 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
20 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
36 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
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
31 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
646 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
65 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
22 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
71 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
37 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
14 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
71 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
13 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
21 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
61 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
19 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
3k 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
202 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
19 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
35 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
788 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
25 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
315 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
25 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 ...