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
1answer
87 views

show all breakpoints when debug a python code with pdb

I am using pdb to debug a python code. I set the breakpoints in the pdb command line with b [linenumber]. Can I check all the linenumber of breakpoints? thanks.
0
votes
0answers
48 views

Have fill-region break Python code into multiple lines to stay under 80 columns in Emacs

How can I get Emacs' indent-region command to re-indent def foo(): my_favorite_object_ever = ObjectConstructor(cool_parameter=4, not_cool_parameter=5) as def foo(): my_favorite_object_ever ...
0
votes
3answers
79 views

How to automatically copy randomly generated text from a website

I am not sure how best to ask this, as this my be a multi-pronged question, requiring different avenues of attack and my preconception of the solution is a basic input-function-output scenario. I am a ...
1
vote
1answer
122 views

Unix to Windows equivalent

I am working on project which is currently on unix platform and we are going to port that project on windows. I want to know if there is any windows equivalent to following /proc/cpuinfo ...
0
votes
0answers
26 views

Auto-generating moinmoin pages based on docstrings comments

I am looking for a way to auto-generate pages for a moinmoin wiki based on docstrings found in python source code. Our current scenario is: User writes page on the wiki describing $PROCESS, ...
0
votes
1answer
96 views

Appropriate place to store custom Python modules on Linux

I am trying to understand where and how are Python packages installed and stored on Linux and find the best location to store them. My repo is Debian Wheezy. I would like to store all my custom ...
0
votes
1answer
48 views

Ubuntu KVM failed to set up

I'm trying to set up a VM with KVM on my Ubuntu 12.04 machine (64 bit). I followed the installation instructions to the letter at http://www.howtoforge.com/virtualization-with-kvm-on-ubuntu-12.04-lts ...
0
votes
0answers
19 views

Security flaw through python broken installers?

Yesterday I wanted to install a program which is not shipped with the distribution (Fedora), nor available as rpm on its website. But since the program is not using autotools for generating the ...
0
votes
1answer
126 views

How to call python script in other folder without prepending `python`?

I have a small (self-written) python script located in, let's say, C:\dummy\myscript.py. In my Windows 7 terminal, I can call this script with either one of the following three commands. They all ...
0
votes
0answers
92 views

Pandasql installs in 2.7 folder but can't be seen from ipython (uses Python 3.3)

have Python 2 and Python 3 installed on my system. By default, when I go into ipython it uses Python 3 I can use packages like pandas fine. however I installed pandasql pip install -U pandasql The ...
2
votes
2answers
336 views

Software to use a spare monitor as a personal dashboard with custom data feeds? [closed]

I'm looking for anything that would allow me to use my third monitor for some neat data visualization. Ideally this would be running full screen, with focus on really nice aesthetics. I'm planning to ...
1
vote
1answer
92 views

Python IDLE won't launch - (Using MAC 10.8.5 /Python and UNIX noobie)

Months ago, I installed Python 2.7 on my MacBook Pro (OS 10.8.5) and was using IDLE to run programs for classes I was taking on Udacity. One morning IDLE would no longer start, it would just bounce ...
0
votes
1answer
189 views

Macports refuses to install python 2.7.6.0

I'm trying to upgrade various programs I have installed with MacPorts. Unfortunately, python refuses to upgrade: ---> Computing dependencies for python27 ---> Configuring python27 Error: ...
0
votes
2answers
47 views

How do I install easy_install?

I am doing a project for a class in Python and I am a very inexperienced programmer and terrible with computers. Is there a simple way to install easy_install so I can use the classes from the ...
0
votes
0answers
42 views

Can't run sylkserver from AG project

I just installed Sylkserver like this instruction. http://sylkserver.com/download.phtml I use apt-get to install everything and also use default config file. When I use sudo /etc/init.d/sylkserver ...
0
votes
0answers
247 views

Win32_IP4RouteTable Class Failure

I've written a Python script which accesses the Win32_IP4RouteTable with the following: import wmi import socket ip = socket.gethostbyname(socket.gethostname()) rt = ...
1
vote
1answer
58 views

Can I update pycharm intellisense for python?

