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

learn more… | top users | synonyms

1
vote
0answers
188 views

Changing color of text in terminal for program output

This might be answered already but I could not figure out a good way to phrase it to look for an answer so I hope you'll bear with me. I want to change the color of the text output on Terminal if it ...
1
vote
0answers
208 views

“brew install python” without Xcode in Snow Leopard

I've been able to get brew to install many packages on Snow Leopard using just the gcc library without installing all of Xcode. I had installed Python as well as PosgreSQL from the gui installer and ...
1
vote
0answers
79 views

Terminal appears to ignore autoproxyurl setting

I can't get easy_install to install anything as it complains it gets a connection refused.: Searching for BeautifulSoup Reading https://pypi.python.org/simple/BeautifulSoup/ Download error on ...
6
votes
4answers
9k 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 ...
1
vote
1answer
121 views

Mac OS X Terminal - While True Do - Can you stop automatically under desired conditions?

Currently I am using a following command: while true; do python [file]; sleep X; done I was wondering if I can stop the loop if the result prints a word that I'm looking for. Plus is it possible to ...
2
votes
2answers
144 views

Python script executable opened by text editor

I have a simple "Hello world" script that I want to turn into an executable. The problem is that even though I went through the steps of declaring the path of the Python interpreter in the first list ...
0
votes
0answers
88 views

Creating LaunchAgents to Customize Screensaver and Background

I'm building a series of images that will be deployed on a multitude of different Macs from 2007-2015 (and onward). The user accounts will the local-forced Active Directory accounts, so I'm making ...
0
votes
1answer
139 views

Migrating from Linux (Ubuntu, CentOS) to OS X (dev environment)

I'm about to migrate from Linux to OS X and I wonder if will encounter issues with development, as I probably will need lots of packages which are available in apt, yum package management systems. How ...
0
votes
1answer
196 views

How do I install SciPy and VisualPython on OSX Mavericks?

I am attempting to download and install both SciPy and VisualPython so that I can get them to work with each other. I've looked at the release notes for SciPy 0.14.0 and 0.15, and they appear to be ...
3
votes
1answer
5k 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
2k views

Uninstall virtualenv, Mac

When trying to run a command: pip uninstall virtualenv it raises an error: Exception: Traceback (most recent call last): File ...
1
vote
1answer
627 views

Homebrew says my Python installation could cause issues and I'm not sure what to do

I'm just getting started with web development and I'm trying to set up my environment, and I can't do that until Dr Homebrew has discharged me from N00bcake Hospital. This is what I'm getting: ...
1
vote
1answer
182 views

Restore whole system on 10.10 with time machine

