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
8 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 ...
3
votes
4answers
5k views

Where do I put plugins for Gimp 2.8 on Windows?

I am currently using a Windows XP 32-bit machine, and I am trying to make some gimp plugins. I just learned Python yesterday, and I saved a sample script here: C:\Program ...
0
votes
1answer
169 views

How to use easy_install on linux terminal?

I am installing py2exe using easy_install. here is what I typed: easy_install py2exe I am using linux mint cinnamon 15. This is what I get, though: [Errno 13] Permission denied: ...
0
votes
1answer
19 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 ...
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: ...
-1
votes
0answers
13 views

sk1libs-0.9.1 how to install properly

sudo python setup.py install running install running build running build_py running build_ext building 'sk1libs.imaging._imagingft' extension /usr/bin/clang -fno-strict-aliasing -fno-common -dynamic ...
0
votes
0answers
12 views

Batch removal of watermark from a pdf using pdftk

Is there any script available or possible to remove a specific and a very large watermark using python. How to remove watermark from pdf using pdftk? I followed everything in the above link but i've ...
0
votes
1answer
409 views

Using cxfreeze to convert python source to frozen binary

I am trying to convert a python script into a stand alone executable. I was originally going to use py2exe but it does not support python 3 yet. I downloaded cx_freeze and installed it, but I get a ...
-1
votes
1answer
33 views

python file executables

I have python 3.2 and 2.7 both installed. When I tried to run filename.py, the command prompt opened for a second and disappeared, and nothing ran. I also have a problem running from the idle for ...
0
votes
0answers
25 views

Mac OSX finder requiring permissions when deleting file, even after chmod

I created a Python script that requires sudo permissions to run (doing ICMP requests). This script creates a small directory and a couple .csv files, as well as a log.txt file. At first, after running ...
0
votes
2answers
16 views

Creating a Python local server in Windows

I'm trying to use this commmand: python -m SimpleHTTPServer but it's not working. I'm guessing that it isn't working because I'm running that through Windows Command Prompt. How does one make ...
0
votes
0answers
9 views

Auto search and download torrent from file names in CSV file? [on hold]

I lost my hard drive some time ago and the only thing I have left is a CSV file with all the sector refenences and most of the filenames. Some of them are either broken or missing characters. Here is ...
2
votes
2answers
1k views

Run .exe file via Python as Administrator

i have a problem with starting an .exe.exe file as administrator rights.. I also tried: subprocess.call(['runas', '/user:Administrator', 'myfile.exe']) But then i have to enter a password.. Is ...
2
votes
1answer
2k 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
3answers
47 views

Correct option for SSH authentication?

I'm using rdiff-backup to send incremental backups to my local server. My host is Windows and my remote is a Linux machine. I'm trying to get my script to execute the following: command = ...
1
vote
1answer
61 views

What does the file extension do if I can execute a python file without it?

I'm using Ubuntu 14.04. And I have an astonish finding today: I can execute a python file without a file extension! e.g. $ echo " print 'hello' " > z $ python z hello So, why do we need a file ...
1
vote
0answers
23 views

Starting with python [closed]

I have been an open-source user for many years. I am trying to get up to speed with python. Most open-source tools are like the Borg - massive, complex, and impenetrable to the outsider, but seem to ...
0
votes
0answers
4 views

Android (Java) method equivalent to Python HMAC-SHA256 in Hex [migrated]

