Python is a programming language that is included in the standard OSX installation.

learn more… | top users | synonyms

1
vote
1answer
200 views

how to capture folder as input and pass it to python script as argument

How to capture folder as input and pass it to python script as argument? This is what I have so far, but this is always taking the user home directory as input no matter which folder i right click > ...
1
vote
1answer
147 views

Core Graphics on a 2013 Mac Mini

My python script imports from quartz.coregraphics. Is core graphics included on 2013 Mac Minis? I ask because import works on macbook pros running snow leopard and mavericks, but fails on a mini from ...
1
vote
2answers
768 views

Python 3.3.3 on Macbook pro, can't open IDLE at all

I'm having trouble with running python on my Macbook Pro OS X 10.9.1. Two days ago it was running with absolutely no problem and now it won't start up. I've tried uninstalling and reinstalling, ...
3
votes
2answers
125 views

Offline (Python) documentation? (for ActivePython Mac or similar)

I'm a long-time user of ActivePython, and also own a couple of Komodo licenses. I've recently moved to the Mac, and one thing that I'm missing a lot is the "offline" documentation (i.e., in Windows ...
2
votes
1answer
362 views

SCTP kernel extension for Mavericks?

I am about to do some development with SCTP using Python[1]. But this requires some kind of 3rd party kernel extensions to Mac OS X. The only link I can find about the kernel extension is completely ...
2
votes
4answers
313 views

iPhoto and Python 2.6

I eradicated python 2.6 from my MacBook pro. Of course I did this before realizing iPhoto was dependent on it. How do I point iPhoto to my newly installed version of Python? This is the relevant ...
5
votes
1answer
394 views

How to add a Python application to OS X right-click menu?

I have made a Python-based application that plays a slideshow. I want to add shortcut on the right-click menu of a folder and play the slideshow. How can I achieve this?
2
votes
1answer
1k views

Using Mac OS X 10.9 lsof launches 5 to 10 processes at a time on its own taking all cpu

I am running a MacBook Air 13 (Latest) with 8GB / 512 Flash / Core Intel i7. Lately shortly after bootup I hear the fans winding at top speed. I checked the top processes and see several instances ...
4
votes
1answer
3k views

iTerm2 doesn't read com.googlecode.iterm2.plist

I am iTerm2 (1.0.0) user. I know how to create profiles, by using iTerm settings or modifying com.googlecode.iterm2.plist file. For convenience, I will use .plist to indicate ...
1
vote
1answer
2k views

Cannot get Python perspective with Eclipse IDE

I installed PyDev for Eclipse, but after doing so, I do not see PyDev in the list of perspectives. If I try to reinstall, it says it is already installed. Running Mac OSX 10.8.5 (Mountain Lion) and ...
1
vote
1answer
211 views

How to deactivate all python ports

I just started using enthought's canopy to manage my python packages; thus I want to disable and/or uninstall all of my macports python packages. Nominally, I'd like to deactivate them first - make ...
2
votes
1answer
2k views

ipython/python broken after upgrading to OS X Mavericks

After upgrading to OS X Mavericks, it seems Python broke. I get the following when I try to run ipython: ~ $ ipython Traceback (most recent call last): File ...
3
votes
3answers
11k views

What version(s) of Python are pre-installed on OSX 10.9 Mavericks?

Now it can be asked... What python versions come pre-installed, Is python 3.x on there? Edit: From the comments: "Does it also still have 2.6? The reason I ask is, with 2.6, I can build an app ...
2
votes
2answers
669 views

Prevent “<application> quit unexpectedly” message on sigquit

I kill Python processes with SIGQUIT by pressing Ctrl\ sometimes (usually my own that are misbehaving). Can I prevent the "Python quit unexpectedly" message? I know I can just hit escape, so it's not ...
2
votes
6answers
152 views

What python editors have syntax coloring and don't need much training to learn?

I have a friend who is trying to learn Python on Mac OS X. She does not have prior experience with programming. I am looking for an editor that is: Free and easy to get started with Support at least ...
1
vote
0answers
168 views

Error when installing matplotlib

I tried to install matplotlib on OS X Lion with the pip install command, but I get the following error: error: command 'clang' failed with exit status 1 Does anyone have a solution?
1
vote
3answers
268 views

