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
6 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
0answers
13 views

Invalid attempt to call batch label outside of batch script and RuntimeError: `path to file' does not exist in the file system, and is not recognised

Can't seem to figure out what might be causing this error. Only one file from the input path was processed while the rest of the files has an error like this RuntimeError: `sample_path' does not exist ...
0
votes
0answers
4 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
4 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
10 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
0answers
21 views

Create video from a sequence of images [on hold]

Can I create a video from a sequence of images with specific duration and maybe fading effect between these images with Python? Can I do it with ffmpeg alternatively?
0
votes
1answer
12 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
12 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
57 views

mysterious ip scanning my home website [on hold]

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
0answers
22 views

Run all .bat files contained in several subdirectories recursively in Python? [migrated]

I want to run x.bat automatically and recursively in Python: C:\test | +---folder1 | x.bat | +---folder2 | x.bat | . .----folder..n x.bat To get started I have ...
0
votes
1answer
17 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 ...
-2
votes
0answers
17 views

Cython vs pure python for trending engine [closed]

I have a python script that fetches a large amount of data (order of 10^5) as json, parses it, splits it into multiple parts, performs calculations and then sorts them. If and how can the performance ...
0
votes
2answers
60 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
62 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
16 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
15 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
0answers
55 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
16 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
8 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
62 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
25 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
46 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
26 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
29 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
12 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
48 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
9 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
23 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 ...
-1
votes
0answers
19 views

Locating a character in one text file then replacing it with a character from another [migrated]

I have this piece of code : for word in words_list: tempword=word for clue in clues_list: tempword = tempword.replace( clue[1], clue[0]) These are my clues R £ H $ J 6 I am ...
0
votes
1answer
18 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 ...
0
votes
0answers
24 views

Unknown Python Bug [migrated]

I am learning to write python and I am writing some scripts according to what a book says. The code is as follows cars = 100 space_in_a_car = 4 drivers = 30 passengers = 90 cars_not_driven = cars - ...
1
vote
0answers
11 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
46 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
82 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
26 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
32 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
17 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 ...
1
vote
1answer
21 views

What's the exit code for “curl -I” when not HTTP 200?

I want to check what HTTP status code is returned for an HTTP(S) URL. I don't care about content, so I just request head with curl -I $url or curl --head $url But what's the exit code I should ...
0
votes
0answers
50 views

Configuring Ansible for Docker Dynamic Inventory

I'm trying to setup Ansible's Dynamic inventory for Docker. I read the instructions in the docker.py and docker.yml file. My docker.yml contains: --- defaults: host: unix:///var/run/docker.sock ...
0
votes
0answers
32 views

What is the CentOS 7 equivilent package for python's “rhpl” from CentOS 5 (textdomain_codeset)

I have legacy Python (2.4) code from a CentOS 5 machine, which I am porting to CentOS 7 with Python 2.7. The file "timeconfig.py" (used for setting system time and date "graphically" on a text ...
0
votes
0answers
23 views

WSGI, Ngnix, Python3, Debian Wheezy: what pkgs to install, how does it all fit in?

I'm working on a web-site. I would like to add some database functionality eventually: for this, i need to understand SQL, python-sqlite3, python-wsgi spec, python-uWSGI server and how all this is ...
0
votes
1answer
59 views

Unable to communicate with peripheral over Serial USB from Linux

I am struggling with establishing comunications with a peripheral over USB serial on my Linux here (fedora 20/64bit), and I am probably missing some step: I connect the device, a /dev/ttyUSBx port ...
0
votes
0answers
6 views

set tabs to 4 spaces in pudb

is there a way to set 1 tab = 4 spaces in pudb python debugger? i have tried setting my terminal tabs like so: tabs 1,+4,+4,+4,+4,+4,+4,+4,+4,+4,+4,+4,+4,+4,+4,+4,+4,+4 in ~/.bashrc and this fixes ...
0
votes
0answers
182 views

Mac OS X Yosemite and Client SSL Certificates

Ever since I upgraded from Mavericks to Yosemite, my SSL Client Certificates have stopped working in certain places. They still work in web browsers and in wget, but they have stopped working in curl ...
0
votes
0answers
19 views

create a virtual environment with anaconda in windows

I am having a difficult time running python 3.4.2 with Anaconda/spyder/ipython. Question: if I delete Anaconda and start over, why isn't python 3.4.2 an option? Is it related to the fact that when I ...
0
votes
0answers
68 views

MySQLdb-python installed but throws import error when run: Library not loaded: libssl.1.0.0.dylib

I'm having issues setting up my python environment on a new computer, specifically with the MySQL-python module. Im using... macbook pro version 10.10.1 the anaconda distribution for python 2.7: ...
0
votes
0answers
8 views

SASS e images not loaded

I have used webasset and cssmin on a python static site generator to merge 4 css files into a one compressed file. The individual CSS files when referenced individually does contribute to a fully ...
0
votes
1answer
20 views

Parley says “Failed to determine interpreter for scriptfile” for all stock scripts on Mint 17 (with Python 2.7.6)

When I first tried using Parley 1.0.0 (which I had installed using the Software Manager in Mint 17, 32-bit), I downloaded many vocab files via the built-in mechanism, and when I tried the first one, ...
0
votes
1answer
48 views

Python SimpleHTTPServer

A few questions about python's quick and easy http server module. Is it secure? It is only available to people on my lan, right? If somebody typed in my public ip xxx.xx.xx.xxx:8000 it wouldn't work? ...
0
votes
0answers
17 views

Running Plone on Apache with WSGI instead of ProxyPass

I am looking for a beginner friendly documentation for using Plone 4.3.3 with WSGI. At the moment I am using simply ProxyPass, ProxyPassReverse, Balancer, and so on. Is there a step by step guide ...