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
331 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
20 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
32 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
26 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
67 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
62 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
37 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
14 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
30 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
149 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
56 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
27 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
138 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
15 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
56 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
64 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
54 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
47 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
101 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
37 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
28 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
51 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
100 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
29 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
304 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
302 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
108 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
52 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
16 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
64 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
92 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
104 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.
3
votes
1answer
154 views

Is it safe to install newer Python and Git versions from source?

I wanted to install newer versions of Python and Git to my system. I eventually used the commands below to compile and install new versions. However, I was informed that it would have been better to ...
0
votes
0answers
38 views

logging package in python - do_POST between two simple http servers

I have two http servers that talk with each other. the scenario is that serverA get a POST request from "outside" (not serverB, by: curl -X POST localhost:8888 ), then serverA sends POST request ...
0
votes
1answer
108 views

bash command in python not working

I would like to run a bash command from python. My code: process = subprocess.Popen(('ifconfig -s'), stdout=subprocess.PIPE, shell=True) output = process.communicate()[0] lcd.message(output) sleep(2) ...
1
vote
1answer
89 views

How to set up flask server startup?

I have a web-server that is based on flask+tornado combination. It works inside of a virtual environment (set up with python virtualenv). I want the server to launch automatically on start up, from a ...
0
votes
2answers
246 views

Running scripts independently on Raspberry Pi

I have a couple of python programs, such as one which checks if the Collatz Conjecture is applicable for a given number or not, and writes output to a file (it runs on a Raspberry Pi). Although I ...
1
vote
0answers
55 views

django “send_mail” took 2+ minutes to send an email from digital ocean's Singapore hosted VPS? [closed]

python/django smtp settings: EMAIL_HOST = 'smtp.gmail.com' EMAIL_HOST_USER = 'someuser@gmail.com' EMAIL_HOST_PASSWORD = 'password' EMAIL_PORT = 587 EMAIL_USE_TLS = True django send_mail ...
0
votes
0answers
38 views

Can Netflix OSS system be used for applications built in php and/or python?

I came across NetflixOSS open source project http://netflix.github.io/#repo I was wondering if it would work out of box with php and python applications. How can a person tell what types programming ...
0
votes
1answer
25 views

OSX start X11 server from command line

I've downloaded and installed the Quartz package from here http://xquartz.macosforge.org/landing/ I've also downloaded, installed and setup the vnc2flv Python package here ...
0
votes
1answer
117 views

batch file error

When I tried to run a batch file using gdal_calculate command. The following error occurs: batfile is not recognized as an internal or external command, operable program or batch file. RuntimeError: ...
0
votes
1answer
123 views

How to workaround bootstrap.pypa.io while installing openstack? It's not available

I am trying to install openstack first time, as described on official website http://docs.openstack.org/developer/devstack/ bootstrap.pypa.io is not available (i am not able to ping it). It is ...
0
votes
0answers
100 views

one click install django image on digitalocean. importError: no module named

i followed this tutorial git cloned my project under user django and changed "django_project" to my own project for some reason, i keep getting internal server error. i checked gunicorn log file. the ...
0
votes
0answers
17 views

Is it possible to restart the internal python in Vim?

I'm running custom python code in my vimrc and If I often find myself in the position where I'm editing modules used by the vimrc, which causes script failures until I restart vim and its internal ...
0
votes
2answers
201 views

How do I configure easy_install to use the right Python interpreter?

I am using mac OSX and have installed python 2.7.9 via this article, from /usr/bin if I run the command ls -l /usr/bin/python* in a bash terminal, I get lrwxr-xr-x 1 root wheel 67 Jan 24 02:12 ...
0
votes
0answers
66 views

Trouble with outgoing mails on odoo

I am using odoo and I got trouble with the outgoing mails. When I check the connection using the Odoo Interface it tell's me: Everything seems properly set up! But this is not true, becouse I can find ...