I want to know if it's possible to update Pycharm intellisense for python which doesn't care about capital or normal letters? It's a pain in the neck to try both each time. Currently I'm using pycharm ...
2
votes
1answer
1k views

How to automate Checkpoint firewalls rules implementation?

I HATE CP with a passion beyond belief... I mean, why, WHY you couldn't include a command line interface that allows me to grep a CSV file in which I'm requested rules, format them properly and then ...
0
votes
1answer
125 views

I want to automate IT tasks and wonder if Python is a good choice [closed]

I am a beginner in programming, mainly toying around with Python and Java at the moment. I want to get a little further and many suggestions reasonably encourage finding ways to implement the language ...
0
votes
2answers
138 views

Windows 7 how to display proper icons

I am running windows 7. I have the default program for .py files set to the python.exe. If I double click a .py file it will launch correctly with python. But in the windows explorer the icon next ...
0
votes
1answer
69 views

Should I use Python or C for a language interpreter? [closed]

I'm planning on writing a language interpreter for a custom language of mine. The language will work similarly to PHP in that it will be run off of a web server and the code will be executed in the ...
2
votes
2answers
69 views

To install and use Django 1.4.1 without sudo access

I want to install this software to a server where I have no sudo access. They have Django 1.2.x installed there, but the software needs Django 1.4.1. The server has the adapter between Python and ...
3
votes
2answers
378 views

Python2.7 yum module

I have a virtual machine running centos 5.8 and I just installed python2.7 because I was having some issues with import simplejson as json. After installing python2.7 and running ansible roles I have ...
0
votes
1answer
58 views

Watch a filesystem and rsync changes in a cross-platform way with minimal dependencies

I'd like to start a long-running Ruby or Python script, and have the script watch a local directory for changes to files and new files. Periodically, the script will trigger a one-way rsync to a ...
2
votes
2answers
1k views

OpenSSL issue when installing scrapy on Python on windows

I have switched to 32 bit installers for Python Scrapy (After failing to install the 64 bit installers for scrapy to work). Followed the steps mentioned here. This is the log when I run the ...
1
vote
0answers
168 views

Pycharm community: how to revert to previous version (uninstall 3.0.2 patch which breaks Terminal plugin)

Is there a way to undo pycharm patch installtion and downgrade from 3.0.2 to 3.0.0 ? JetBrains web page under previous versions shows only 2.X branch and it's not clear where to get original 3.0.0 ...
0
votes
0answers
10 views

Command to open file in WingIDE at indicated line

I can say: /usr/bin/wing4.1 /tmp/a.py and Wing IDE will open that file. However, I would like to have it open with cursor at specified line, sort of like vim /tmp/a.py +20 opens the file at line ...
0
votes
0answers
12 views

Generating ID#'s in GIS attribute table

In the attribute table within GIS, I have a certain column with ascending values, and I want to assign ID numbers (for easier readability and display) to a corresponding column. So for instance: Feet ...
0
votes
1answer
60 views

Which IDE is best to use VIM 7 or VS2012 for python? [closed]

As I'm a very beginner in OOP in Python . It is very hard to find the best IDE, I searched a lot then I came up with two suggestions Vim and Visual studio 2012,although both require some plugins to ...
0
votes
0answers
141 views

Got requests.exceptions.SSLError error when running googleplay-api

I want to share my experience on the problem, so this is sort of a self-answered question. Hope it helps. I'm trying to use googleplay-api to download apks from Google Play. My network environment ...
0
votes
0answers
82 views

Running pywin32-218.win32-py2.7.exe results in error “The file exists”

I am trying to install the Python module, win32, downloaded from source forge but whenever I run the exe file (pywin32-218.win32-py2.7.exe) I get the message : The file exists Could not create ...
0
votes
0answers
221 views

Python 2.7.6 Installation Error on Windows 7 32bit

I'm trying to install Python 2.7.6 on a HP-Mini 210 Netbook just to run some simple tasks. I get the following error when the installer is doing "Status: Publishing Product Information" I am trying ...
0
votes
1answer
137 views

Transpose data at particular row w python,r,sql?

Lets say I've got following data (about 50k of rows in real example) A B C D E X A B C D E F G H X And I want it to look A,B,C,D,E,X A,B,C,D,E,F,G,H,X So technically I want to transpose ...
1
vote
1answer
70 views

