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

PyDev contextual documentation in Eclipse

I dislike the PyDev contextual documentation in Eclipse (mouse hoovers over a method, little window appear). It does not work for many methods. For example, f = open('file') will show the docs for the ...
0
votes
1answer
22 views
+50

Anaconda distribution Python error [DatabaseError: database disk image is malformed]

There seems to be something wrong with my Anaconda Python installation. When I run Python through cmd it works and I can also run Python programs directly through cmd, and even import scipy, numpy, ...
0
votes
1answer
2k views

Change install path to /usr/bin instead of /usr/local/bin

A simple question, but I have no concrete documentation to confirm my answer. When installing software with the make install command under a unix machine, the default path is going over to ...
-1
votes
0answers
9 views

What's the better tool to convert markdown to slides with code syntax highlight [on hold]

I use the gem slideshow with impress.js them But it can not the syntax highlight. Is there any better and easier tool can let me write markdown then convert to slideshow easier ? I'm familiar with ...
-2
votes
0answers
14 views

What is a suitable programming language for developing a linux desktop app? [on hold]

At school we did some C/C++ programming basic stuff most problems that we solve were mathematical, as a project I want to do a basic G.U.I some buttons, check boxes. I don’t want to use C/C++ even ...
0
votes
2answers
2k views

Fedora 17: How do I install Python 2.7 into /usr instead of /usr/local?

I want to install Python 2.7 onto my Fedora machine, but it installs it into the /usr/local/bin. How do I make it so that won't happen? I want to do this because the setuptool I installed keeps on ...
0
votes
2answers
37 views

to have an homogeneous environment for python and tools like PIP [on hold]

I have a learning group for pythong where people are coming with their machines but with differents OS (Windows, Mac Os, Linux). For Mac and Linux, it is quite easy as you can install programs like ...
0
votes
1answer
15 views

How to syntax highlight python scripts in PHP storm

I tried installing this script but then got this error message: I'm hoping for an answer that's similar to this one but for python instead of ruby.
0
votes
0answers
9 views