Is an older version of Python a necessity?

ML 10.8.4 and I have installed Python 2.6, 2.7 and 3.3. I keep reading that it's necessary to keep the the 2.6 version around because the system uses it. However, I've not found any software that ...
3
votes
1answer
3k views

How to update Python on a Mac with Unix commands

After giving up on doing a disk partition and getting Linux, I decided to try and install Python 3.3.2 on a 32 bit Intel Core 2 Duo iMac with OS X 10.6.8 Snow Leopard. I did pretty much everything the ...
0
votes
1answer
97 views

Uninstall python 2.7 from 10.8

I've made the tragic mistake of downloading and installing python 2.7 from http://www.python.org/download/releases/2.7/ instead of using homebrew. Now vim won't launch, all kinds of things are screwed ...
0
votes
1answer
744 views

Can't create virtualenv

I want to create a virtualenv but it doesn't find the command. $ virtualenv venv -bash: virtualenv: command not found It is installed: $ pip install virtualenv Requirement already satisfied (use ...
1
vote
1answer
1k views

Python installation messed up

Somehow my python on my Mac OS X is messed up. I am trying to install virtualenv $ pip install virtualenv And it gives me: Traceback (most recent call last): File "/usr/local/bin/pip", line 5, ...
0
votes
1answer
66 views

error building phpsh from terminal

I am following the instructions on the phpsh github page I navigate to the phpsh directory and run python setup.py build and I get this error Traceback (most recent call last): File "setup.py", ...
0
votes
1answer
714 views

How do I uninstall python 3.2.2 on Mountain Lion?

How do I uninstall Python 3.2.2 on my MacBook Pro? I’m using Mountain Lion. Any answers greatly appreciated. I’m a beginning programmer.
0
votes
1answer
246 views

How to auto run a simple python program when the terminal opens

Say I have a python program called foo.py that prints a line of text. How can I auto run that program when I boot up the terminal? I know you can, but I can't find the documentation. Also no third ...
0
votes
0answers
608 views

How to restore System/Library Files without Time Machine

I fell for the tarp. In an attempt to fix an installation issue with Python and Pygame I read something stupid online telling me to delete this file and that file to completely get rid of python on my ...
0
votes
1answer
271 views

Hazel rule using Python script

I am using a Hazel (Noodlesoft) rule with Python script. Using the "Passes Shell script" option. Placing the path to my python install /usr/local/bin/python (my python install v. 2.7.3) in the ...
4
votes
2answers
595 views

How to make an executable .py available everywhere on OS X?

I have this directory /foo/bar/. Inside, I have a python file named myfile.py. I made it executable by adding (at the top): #!/usr/bin/env python Then, I made it executable by issuing chmod +x ...
0
votes
1answer
565 views

Understanding install of mod_wsgi on apache terminal commands

I'm installing a django development environment on OSX. Apache is, of course, installed by default. From my (very limited) understanding of Macs, I don't believe there is preconfigured functionality ...
1
vote
1answer
1k views

python site packages directory

I have for some reason two locations for python site packages. Python itself is here: > $ which python > /Library/Frameworks/Python.framework/Versions/2.7/bin/python My Path Variable is: $ ...
0
votes
1answer
50 views

Python launching problems OS X

I'm trying to install python on mac OS X 10.7.5. I installed it from MacPort and I think before I did, I screwed up $PATH somehow. It seems to install fine but then when I try to run ipython I get ...
1
vote
2answers
347 views

Where can I get Python VTE bindings for the Mac OS X?

I'm trying to comiple Guake top-down terminal (guake.org) in Mac OS X. I've met a bunch of dependency issues while ./configure phase, but now I'm completely stuck with the following dependency issue: ...
0
votes
1answer
110 views

Removing current Python version and use other python version

First of all i installed python 2.7 with manual.After i installed python2.6 with macport with referenced this. And after i deleted my Python 2.7 files. The main point is when i write python at ...
0
votes
1answer
63 views

installation in terminal

I am trying to install a few software packages on my Mac os X 10.6.8. The packages are the python libraries: networkx (graph library) matplotlib (visuzlization) It seems that with matpotlib I also ...
0
votes
1answer
576 views

