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

learn more… | top users | synonyms

-1
votes
1answer
20 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
13 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
34 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
77 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
26 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
30 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
19 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
45 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
32 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
31 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 ...
0
votes
0answers
16 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
35 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
10 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
0answers
29 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
23 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
50 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
71 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
84 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
76 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
64 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 > ...
1
vote
0answers
142 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 ...
1
vote
0answers
1k 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 ...
33
votes
9answers
22k 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
15 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
150 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
56 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
273 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 ...
2
votes
0answers
98 views

python2.7 cannot be opened because of a problem

Running into an odd issue when my system starts up: I have not been able to track the point of failure down yet. I assume that it is some application that is attempting to start at system startup, ...
1
vote
1answer
48 views

Running a script as root and presenting a GUI to logging in users

I am having a programming decision problem and hope, that you can show me a solution or tell me, if my plan on how to solve the problem would be okay or not. I am managing some macs and want to run ...
1
vote
1answer
77 views

No commands installed from pip work in Terminal

I've been learning python and tried to install pep8, restviewer and other command line apps but when i try to run them, it shows a command not found error. -bash: restview: command not found I've ...
0
votes
2answers
515 views

keeping python 3 up to date on a mac

I want Python 3 (and I do not want to mess with OS X provided python). According to: https://docs.python.org/3/using/mac.html I can get Python 3 and live long and prosper, BUT it is not clear what ...
1
vote
1answer
203 views

Can't install Python Modules

I'm running OSX 10.8.5 with python 2.7.10. When I run the following pip install pyodbc I get the following error message. Error Message: Command ...
4
votes
1answer
349 views

How best to isolate my development environment on OS X?

What is the current best practice for setting up a development environment on OS X? I recently got a new Mac with OS X 10.10, Yosemite. I'm familiar with homebrew, and from my Linux experience, ...
0
votes
1answer
26 views

How to minimise the terminal automatically when it is running a shell script?

I have a shell script which runs a Python Program. I created the shell script so that the users of my program may simply double click it to run my program. When the shell script is executed; the ...
0
votes
0answers
44 views

Vim Caught deadly signal SEGV

More frequent than I would like my vim crashes with the terminal prompting Vim: Caught deadly signal SEGV. I use vim with the pyflakes plugin to edit python scripts. The vim is the standard ...
1
vote
3answers
101 views

Problem: How to clear all remnants of random.py, random.pyc, and random.pyo that isn't part of Python's standard library?

I wrote an import random code, and unfortunately saved it as the module's name I was trying to call. eg. random.py I believe, but am not sure, that I created the random.py file twice and thus I ...
0
votes
0answers
638 views

Open ipynb files by double clicking: Have custom items

I have been able to work out a method of opening IPython Notebook files (.ipynb) by double clicking on them using a combination of a python script and Automator.app. The python script is ...
0
votes
1answer
350 views

Warnings when installing pip

I just installed pip and got a few warning messages. Should I be concerned? Is there a way to check that pip was installed properly? Here's what I did: [mchenja@mycomp ~]$ sudo easy_install pip ...
0
votes
0answers
88 views

os.Popen command is not working

I'm writing a python script that is suppose to change default display settings for all users. I run the script as sudo because it needs to change every display. This line is suppose to change the ...
1
vote
0answers
129 views

Problem with Livestreamer after updating Python to 3.4

After upgrading to Python 3.4 i get this message when trying to use livestreamer: /usr/local/bin/livestreamer: line 3: __requires__: command not found /usr/local/bin/livestreamer: line 4: import: ...
5
votes
2answers
1k views

Do I need to reinstall OS X after accidentally removing Python?

I managed to delete my python in usr/bin by foolishly doing sudo rm /usr/bin/python and now it seems like I need to reinstall my OS. First off is this necessary? And secondly is there an easy way to ...
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
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 ...
0
votes
0answers
207 views

How do I change the dock and ⌘-tab icons for Spyder (basically a Python script) on a Mac?

I have a little bash script that runs Spyder, a Python IDE, courtesy of this question. The purpose of the bash script is to be accessible via Quicksilver and the Finder. The same answer also tells me ...
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 ...
1
vote
0answers
57 views

can't commit network settings via command line

I'm writing a Python script that changes network settings with commands like networksetup -setv4off 'PANTECH UML295' and networksetup -setdhcp 'PANTECH UML295'. When I enter these in Terminal, I enter ...
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 ...