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

2
votes
0answers
59 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
18 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
153 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
288 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 ...
0
votes
1answer
100 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 ...
3
votes
2answers
86 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() { ...
2
votes
4answers
1k 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
3answers
140 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
351 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 ...
1
vote
2answers
39 views

Can't run the Python interpreter in Mac's Terminal

At the moment i'm on Mavericks, and i just uninstalled homebrew. With homebrew i had installed python, but after uninstalling it my terminal can't start the python interpreter. I receive this message: ...
1
vote
1answer
1k views

python3-pip installed but pip3 command not found?

I am testing a Python3 program in several computers. To do that, I need to install a library of Python with pip3. So first, I was installing python3-pip in each computer (everyone is running a ...
1
vote
1answer
75 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 ...
0
votes
1answer
41 views

Batch APPEND (RENAME) a specific keyword to set of files

I have few files namely - "a", "b", "c",etc.. I want to add the keyword: ".mov" to all files in that folder. Please suggest me an approach which script will be best suited for this - AppleScript, ...
0
votes
0answers
130 views

pip install python winerror 10054

Been trying to pip install selenium keep getting these same errors, but its not just selenium its any package. I believe it maybe a firewall issue because I am trying to install this on a workstation ...
2
votes
1answer
55 views

How to preserve files downloaded by pip after failed installation?

If pip install a_package fails (e.g. pip install matplotlib in setuptools isn't new enough), the next invokation of pip install my_package causes the file to be downloaded again instead of just ...
0
votes
1answer
520 views

PyQt5 - python-3.2 : no module available + pyuic5 cannot find PyQt5.uic module

Trying to install PyQt5, the ''make install'' command ended by issuing a warning related to pyuic5 file format (see bellow) the python path is set as ...
0
votes
2answers
36 views

Batch TRIM (RENAME) a specific keyword from set of files

I have few files namely - "a.mov-, attachment", "b.mov-, attachment", "c.mov-, attachment",etc.. I want to trim the keyword: "-, attachment" from all files in that folder. Please suggest me an ...
0
votes
1answer
112 views

ConEmu: Run command in open Tab?

I'm using ConEmu (which is already open for the task in this question) with running ipython. Now I want to run a command from a second programm (namely notepad++) to make my edited python script run ...
1
vote
1answer
54 views

Why fabric can connect to remote host immediately while normal connecting needs to wait 20 seconds?

I'm using a remote hosting service. Everytime I connect to it. It costs me 20 seconds or more to wait for the password input line prompt out. But today I used python fabric module. I set the host ...
0
votes
1answer
63 views

Clear remove of additional Python from usr/local/ on Ubuntu

I need to use a machine at work (12.04 Ubuntu box) that has two versions of Python installed: the default 2.7.3 one from the /usr/bin and a 2.7.5 one that was installed into usr/local/bin. The ...
1
vote
1answer
237 views

Is it possible to run a program as a specific user but with root permissions?

I'm doing development with PyCharm, doing development on a script that uses the scapy module for Python to do port scans, sniff traffic, and build raw packets. This, of course, requires root ...
4
votes
5answers
1k 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 ...
0
votes
0answers
594 views

Notepad+: Adding a Python Function parser / Function List

Are there any improvements that could be made to this? From ArtFunkel on SourceForge: http://sourceforge.net/p/notepad-plus/discussion/482781/thread/515001cd/#31ae <parser id="py_function" ...
0
votes
1answer
80 views

How to let Linux Python application handle termination on user logout correctly?

I have written a Linux GUI application in Python that needs to do some cleanup tasks before being terminated when the user logs out. Unfortunately it seems, that on logout, all applications are ...
0
votes
0answers
54 views

How do I reset my PYTHONPATH?

Somehow my PYTHONPATH environment variable got emptied, and now I can't import some downloaded modules. I've tried running the following command to reinstall all Python packages, but it didn't set ...
0
votes
1answer
42 views

inputrc windows for ipdb kybinding

I am trying to get vi bindings for python debugger ipdb. I am not running cygwin's python but the windows version from the dos command prompt. I have tried creating .inputrc in my %HOMEPATH% ...
3
votes
1answer
1k views

Attempting to bootstrap and getting weird errors

I'm on a new computer(mac 10.9.2) and I am attempting to bootstrap my companies project, but setuptools is failing. I can run python bootstrap.py, which creates the ./bin/buildout, but when I run ...
0
votes
0answers
70 views

Create a matrix of tf-idf values from documents

I have a set of documents like: D1 = "The sky is blue." D2 = "The sun is bright." D3 = "The sun in the sky is bright." and a set of words like: "sky","land","sea","water","sun","moon" I want to ...
1
vote
1answer
70 views

GPU access to a newly created user in Linux (Ubuntu)

I have a desktop computer with an Nvidia GPU, and the Python machine learning library Theano installed on it. Theano uses the GPU for carrying out certain computations. When I start IPython and ...
-1
votes
2answers
1k views

Ping exit code and python

I am using os.system ("ping 192.168.178.5") command to ping a machine. Funny thing is, I get exit code 0 even if ping fails. How can I get something that tells me the ping failed/host is offline?
0
votes
1answer
479 views

Check if downloaded torrent file has finished download so Python script can move file

I made a script in Python that is able to move some files from one folder to another. This is on when the file's are static. My problem comes when the files are "incomplete" because a torrent program ...
0
votes
1answer
969 views

Python2.7 / Pip2.7 install in Centos6: root does not see /usr/local/bin

I am trying to install Python2.7 in Centos 6. It's a pain as centos6 ships with python26 and yum is dependent on it. Furthermore yum does not seem to have python2.7 I ended up building it from ...
0
votes
2answers
154 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 ...
0
votes
0answers
10 views

The location of the compiled binaries of matplotlib

What is the location of the compiled binaries of matplotlib after I use pip install matplotlib to install it?
0
votes
1answer
51 views

modules installed in python 2.6 not works in python 2.7

I have installed python2.6, and I now installed python 2.7. My problem is that the modules (numpy for example) installed in python 2.6 not works in Python 2.7, why?
1
vote
1answer
125 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 ...
0
votes
0answers
85 views

Upstart is throwing reload: Unknown instance: error with Django and virtualenv

I am trying to run django on my website with nginx, upstart and gunicorn. I have written the following in upstart configuration file /etc/init/myserver.conf: description "Gunicorn server for ...
0
votes
0answers
66 views

Associating .pyw file with Python to run Python programs using other libraries like matplotlib, scipy,

The answer to a previous question "How do I associate .pyw files with Python in OSX" almost solves this problem - but not quite. I have a Python script that runs successfully under Andaconda's Spyder ...
2
votes
1answer
622 views

Sublime Text can't find interpreters for SublimeREPL

Interestingly, I'm able to execute .py files through any of the Tools -> SublimeREPL -> Python ->* options, except virtualenv, which does nothing, or execnet, which is not applicable, but ...
0
votes
0answers
50 views

Blender pythonpath with existing python installation

i have installed python 2.7 for some applications and set the pythonpath in my environment variables. now i wanted to start blender, but it crushes because i use an old python version. i googled it ...
2
votes
0answers
174 views

Sublime Text 3 - Detect syntax based on file header

How would I get Sublime Text 3 to recognize file type (i.e. set syntax and build system) based on a files header? For example: If the first line of a file was <!DOCTYPE html>, it would be ...
0
votes
2answers
545 views

raspberry pi fast linux based os

I have made a server with python that does some stuff with databases. My original plan was to install raspbian, but now that I have it is kind of sluggish. is there a more lightweight and thus ...
0
votes
0answers
76 views

Run Python program to use all available memory in a LAN cluster

I have access to 20 LAN connected computers each running Ubuntu 12.04 lts(SSH installed and password less authentication enabled). Each of the computer has 2 GB RAM. I am running a python program that ...
0
votes
0answers
81 views

gcc fails with “No available targets” on Mac OS 10.9.2

When I try to install pycrypto or psychopg2 on my macbook, I get this error: gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -fno-strict-aliasing -fno-common -dynamic -std=c99 ...
0
votes
0answers
23 views

Sublime Text 2: refactor Python line into method / create a method

ST 2, Python. Code in body of class method: print 'here' bar = foo(*args) I'd like to select foo and refactor it into a class method, or create it if it does not exist yet: def foo(self, *args): ...
0
votes
0answers
77 views

How to get the file extended attribute offline on windows python

I'm looking for the way to get the attribute file property as shown on windows file parameters. This property show D for folder, A for archives , O for Offline,... I've already tried to have a look on ...
1
vote
1answer
47 views

Excel not accessible after import of data through script [closed]

I am using a python script to open up an excel workbook (by creating a pointer to it). After I put some data in the excel and script execution is completed, I tried to access(see note below ) the ...
0
votes
1answer
53 views

Windows refuses to “Open with” python.exe

I was doing some messing around, trying to install some new python-oriented things, when some how I did something that caused .py and .pyw files to be disassociated with python.exe. I was meaning to ...
0
votes
0answers
24 views

Login, Navigate and Retrieve data behind a proxy with Python

I want, with a python script, to be able to login a website and retrieve some data. This behind my company's proxy. I know that this question seems a duplicate of others that you can find searching, ...
0
votes
0answers
60 views

Importing pygments' highlighting to vim

Usually, vim does very good job in highlighting, using the packaged syntax files. Unfortunately, it does bad job with MySQL. At first, I looked everywhere for a better MySQL vim syntax file, with no ...