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

learn more… | top users | synonyms

0
votes
0answers
5 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
48 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
15 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 ...
2
votes
0answers
40 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 ...
3
votes
1answer
66 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
24 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
10 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
29 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
42 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
37 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
60 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
82 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
275 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
34 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
1
vote
1answer
182 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
61 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 ...
0
votes
1answer
828 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
10 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
40 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
33 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
188 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 ...
2
votes
2answers
136 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
234 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 ...
4
votes
0answers
14k 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
509 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
218 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?
2
votes
1answer
1k 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
74 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 ...
3
votes
2answers
344 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
44 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
400 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
198 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 ...
3
votes
1answer
464 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, ...
2
votes
0answers
403 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 ...
0
votes
0answers
31 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
29 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 ...
1
vote
1answer
59 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
67 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?
2
votes
1answer
237 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/: ...
0
votes
3answers
643 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 ...
1
vote
1answer
93 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
156 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 ...
0
votes
2answers
114 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
255 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
376 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 ...
2
votes
1answer
654 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
180 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 > ...
1
vote
1answer
143 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 ...
1
vote
2answers
732 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, ...
3
votes
2answers
115 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 ...