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

Pyscripter history

Is there a way to increase the number of items shown in File>Recent Files section, which currently shows only the last 6 items, or is anyone know where this history is stored? I am using PyScripter ...
0
votes
1answer
21 views

apple store showing different page in wget

istore.apple.com live url is different that url which is downloaded using wget Open this url in browser https://itunes.apple.com/us/genre/ios-games-action/id7001?mt=8&letter=A You will see ...
0
votes
0answers
122 views

Why does python 2.7.10 install a 2.7.6 version?

I am building a custom Python 2.7.10 installation with icc via the following script: #!/bin/bash CC=icc \ CXX=icpc \ LD=xild \ CFLAGS="-O3 -xHost -fomit-frame-pointer -shared-intel -fpic -ipo ...
0
votes
1answer
40 views

Trouble installing pygame from a wheel file

I'm trying to install pygame(x64) from a .whl file with pip. but the cmd gives me this error: (This is the source of the wheel file: http://www.lfd.uci.edu/~gohlke/pythonlibs/) As you can see in ...
0
votes
0answers
49 views

Python/Powershell Script for Telnet

I'm most familiar with powershell and python so a solution which utilized either of them would be ideal. I'm also open to other ideas on resolving this issue. So I have a situation where an old ...
0
votes
2answers
20 views

“Edit with Idle” appears when I right click a python file, yet does not work. Also, python files show the wrong icon

My problem: http://imgur.com/a/a3D30 ...I can, however, open Idle manually, and then open the file. But this is a hassle. Another small thing. What is wrong with my python file's icon? How can I ...
0
votes
0answers
46 views

`pip: command not found` and other issues

I have several virtualenvs on my computer and I use them extensively. I create new ones and modify them all the time. However, when I tried to create a new one today, I found out that none of the ...
1
vote
0answers
42 views

How do I use the Python commands in PowerShell?

I work in a GIS department and I'm trying to learn Python to automate something boring. I started using "Learn Python the Hard Way", but I can't figure out how to run Python scripts from PowerShell. I ...
1
vote
2answers
38 views

Python3 fails import sqlite3

I just transferred a python module from my OS X system to Ubuntu. The module runs on the Mac just fine, but fails on the Ubuntu system with the following error: import sqlite3 File ...
0
votes
1answer
27 views

Python sources on an http site, or in ISO image?

I installed SCO UnixWare 7.1.4 on VirtualBox. This installation does not include Python. I want to download the Python 2.7/2.6 source tar-ball from ftp.python.org. however: Anonymous FTP is not ...
0
votes
1answer
35 views

Script to monitor realtime CPU & Bandwidth usage in xen live migration

I need to write a script (bash or python or ??) to perform live migration of a VM in xen, and to simultaneously log and extract the CPU & bandwidth usage of the Domain-0 AND write the output into ...
0
votes
0answers
12 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) ...
1
vote
2answers
79 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 ...
1
vote
0answers
71 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
26 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
33 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
91 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
0answers
25 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 ...
1
vote
1answer
118 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 ...
0
votes
1answer
50 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 ...
0
votes
1answer
38 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 % ...
0
votes
0answers
149 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
1answer
32 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
51 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. ...
0
votes
0answers
32 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. ...
0
votes
0answers
101 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 ...
0
votes
0answers
19 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
52 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
32 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 ...
1
vote
1answer
53 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 ...
1
vote
1answer
779 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 ...
0
votes
1answer
222 views

How to install wxpython on centos 6.5 (with python 2.7)?

I've updated python on my centos to 2.7 and installed wxpython via: yum install python-wx Unfortunately python can't find the library and I get an error: ImportError: No module named wx Did I ...
1
vote
0answers
42 views

PYTHONPATH variable can't be echoed by non-root

I edited my sudoers file by getting root privilege as sudo -i Then I edited my sudoers file by nano /etc/sudoers I added Defaults env_keep += "PYTHONPATH" to the sudoers file. Then from root, I ...
2
votes
2answers
392 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
1answer
265 views

How to clear screen on Python 3.4.2 shell?

I am trying to clear the screen on python 3.4.2 shell, I used clear screen, clear(), cls, clrscr etc. But no one is working, Please let me know the command to clear the screen.
0
votes
0answers
70 views

URLField in django models allowing users to submit blank records, why?

This is what my models.py file looks like: from django.db import models class accounts(models.Model): url = models.URLField(max_length=200, blank=False) The database is still allowing blank ...
0
votes
0answers
31 views

Powershell - Set-alias doesn't accept paramters - python

Following this tutorial i want to set an alias for python autopep8. the syntax described is. Set-Alias gs Get-Service <enter> So o copy that format i have done. PS C:\Users\sayth> ...
0
votes
0answers
64 views

Windows: add python scripts folder to path

On windows, I have some python scripts in a folder. How can I do to invoke a script without having to specify its full path? I tried adding the folder to the PATH environment variable but it's not ...
0
votes
0answers
18 views

How to connect psql to the forumdb.py(a python file) in ubuntu?

I have my system with UbuntuOS installed. I am following an online course where it indicates the use of Vagrant and connects your Windows/Mac system using the Virtual Box having Linux installed in it. ...
1
vote
0answers
57 views

Adjusting 10.10 Desktop Change Python Script

I'm not fantastic in Python and I'm currently using a script based off of https://gist.github.com/gregneagle/6957826. I'm looking to make one change to the Desktop Image Dictionary Keys option in ...
1
vote
1answer
54 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 ...
1
vote
1answer
99 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
135 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
7 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
248 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
586 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 ...
1
vote
1answer
130 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
41 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
117 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 ...
1
vote
2answers
494 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 ...