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

learn more… | top users | synonyms

0
votes
1answer
12 views

Python 3.4 + installed, python program that requires it still not running?

I am trying to run a python program, I installed python, 3.5 but it still says. requires Python 3.4 or newer. When ever I try and start it, am I doing something wrong? I installed python via the ...
0
votes
0answers
14 views

“config” scripts exist outside your system or Homebrew directories

I'm currently using pyenv and pyenv-virtualenv, which i've installed via Homebrew. I've added if which pyenv > /dev/null; then eval "$(pyenv init -)"; fi to enable shims and autocompletion and if ...
0
votes
1answer
80 views

How to install specific version of python on OS X

I need to install python3.4 on my OS X. Tried to do it with brew install python3 and now I have python 3.5.1. But I need py3.4. How can I install python3.4 on my Mac?
0
votes
0answers
16 views

Spyder IDE App does not start on MacBook Pro mid 2010

So as I got a new Project in University, I was recommended to code on my Mac with Spyder which is an IDE for Python, especially for scientific computing. I am not that of a Power User so I just tried ...
1
vote
1answer
31 views

The terminal on my Mac does not work anymore after installing Python & Sublime Text

I was trying to install Python3, and Sublime Text 3 in order to learn and run Python. Unfortunately, I watched some videos on youtube and tried to follow their instructions, I did something with my ...
0
votes
2answers
40 views

How to color the Python syntax in nano

I have been using nano a lot recently to code on Python. I have been flying by on it all until this little stump, no color... it makes it harder to know if you got the syntax right and harder to code! ...
0
votes
1answer
52 views

How to clean pip installed packages on MacOSX?

I try to remove all pip installed packages from MacOSX. I'm doing it to ensure I'm using homebrew pip from now on (to avoid problems with SIP). Following zsh loop removed most of them, but some ...
0
votes
1answer
41 views

Python 2.6 and 2.7 in Mac OS X

In my /usr/bin, the following is the result of ls -al python*: -rwxr-xr-x 1 root wheel 66480 Dec 3 01:36 python -rwxr-xr-x 5 root wheel 925 Aug 22 2015 python-config lrwxr-xr-x 1 root ...
0
votes
1answer
74 views

Calling Python 3 script from AppleScript

I have a Python 3 script that I'd like to add as a Service using Automator. The idea is that I can right click on a text file, and an option will display to run my script on said file. The shebang ...
0
votes
0answers
20 views

Hide files of single extension from command line in Python

My script is as follows (and used to work but no longer does): #!/usr/bin/env python # encoding: utf-8 import os, subprocess path = "/path/to/dir/" # write your own path here hide_files = True for ...
0
votes
0answers
164 views

How to Install PIL in El Capitan with Pip?

I would like to install PIL by Pip but the code is unsuccessful pip install PIL Collecting PIL Could not find a version that satisfies the requirement PIL (from versions: ) No matching distribution ...
1
vote
1answer
126 views

Mac OS X Terminal creates zero byte files

I'm a font developer. I want to merge a DSIG code into a TrueType format (TTF) font, which makes it compatible with Microsofts applications that use OpenType features. I have had this working before ...
0
votes
0answers
26 views

Script, Workflow, or shortcut to change URL

