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

1
vote
1answer
15 views

.zshrc doesn't export variable for anaconda

I installed Anaconda Python on my Mac today and following line was added to .bash_profile by Anaconda. Since I am using zsh so I moved this line to .zshrc. However, it doesn't work properly even if I ...
0
votes
0answers
12 views

How to make boxplot-like plot with histograms instead [migrated]

I'm making a plot of internet speeds. I want to show the distribution of speeds collected, bucketed by the hour in which they were collected. I'm hoping to obtain a result that looks like where for ...
0
votes
0answers
7 views

how to install autotest on linux?

I'm looking at the autotest software suite found here: https://github.com/autotest/autotest I follow the instructions in the documentation here: ...
0
votes
0answers
22 views

Parse .docx, Put data into excel? [on hold]

I already have an idea on how to do this (using python-docx and openpyxl), but I wanted to see if there are any other more efficient / faster / easier ways to do this. I am using LiClipse as my ...
0
votes
0answers
22 views

Sublime text 3 and PYTHONPATH environment variable (windows)

It seems that sublime text 3 on my machine isn't respecting the PYTHONPATH environment variable, meaning I cannot easily import modules in to sublime text. I've written a script to get around this ...
0
votes
0answers
4 views

download complete when run from command line but not complete run from launchd

Curious thing. I have a Python script that I've set up through launchd on my Mac to run every 5 minutes. All it does is download a file from a website. My issue/question is that when it's run that ...
0
votes
0answers
22 views

Python setup failed Unspecified error

I'm install python 3.5.0a3 first time on windows 8.1 64 bit and at just starting of installation it just says "Setup failed". Here is the log file.
1
vote
1answer
36 views

My computer can't find the git command

I recently installed git on my computer (OSX 10.10.1) and when I run git I get git: error: unable to find utility "git", not a developer tool or in PATH. So I checked, found that I didn't have the ...
-2
votes
0answers
34 views

I am new to Python programming and playing with Raspberry Pi- Rasbian

The following is stored at /home/pi/ directory: #!/usr/bin/env python #Connect three LEDs at GPIO 7,11, and 13 and blink #Until to Stop with Ctrl-C import RPi.GPIO as GPIO # Make sure RP has lower ...
1
vote
1answer
48 views

Why doesn't my Python script save the file when I use Task Scheduler?

I have a Python script that uses csv.writer to create a csv file. This works fine when I run it from the command line, but no file is created when I run the script using Windows Task Scheduler. The ...
0
votes
0answers
18 views

Disconnect and reconnect dongle in Linux

Do any one know how to disconnet and reconnect dongle in linux through command line (will be great if told using Ppython too). Tried to use mount, unmount command but error occurs as mount: special ...
1
vote
0answers
30 views

Is it possible to install llvmlite Python package on Cygwin?

When trying to install llvmlite Python package on cygwin, I get the following errors: $ pip install llvmlite Downloading/unpacking llvmlite Downloading llvmlite-0.4.0.tar.gz (69kB): 69kB downloaded ...
0
votes
1answer
62 views

IOError: [Errno 13] Permission denied with pip installation

I have asked this question on SO, but they suggested, the question is better suited for Superuser. I installed Python 2.7.9 on Windows 7. It is supposed to have pip built-in. However, during Python ...
0
votes
0answers
41 views

-bash: /usr/bin/yum: /usr/bin/python2.62.7: bad interpreter: No such file or directory

I am working on EC2 Linux and got stuck on this point. No yum command is working, getting the following error: $ yum -bash: /usr/bin/yum: /usr/bin/python2.62.7: bad interpreter: No such file or ...
0
votes
1answer
25 views

Keeping en0 down while I change IP address mac

I have a DHCP server which assigns myself a new IP address. What I'm wanting to do is power down the wireless adaptor, then change the ip address manually. What's happening is as soon as I set the new ...
1
vote
3answers
40 views

Is python server side or client side? [closed]

I am debating on using python or work with JavaScript & PHP. Basically what I am trying to do is run an algorithm against some data pulled from my database. ( the algorithm can be very demanding ...
0
votes
0answers
15 views

Install scipy on blender

I'm working with windows 64-bit and I have Blender 2.73 (so python 3.4.2). I tried downloading scipy's executables for python 2.7 (spicy exe available on the site doesn't accept 3.x) on my system, ...
0
votes
0answers
15 views

.py file downloads instead of executing

I am mint 17.1, apache2, php3.4.0 I reloaded mint new. Modified apache2.conf file to have: <Directory /var/www/html> Options Indexes FollowSymLinks MultiViews AllowOverride None ...
0
votes
1answer
43 views

cronjob not executing python script - tried strace

I'm having trouble making a python script run via cronjob. I can run the python script (it's supposed to connect to a database, pull a few records, save that to a csv, then email it) manually just ...
0
votes
2answers
48 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
38 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
19 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 ...
0
votes
1answer
29 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
19 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
22 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
19 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
0answers
13 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 ...
1
vote
0answers
23 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
39 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
96 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
54 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
225 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
18 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
30 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
20 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
41 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
44 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
32 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
13 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
18 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
28 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
19 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
81 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
52 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
18 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
86 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
13 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
46 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
56 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 ...