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
1answer
60 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
21 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
149 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
158 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
90 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
41 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
14 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
53 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
54 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
77 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
146 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
22 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
75 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
0answers
38 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
129 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
36 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
30 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
20 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
88 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
76 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
95 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
121 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
49 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 ...
0
votes
3answers
78 views

mysterious ip scanning my home website [closed]

I'm running a small python based webserver for checking my security cameras and temperature. but today a mysterious ip address scanned my website. the ip address is chinese.. what security ...
0
votes
1answer
106 views

Django's dev server causes permanent high CPU load with Python 3

Django's development server runs under Python 2.7.5 (on Windows 7) with a rather constant (idle) load of about 1-3% on my test system - no page loads or other calculations done. Switching to Python ...
0
votes
2answers
285 views

How can I install s3cmd on Mac OS X Yosemite?

I am using Mac OS X Yosemite and want to install s3cmd from S3Tools. Here is a summary of what I have done so far: Downloaded and extracted the .tar.gz. Moved the resulting directory to ...
1
vote
1answer
224 views

Pip install keeps throwing odd “ImportError”

I've been trying to install a few packages using pip and pyudev keeps throwing an import error. I have no idea where why it's only happening in pyudev. It installs just fine on my other computer. Here ...
0
votes
0answers
24 views

How to deactivate sendfile() in Django runserver

I am running a Django development environment using Vagrant/VirtualBox. I am using runserver for my local testing. However, I have encountered this bug: ...
0
votes
0answers
21 views

Joining 2 PDFs using Python join.py results in blank PDF

When I run join.py on computer A, I get a properly joined 2 page PDF. When running it on computers B and C, I get a one page blank PDF. All three computers are MacBook Pros running 10.10.1 Running ...
0
votes
1answer
398 views

wine msi installation issue - err:msidb, fixme:storage

I am trying to do stuff with vpython. vpython.org suggests I do a wine installation and then try to install the vpython stuff as per the instruction mentioned here But the issue is with wine when ...
0
votes
0answers
58 views

How do I get file permissions to carry over from Windows to Linux via Python?

I recently replaced an outdated packaging script written as a batch file with a new one written in Python. We build/package the software on a Windows machine, then deploy it to a Linux machine. More ...
1
vote
0answers
21 views

How do I recompile Python in VirtualEnv?

I built virtualenv and it adds Python 2.7 by default in it. After reading this solution to a bug I have, it says I have to recompile Python with the option --enable-shared. So should I rm -rf Python ...
1
vote
3answers
147 views

How can I run a Python 3 script?

I want to run a Python 3 script. I have looked in the official doc and FAQ, and they are the typical loss. I was looking for answers, I ended up with more questions. I have Windows and Linux. On ...
0
votes
1answer
76 views

Change “Edit with IDLE” default to python 3.X instead of python 2.X on windows

When i right-click a python file in windows, there's normally that "edit with IDLE" option, which is a great help. Unfortunately, on the computer I'm using right now I installed both python 3.4 and ...
0
votes
1answer
293 views

pip not finding packages from pypi.python.org

I'm running pip v1.5.6 that comes with python installed via homebrew, on OSX 10.11 When running pip install emo for example, I get: Could not find any downloads that satisfy the requirement emo ...
-1
votes
2answers
45 views

The “smart” way to crawl the web [closed]

I have a project in which I have to crawl the web for lyrics, I am implementing depth-first search and I am making a database in a list (which contains nested lists which will later be saved in a ...
0
votes
1answer
84 views

I installed a python package on Windows using pip. Why can't I call it from the command line?

In Powershell I installed boto-rsync using pip: PS> pip install boto-rsync That installed boto-rsync in C:\python27\Scripts as 'boto-rsync' as expected. I have C:\python27\Scripts in the path ...
0
votes
0answers
24 views

pip not working on terminal prompt, but pip3 is

I am very new to python and pip, and taking online courses. It is not a major issue (but want to understand why it is the case). Why I type in pip I get: Dhruv’s MacBook Pro:~ dhruv$ pip -bash: ...
0
votes
1answer
133 views

Making 2.7.3 default version of python on CentOS 6

I want to execute python from php and I do have a script that works fine for default python interpreter. I have centos with default python 2.6.6 which is installed at /usr/bin/python and python 2.7.3 ...
0
votes
2answers
12 views

lINUX PYTHON not found error

Run python as a process with this command: nohup python app.py & --port=4650 If everything is fine, and server is working, process will exit without any errors. I am getting a error on ...
0
votes
1answer
40 views

Associating Windows file extension with specific bat file and support argument passing

On my Windows 7 system, I have associated the .blend extension with a specific bat file I wrote, which is shown below: blender.bat: set PYTHONPATH="" "C:\Program Files\Blender ...
0
votes
1answer
25 views

Save command output to file

I want to run this command on my Windows 7: python Test.py and save its results to text file. Is there any way to do that? I tried this approach: python Test.py > results.txt,results.txt is ...
1
vote
0answers
81 views

How to add existing django project to Aptana Studio 3 without modifying files?

I have created a new Django project using django-admin startproject mysite on C:\tuts\ The initial file structure is as shown in the official documentation where the root folder of the project ...
0
votes
1answer
66 views

Unknown option argument: “--multiprocessing-fork”

I have an error on Windows vim version 7.4.417 (no problems on Linux): Unknown option argument: "--multiprocessing-fork" . It is related to using python multiprocessing. How can I fix that?
2
votes
1answer
317 views

Selenium with PhantomJS, click() not working

I have a working script to manipulate a site. When running with webdriver.Chrome(chromedriver.exe) it works like a charm. But when I try with webdriver.PhantomJS(phantomjs.exe) it doesn't work. More ...
1
vote
1answer
43 views

Running (not installing - installed already) pip on windows

I have installed PIP successfully on Windows. However, the only instructions I see to run appear to be of the format $ pip install xxxx - which I take to be Linux command line I'm on Windows 8. I ...
1
vote
1answer
72 views

python broken after conda remove openssl

While trying to resolve package dependency problems, I used conda to uninstall openssl, since this appeared to be one of the packages with unsatisfiable specifications. However, once I did this, ...
0
votes
0answers
18 views

High memory rate - how to focus on the cause?

I have an high memory rate on my app and I see that gunicorn takes about 2.74GB memory. How can I identify exactly what is the reason for that? Can I see what are the running processes within ...