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

learn more… | top users | synonyms

3
votes
1answer
37 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 ...
2
votes
1answer
317 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/: ...
2
votes
1answer
758 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 ...
2
votes
1answer
386 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
260 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
333 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
45 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
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
589 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 ...
3
votes
0answers
133 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
515 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, ...
2
votes
0answers
449 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 ...
1
vote
0answers
12 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 ...
1
vote
0answers
39 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 ...
1
vote
0answers
208 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 ...
1
vote
0answers
310 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 ...
1
vote
0answers
171 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?
0
votes
0answers
46 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
0answers
41 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 ...
0
votes
0answers
12 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
0answers
58 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 ...
0
votes
0answers
39 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
31 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
0answers
273 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 ...
0
votes
0answers
620 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
0answers
353 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 ...