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

brew prune permission denied - what should group and permissions be?

Reinstalling python using brew so that hopefully psycopg2 will stop giving errors: Library not loaded: /usr/local/opt/postgresql/lib/libpq.5.dylib So following this answer: mikekilmer$ brew prune ...
0
votes
0answers
18 views

303 Redirect in Django WSGI setup

I am running a django application using the WSGI setup. I want to write a redirect to some non existing pages in the app. I tried using .htaccess . But it is not working. Not even a file in ...
1
vote
2answers
1k views

Logitech gamepad F710 and ubuntu and as an input to a python program

I would like to use the Logitech F710 gamepad as an input device to a python program. I am using Ubuntu. I do not really know where to start, so here are a few questions: How does Ubuntu detect the ...
0
votes
1answer
32 views

How to remove the visual line from Python mode in Emacs

I started to use Emacs for Python and I am using this package: https://github.com/gabrielelanaro/emacs-for-python After I install it, I see this: There is a white line (like underscore) ...
0
votes
0answers
22 views

applescript permissions for copied files

Using applescript, I'm copying PY files to a location in OSX. However, they don't compile when I load Python, it seems because the permissions havent been set on the files. When I look at "get info" ...
0
votes
0answers
22 views

Open a jar file without it taking focus

I've written a python script that runs a java program every 3-5 seconds. This is run by using subprocess.call() method: subprocess.call(['java', '-jar', ...
1
vote
2answers
280 views

How to set the bootorder for a vm in vsphere 5.x with pysphere

I am using the following python code to set the extra_config parameter bios.bootOrder: #!/bin/env python from pysphere import VIServer, VITask from pysphere.resources import VimService_services as VI ...
0
votes
1answer
32 views

Running at close to 100 cpu

So I have a python script that is really pushing the limits on concurrency. When the script is running, the cpu load of my computer is close to 100% at all times. Can this harm my computer? To be ...
0
votes
1answer
59 views

Why my iptables configuration for port-knocking does not work?

I implemented the following iptables rules on my test server for a course. The firewall shuts down and I cannot access port 22. However, after knocking on the ports 1111, 2222 and 3333 in that order - ...
1
vote
0answers
27 views

How does the Python Web Application stack work [closed]

I've been frantically reading up about python and REST services as I want to start learning and building a service. The terms confused me a lot - my past web application experience is some limited ...
1
vote
1answer
167 views

How do computers generate random numbers? [closed]

How does a computer generate 'random' numbers? How close to truly 'random' can a number generated by a computer actually be? Is there software / programming language out that that might generate a ...
0
votes
0answers
35 views

Where did pep8 went when I upgraded to OSX 10.9.5?

I just updated OSX to 10.9.5, but I now miss pep8, brew did not help, how do you install pep8 on MAC OSX 10.9.5? I already accepted the new license with sudo xcodebuild -license.
0
votes
0answers
73 views

OpenStack Rally manual install issue(with sqlalchemy import in python)

When I try to install Rally based on this tutorial https://wiki.openstack.org/wiki/Rally/installation/manual (because I already deployed an OpenStack cloud) I get an error message: rally-manage db ...
2
votes
2answers
153 views

IDE for Chromebooks without Developer Mode Acess

I am starting a computer club at my school, and I am running into a problem with Chromebooks. The new freshmen are given Toshiba Chromebooks, where developer mode access to blocked. We are going to ...
0
votes
2answers
180 views

Win8.1 Error -1073741819 -> 0xc0000005

