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
2answers
17 views

How to recursively delete all .DS_STORE files from a directory on a Windows Machine?

I extracted a .zip file compressed on a Mac and discovered that the compression included all the .DS_STORE meta-directory files (I think used to speed up spotlight search, but besides the point?). Is ...
0
votes
0answers
25 views

Should I delete all these Python frameworks? (cross-post from Ask Different where nobody is answering)

I'm just getting started with web development and I'm trying to set up my environment, and I can't do that until Dr Homebrew has discharged me from N00bcake Hospital. This is what I'm getting: ...
0
votes
0answers
9 views

XMPP chat room logger

I was wondering how I would go about getting something for my server that would login to a XMPP server, join a chat room, and just sit there and log all the chat and then save it on my server on the ...
1
vote
0answers
9 views

python - pygame get mouse position via threading [migrated]

I have made a server - client program and I have my main loop where I send images of the client to the server. this loop is slow, so I opened a threading before the while True loop. The threading ...
0
votes
1answer
26 views

Compress software installers into one executable

How am I going to compress (I don't know what's the right term for this) different software installer into one? When I click the executable file, all the installer I have is there, then I can proceed ...
0
votes
0answers
8 views

How to configure 'user-data-dir' in PhantomJS WebDriver

I currently have a working script with the following code: chrome_options = Options() chrome_options.add_argument("user-data-dir=" + os.path.dirname(sys.argv[0])) browser = ...
0
votes
1answer
17 views

Multiple commands, but not at the same time

I want to execute 4 different files in the background with python, but not simultaneous. There should be ~5 seconds between each evaluation, but I can't get it to work. I tried: python cmd1 &; ...
1
vote
0answers
17 views

Compiling this (C++) git repository code [closed]

I'm reading a statistical paper and the author was kind enough to post his code publicly on github at the following link https://github.com/mosco/crossing-probability I have a Windows operating ...
0
votes
1answer
19 views

Quickest way to design and deploy my website [closed]

I'm almost completing a paper-layout of a website that I want to build, and am about to start my coding. Just when I was about to decide on what languages to use for my designing/programming, got more ...
0
votes
0answers
11 views

Program is not opening, launchd.peruser 501 code in the console

On Macintosh. From Console: 2015-03-21 5:27:03.107 PM com.apple.launchd.peruser.501[170]: (com.schrodinger.Maestro.5840[11665]) Exited with code: 1 When trying to opening the program from the ...
0
votes
0answers
13 views

Default OSX hash key produces non-ASCII error in Python?

I'm using OSX Yosemite on a Macbook Pro with a UK keyboard. When I type # into a Python file (using Alt+3) I sometimes, but not always, see this syntax error when I try to run the Python file: ...
0
votes
1answer
26 views

Python debugger not stopping at breakpoints

I'm in a linux based development environment where I don't have superuser permissions. My basic issue is that the breakpoints I set in emacs through pdb never work. The debugger never halts at those ...
0
votes
0answers
35 views

Compiling vim with python support - installing powerline

I spent all day yesterday backing up my hard drive, clean installing Mac OSX Yosemite, and now I'm trying to get all my stuff in order like it was before. I have powerline installed properly (it ...
0
votes
1answer
25 views

Install apache2-dev for mod_wsgi

I'm completely new to linux but have developed a Python3 Django application that I've been asked to deploy to an apache web server running on Debian 7.8. To do that I'm following Django guideline ...
0
votes
0answers
96 views

How do I install PyMOL on 64 bit Windows 7 SP1?