My work has a proxy service that I need to use to access certain websites. Basically it adds extra parts the website url (after I've logged in)- I need to add something like proxy.go.com right before ...
0
votes
0answers
22 views

Running brew doctor shows I have 3 different python “config” scripts installed. How do I get rid of them so that I no longer receive this warning?

I have been told that there is a default Python installed on OSX, and that deleting it will cause SEVERE system issues, however, I want to clear these warnings in brew doctor. This is what the ...
1
vote
1answer
64 views

Homebrew and usr/local/include/ question

I am trying to install python3 with homebrew and I would like to know if I can delete these files. After running brew doctor, I get this message: Unexpected header files: ...
1
vote
0answers
50 views

How do you homebrew cleanup except to skip specified formula?

In Homebrew, to clean up outdated packages, we do brew cleanup, and currently I have about 9.5GB worth of old packages, pending for removal. However, I really do not like to remove old python ...
0
votes
0answers
134 views

Pygame Error- Deprecated Carbon Component Manager Error

I'm trying to use Pygame for school and up until now I have been using Linux and Window, but I recently tried using it on OSX, and now I'm getting this error:2016-02-29 10:40:47.196 Python[1092:16106] ...
0
votes
2answers
46 views

Python socket program taking forever to run

I tried to run following program on my Mac terminal. import socket mysock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) mysock.connect(('www.py4inf.com', 80)) mysock.send('GET ...
1
vote
0answers
35 views

Apple Server.app not showing website

I have tried to host a Django WebApp (app.example.com) following this tutorial: http://jelockwood.blogspot.de/2013/06/running-django-webapps-with-os-x.html The WebApp will be hosted next to a ...
0
votes
1answer
127 views

Issue with Homebrew when trying to parallelly install Python 3.x

I am trying to install Python v.3.x in parallel with the already installed Python v.2.7.10. I'm following the procedure explained in this tutorial which I found on YouTube. Despite it seems not an ...
1
vote
1answer
71 views

Trouble Installing Pygame on Mac - error code 255 in None

I need to install pygame on my MacBook for a class, I was able to get it installed fine on my Windows machine, but the OSX installation process has been much rougher. The error I'm getting when try ...
3
votes
1answer
123 views

TextWrangler running Python 2.7 after I removed it from my Mac

I have removed Python 2.7 from my machine, using instructions provided here: How to uninstall Python 2.7 on a Mac OS X 10.6.4? (Using the top voted/accepted answer's instructions) However, when I run ...
-1
votes
1answer
120 views

Can’t install scikit-learn for python on Mac - wrong directory

I’m tearing my hair out! (Not much left!) When I run easy_install -U scikit-learn as admin I get the following error: Admin$ easy_install -U scikit-learn error: can't create or remove files in ...
0
votes
0answers
80 views

use python to mount smb share from osx including special characters in the password field

I've seen plenty of scripts for mounting a smb share in osx via terminal and python. I'm working toward the python solution using the answer at the end of this similar question. The only issue I ...
1
vote
1answer
76 views

Cannot bind 127.0.0.123 to tcp socket python

I'm trying to learn TCP sockets for my project. I will be using them to transfer files between computers. The server client combo copied from some tutorial runs fine as long, as the ip I'm trying to ...
0
votes
0answers
277 views

I get a permission denied error when trying to run pip

I am trying to run the following command: pip install -U pip setuptools However, I get this error output: Requirement already up-to-date: pip in /Library/Python/2.7/site-packages Collecting ...
0
votes
0answers
75 views

Google Earth Pro randomly crashing on El Capitan (“EXC_BAD_ACCESS (SIGSEGV)”)

And I do mean randomly, sometimes I do the exact same thing and I can't reproduce this error, but it happens enough to make me look like an amateur at work sometimes. It didn't do this in Mavericks I ...
3
votes
1answer
47 views

Python-based app requires bypassing 'unknown developer' warning

Using a Python utility called py2app, I've built a distributable .app. from a Python-based project. It launches fine (when double-clicked) on my own machine, yet when tried elsewhere (other users on ...
0
votes
0answers
32 views

Upgrading from Python to 2.7.10 to 2.7.11 on OSX

How can I upgrade Python from 2.7.10 to 2.7.11 on OSX (Yosemite)?
2
votes
2answers
230 views

pygame installed through homebrew does not work?

I ran brew install pygame, it installed it together with all the dependencies. Python v2.7.10 / OS X version 10.11.2 Whenever I import pygame in a script it says this Traceback (most recent call ...
1
vote
0answers
64 views

Will upgrading to 10.11 restore tkinter or do I need to reset to factory settings?

It is my understanding that OS X comes with some sort of tkinter already installed. I believe I deleted this while trying to restore matplotlib (see my current problem posted to SO). If I upgrade from ...
0
votes
0answers
45 views

TV show filename format for automatic handling by iTunes

Is there a format of filenames for TV show mp4 files, such as 'S#E# - EpisodeTitle.mp4' that iTunes detects and automatically update the metadata and sort the files accordingly in my library? I hate ...
1
vote
0answers
50 views

cv2 module not found

I installed OpenCV 2.4.X using Homebrew on my MacBook Pro OS X El Capitan, but when I try to run a program in Python 2.7.X I get this error: ImportError: No module named cv2 I have looked ...
1
vote
1answer
106 views

How do I tell the MacPorts Python to look in /opt/local/lib for dylibs?

I'm running a Python script with the MacPorts version of Python (2.7), i.e, I've run: port select --set python python27 However, when I run my script, it can't find a dylib in /opt/local/lib: ...
0
votes
0answers
20 views

How to figure out which exact python app regularly results in crashes of Python.app?

I have several python (server) apps running on my Macbook. One of them regularly crashes on my system, resulting in a desktop notification popup with the message: Python quit unexpectedly. Checking ...
2
votes
1answer
49 views

Force a specific version of a framework for a process

So I think it's known that OS X 10.10.5 breaks calendar server because of incompatibilities between the version of Python on 10.10.5 and a specific part of the Calendar Server. It does work in 10.10.3 ...
2
votes
0answers
25 views

How to debug .app that only successfully launches from Terminal?

Recently, my Dropbox.app stopped launching correctly. If I double-click on the app or try to launch via spotlight, the app just silently dies within a second. I see it show up in Activity Monitor, but ...
1
vote
2answers
61 views

The “python” CLI executable seems to ignore path hierarchy

I have the following strange situation on my (freshly installed El Capitan, otherwise empty) Mac. I noticed that /usr/bin/python defaults to python 2.7 (still), and the new SIP security system ...
0
votes
1answer
143 views

How do I open a file in textwrangler?

I'm learning how to code in Python using TextWrangler as my text editor (using OS X), and I've been unable to open any files. Here's how I want to open the files: file = open("genomic_dna.txt") ...
1
vote
1answer
265 views

Is Xcode the ideal IDE for most development needs, or is app/web/shell/script development not as narrowly approached? [closed]

I'm pretty fluent in the basics of web based languages i.e., HTML(5), CSS(3), php, MySQL, Javascript; although now I'm diving deeper and starting to tackle scripting (Mostly Python and Ruby) & ...
0
votes
1answer
96 views

Can this model of MacBook Pro satisfy my scientific needs?

I've recently decided to buy a 13-inch MacBook Pro. Although this costs me a lot, first-time experiencing this machine could be very interesting for me. Its weight is the other reason that attracts ...
0
votes
0answers
91 views

running python script of global keyboard shortcut in OSx

Hi I wrote a python script to get the size of the file of which I have URL I copied from browser or anywhere; I wanted to create a global keyboard shortcut so I tried to create using Automator > ...
2
votes
0answers
253 views

Command line tool for interacting with Bluetooth Low Energy devices, similar to gatttool

I've just found out that some Python code I've got working on Linux also needs to work on OSX. For reliability reasons, on Linux I've been using a cludgy but effective approach to reading and writing ...
2
votes
3answers
3k views

Linking python as external build tool in Xcode 7 El Capitan

I have been using Xcode 7 as my default python editor for some time now. The usual method to run python from Xcode is given here ...
55
votes
9answers
51k views

How to use pip after the El Capitan Max OS X upgrade?

After the El Capitan update, I am unable to run pip install. The error I get is that the "operation is not permitted" when pip tries to create new folders while installing. creating ...
0
votes
0answers
15 views

How can I install Dedalus using MacPorts?

Ive installed all the necessary MacPorts versions of the dependency packages listed on this page. When I run the bash install.sh installation script, it fails while installing scipy (which...I've ...
0
votes
0answers
16 views

Folder as Volume workflow

I need a way to take any local folder and make it behave just as a local mount drive. I have been using symlinks in the Volumes/ folder, but they need to be recreated after reboot. I need a solid ...
0
votes
0answers
224 views

Why is OSX python sys.path influenced by how python executed from the shell?

Using: OSX 10.10.5 (Yosemite) Python 2.7.10 (installed via the latest System update). XCode is installed. Using bash. Running from a bash shell, I found this surprising behavior I don't ...
0
votes
1answer
73 views

Python interpreter crashes on execution

having bought my first macbook I am not very experienced in debugging the libraries and a bit at a loss. Upon execution of my python script the following error report shows up: Process: ...
4
votes
1answer
491 views

Using python screws up the shell (and/or terminal?)!

The problem Simply opening and closing the Python sub-shell screws up my shell (or possibly the terminal?). It seems to remove the shell's ability to print any text I enter, including newlines after ...