Python IDLE can't be opened by double-clicking .py files in Finder

I can't open .py files in IDLE by double-clicking them in Finder (IDLE is currently set as the default program for opening such files). Nor can I open those files by right-clicking and selecting ...
1
vote
2answers
532 views

How to install framework (from pkg file) in a non-standard location?

In brief, my question is this: How can I install a framework from a *.pkg file somewhere other than under /Library/Frameworks (or /System/Library/Frameworks)? Background I want to install a ...
1
vote
1answer
1k views

How to set up multiple PATHs in the user bash_profile in OSX 10.8?

I am looking to set up my laptop for both Python development and Phonegap Android development in OSX 10.8 using Eclipse. I installed the lastest version of Python (3.3) which added the code: # ...
1
vote
1answer
1k views

“Cannot execute binary file” with alias of binary

I have installed both python3.3 and python2.6. I have set python3.3 to default by creating an alias named "python" in usr/bin and another one for python2.6 named "python2.6". Now if I type in the ...
0
votes
1answer
428 views

Move python modules from one installation to another

I have several versions of Python installed, some through MacPorts and some directly via the python.org installers. I have modules installed through MacPorts and via PyPI, for the same Python version ...
0
votes
1answer
438 views

How to get UUID with Python?

System Report will display the system's Hardware UUID in the format 01234567-89ab-cdef-0123-456789abcdef. Using the shell we can retrieve the same UUID: ioreg -rd1 -c IOPlatformExpertDevice | grep ...
0
votes
1answer
680 views

How do I install libgit2 on OSX Lion?

I'm trying to install libgit2 on OSX, and I keep running into issues. Ultimately I'm trying to get pygit2 installed, which fails because it doesn't recognize libgit2 being installed. libgit2's ...
0
votes
1answer
215 views

When I close the lid and open it later in the day, will command line programs resume?

I've been running a python script from the command line that's inserting data in a database for a couple of hours now. It will take at least half a day more before it's finished. However, I want to ...
3
votes
4answers
7k views

How do I setup Python3.3 and Sublime Text 2 correctly on OS X 10.8.2?

I am trying to setup Sublime Text 2 so that the build command correctly runs Python3 / Python3.3 scripts. I have installed Python 3.3 via the installer obtained from python.org and installed Sublime ...
1
vote
1answer
548 views

Access denied when creating a Python file?

I'm trying to compile a file using Python and I receive this message: error: could not create '/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/tulip': Permission denied ...
1
vote
3answers
1k views

Retina display compatible Python IDLE?

On my Retina MacBook Pro, the Python IDLE development environment has blurry, non-retina text. Is there a way I can make the text retina? IDLE:
2
votes
1answer
898 views

Deploying a python application in OS X Server 2.0.23 (aka Mountain Lion Server)

OS X Server 2.0.23 (aka Mountain Lion Server) already has python 2.7.3 and wsgi installed. What is the procedure to install a python web application on that server to run under its own domain? Assume ...
0
votes
1answer
688 views

Python stopped working after Mountain Lion upgrade

I upgraded my Mac from Lion to Mountain Lion and ever since then, Python stopped working. So I re-installed Python and his setup-tools. Now everything seems to work fine except for iPython. iPython ...
1
vote
2answers
6k views

Python Imaging Library (PIL) Decoder jpeg not available — how to fix?

I've got error which is generated by PIL when I trying to process jpg-images: Python Imaging Library (PIL) Decoder jpeg not available. How to fix this problem?
0
votes
1answer
1k views

Create Automator Service With a Python Script?

I'm trying to create an Automator Service that will act on selected text, converting dashes to spaces, and also making word caps for all the text. A friend gave me this python script (I know nothing ...
1
vote
1answer
1k views

Python IDLE from MacPorts can't start

I tried installing the python27 and python32 packages via MacPorts in Mac OS X 10.6.8. It includes the standard IDLE, Python Launcher, and Build Applet applications. However, when I start them, their ...
7
votes
2answers
5k views

How can I bring a window to frontmost without focusing it using Applescript in OS X 10.8

I want to bring a window (QuickTime for example) to frontmost, without focusing it. I can do it in OS X 10.7 using the following code in Applescript. tell application "System Events" set visible ...