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
7 views

In python selenium unable to start phatomjs

I want to run this on pycharm from selenium import webdriver driver = webdriver.PhantomJS() driver.set_window_size(1120, 550) driver.get("https://duckduckgo.com/") ...
3
votes
5answers
9k views

Where do I put plugins for Gimp 2.8 on Windows?

I am currently using a Windows XP 32-bit machine, and I am trying to make some gimp plugins. I just learned Python yesterday, and I saved a sample script here: C:\Program ...
1
vote
3answers
44 views

Running a Python script from the “Run” prompt

I thought this would be easy, but I've been struggling for a while. I have a Python script on my Windows machine called "myscript.py". I have it in a folder that's on my PATH, and I've added the ...
0
votes
0answers
7 views

Why autopep8 does not remove double blank lines?

I specified errors like E303, E304 for fixing and yet the double blank lines, either with function/method bodies or between functions are not removed (changed to 1 newline, IIRC that's what PEP8 says) ...
3
votes
3answers
2k views

How do you install libtorrent-rasterbar Python bindings with a brewed Python?

The standard approach does not work: brew install libtorrent-rasterbar Will install the boost requirement (linked against the system Python), and libtorrent-rasterbar will install without any ...
0
votes
0answers
9 views

How could I use Python, Selenium and PhantomJS to download/upload MEGA file? [migrated]

Everything is in the title. I run Python 2.7 on Windows 7, I have PhantomJS installed and Selenium ready to use, but I would like some help to get started! Thanks!
0
votes
1answer
5k views

How to launch python script as a windows Services

Using python 2.7 and windows 7. I have a python file(.py). I want to launch this script as a windows services, i.e. this code will keep on running from start to end and never terminate. I can convert ...
-3
votes
0answers
28 views

why does windows not ship with python? [on hold]

more of a generalized question because I can't find any answers when searching. Why have Microsoft made the decision not to ship with Python support when every other major operating system does? Is ...
0
votes
1answer
2k views

Remote debugging with pydev > pydevd > “connection refused”. Why?

I'm trying to have remote debugging working in Eclipse (actually Aptana 3). I'm using the same computer both for server and Aptana (localhost, ubuntu 12.04) My code looks like this: ...
0
votes
2answers
26k views

Scatter chart, with one text (non-numerical) axis

Lets imagine I manage 100 pizza stores. I want to plot a chart each day, of how long deliveries are taking. My data might look like this: London 23 London 22 London 44 London 18 ...
0
votes
3answers
201 views

Why sudo python and python in terminal start two different versions python?

I had python 2.6 in my server to begin with. Then I downloaded python 2.7 and installed using make and make altinstall. When I try just python in the terminal it opens up python 2.7 but sudo python ...
1
vote
0answers
17 views

Cannot get pip working on Python 2.6 in Fedora 22 Virtualbox

I'm working on a project that must be tested in a Fedora VM with Python 2.6.6. I have successfully installed that (so I can use that instead of the default 2.7), but I need to install some packages ...
0
votes
1answer
20 views

Installing extensions of a program that is installed twice

I have Python installed twice in my computer. The python.exe file is located once under C:\Python34 and again under C:\Anaconda3. The first was installed through the standard Python installation, ...
1
vote
0answers
26 views

Delete parts of sequential files in folders in windows

I need to find a way to delete parts of sequences of files. For example in specific folder I have several subfolders, which contain: blabla_0001.jpg blabla_0002.jpg blabla_0003.jpg blabla_0004.jpg ...
1
vote
1answer
59 views

How to efficiently and automatedly join video clips using short transitions?

I am looking to join a set of video clips (with audio) using some short transitions (ideally crossfade) in a straightforward, automated and efficient way. IE: ClipA ---> ClipB --> ClipC ...
0
votes
1answer
14 views

Deploying Django using Phusion Passenger - file upload failure

I have a Django app deployed using Passenger (I did not choose mod_wsgi because mod_passenger is already there and being used). When I uploaded an MP3 file (900 kB), Google Chrome displays upload % ...
1
vote
2answers
365 views

Batch file rename script swapping substrings in filename?

I have a group of files named like title_december_word1_word2.png and want to iterate through the directory and swap word1 and word2 within each file. i.e. go from button_december_state_pressed.png ...
0
votes
0answers
17 views

can't see the output of python in cmd and desktop

I've been messing around with python 3 for a while with notepad and cmd everything worked fine up until today when I saved a python file to my desktop. when I clicked on the file it said something ...
7
votes
2answers
7k views

Error Installing python on Windows 7 x64

I am on Windows 7 x64, trying to install Python 2.7.5 or 3.3.2. But I'm continuously getting an error showing : "There is a Problem with this windows installer package. A DLL required for this install ...
0
votes
1answer
38 views

Macro that will run in MS Excel and LibreOffice Calc

I have a spreadsheet that users will be working with in both Excel and LibreOffice Calc. I'd like to design macros that will work in both. I was thinking of code that would say: If Excel Then [VBA ...
1
vote
1answer
2k views

How to permanently append a directory to PYTHON PATH on Mac

I tried the two common methods: import sys sys.path.append('foo/bar') AND export PYTHONPATH=$PYTHONPATH:foo/bar The first one terminates the appendage once interpreter is exited. The second ...
16
votes
10answers
16k views

How to install matplotlib on OS X?

I want to install matplotlib on OS X. If possible, using homebrew. I installed Python 2.7.1 using brew install python, I modified my path to use it I installed pip using brew install pip I installed ...
4
votes
1answer
4k views

Windows 7 : Prevent computer from sleeping while there is network traffic

I have a python script that is downloading data on a remote computer. I want to prevent the computer from going to sleep as long as the data download is in progress. However if the program ...
0
votes
1answer
18 views

How to repair the permission of System Python in Mac OS X?

OS: Mac OS X 10.10.3 Cause In order to make the "YouCompleteMe" plugin works, I tampered with System Python: I renamed the folders 2.7 and Current to 2.7-sys and Current-sys respectively in ...
3
votes
5answers
3k views

Unable to install Python on Windows 8

Recently I decided to upgrade from Python 2.7 to Python 3.4 on my Windows 8 laptop. So I uninstalled Py2.7, downloaded the .msi file from python's site and ran it. I found that every installer I tried ...
1
vote
5answers
3k views

python not in command line even though it is in path

When I type 'python' at the command line it says ''python' is not recognized as an internal or external command...' I have Python in both User and System paths. In the past I have been able to run ...
0
votes
0answers
56 views

Mitmproxy on windows(mitmdump) getting stuck when given a command

I have built mitmproxy with python 2.7.1 and distutils 2.7.1 for windows 32 bit,The mitmdump i got is seems well,when i open windows cmd and give following command: C:\users\myusername>mitmdump ...
0
votes
3answers
380 views

Can pip show me the version of the python package I just installed?

I initially installed a version of python-git (GitPython) on my machine. It was version 0.1. Then I used pip to upgrade it to the latest. Now I was looking for the appropriate docs and fell unsure of ...
1
vote
1answer
3k views

Python installation errors

This is incredibly, annoying, I can't do anything in python until this is fixed. Thanks if you can help, I know it can be annoying to have to look at so much code but i'd really appreciate. I'm trying ...
0
votes
0answers
5 views

Can't open firebird db with python

A client of mine uses an application with a firebird db. I'd like to do some data analysis so I need to access to the db from some programming language(Python in this case). The problem is that I ...
0
votes
1answer
16 views

Autorun a python with sudo at startup

How can I make a python script rusn at startup on my OS X Yosemite Macbook every time? I want it to have sudo privilages as well.
0
votes
1answer
3k views

Change install path to /usr/bin instead of /usr/local/bin

A simple question, but I have no concrete documentation to confirm my answer. When installing software with the make install command under a unix machine, the default path is going over to ...
1
vote
2answers
12k views

Windows scheduled tasks fail with 0x1, don't log errors

I have three Python scripts running overnight as scheduled tasks on a Windows Server 2008 VM. I can run them manually with no problems. But when I look at the Task Scheduler each morning, the first ...
11
votes
8answers
54k views

How to install pip and easy_install on CentOS

I tried to install pip and easy_install on my CentOS but could not find them. How can I install them? Also, I have two versions of Python, 2.4 and 2.7. How will pip make sure to link newly installed ...
3
votes
2answers
117 views

How do I store all command outputs and errors?

Hi there! I need to capture all command, stdout and stderr without any addition to the commands. I mean, that I have to save/store the output of these: $ echo 'test' $ ls -l $ cat some_file ...
2
votes
1answer
798 views

Install python pywin32 in WINE?

I'm trying to install python under WINE in order to run and communicate with a windows application that uses COM. I've tried the following but neither seems to work: [root@localhost ForCentOS]# wine ...
0
votes
1answer
31 views

Is crontab running old version of file?

This has been driving me crazy: I run a set of Python scripts once per hour on a Raspberry Pi. I updated one of the scripts, but even after a reboot, it still seems to run an old version of the file. ...
3
votes
2answers
6k views

How exactly does one install `.egg` files?

When I tried downloading the Sphinx installer here, my computer couldn’t find a default application to run the installer. easy_install doesn’t work either. I’m running Python 2.7 but only have ...
3
votes
2answers
5k views

How do I install python with proper permissions?

So python installed probably fine. Or perhaps it was already on here (I'm using xubuntu 12.10). But I tried to install networkx today using pip: pip install networkx then says I don't have ...
0
votes
0answers
13 views

Python IDLE Find function not highlighting words

When I use IDLE for Python, and I do ctrl+f to find something, it finds it and scrolls up and down but as i click "find next" over and over again, It can't highlight each words as I go down the page. ...
2
votes
2answers
115 views

pip not working on hombrew python 2.7 install

I've installed python using homebrew and I can't invoke pip from the bash. I've tried amending my .bash_profile to include /usr/local/bin/python and /usr local/share/python to no avail. When I use ...
0
votes
0answers
59 views

oocalc unknown node setting file

When I run oocalc, I get a warning: W: Unknown node under /registry/extlang: deprecated This looks like a Python warning to me. However, I do not see the warning when running Python scripts. My ...
1
vote
1answer
36 views

Does Libvirt have any commands to find out disk i/o information?

Disk i/o information like throughput,activity or latency, or at least some disk related data, by which the throughput, activity or latency can be calculated. Is there any virsh command or some method ...
0
votes
0answers
12 views

How can I make my python application the default for a filetype?

I am making a text editor, and would like it to be the default application to be opened when a file with the extension ".clvr" is double-clicked. I can save it to a folder, but if I click it Windows ...
2
votes
2answers
31 views

Where do I put commands to run scripts?

I'm trying to run a few scripts (whether python, java, etc). The developers in their documentation give code for me to put in. Here are some examples: java -Xmx2g -jar muTect-XXXX-XX-XX.jar ...
0
votes
1answer
27 views

Load the OS from SD card which is purposed to run on Raspberry, on my computer

I have an SD card where I want to write an OS for my Raspberry, then I want to do some modifications to its files, like create Python code files there in a convenient manner, install libs and ...
0
votes
1answer
343 views

Change pythonpath in Vim

I'm using Vim for Python coding. The problem is, that I'm writing in Python 3 and Vim settings contain only Python 2.7 paths. That does not allow me to use plugins (like python-mode) for autocomletion ...
0
votes
1answer
167 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 ...
2
votes
6answers
518 views

Install Python for Windows

What is the best way to install Python for Windows?
1
vote
1answer
621 views

Error when installing pip for python2.7

I have installed python2.7 on Linux and I want to install pip under /path/to/python2.7.9/bin. So I did this: > cd /path/to/setuptools-16.0 > /path/to/python2.7.9/bin/python setup.py install ...