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

learn more… | top users | synonyms

1
vote
1answer
34 views

How to create a VPN connection via terminal?

I have a macbook pro with mavericks running. I am looking for a way to connect to a VPN network in terminal. The reason why I want to do this is that I want to write a small program in Python which ...
1
vote
1answer
14 views

How do I create a shortcut to IPython's interactive shell on the dock?

I have successfully installed IPython. I can open the interactive shell by typing this from the Terminal: ipython qtconsole & Is there a way to create a shortcut on the dock that executes the ...
1
vote
2answers
213 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
0answers
22 views

Python on Xcode and Maverick [closed]

I have Xcode installed on OS X Maverick on Macbook Pro. From what I have read, my impression is that Xcode has Python as well OS X Maverick itself. What is the difference? How best to write and run ...
3
votes
2answers
151 views

How to run a cron job each time the previous execution has finished?

I would like to run a Python script each time it finishes and I think I can do this with cron but I am not sure how to do it. The idea is each time the Python scripts ends, it will have to run again ...
0
votes
1answer
24 views

Full path to python as reported by ps

When I run python from the shell I for example do python2.7 script. I later need to find this command again based on the ps aux output, however this output shows a full absolute path like this: ...
1
vote
0answers
61 views

How can I install a working bluetooth library for Python?

I need to access Bluetooth from Python. I have tried installing lightblue via easy_install. It installs properly, but when I try to import it it fails. User@Mac:codes$ python Python 2.7.5 (default, ...
1
vote
1answer
43 views

Why is 'xattr' not working?

When I attempt to execute xattr in Terminal, I get Traceback (most recent call last): File "/usr/bin/xattr-2.7", line 33, in <module> import xattr ImportError: No module named xattr ...
2
votes
0answers
111 views

brew doctor warning about Python config scripts

Can someone please explain what I should do about the following warning from Homebrew: Warning: "config" scripts exist outside your system or Homebrew directories. `./configure` scripts often look ...
3
votes
1answer
53 views

How do I know which Python install is being used?

If I type the command which python, then I get: Oliviers-iMac:~$ which -a python /System/Library/Frameworks/Python.framework/Versions/2.7/bin/python /usr/bin/python If I then type python --version, ...
1
vote
1answer
841 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
586 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 ...
2
votes
1answer
985 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 ...
0
votes
0answers
23 views

Map date and time entries to single day in Numbers

I am keeping track of a certain value that varies during the day, and from day to day. I make entries in my Numbers table as I get the values during the day. Column A is the time entry: month day year ...
0
votes
0answers
20 views

What scripting framework could work with google translate for a non-programmer?

So I want to create a small workflow that I can integrate into my OS that does this: Translate selected sentence with google translate (fixed languages) and make it automatically get pasted where I ...
0
votes
2answers
70 views

Need help creating Global Daemon for EyeFi Server

I have been trying to come up with a headless solution for transferring images from an eyefi card to my mac. The software from the vendor is decent, but it will only transfer images if there is a ...
0
votes
0answers
20 views

Python / matplotlib graphics & OS X 10.9: mission control?

I just got set up on OS X 10.9, and I have matplotlib working with the OS X backend, but the "python" window that shows up is partially inaccessible to Mission Control. If I activate full Mission ...
0
votes
1answer
45 views

Which Python packages are installed on Mavericks?

The title says it all: How can I find out which Python packages are pre-installed with Mavericks?
0
votes
3answers
186 views

Mount Windows smb shares on a Mac using Python

I would like create a python script that mounts a Windows smb share on a Mac then copies data to it. I am falling at the first hurdle, having problems with mounting the share. It should be really easy ...
2
votes
1answer
75 views

Upgrade to Mavericks wipes out Python site-packages directory?

As the subject suggests, I recently upgraded to OSX Mavericks, and... $ ls /Library/Python/*/site-packages/ /Library/Python/2.3/site-packages/: Extras.pth README /Library/Python/2.5/site-packages/: ...
1
vote
1answer
57 views

What is more predominant, PyObjC or PlistBuddy?

I'm writing a script that will update an Xcode project's Info.plist. This script will be distributed to clients. In order to do this, I'd like to know what tools are more appropriate if I need to ...
2
votes
1answer
61 views

Mac Port install arguments

I need to install ROOT on my mac. Since I prefer Python for Scientific Computing I though that it would install PyROOT by default. That didn't happen. After I looked on PyROOT site i found that ...
12
votes
4answers
12k views

How to get the fully resolved path of a symbolic link in Terminal?

I have a tangled mess of python installations on my laptop. I was looking at the executables in /usr/local/bin and they are all symbolic links to ../../../Library...... There's some weird behavior ...
2
votes
2answers
116 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 ...
2
votes
1answer
105 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
1answer
364 views

Scapy on Mavericks via Homebrew “AttributeError: 'module' object has no attribute 'intf'”

I tried to install Scapy on OS X via Homebrew which seemed to work fine. After installation there were some Python modules missing which I installed via Homebrew. Now when I start Scapy I get the ...
1
vote
1answer
176 views

how to add button to Finder toolbar to call python script with current folder as argument?

Recently I added context menu under services to execute python script but I think it would be convenient if I add a button on the Finder toolbar, like next to New Folder Button in below image. Is ...
0
votes
0answers
108 views

how to pack python package that includes python scripts and bash scripts for OSx as pythonTool.app?

I have made a python tool which I want to share with users. I tried Automator, and it works but in that I used Application > Run Shell Script in which I hard coded the path to my python script, but ...
1
vote
1answer
92 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 > ...
3
votes
2answers
63 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 ...
1
vote
2answers
504 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, ...
1
vote
1answer
100 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 ...
5
votes
1answer
229 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
3answers
8k 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 ...
1
vote
1answer
83 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 ...
2
votes
2answers
293 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
123 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
128 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?
3
votes
3answers
5k 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
3answers
196 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 ...
0
votes
1answer
184 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 ...
2
votes
1answer
1k 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
79 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
300 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
525 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
56 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
134 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
0answers
302 views

PyQt with Homebrew'd Python3 and Systemw-wide Qt5

I'm trying to get my software development environment set up on my new MBA, but it's being a pain. Thanks to this awesome link I got as far as the Qt section. However, I cannot get past the Qt ...
0
votes
1answer
177 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 ...