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
21 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
12 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
9 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 ...
0
votes
1answer
19 views

Python: How to send a 4 byte acknowledgement. [on hold]

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
9 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
26 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
2answers
19 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
18 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
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 ...
0
votes
1answer
16 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" ...
-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
19 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
23 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
11 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
40 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
39 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
1answer
31 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
35 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
24 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
39 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
15 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
0answers
14 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
62 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
20 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
25 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
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
47 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
26 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 ...
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 ...
0
votes
0answers
99 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
10 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
2answers
27 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
24 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 ...
0
votes
0answers
24 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 ...
1
vote
2answers
21 views

which method should be used to install python modules on Linux?

Python modules can usually be installed via, among others, pip the package manager (yum, apt-get, ...) Which one is it wiser to use? Can I mix both? I understand that removal is dependent on the ...
0
votes
0answers
10 views

Pywin 32 installation problems

I am having trouble downloading pywin32. I have a 64 bit computer, and when I go into command prompt and type in python.... it says I have Python 2.7.3 installed. Using this information, I tried to ...
0
votes
0answers
13 views

Save all installed python modules

I'm going to format my HDD so I'm curious whether is there a way to get all installed Python 2 modules and save them into some folder. I'm going to save 'C:\Python27\Lib' and then copy them into new ...
0
votes
1answer
30 views

I am not able to send post request properly with 'curl' command

I am very new to django programming.After reading some basic curl command, I am sent the following post request to python server using curl curl --data ...
0
votes
0answers
38 views

Keeping the backend code hidden from frontend developers

Working on a middle-sized web-based project, we need a way to reasonably manage the source code among backend and frontend developers. I’m wondering if there are some good practices for effective ...
1
vote
1answer
68 views

ipython notebook can't find python

I had a couple of Python 2 versions under home-brew. Since I was only using ipython notebook, I decided to uninstall all Python 2 instances, which turned out to be a bad idea because now I just get an ...
0
votes
1answer
45 views

Is it possible to open a port for listening without netcat?

I have a need for a Linux system to listen on a TCP port and dump what it receives to a file and/or stdout. The system does not have netcat installed. I have root permissions, but am not allowed to ...
0
votes
1answer
49 views

Send email for a multiple addresses [closed]

How can I send email for multiple addresses in my Python code? #!/usr/bin/python import smtplib import sys, getopt recipient='' subject='' body='' try: myopts, args = ...
0
votes
1answer
68 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
37 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 ...
0
votes
1answer
110 views

Problems when installing NumPy on MacOS 10.9.4

I am using MacOS 10.9.4 with Xcode 5.1 (command line tools installed) Today I upgraded macports and installed py27-numpy. Everything looked ok in my terminal window. Then I tried to install PyCogent ...