How do I make this add-in toolbar button work in ArcMap 10.2 using the ESRI provided Python Add-In Wizard (i'm following a tutorial)

I'm following a tutorial here: http://resources.arcgis.com/en/help/main/10.1/index.html#/button/014p0000001z000000/ I have added the code to the .py file and installed the add-in using the ...
1
vote
1answer
586 views

Messed up Python path in OS X

I am using python 2.7 in Mac OS X (10.7). I have been trying to install OpenCV, but to no avail. In one attempt to get OpenCV to install properly I tried the MacPorts version of OpenCV, and I ...
1
vote
1answer
29 views

Windows 8.1 command like Unix/Linux WHICH command

Below is an example of the results of the WHERE command used in Win 8.1 CMD (DJANGO) C:\Python34>where python C:\Python34\python.exe C:\Python34\DJANGO\Scripts\python.EXE What I am looking for is ...
2
votes
1answer
3k views

How do I install python with proper permissions?

So python installed probably fine. Or perhaps it was already on here (I'm using xubuntu 12.10). But I tried to install networkx today using pip: pip install networkx then says I don't have ...
0
votes
1answer
325 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 ...
1
vote
1answer
14 views

Any suggestions on a netbook/desktop setup to run Python for scientific computing?

This may seem like an inappropriate question that should be relegated to some hardware forum, but I love StackExchange for other things and thought perhaps you could help! I had my laptop stolen a ...
0
votes
1answer
2k views

How to launch python script as a windows Services

Using python 2.7 and windows 7. I have a python file(.py). I want to launch this script as a windows services, i.e. this code will keep on running from start to end and never terminate. I can convert ...
25
votes
4answers
65k views

How can I change the default Python version on Snow Leopard?

I recently upgraded my Mac OS X 10.5 Leopard install to 10.6 Snow Leopard, and with that came an upgraded version of Python, 2.6.1 (instead if 2.5.1). Now when I type python in the Terminal i still ...
-2
votes
1answer
36 views

Unable to uninstall python2.7.8 installed in ~/Downloads directory

I have read many answers regarding this kind of problem but unfortunately, I am unable to achieve the uninstallation. So please don't downvote or flag this question. I have python2.7.8 installed in ...
0
votes
3answers
28 views

How Can I Batch Change the Metadata of MP3 Files? [duplicate]

I have a fews of songs in a folder which I would like to add the metadata items of artist, title, genre and album to. I would like to take the metadata info for the title and artist from the file name ...
2
votes
2answers
2k views

Version 5.7 of autoindent Python in Notepad++ half works

Autoindenting doesn't work on Notepad++ correctly. I can't find the equivalent SciTE file. menu Settings -> Preferences -> MISC -> Auto-indent is checked. I can't find any other Python indent settings ...
2
votes
2answers
5k views

How exactly does one install `.egg` files?

When I tried downloading the Sphinx installer here, my computer couldn’t find a default application to run the installer. easy_install doesn’t work either. I’m running Python 2.7 but only have ...
0
votes
0answers
45 views

Can't run newly created Python file

I have followed a lecture on installing Python and so far I have been unable to resolve this recurring issue. When I mirror the instructional video I get one of two errors. The first error This ...
-1
votes
0answers
19 views

View Application Error Logs on Windows 7 [closed]

I am using a program that calls a python library and errors out. However the python library seems to be working fine by itself. Is there any way to see more detailed logs in a powershell log or some ...
15
votes
8answers
15k views

How to install matplotlib on OS X?

I want to install matplotlib on OS X. If possible, using homebrew. I installed Python 2.7.1 using brew install python, I modified my path to use it I installed pip using brew install pip I installed ...
1
vote
0answers
172 views

Scribes Editor: no toolbar, statusbar or scrolbars visible

I'm planning to give the Scribes text editor a try in everyday usage. Branching ang compiling the Python code went fine, but when I start it up. I don't see any toolbars or statusbars. This Iis all ...
0
votes
1answer
21 views

How do applications like gksu lock focus when launched?

I am curious how applications like gksu lock screen focus when prompting for a password. I see gksu even has an option "-g", that can disable this behavior. I am interested in doing something ...
1
vote
1answer
849 views

I am trying to install Python 2.7 on my Windows 7 64-bit machine. (AMD Athlon II X4 635 2.90 GHz) 4 GB RAM

I installed the 2.5.6 version from http://www.python.org/download/releases/2.5.6/ (the .tgz). It seems to have installed correctly, but I am having problems when I go to use it. I open up the ...
1
vote
5answers
148 views

How do I run a Python program in Windows?

I have downloaded the Python package from the website. It is in my C drive, in a directory named Python27. In the command prompt, I type the following: cd C:\Python27 python Then I get Python ...
0
votes
0answers
22 views

Updates don't install complaining about missing dependencies when dependencies are clearly installed (RHEL 6)

I have installed RHEL 6.2 and I am upgrading all the packages on it right now. I was expecting auto update to work, but I get these error messages when I authorize an auto update - ...
-1
votes
1answer
27 views

How to solve python bug without root permission

Python has a bug that can be fixed by modifying a file in /usr/lib/. But I don't have permission to edit that file, is there any way to solve this problem? Is it possible to overwrite that solution in ...
0
votes
0answers
12 views

Emacs: failed to install ELPY

I tried to install ELPY package for python development in Emacs. I followed instructions from here: https://github.com/jorgenschaefer/elpy Yet I kept getting this error every time I start Emacs: ...
1
vote
0answers
14 views

Sort lines to form a unique words dictionary listing

Many a times we build dictionaries in online forums for typical words used in a forum, the user responds in following format in a phpbb forum term: defination hence the job is to collect all these ...
3
votes
3answers
2k views

Run python script from Finder rather than edit?

Max OS X. When I double-click on a python script it opens in the default editor. How might I make it so that when I double-click, or choose the script from Applications, it executes from the python ...
4
votes
1answer
1k views

Signing PDFs in linux

I'm trying to digitally sign PDFs server-side. So far I found that I can do this using MyPDFSigner, but it's far from my needs. Also I don't believe that this is the only option here. How to sign ...
0
votes
1answer
272 views

Eclipse INDIGO freeze everytime when I run python program

My Eclipse is downloaded some days ago from http://www.eclipse.org/downloads/ and the type is Eclipse Classic 3.7.1. I installed pydev in Eclipse and configuration python in Windows -> Performance -> ...
0
votes
1answer
18 views

Type on python script on the Unix command line (without a .py file)

Working with python 2.7, I want to do this: $> python "import Tkinter; Tkinter.tk(); etc... " but python doesn't seem to accept script this way. I don't want to create a .py file. Is there a ...
3
votes
3answers
3k views

Where can I find a gallery of Pygments CSS files

I googled every possible combination but I couldn't find a list of syntax files. Is there a list of good ones?
0
votes
2answers
62 views

Parse out specific parameter from python script

I have a chage output that I formatted myself called accounts. It basically has the name of the user listed as a section and then the information below it (which are the parameters). I would like to ...
0
votes
1answer
23 views

IDLE (Python 3.4.1) on Win 7 - When I press F5 to run, I want it to just auto save my work

I can't find this anywhere! How do I stop it from interrupting my run with "Source Must Be Saved OK to Save?"
0
votes
0answers
38 views

Powershell Start-Process fails to start when -Credential argument is added

If I run this in powershell, Start-Process "c:\Python27\python.exe" -WorkingDirectory "c:\wd" -ArgumentList "-m SimpleHTTPServer" It can start the python process as expected However when I add ...
1
vote
2answers
1k views

Python installation error (1fc8b3b9a1e18e3b)

I am trying to install Python but I'm running into following error: An Error occurred during the installation of assembly Microsoft.VC90.CRT, version="9.0.21022.8" publicKeyToken="1fc8b3b9a1e18e3b", ...
3
votes
2answers
2k views

How do you install libtorrent-rasterbar Python bindings with a brewed Python?

The standard approach does not work: brew install libtorrent-rasterbar Will install the boost requirement (linked against the system Python), and libtorrent-rasterbar will install without any ...
1
vote
1answer
651 views

“Filename is not valid or too long” and “The specified path does not exist” in one file

I have a file in a folder that I use for python programming and when I moved the folder everything would go but the file. I don't know how it got there but when I try to delete it I get "Filename is ...
0
votes
1answer
81 views

No space left on device, but the partition only half full and inodes are available

I was running a Python process which creates a huge number of files under a single directory (I should have been smarter and bucketed them into multiple directories, but that's another story). After ...
5
votes
3answers
4k views

Python IDLE disappeared from the right click context menu

My IDLE shortcut in the right click menu has disappeared. I think it's because I used to use Python 2.7, but I installed Python 2.5 without uninstalling Python2.7, and then uninstalled Python 2.5. I ...
2
votes
4answers
1k views

Unable to install Python on Windows 8

Recently I decided to upgrade from Python 2.7 to Python 3.4 on my Windows 8 laptop. So I uninstalled Py2.7, downloaded the .msi file from python's site and ran it. I found that every installer I tried ...
1
vote
2answers
4k views

using python Paramiko for ssh: sudo: no tty present and no askpass program specified

I want to use paramiko to ssh into a bunch a remote nodes and run some command line with root priviledge I have ssh key in my home directory and so i don't need to input password when I ssh into ...
1
vote
1answer
3k views

Python installation errors

This is incredibly, annoying, I can't do anything in python until this is fixed. Thanks if you can help, I know it can be annoying to have to look at so much code but i'd really appreciate. I'm trying ...
0
votes
1answer
209 views

script “somescript_name.py” can not be installed because plugin “python” is not loaded in Weechat

I'm trying to install some script in Weechat but anyone of them I'm getting 16:45:56 | script: script "notification_center.py" can not be installed because plugin "python" is not loaded I'm ...
0
votes
0answers
8 views

Find average CPU, vMem, sMem usage on 1, 5, and 15min

I am trying to find at time T the average CPU usage on 1, 5, and 15min, just like what you get from /proc/loadavg Same thing for virtual memory, and swap memory. I would be fine with a python ...
0
votes
0answers
12 views

Resize window using Appkit in python

I'm writing a python script which gets some string representing a name of window, than it finds that window, gets its size and logs it to some txt file. On Windows I used pywin32 module, and it worked ...