I've never had this problem on PC since Win95 I guess, but somehow it's happened recently while I was trying to 'make force' python framework( setup.py build_ext --inplace -f -> ...
1
vote
1answer
221 views

Installing JCC Ubuntu asking for path varaiable

I am trying to install JCC. Steps: svn co http://svn.apache.org/repos/asf/lucene/pylucene/trunk/jcc sudo python setup.build I am getting this error: Java JDK directory ...
0
votes
0answers
21 views

Gmvault / got-your-back (gyb) features compare, for decision making

Are there any differences in the way the backups can be done for Gmail, and restored, through Gmvault or got-your-back? Haven't been able to locate a side by side comparison. http://gmvault.org ...
5
votes
2answers
4k 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
40 views

Open with only lists choose default program for .py files

The context menu for a .py file in file explorer is only giving the Choose default program... option in the context menu. Currently it runs it with python.exe by default. If I change the default ...
2
votes
1answer
221 views

Notepad++ how to copy the text (only) which matches the regex expression (not the whole line)

I am looking for a simple way to copy into the clipboard all the "marks" in notepad++. I found that I could copy the whole line that match the regex using the bookmark option. But I'm looking for a ...
0
votes
1answer
51 views

Task scheduler Windows 7(schtasks) set Principals RunLevel highest returns Access denied (Run with highest privilege)?

SCHTASKS /Create /TN "New Task" /SC HOURLY /TR blah.exe /RU myusername /RP pypassword /RL HIGHEST Returns {ERROR: Access Denied} Error also used below code in Xml but still getting the same Error ...
0
votes
0answers
34 views

64-bit outlook link no longer being found with python script - SUBPROCESS.Popen()

I used to execute a script that at the end would distribute an e-mail using Microsoft Outlook and a custom form. I found a website that told you how to create a custom form, insert some VBA script ...
2
votes
3answers
3k views

Run .exe file via Python as Administrator

i have a problem with starting an .exe.exe file as administrator rights.. I also tried: subprocess.call(['runas', '/user:Administrator', 'myfile.exe']) But then i have to enter a password.. Is ...
0
votes
3answers
24 views

gVim closes automatically when opening python file

I'm using gVim 7.4 , it was running smoothly before installing Plugins after installing pathogen gVim window closes automatically when opening python files. It's working fine for other files except ...
1
vote
1answer
3k views

pip and SSL certificate errors

I am trying to install a library via pip. I have a problem with SSL certificate, even when using the --cert. Trying this on windows (pip version 1.5.4,python version 2.7.6): pip --cert ...
0
votes
1answer
32 views

Debugging a python program, called from another batch file

I have an annoying problem. I have a windows batch file, that does some initialization (mainly setting python paths) and then calls a python script. When the batch program is run, another window is ...
0
votes
0answers
53 views

Gdb - cannot access memory at 0x12345 and a program is being debugged already - why/ what to do?

Just got to meet gdb, and it's acting up a little. I managed to install gdb and the python addon on CentOS 6, but when trying to debug a process in Ubuntu with the command sudo gdb python 4074 i get ...
1
vote
1answer
224 views

Python 2.x and Python 3.x with Beautiful Soup Package on Mac OSX 10.9.5

I am fairly new to Python and have run into some problems installing Beautiful Soup. I am running Mac OSX 10.9.5. I installed and used Python 3.4 during a summer and installed Beautiful Soup 4 for a ...
0
votes
1answer
736 views

How to autosave file in Aptana Studio 3 before running?

Using Aptana Studio 3 on my Windows 7 computer I'd like to have Aptana Studio 3 automatically save my Python file before running it. Does someone know which checkbox (of those hundreds) I have to ...
0
votes
2answers
11k 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
1answer
115 views

Email file and folder list with size?

I am trying to get a list of all files and folders with there sizes (upto 1st level, i.e. file and folder names with there sizes in current directory) emailed to me via an python script. I got the ...
0
votes
0answers
16 views

Save all installed python modules

I'm going to format my HDD so I'm curious whether is there a way to get all installed Python 2 modules and save them into some folder. I'm going to save 'C:\Python27\Lib' and then copy them into new ...
0
votes
1answer
119 views

How to add indent in Python 3.4 interactive mode Terminator Linux?

I'm starting Python from basics. The Python 3.4 Tutorial has an example for interactive mode: >>> the_world_is_flat = True >>> if the_world_is_flat: ... print("Be careful not to ...
-1
votes
1answer
51 views

A process CPU usage doesn't change for different priority

I wrote an infinite loop in python to print No! in the output. while True: print("No!") When I execute it, I see its process (pythonw.exe) in Windows-Task-Manager that uses 60% of the CPU. I ...
0
votes
0answers
41 views

How to make standalone app using python on mac osx

I am making an app in python 2.7 on osx 10.9 Used py2app to create .app. python setup.py py2app is making semi-standalone app. As my.app/Contents/MacOS there is shortcut to /usr/bin/python. Now I ...
0
votes
1answer
406 views

gcc error Python.h: No such file or directory

I have python-dev (or, as I'm on Centos, python-devel) already installed. sudo yum install mysql mysql-devel mysql-libs sudo yum install python-devel sudo yum install MySQL-python How come this ...
-1
votes
1answer
42 views

Run a python script from its icon in linux

May be this question is very basic i googled it but couldn't get a proper answer. I have a python script which when run as "python2.7 mygui.py" in the terminal opens up a gui but now i want to open ...
0
votes
0answers
47 views

Import packages to Python IDLE 2.7 from Anaconda

I installed numpy, scipy, matplotlib, etc through Anaconda. I set my PYTHONPATH environment variable to include C://Anaconda; C://Anaconda//Scripts; C://Anaconda//pkgs; (I didn't put spaces in the ...
0
votes
1answer
60 views

CPU clock and L3 cache for programming

I'm interested in how much different hardware choices affect the following use cases: Programming in Python: lots of heavy mathematical computations using numpy arrays Data Applications in Python ...
0
votes
0answers
107 views

Minted cannot find pygmentize in TexStudio on Windows 7

I want to use minted package, but when I'm xelatexing in TexStudio, there's an error: minted: You must have `pygmentize' installed to use this package. pip seems unable to find pygmentize: In my ...
0
votes
1answer
27 views

python-gnupg search_keys() returns different result when run as root

I have a python script that needs to be run as root (to access framebuffer on a raspberry pi with a small touchscreen). This script also needs to search for keys on a keyserver. To achieve this, I am ...
0
votes
0answers
31 views

How to run pip in non-interactive mode?

Most of tools I'm using have some mode (often ON by default) where they ask me zero questions while running the command. apt-get is an example close to pip. There's -y option which makes it ...
0
votes
0answers
135 views

Openerp, how to show columns using fields.function

This is a piece of my custom openerp module. I can't understand how to show this fields only if column private is equal to 't' ( True ). I know that i should use fields.function, but all my retries ...
0
votes
1answer
28 views

Running a GUI-based program remotely on windows using python

I need to run a program on a another computer which is solely GUI based. It is closed source so I do not have any way to access the backend, nor any way to send in remote signals using simple text ...
0
votes
0answers
38 views

Can't install PIP, Easy Install or Setup Tools on a mac

I am unable to install any thing on my mac via the terminal - Pip, Easy Install or the Setup tools for python packages. A screenshot of my terminal while installing the pip looks like this: Could ...
0
votes
0answers
35 views

NSRangeException using the IDLE 3.4.1 on Mac OX v. 10.9.4

I have installed Python 3.4.1 from the official website and I am having this exception when I type " on the IDLE. There's a warning or important information in the Python's official website that ...
1
vote
0answers
128 views

How to connect a Raspberry PI to a PC using wifi [closed]

For a schoolproject i'm making a quadcopter which can be flown from a laptop. On board of the quadcopter is a Raspberry PI to stabilize the aircraft and send back a video signal to the laptop. Im just ...
3
votes
0answers
145 views

Jenkins realtime console output for parallel threaded fabric command

We have a Python fabric command that runs in parallel across several hosts, something like this: $ fab --hosts=prod1.server,prod2.server,prod3.server --parallel copy_cache This will copy cache to ...
1
vote
1answer
412 views

How to import enum

I installed Python 3.4.1 on my Mac (OSX 10.9.4), and I need to work with enums. I started to write a script in a text file: #!/usr/bin/python from enum import Enum And from the terminal: chmod ...
0
votes
1answer
1k views

After downloading Tweepy I don't know where to locate it

I have downloaded Tweepy, and I locate its folder in the following path, where I have other libraries such as Pygame and swampy: C:\Python25\Lib\site-packages … but when I import it – even in the ...