I would like to install PyMOL on my PC. I un-installed it yesterday because I previously installed python 2.7.9 via Python(x,y) while my PyMOL installation (which I installed months ago so I'm afraid ...
0
votes
0answers
13 views

Python process spawned by Chrome on Mac?

In the Energy tab of the Activity Monitor on Mac, if I expand the Google Chrome item, I see several "Google Chrome Helper" processes and a "Google Chrome Helper NP" process which seem normal, but also ...
1
vote
1answer
25 views

Are there ready tools to check for gaps in list of filenames which are monotonically increasing?

I have been given several hundred directories with millions of files in each of them. E.g. DirA +----+ A_000001.txt | + A_000002.txt | + ... etc.. I want to ensure that the ...
0
votes
0answers
17 views

“unable to remap to same address as parent”, can't get rebaseall to fix the issue

I posted this question on the Cygwin mailing list with no response, so I'm trying here. I keep getting this same unable to remap error and rebaseall does not fix the problem. Specifics: On running ...
0
votes
1answer
25 views

make default python 2.7 instead of python 2.6 in centos6

In my system I have installed python 2.7.By default it have python 2.6. My application need to run on 2.7 but it is running on python 2.6 by default .How can I change this.?
0
votes
0answers
27 views

ImportError: liblapack.so.3gf: cannot open shared object file: Input/output error

I am importing numpy into python on Ubuntu 12.04 using a PCDuino3. For some odd reason, several of my links in the /etc/alternatives/ go bad after running my code. When I type ls -l in ...
0
votes
1answer
18 views

Cannot Install sklearn with pip on Mac

I got the following error message when trying to install scikit-learn on a Mac: http://pastebin.com/sfsbqcm6 I tried to install scikit-learn using this command: pip install scikit-learn I found on ...
0
votes
0answers
9 views

Buiding and Installing Python Module

I am having the following issue and am not sure how to fix. I do not know what linking is but I hear it's related to the problem. I'm trying to set up a python module: First I call in the directory ...
0
votes
1answer
17 views

Keyboard shortcut to kill a script containing multiple wgets?

I have a Python script that wgets a load of files: for year in range(2010, 2015): for month in range(1, 13): filename = url filename += "/T%s%s_BNFT.CSV" % (year, month) ...
0
votes
0answers
22 views

Download multiple branches to the same directory using repo

repo is a python script that manages cyanogenmod source code download. to download cm-10.1 branch, repo command is, cd ~/cm-10.1 repo init -u https://github.com/CyanogenMod/android.git -b ...
1
vote
0answers
18 views

Python IDEs stopped working

I'm a beginner programming student, and was using PyScriptor as my Python IDE. Today I wanted to start working and surprisingly, I get an error when starting PyScriptor: Python could not be ...
1
vote
0answers
41 views

What “requirement” do I need to give to pip?

I am trying to install PyECC on a Windows 7 machine. Pip is pretty inconsistent, so I'm not sure what it wants this time. First I ran pip install PyECC and got Collecting PyECC Could not find any ...
1
vote
0answers
36 views

Can we send and receive uTorrent packets through TOR?

I just started using pcapy python module to capture network packets. Is it possible to capture packets going out from uTorrent (on my own machine) with pcapy or scapy and sending them over the TOR ...
0
votes
1answer
14 views

How can you lock computer while using curl to download files?

I’m using a Python script in the Terminal in Mac OS X 10.10.2 to download many files from a webpage using curl. However sometimes I might want to lock my computer and walk away but this terminates my ...
0
votes
0answers
10 views

Search for string in Python

I'm using Python to search for a substring inside of another string. Both strings have been read in from a file. So far I have tried the in operator as well as string.find(substring). Using either ...
0
votes
1answer
47 views

Running Python scripts in Chrome on Windows 7

I would like to run Python scripts (.py files) in Windows 7 Enterprise WITHOUT downloading anything, since I am at a school library. After some research, I found some Chrome apps that CAN run Python, ...
1
vote
0answers
11 views

Python not finding appropriate modules/ python version problems

I'm trying to install w3af, and getting a myriad of dependency issues; these I'm trying to resolve by attempting to run a python script which imports the required modules - if this runs without ...
2
votes
1answer
42 views

How to schedule a task to execute 9000 seconds from now on?

I have a batch script that executes a few Python scripts and then needs to schedule the last Python script to be executed 9000 seconds later. Here's what I have so far: (I only know how to manually ...
2
votes
1answer
52 views

How Are Integers Stored In Excel

I wrote a python script that uses the CSV and xlrd packages to convert a .xlsx binary excel file to a tab delimited .txt file. Unfortunately, every cell is converted to a string (which is ...
0
votes
1answer
34 views

Unable to open Python GUI application

I've installed WinPython 32-bit v3.3.5 in my PC and added C:\WinPython-32bit-3.3.5.0\python-3.3.5 to PATH. My python GUI app does not automatically associate with python and 'Open With' is not ...
1
vote
1answer
31 views

Intercept outgoing URL's using python

So, I have a Windows computer and it has three web browsers. IE, Chrome and Firefox. Is it possible to have a Python script capture the URL's going out of the browser and store them in a variable? Is ...
0
votes
0answers
37 views

The module “scmt.dll” failed to load

I'm trying to install a software written from Python 2. The instruction guides me to build the DLL file2 by using this command: python setup.py py2exe And then register them by using: regsvr32 ...
-2
votes
2answers
30 views

Copy sequential files into sequential directories

I need to copy multiple, sequential files into sequential directories. The files have the julian date (day of year) with other info in the file name. The directories are listed by julian date (day of ...
0
votes
0answers
18 views

Pop up notification on system tray when a new file added to a directory

How will I add a pop up notification on my system? Let's say I have a directory wherein everyday I have a batch process running and keeps on adding files to that directory? How will I add a prompt so ...
1
vote
1answer
27 views

Python-fu plugin not visible in Gimp

I have built and installed the Resynthesizer plugin for GIMP on Linux. The files appear correctly in the plug-in directory /usr/local/lib/gimp/2.0/plug-ins/, but none of the Python plugins is ...
0
votes
1answer
46 views

install matplotlib with pip when pygtk is in non standard location

I have installed PyGTK 2.24.0 in /software/pygtk-2.24.0/gcc directory. Is there any way without rewrite the setup program how to install matplotlib with pip? Simple pip install matplotlib builds ...
0
votes
0answers
18 views

How can I change the sub-directory dynamically while I create one .zip file with zipfile?

I have 5 source file within the same directory (datadir) like: ./datadir 1.file 2.bin 3.md5 4.dat 5.xls Then I want to zip these 5 files into one zip and place them into some directory ...
-1
votes
1answer
88 views

Cannot import module `PyQt4.QtGui`

I am using Mac OS X 10.7.5, have followed and installed the PyQt modules using the "Install homebrew" method as stated in this link but when I did a test run by typing in from PyQt4.QtGui import * I ...
0
votes
0answers
16 views

saving/:w a python file in gvim is creating two of the same files with different extensions [duplicate]

When I first :w test.py My file saves on my desktop with a picture of a python script and the file type is shown as Python File. Now when I go to save my file without including the name as in :w a ...
0
votes
1answer
110 views

How to install python-pip in CentOS7 Docker Container

I am trying to build a docker container that includes pip. I am on CentOS 7. Here is the fragment from running the docker build command: Step 3 : RUN yum -y install python-pip ---> Running in ...
0
votes
0answers
62 views

Error when installing Python modules using wheel files (Python 2.7 and windows 8)

I am trying to install multiple Python modules (Shapely, Fiona, GDAL, etc) with a wheel file (.whl) on Windows 8 with Python IDE 2.7 x32, but for some reason it receive this error: ...
0
votes
0answers
34 views

Python shows wrong version in command prompt

I have downgraded my version of Python from 2.7.9 to 2.7.4 for compatibility with a legacy piece of software. On Windows 7 x64 computer. I removed Python 2.7.9 and then installed 2.7.4 into the ...
0
votes
0answers
8 views

Easier way to debug python using IPython.embed?

I tend to debug python apps by spawning an embedded IPython instance. And, I've learned to throw an assertion right after, to avoid getting stuck, when I have the embed in a loop. So, given code ...
1
vote
1answer
50 views

Split large text file according to record values

There are some questions alike in this site, but mine is a bit different. I have a 30 GB text file, and I need to split it into smaller files according to the different record values. For example; ...
2
votes
3answers
38 views

How can I install pygame on python with cygwin? [duplicate]

I cannot install pygame on cygwin properly. I tried to follow that old doc , http://msdl.cs.mcgill.ca/people/tfeng/svmsccdoc/node49.html, but it doesn't work. Worse issue is SDL not be able to ...
0
votes
2answers
63 views

How can I install pygame on python with cygwin?

I cannot install pygame on cygwin properly. I tried to follow this old doc http://msdl.cs.mcgill.ca/people/tfeng/svmsccdoc/node49.html but it doesn't work.