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
4 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
26 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
19 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
25 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
1answer
72 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
0answers
9 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
18 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
0answers
15 views

2 actions in my python script

I'm trying to create a hotkey that clears history in firefox. My script opens the dialog window but how can I send an enter key to the window? If I run: ...
0
votes
0answers
20 views

How to convert wordpress export file to blogger format

tl;dr one part of question is how to install and use wordpress2blogger in windows and the other is to know any other option to convert wordpress export file to blogger format. answer to any one could ...
2
votes
2answers
54 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
37 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
8 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
12 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
8 views

Redirecting stdout of program launched via Monit [migrated]

I am unable to redirect the output of my program to a file when that program is launched via monit. The file gets created but no data gets flushed out to it. If I run the program by hand, all works ...
0
votes
0answers
26 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
7 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
27 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
25 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 ...
0
votes
0answers
12 views

How to make boxplot-like plot with histograms instead [migrated]

I'm making a plot of internet speeds. I want to show the distribution of speeds collected, bucketed by the hour in which they were collected. I'm hoping to obtain a result that looks like where for ...
1
vote
1answer
68 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
43 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
6 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
36 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
90 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
59 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
21 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
47 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 ...
0
votes
1answer
177 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
0answers
82 views

-bash: /usr/bin/yum: /usr/bin/python2.62.7: bad interpreter: No such file or directory

I am working on EC2 Linux and got stuck on this point. No yum command is working, getting the following error: $ yum -bash: /usr/bin/yum: /usr/bin/python2.62.7: bad interpreter: No such file or ...
0
votes
1answer
28 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
48 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
21 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
21 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
58 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
65 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 ...
0
votes
0answers
47 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
25 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
31 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
23 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
24 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
22 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
15 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
25 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
44 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
119 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
79 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
313 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 ...
0
votes
0answers
19 views

Python process spawned by Chrome on Mac?

In the Energy tab of the Activity Monitor on Mac, if I expand the Google Chrome item, I see several "Google Chrome Helper" processes and a "Google Chrome Helper NP" process which seem normal, but also ...
1
vote
1answer
32 views

Are there ready tools to check for gaps in list of filenames which are monotonically increasing?

I have been given several hundred directories with millions of files in each of them. E.g. DirA +----+ A_000001.txt | + A_000002.txt | + ... etc.. I want to ensure that the ...
0
votes
0answers
23 views

“unable to remap to same address as parent”, can't get rebaseall to fix the issue

I posted this question on the Cygwin mailing list with no response, so I'm trying here. I keep getting this same unable to remap error and rebaseall does not fix the problem. Specifics: On running ...