IntelliJ IDE: How to add one or more margins

I like PyCharm a lot. I write a good chunk of python for my job. I want to conform to PEP8 and it's line length suggestions as best as possible. Having right margins for 72 characters, 79 characters, ...
1
vote
0answers
12 views

Nautilus, Ask for confirmation when moving files

I need Nautilus to ask for confirmation when moving files from one folder to another. Is it possible to set this up? I guess I need something that listens to moves.
1
vote
1answer
298 views

Installing python pymssql

I am trying to install pymssql with no luck: pip install pymssql Downloading/unpacking pymssql Downloading pymssql-2.0.1.tar.bz2 (1.9MB): 1.9MB downloaded Running setup.py ...
0
votes
1answer
178 views

How to make NppExec show script-created windows?

I am trying to run a Python script with NppExec. It runs fine (the console is updated with whatever I print to stdout in the script) but the window the script creates (through PyQt) never shows up. If ...
1
vote
1answer
83 views

Is giving myself write permission on my Python `site-packages` directory a way to avoid `sudo pip` risks?

I understand that there are security risks involved in installing pip under sudo, but for various reasons I would like to continue installing my packages in site-packages (on OSX 10.9), which ...
0
votes
0answers
124 views

running PyInstaller as root for packaging on linux(Debian)

I'm trying to install pyinstaller in Debian Wheezy(currently running as root). but, it's not possible to run it under root. Is there any solution in running pyinstaller as root? If you have any ...
0
votes
1answer
50 views

How do I add a custom plugin to Nagios?

The Nagios documentation seems to go out of it's way to obscure this basic piece of information. I'm finding bits and pieces of the answer all over the web for the past couple hours. Either I can't ...
1
vote
1answer
76 views

vim - how to treat three quotations in a row as a comment rather than a string

I use python and in python, three quotation marks in a row """ or ''' signify a block-comment, and a normal comment is just a hashtag. (#) I want comments to be colored grey and strings to be ...
0
votes
2answers
138 views

Why can't I remove some files in Windows(7) from a python script?

In Windows, some files, when tried to remove raises a WindowsError. The reason why I posted this here instead of SO is because the scripting side is less relevant than OS level permissions (script ...
0
votes
0answers
294 views

screen: Must be connected to a terminal

I am running a Java program, and with the Java program, I run a Python script. The python script (with subprocess.Popen) runs the command screen -x hg1 -X stuff "jsp sign edit status1 2 test line ...
0
votes
0answers
19 views

Flag to get all the selected items as arguments while editing right click menu in windows xp

I edited the right click menu in windows xp and executing a python file for the selected files. Basically I was following this... http://sbirch.net/tidbits/context_menu.html I was wroking on ...
0
votes
0answers
182 views

Running Python Code Remotely

I have the following situation: I want to write and debug python code in my Laptop with public IP Then send it to some remote desktop(with private IP) in my University for running the code that will ...
0
votes
0answers
41 views

Stanford Wrangler ideal, but imposes limits, what are other options?

Stanford Wrangle tool is quite amazing, and I solved a giant problem with it, but it limits me to very small size. My file is about 500MB, and it allows me to process less than 1MB, the remaining data ...
0
votes
0answers
274 views

Python how to install the itertools module on Debian

I am new to Python. I wanted to try out the itertools package from Python. But I got the error: NameError: global name 'itertools' is not defined How to resolve this error? Do I need to install this ...
1
vote
2answers
95 views

Installing vips for python on Windows

I've downloaded VIPS from from http://www.vips.ecs.soton.ac.uk and I have extracted the ZIP file on my machine and added the \bin directory to my PATH. I am trying to import the vipsCC library into ...
2
votes
1answer
138 views

Installing pymedia on OSX

Trying to install the most recent version of pymedia available at sourceforge. python setup.py install I get the error: In file included from sound/sound.cpp:33: sound/audio_unix.h:29:10: fatal ...
2
votes
0answers
48 views

Moving python modules across computers

I'm going to be getting a new laptop running 64-bit Windows 7. On my current 32-bit Windows XP laptop, I have a large number of python modules in the site-packages folder that I want on the new ...