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

learn more… | top users | synonyms

1
vote
1answer
36 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 ...
0
votes
0answers
19 views

Uninstall virtualenv, Mac

When trying to run a command: pip uninstall virtualenv it raises an error: Exception: Traceback (most recent call last): File ...
0
votes
1answer
32 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 = ...
0
votes
1answer
41 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
25 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 ...
1
vote
0answers
31 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
24 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
33 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
45 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 ...
0
votes
1answer
55 views

No package 'libffi' found in Homebrew Virtual Environment

I'm using a homebrew installation of python and getting an error using pip within a virtualenvwrapper environment: No package 'libffi' found Package libffi was not found in the pkg-config search ...
1
vote
1answer
261 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
59 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 ...
0
votes
0answers
86 views

not able to run python programs on OSx maverics

I need help in fixing segmentation fault 11 error I keep getting whenever I import something in python commandline. I would really appreciate your help, I am not able to practice coding at home due ...
1
vote
0answers
37 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
0answers
35 views

How to make macvim recognise framework python in OS X?

By default, the sys.path of python in terminal vim and sys.path of python in macVim is different. In both environment, :python print sys.path in terminal vim returns: ...
0
votes
1answer
45 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
26 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. ...
3
votes
1answer
454 views

Install and import site-packages for Python 2 and 3 on Mac

I installed brew and then brew install python brew install python3 Install flask with pip pip install flask Try python -c 'import flask' But I got exception ImportError: No module named ...
1
vote
1answer
38 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 ...
0
votes
2answers
5k 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
0answers
96 views

NumPy installed- not importing, Yosemite

Recently upgraded to Yosemite. This is what I get when I try importing numpy $ python -c 'import numpy' Traceback (most recent call last): File "", line 1, in ImportError: No module named numpy ...
0
votes
2answers
115 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
58 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
162 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 ...
0
votes
1answer
316 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 ...
1
vote
0answers
62 views

brew install python without x code 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 X-Code. I had installed Python as well as PosgreSQL from the gui installer and ...
3
votes
1answer
346 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 ...
4
votes
2answers
146 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 ...
2
votes
1answer
48 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 ...
0
votes
0answers
94 views

Locally created excel file does not open in Numbers

I have a local process which creates an excel file using the python library openpyxl. I am not able to open the file in Numbers. When I try I receive the simple message "filename can't be opened." I ...
1
vote
1answer
36 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 ...
0
votes
2answers
89 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 ...
0
votes
1answer
318 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
113 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 ...
1
vote
1answer
578 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?
2
votes
1answer
736 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 ...
0
votes
1answer
85 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
2
votes
2answers
549 views

How can I tell Firewall to allow incoming connections for Python.app running Django

Each time I run my Django development server, I get a dialog to allow incoming connections. No matter what I do : Click Allow in the dialog box Add to the Firewall via the OS X GUI (both real and ...
0
votes
1answer
158 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 ...
1
vote
1answer
3k 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
0answers
15 views

Closing a pygame program causes f.lux to flicker

I am running OSX 10.9.3, with Python 2.7.5 (The default one Python that comes with it). I am using pygame 1.9.2 installed from pygame-1.9.2pre-py2.7-macosx10.7.mpkg.zip at ...
0
votes
1answer
49 views

Show today’s anniversaries (if any) from contacts

I would like to be able to run a script which would look through my Contacts list and output the name (and, preferably, phone number) of anyone whose ‘Anniversary’ date matches today. (The script ...
0
votes
0answers
107 views

Making .py files open in Spyder

I'd like to have double-clicking on a .py file on my Mac open with file in Spyder. There doesn't seem to be support for this built into Spyder (see here, here, and here). But is the effect achievable ...
1
vote
0answers
232 views

Error when installing PyObjC on OS X 10.9.3 (Mavericks)

pip install -U pyobjc returns Command python setup.py egg_info failed with error code 1 in /private/var/folders/1l/tt74p_z93j9d07418vkyrj6c0000gn/T/pip_build_henry/pyobjc-framework-AddressBook ...
3
votes
2answers
465 views

iTerm2, unicode and sympy

In my both Mac (OS X Mavericks) and Ubuntu machine, I have installed sympy that is a python library for symbolic mathematics. Part of sympy is the pretty print functionality that uses unicode ...
1
vote
0answers
395 views

Segmentation fault: 11 error ( OpenCV )

I've installed OpenCV, numpy and all other required contents using brew install opencv. Then I tried running it python >> import cv or python >> import cv2 but I get a "Segmentation ...
7
votes
0answers
26k views

How to install command line developer tools in Yosemite? [closed]

I am trying to install xcode developer tools via this command: xcode-select --install and I have this error: "Can't install this software because it is not currently available from the Software ...
0
votes
1answer
794 views

How run a .py (python?)-script in Xcode?

Hi I got the complete code, but I don't know how to run the script. The script is some plot of a function, can one run the script so that the plot is shown in xcode?
1
vote
1answer
392 views

Go to Line keyboard shortcut in Python editor IDLE?

In the Python editor IDLE I can do "Edit > Go to Line", but when I try cmd+j (alt+g on Windows), then IDLE freezes. How can I go to line in IDLE on Mac?
3
votes
1answer
3k 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 ...