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
281 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
56 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
126 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 ...
0
votes
0answers
39 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 ...
0
votes
2answers
485 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 -> ...
0
votes
1answer
67 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
2answers
403 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 ...
2
votes
1answer
818 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
82 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
51 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 ...
0
votes
3answers
33 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 ...
0
votes
0answers
69 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
620 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
389 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
71 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
64 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
1k 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 ...
0
votes
0answers
103 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 ...
-1
votes
1answer
65 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
1answer
100 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
228 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
77 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
1answer
41 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
185 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
0answers
50 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
1answer
58 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
47 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
208 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
273 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 ...
0
votes
1answer
44 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
98 views

Verify python request with wireshark or proxy HTTPS

I am working on a scraper, that is scraping data using python requests package. The website has a secured connection (https). I managed to get over the login part, over the search part, and now I have ...
1
vote
1answer
630 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
2answers
64 views

Newer Debian versions of python3 on older Debian distros?

I would like to be able to use python3.3+ as well as the python3-bson-ext package on Wheezy. By default, Wheezy has 3.2 available, and does not have the python3-bson-ext package. But testing does. Is ...
0
votes
0answers
84 views

How can I start a Hangouts phone call with Applescript/Terminal?

I want to initiate a Google Hangouts phone call with Applescript, or Terminal ... or python. (Hangouts.app has an AS dictionary, but with only the default suites.) Basically I want to emulate ...
-1
votes
1answer
65 views

PyScripter: Where is %APPDATA%\pyScripter\skins folder located in disk?

I have PyScripter installed from the executable file downloaded from their website. But the white background is just burning up my eyes so I wanted to change the theme. I googled upon how to change ...
2
votes
0answers
42 views

Areas of Law for Computer Enthusiasts [closed]

Sorry guys if this is in the wrong place. You guys can just tell me where the right place would be and I will post my question there. I am a current 1L in law school and we just had an early internet ...
0
votes
2answers
47 views

Passing multiple files with whitespace to python script

I have to convert a lot of .ai files to .svg, and I've found ai2svg tool. I've tried for i in `find ./ -type f -name \*.ai`; do python ai2svg.py "$i"; done But I get errors like IOError: [Errno ...
1
vote
1answer
134 views

Notepad++ For Normal Text and Syntax Highlight?

I want to use Notepadd++ for taking notes on python programming language. I want to write some normal sentences and also write codes on same page simultaneously. I don't want to show line numbers for ...
1
vote
0answers
76 views

Installing specific Not-In-Repository version of python-dev within virtualenv without using VCS

I have read the question : How can I install python-dev without sudo? However it does not quite cover the issues I am facing. I have a Debian 6.0.9 server with system python 2.6.6 installed. ...
1
vote
1answer
131 views

how to cancel highlighting the 80th column in vim?

I use python-mode and solarized plugin in my vim, and I think either one of them sets highlight at 80th column, so that I get a visual on how long each line should be, but actually python-mode will ...
0
votes
0answers
45 views

Unable to install python 2.7.6

I am trying to install Python 2.7.6 on my 64bit windows 8.1 pc. When the installer indicates that it is registering components an error message appears, "key not valid for use with current status" ...
0
votes
0answers
242 views

apt-get/dpkg can't configure any python related packages

I recently installed Python 2.7 to /usr/local/bin. Now, any time I try to use apt-get it fails on certain python packages as follows: root@lebowski:/usr/local/bin# apt-get upgrade Reading package ...
0
votes
0answers
132 views

Building PyQt5 on Windows7 x64; error LNK2038 mismatch

I've been running in circles trying to get PyQt to work on Windows 7 64-bit with Python 2.7. This is as close as I've gotten. I successfully built SIP using nmake from Visual Studio 2012. Now when I ...
0
votes
1answer
30 views

Windows 7 path not being set

I've read an followed all stack overflow, super user, etc. instructions multiple times, and my GUI window shows the path to be what I want, i.e., python27. However the cmd prompt shows several lines ...
2
votes
1answer
205 views

VIM “upgraded” to expandtab and tabstop=8 on Python files

After reinstalling my OS from Kubuntu 12.10 to Kubuntu 14.04, VIM has changed its behaviour when editing Python files. Though before the reinstall all file types had noexpandtab and tabstop=4 set, now ...
0
votes
1answer
85 views

Set up Cygwin with Python executables

I have a Windows 8 laptop on which I have used Python for some time. I have both 3.3 and 2.7 installed, along with several libraries. I recently installed Cygwin, and am enjoying it immensely. I ...
1
vote
1answer
44 views

Installing Dexy looked ok, but Dexy does not work

I just tried to install Dexy on a Debian 4.7 server. Python was installed but not pip, so I did some research and found how to do it : $ python --version Python 2.7.3 $ sudo apt-get install ...
0
votes
1answer
78 views

How do I run a plist daemon on MAC OS 10.8.5 with the correct file permissions

I have a plist file saved to /Library/LaunchDaemons/local.WiFiDaemon.plist <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" ...
0
votes
1answer
53 views

Is there a way to identify the device data is being received from? (python)

Summary I have an MT4000 device connected to my computer using the serial port ttyS0. This is broadcasting data which is being received and read by a udp listener written in Python. I am also sending ...
0
votes
0answers
139 views

Python coding with VLC player (quite a basic query I expect)

I'm fairly new to the whole coding realm so my knowledge is fairly limited, and I can't seem to find any basic tutorials on how to use scripts with VLC player. More specifically, the reason I'm asking ...