I am attempting to replicate the Python HMAC-SHA256 equivalent in Android (Java). The Python representation is shown bellow with the correct output: Python print (hmac.new(key = ...
0
votes
0answers
7 views

Creating virtual host with Apache2

I'm trying to get Apache2 to host my Django project located in /var/www/tbg/. I get an Internal Server Error (500). I have already installed libapache2-mod-wsgi and My files are as follows: ...
0
votes
0answers
8 views

import .cer file into ubuntu for curl

I am trying to use fiddler to act as a ssl proxy for debugging. I am trying to install fiddlers root certificate. I am mainly doing it so I can debug my python program. Using python I get a cert ...
0
votes
0answers
5 views

Using new Python on old CentOS, but only for certain services?

I am using Trac issue tracking system version 0.12 on CentOS 5.8. I am also using Agilo for Trac plugin. This plugin needs Python 2.5 and CentOS 5 comes with Python 2.4. Is it possible to install ...
2
votes
1answer
57 views

What's the quickest way to parse and display a `.csv` file?

I am currently using python with matplotlib to display a 440+ k lines .csv but it takes 11 sec to display only one column. My .csv has always the same format. Is there a way to parse it quicker ? I ...
0
votes
2answers
3k 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
1answer
12 views

How to automatically close the Debug Output Window in PTVS?

I am using the PTVS package on MSVS 2013 Express to develop and run my Python scripts. I am using the Start button (F5) to run the script. The script uses the TCP/IP stack to communicate with an ...
-1
votes
1answer
28 views

I don't see 'path' under environment vaariables

I am trying to set path for Python but I have no 'path' under environment variables. Below is a link for the original issue as well a screen shot. How can I fix this?
1
vote
2answers
115 views

Unable to install Python on Windows 8

Recently I decided to upgrade from Python 2.7 to Python 3.4 on my Windows 8 laptop. So I uninstalled Py2.7, downloaded the .msi file from python's site and ran it. I found that every installer I tried ...
0
votes
0answers
6 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
0answers
40 views

How to change '.py' file from 'PY File' to 'Python File' in Windows? [duplicate]

I want to implement drag and drop of files onto a Python3 script. I noticed that my Windows7 64bit does not recognize '.py' as 'Python File' but as 'PY File' (Windows is just capitalizing the file ...
0
votes
1answer
14 views

SIOCGIFADDR: Cannot assign requested address Error in python

I want to set IP address by using python's subprocess module. I was trying to use it like this: from subprocess import call call(["ifconfig", "eth0", "50.7.192.226", "netmask", "255.255.255.248", ...
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
24 views

How to save the stdout and stderr to a file while still seeing the output?

I'm trying to debug a program that generates a lot of data. But the event which I want to debug happens after a random amount of time (I cannot force it). So I would need to see the stdout and stderr ...
0
votes
0answers
20 views

How can I remove anything related to python aside from the default installation on os x mavericks?

I have a really messed up python installation. I have the preinstalled version of python that comes with os x mavericks. then I installed the homebrew version with brew install python. Then I ...
-1
votes
1answer
20 views

editing column of a text file

abc.txt consists of two column data as 1 A1021 2 A1021 3 A1022 4 A1022 I want another test file, say pqr.txt (replacing A1021 by 1 and A1022 by 2 and so on). I used the following usual perl ...
0
votes
1answer
25 views

Extracting data from an excel column

Not entirely sure if this is the right area for this question but i'll give it a shot! I have a very large excel spreadsheet that contains a number of columns. The sheet identifies tax assessed ...
0
votes
1answer
28 views

Test connection to a port without actually connecting to it

I have a python socket server (single-threaded, accepts only one connection) running somewhere. I connect to that port and do my things. How can I detect whether port is open or closed without ...
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
1answer
21 views

How to add a color scheme to PyCharm?

I downloaded the IDLE-like color scheme from here. However, I can't find where to install this for use with PyCharm on Windows 7?
0
votes
0answers
13 views

Problems installing PTVS (Python Tools for Visual Studio)

After a couple of weeks working with IDLE, I am trying to add the PTVS extension to VS Express 2013 for Desktop. Following this page, I downloaded the .msi installer and run the file. The dialog opens ...
0
votes
1answer
25 views

Python path is not recognized after adding a new variable under environment variables, picture provided

'python' is not recognized as an internal or external command, operable program or batch file. My Python folder is directly in C:\python34..... Please look at the picture.... ...
0
votes
0answers
16 views

How do I put a python bot onto an IRC server?

I'm using the bot found here. There aren't really many instructions, and I want to know how I can upload it to a server and make it interact with me/people, etc.
2
votes
0answers
26 views

Tor on Google App Engine Launcher

I have installed Google App Engine SDK for Python on Windows 8.1. I use Vidalia Bridge Bundle and the Chrome extension Proxy SwitchySharp to access the net through Tor. But the problem seem to be it ...
0
votes
0answers
11 views

Smart transfer files to an isolated network environment

I'm working with a project that requires to provision a batch of files to machines frequently. But these deploy machines are located in an isolated network, which is ONLY accessible via a broker ...
0
votes
1answer
36 views

Difference in opening a file in Python in Linux versus Windows

What are the differences, if any, in how Python deals with opening/closing a file in Windows versus doing the same in Linux? I understand that in Linux the kernel acts as an interface between the ...
4
votes
1answer
242 views

Which Python format should I download?

I need to download Python to upload my project to Google App Engine. But I don't know which format to download: Windows x86 MSI Installer (2.7.7) Windows X86-64 MSI Installer (2.7.7) Here's my ...
1
vote
2answers
6k 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
33 views

How to make apt-offline on windows

Apt-offline claims to be a utility that allows you to install packages on Debian without internet connection. It can be downloaded from the git repository. As with many free software, the problem is ...
2
votes
2answers
43 views

How do I handle multiple quotes in an alias (for bash or zsh)

I am using zsh, and I am trying to use python as a simple calculator. I'm very familiar with python, but can't seem to get the alias (or function) to work properly. So far I've got: pycalc() { ...
3
votes
5answers
135 views

Force output buffer flush in running program

I have a long-running python script that periodically outputs data to standard output that I've invoked with something like: python script.py > output.txt This script has been running for a ...
1
vote
1answer
47 views

How to delete python interpreters

So, I made a few bummers while installing latest version of Python. Somehow I have managed to install Python more than once, and now I have several Python interpreters lying around (at least I have a ...
2
votes
2answers
46 views

How do I use caffeinate to prevent my computer from sleeping while a script runs?

This morning I started a very long running script with: caffeinate python spam.py and when I checked in on the computer several hours later, the computer was asleep! I moved the mouse and the ...