I realized that I somehow deleted some very important files on my computer. I am working with QGIS and I deleted (in my python system's native folder) some eggs and other things which led to the ...
21
votes
4answers
28k 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 ...
0
votes
1answer
117 views

automator and python script utf-8 output

I wrote a python shell script and it fails in automator workflow : # -*- coding: utf-8 -*- import urllib, json, os, datetime import locale locale.setlocale(locale.LC_ALL, 'fr_FR') url = ...
1
vote
1answer
471 views

How to get correct file permissions from Macports pip installs?

Macports sets up the ownership of its Python site-packages directory as root.wheel with world-readable permissions. Python packages instally via port install have the same # ls -l -d ...
0
votes
0answers
98 views

How to use Numbers to generate pdf on a web server and then email it out?

I have an issue. My client loved the report I generated using Numbers on Mavericks OS X. The bad news is that the data is being processed on a ubuntu machine running python and django. I want to ...
0
votes
0answers
37 views

How to Keep Mac apps updated

Is their anyway to keep all apps installed on my mac updated? As soon as some new version for a particular app launches i get the update automatically. I checked few softwares but all of them are ...
1
vote
1answer
507 views

Correctly removing the default Python installation

I intend to replace the default Python installation with the one from Homebrew. Below is a list of steps that I want to take, but I first want to make sure that I'm not doing anything destructive, ...
1
vote
1answer
815 views

List of preinstalled Python packages in Yosemite?

I have installed many python packages via sudo pip install and some of them have messed up the system by overwriting or updating preloaded python packages. Now I want to revert all the damage done and ...
1
vote
1answer
157 views

Including Python Script Dependencies (virtualenv contents) in Platypus

I'm trying to turn a python script into a OS X App that you can run directly from Finder. I'm trying out Platypus, which seemed like the simplest option. The problem I'm running into is with the ...
2
votes
1answer
1k views

OSX 10.10 Python crashing from bash

When I run Python through bash it keeps seg faulting on me. The crash happens for example if I just type >>> "\n \n, but also for a lot of other cases. From my limited understanding of the ...
0
votes
1answer
341 views

Can't run Python script from anywhere, even after PATH variable was edited?

I was trying to set up my Mac to run custom Python scripts from anywhere without having to type python [script.py] or the explicit file path. The script is called "testscript". I put the script in ...
1
vote
1answer
594 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?
3
votes
1answer
599 views

Disabling the dialogs shown when opening an application for the first time on OSX

I am making an app on osx 10.9 using python 2.7. But when it is launched first time, warning comes. You are opening the application MYAPP for the first time. Are you sure you want to open this ...
2
votes
0answers
126 views

How can I customize the symlinks that MacPorts creates/deletes when using its `port select --set <group>` command?

I use MacPorts to manage certain *nix packages on my Mac. One such Mac has multiple Python versions installed. When I switch between Python versions, I use a command like: port select --set python ...
0
votes
1answer
278 views

Uninstalling PyGTK from macpkg on Mac OS X

I downloaded the pygtk pkg file from macpkg.sourceforge.net. I want to remove this installation and instead use the version that is provided by homebrew. What files do I need to remove?
0
votes
0answers
30 views

How to download via home-brew when connected though Internet dongle?

I wanted to download python on my Mac OS Mavericks. I found a blog which instructed to download it via home-brew using simple command brew install python But I am getting failed to download errors. ...
4
votes
2answers
364 views

What are the most convenient keyboard/keyboard layout for programming?

I do a bit of Objective-C, Matlab and Python, and start to get tired of the keyboard I use (AZERTY). It is far from being optimal as one need to press ALT+SHIFT+( to get [ for example. I think of ...
0
votes
2answers
19k views

Upgrading from OS X 10.8.5 to Yosemite: Potential challenges

I have a Macbook Pro with OS X 10.8.5 currently installed. I have the corresponding Xcode as 5.1. Now In order to use Swift we need Xcode 6 and above which is only available for OSX 10.9 or later. ...
0
votes
2answers
265 views

Mavericks firewall does not keep my choices

I'm on Mavericks and I run a python script to have a minimalist local server. Anytime I launch the server the firewall popup comes in and asks me "Do you want the application “python2.7” to accept ...
2
votes
2answers
244 views

Make a python program an application

I would like to make a Python program executable, like in Windows, when you use a program like cx_Freeze to make Python programs become .exe. I would like to do the same for Mac, I would like to make ...
0
votes
1answer
1k 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 ...
0
votes
1answer
315 views

python version 2.7.8 can't run /usr/bin/easy_install. Try the alternative(s):

I'm doing a bunch of python development and also just updated OS to Mountain Lion. I had replaced to original Python versions with Snow Leopard using the GUI from Python.org, then added links in ...
1
vote
1answer
8k views

What is the correct way to install python on OS X?

Im learning python programming, what is the correct way to install python on Mavericks 10.9?. Is it correct just to download the installer or use homebrew instead to install python?.
0
votes
1answer
821 views

Can I deploy my Django site to OS X Server?

I want to run my Django website on OS X Server 3.2.1 running on Mavericks. These more detailed considerations arise from my question. Can I deploy into OS X Server 3.2.1 without interfering ...
2
votes
1answer
167 views

Can my web app use a UNIX socket on OS X Server?

I'd rather have my Mavericks web app use a UNIX domain socket instead of a TCP port to effect a reverse proxy. I've tried using variants of the Apache syntax for UDS in the proxies section of the web ...
3
votes
4answers
15k 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
37 views

My computer will not recognize that python exists

I have opened python on my somewhat outdated Mac OS X in Snow Leopard 10.6.8 and although it was working fine earlier, my computer will not recognize that I am using python. When I click on the ...
1
vote
1answer
115 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
2answers
184 views

How to make an app as default opener for particular file extension

I am making an app in python named cipherc on mac osx 10.9 This app opens a file type of extension “.secure” Now, in local system, for already present .secure file, its default file opener is some ...
2
votes
4answers
658 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 ...
0
votes
1answer
754 views

Importing modules in python gives syntax error

Whenever I try to import modules from python source code files using the python shell(installed in brew folder), I get the following error : >>> from not import *; File "<stdin>", ...
1
vote
1answer
336 views

Why can't I install Python-Markdown?

I've had some weird issues with my python install recently but I've usually been able to get it working. However I'm running into a really bizarre issue right now where pip is installing things that ...
2
votes
1answer
1k views

Preview Not Opening File - Permissions Issue (via Python)

I have a Mac VM running Mavericks (10.9.3), and for various reasons I am trying to write a script in Python to automatically transfer a PDF file to the VM and open it in Preview. For anyone who ...
1
vote
1answer
1k views

Moving terminal version of python to homebrew version

python -V shows that I am on 2.7.7 but brew upgrade python shows I have 2.7.8 so clearly my terminal isn't looking at the Homebrew version. How do I fix this?
0
votes
1answer
222 views

broke my python easy_install how to fix?

Any idea how to fix: -bash: /usr/bin/easy_install: No such file or directory I kind of deleted it by accident before I realized that being behind a proxy was my issue not easy_install
0
votes
1answer
374 views

Problem running rst2html from command line

all. Long-time lurker, etc. I use MacPorts to manage my Python installation, and it has worked flawlessly until ... until this moment. And I am completely flummoxed. I am trying to teach myself ...
6
votes
2answers
2k 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 ...
0
votes
2answers
284 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 ...