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

1
vote
1answer
74 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
36 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
27 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
123 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
27 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
45 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
23 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
73 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
17 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
51 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
31 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
44 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
707 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
169 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
36 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
231 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
191 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
41 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
28 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
49 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
13 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
47 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
47 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
95 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
105 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
188 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
473 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
107 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
38 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
99 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
408 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 ...
0
votes
1answer
47 views

Keeping en0 down while I change IP address mac

I have a DHCP server which assigns myself a new IP address. What I'm wanting to do is power down the wireless adaptor, then change the ip address manually. What's happening is as soon as I set the new ...
1
vote
3answers
94 views

Is python server side or client side? [closed]

I am debating on using python or work with JavaScript & PHP. Basically what I am trying to do is run an algorithm against some data pulled from my database. ( the algorithm can be very demanding ...
0
votes
0answers
55 views

Install scipy on blender

I'm working with windows 64-bit and I have Blender 2.73 (so python 3.4.2). I tried downloading scipy's executables for python 2.7 (spicy exe available on the site doesn't accept 3.x) on my system, ...
0
votes
0answers
28 views

.py file downloads instead of executing

I am mint 17.1, apache2, php3.4.0 I reloaded mint new. Modified apache2.conf file to have: <Directory /var/www/html> Options Indexes FollowSymLinks MultiViews AllowOverride None ...
0
votes
1answer
90 views

cronjob not executing python script - tried strace

I'm having trouble making a python script run via cronjob. I can run the python script (it's supposed to connect to a database, pull a few records, save that to a csv, then email it) manually just ...
0
votes
2answers
118 views

How to recursively delete all .DS_STORE files from a directory on a Windows Machine?

I extracted a .zip file compressed on a Mac and discovered that the compression included all the .DS_STORE meta-directory files (I think used to speed up spotlight search, but besides the point?). Is ...
-1
votes
1answer
77 views

Should I delete all these Python frameworks? (cross-post from Ask Different where nobody is answering)

I'm just getting started with web development and I'm trying to set up my environment, and I can't do that until Dr Homebrew has discharged me from N00bcake Hospital. This is what I'm getting: ...
0
votes
0answers
52 views

XMPP chat room logger

I was wondering how I would go about getting something for my server that would login to a XMPP server, join a chat room, and just sit there and log all the chat and then save it on my server on the ...
0
votes
1answer
32 views

Compress software installers into one executable

How am I going to compress (I don't know what's the right term for this) different software installer into one? When I click the executable file, all the installer I have is there, then I can proceed ...
0
votes
0answers
43 views

How to configure 'user-data-dir' in PhantomJS WebDriver

I currently have a working script with the following code: chrome_options = Options() chrome_options.add_argument("user-data-dir=" + os.path.dirname(sys.argv[0])) browser = ...
0
votes
1answer
27 views

Multiple commands, but not at the same time

I want to execute 4 different files in the background with python, but not simultaneous. There should be ~5 seconds between each evaluation, but I can't get it to work. I tried: python cmd1 &; ...
1
vote
0answers
37 views

Compiling this (C++) git repository code [closed]

I'm reading a statistical paper and the author was kind enough to post his code publicly on github at the following link https://github.com/mosco/crossing-probability I have a Windows operating ...
0
votes
0answers
16 views

Program is not opening, launchd.peruser 501 code in the console

On Macintosh. From Console: 2015-03-21 5:27:03.107 PM com.apple.launchd.peruser.501[170]: (com.schrodinger.Maestro.5840[11665]) Exited with code: 1 When trying to opening the program from the ...
1
vote
0answers
38 views

Default OSX hash key produces non-ASCII error in Python?

I'm using OSX Yosemite on a Macbook Pro with a UK keyboard. When I type # into a Python file (using Alt+3) I sometimes, but not always, see this syntax error when I try to run the Python file: ...
0
votes
1answer
70 views

Python debugger not stopping at breakpoints

I'm in a linux based development environment where I don't have superuser permissions. My basic issue is that the breakpoints I set in emacs through pdb never work. The debugger never halts at those ...
0
votes
1answer
223 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 ...
0
votes
1answer
197 views

Install apache2-dev for mod_wsgi

I'm completely new to linux but have developed a Python3 Django application that I've been asked to deploy to an apache web server running on Debian 7.8. To do that I'm following Django guideline ...
0
votes
0answers
481 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 ...