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

learn more… | top users | synonyms

0
votes
0answers
170 views

Connecting to Postfix using Python or Telnet

I managed to configure a local postfix server, which works correctly when using the mail command (and I receive emails from the cron deamon), however, if I try to connect using telnet localhost 25 ...
0
votes
1answer
45 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
211 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
97 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
60 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
359 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
420 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
841 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
771 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
286 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
341 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
454 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
157 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
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
1answer
382 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:
1
vote
1answer
659 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
687 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
5k 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
870 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 ...
6
votes
2answers
3k 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 ...
6
votes
4answers
7k views

Python Virtualenv is broken since upgrading to OS X Mountain Lion

Since upgrading to Mountain Lion, when running the command "virtualenv env", I get: New python executable in env/bin/python Installing setuptools......... Complete output from command ...
0
votes
2answers
467 views

Executing program through Terminal

I have Sage (math program) and I want to execute it through terminal. I know I can go to the directory and execute it with - open Sage.app But would I really want to do is simply type sage in ...
0
votes
1answer
296 views

Python no longer working, Config directory empty

I tried debugging this on my own, but to no avail. Here's the problem - I have a MacBook Pro 13" OS X 10.7.3 with Python 2.7 (no other version installed) I recently installed MAMP from their ...
1
vote
1answer
1k views

How can I tell Firewall to allow incoming connections for Python running a specific script? (In this case: SickBeard)

I'm running SickBeard on my Lion installation, but I can't figure out how which Python version or script I should add to the Firewall rules allow connections from outside. In Console I get this ...
7
votes
4answers
10k views

What's wrong with my launchctl config?

I'm trying to auto-run SickBeard on login python /Applications/Sick-Beard/Sickbeard.py <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC -//Apple Computer//DTD PLIST 1.0//EN ...
1
vote
0answers
206 views

Python Weirdness on Terminal Open

When I open Terminal I see the following: Last login: Wed Feb 8 18:30:05 on ttys029 Traceback (most recent call last): File ...
1
vote
1answer
731 views

Batch conversion of xlsx to xls via CLI?

I'm trying to convert a bunch of xlsx files to xls (because some other software<cough>matlab<cough> can process xls but not xlsx on the mac). I've tried unoconv but it has issues (which ...
1
vote
2answers
696 views

Deleted /Library/Python folder. Is it possible restore?

I am on Mac OS X 10.7.2. I deleted old python library folder before upgrading to newer python. But I found later that I should never delete the factory-shipped python. The Apple-provided build of ...
2
votes
1answer
585 views

Python editor for ipad with mercurial support?

Is there a text editor for ipad which supports python and mercurial? It would be even better if there were a solution that also allows one to run and develop with django. Any suggestions?
1
vote
2answers
451 views

How can I install NumPy / SciPy on Lion?

Macports? Binary? RVM-esque tool? Other? I will be using NumPy/SciPy for a computer vision project, so I want to do it once and do it right.
0
votes
1answer
244 views

Rollback Python2.7 Installation

How do I reconfigure an installation of Python 2.7, on Snow Leopard, so that the OS uses the default 2.6 but leaves my 2.7 installation, and its installed modules, for use under virtualenv? Basically ...
0
votes
0answers
326 views

Geektool twitter quotes glet not working

I have GeekTool for Lion and am trying to run the Glet located at - http://www.macosxtips.co.uk/geeklets/messaging/latest-tweet-1/ On my system. It's just not working. The same code is running ...
2
votes
2answers
365 views

Run through terminal PYTHON

Is there a way on a mac to make it so when you click on a python script it runs python filename.py through terminal?
1
vote
1answer
92 views

What are all these Python files?

What are the .py, .pyo, and .pyc files in /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/X11/xcb?
3
votes
3answers
498 views

where are python packages installed on Lion?

I'm pretty sure before Lion, I was using /System/Library/Frameworks/Python.framework/Versions/Current/lib/python2.7/site-packages Although this might have been from a manual install of 2.7 on 10.6 OS ...
4
votes
3answers
1k views

Installing Python on Mac 10.5.8 64-bit

I'm working on getting Python installed on my Mac 10.5.8 and I have been having a heck of a lot of trouble. The standard downloads at Python.org do not show a compatible version. They have 10.3 - ...
5
votes
1answer
4k views

How do I change back from MacPorts Python to system default version?

I used MacPorts to install a newer version of Python on my system (10.5.8 PPC), and then used the MacPorts select command to change the default invoked version of Python to the MP version. Now I want ...
1
vote
4answers
666 views

Xcode and python and java

I just installed Xcode 4. Everything seemed fine, but then, after poking around, I found that the ability to create Python and Java (And probably more) projects was missing. I asked Apple in apple ...
1
vote
1answer
4k views

How to remove one old python installation from a system with multiple (non-system) installations of python

Disclaimer First, let me get the obvious out of the way: I have not touched the system-bundled Python. I know it’s important to leave it alone. I have, in fact, done exactly that. ☺ Background ...
1
vote
1answer
248 views

Installed additional python2.7 to Snow Leopard. What happens to modules I want to install?

I recently asked if I should upgrade python 2.6 to python 2.71 on my Mac (Snow Leopard). I was told to install 2.7 without removing 2.6. Done! Now I was wondering how the installation of new modules ...
2
votes
1answer
1k views

Snow Leopard: Current: python 2.6 - Desired: python 2.7

Is it possible to upgrade the native python version (2.6 on my Snow Leopard) to a more recent one? Or do I have to just install python 2.7 besides the current one?
1
vote
3answers
6k views

Why is python's “easy_install” installing into the wrong directory?

I've installed python 2.7 with the dmg-installer of the official python page. After typing which python in terminal, I get this: /Library/Frameworks/Python.framework/Versions/2.7/bin/python But when ...
0
votes
1answer
81 views

installing python2.4 on osx10.6?

I prefer installing stuff from their source and dont use package managers generally. Has anyone here tried building python2.4 from source here? If so, had any luck with the same?
3
votes
1answer
1k views

Error installing lxml on Mac Snow Leopard

I am getting what seems to be a common error when trying to install lxml on MacOS 10.6: Building lxml version 2.3. Building without Cython. Using build configuration of libxslt 1.1.24 ...
3
votes
3answers
299 views

Problems integrating Python 3.1 on 10.6.5

I am beginning to learn Python, and want to "upgrade" my Python installation os OS X 10.6.5. I know it's a bad idea to directly upgrade the Python install, so I have installed Python 3.1 separately ...
1
vote
1answer
377 views

Using select.kqueue() to tell when file is modified in python?

How can I use select.kqueue() to find out when a file in a folder has been modified?
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 ...
5
votes
1answer
847 views

Installing Python 3.0 on my Mac

I'm using built-in Python 2.6.1, however, I need to run Python 3.0 from time to time. Is it OK to install Python 3.0 on my Mac? Is there anything that I need to be cautious? How about the ...