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

learn more… | top users | synonyms

1
vote
1answer
16 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
29 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 ...
1
vote
1answer
49 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 ...
0
votes
2answers
86 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 ...
2
votes
2answers
683 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
0answers
43 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 ...
4
votes
1answer
1k 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
119 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, ...
7
votes
2answers
7k views

iTerm2 doesn't read com.googlecode.iterm2.plist

I am iTerm2 (1.0.0) user. I know how to create profiles, by using iTerm settings or modifying com.googlecode.iterm2.plist file. For convenience, I will use .plist to indicate ...
0
votes
1answer
25 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 ...
3
votes
2answers
1k 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 ...
0
votes
0answers
17 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
53 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
275 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
92 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
92 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 ...
0
votes
0answers
44 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
55 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
578 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
96 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
128 views

“brew install python” without Xcode 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 Xcode. I had installed Python as well as PosgreSQL from the gui installer and ...
1
vote
0answers
44 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 ...
6
votes
4answers
8k views

Python Virtualenv is broken since upgrading to OS X Mountain Lion

Since upgrading to Mountain Lion, when running the command "virtualenv env", I get: New python executable in env/bin/python Installing setuptools......... Complete output from command ...
1
vote
1answer
55 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 ...
2
votes
2answers
70 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
52 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
73 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
103 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 ...
3
votes
1answer
4k views

How to update Python on a Mac with Unix commands

After giving up on doing a disk partition and getting Linux, I decided to try and install Python 3.3.2 on a 32 bit Intel Core 2 Duo iMac with OS X 10.6.8 Snow Leopard. I did pretty much everything the ...
0
votes
1answer
662 views

Uninstall virtualenv, Mac

When trying to run a command: pip uninstall virtualenv it raises an error: Exception: Traceback (most recent call last): File ...
1
vote
1answer
286 views

Homebrew says my Python installation could cause issues and I'm not sure what to do

I'm just getting started with web development and I'm trying to set up my environment, and I can't do that until Dr Homebrew has discharged me from N00bcake Hospital. This is what I'm getting: ...
1
vote
1answer
142 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 ...
19
votes
4answers
23k views

How to get the fully resolved path of a symbolic link in Terminal?

I have a tangled mess of python installations on my laptop. I was looking at the executables in /usr/local/bin and they are all symbolic links to ../../../Library...... There's some weird behavior ...
0
votes
1answer
83 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
253 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
70 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 ...
0
votes
0answers
32 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
141 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
480 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 ...
2
votes
2answers
996 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 ...
1
vote
1answer
98 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 ...
2
votes
1answer
676 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
185 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 ...
1
vote
1answer
548 views

Using select.kqueue() to tell when file is modified in python?

How can I use select.kqueue() to find out when a file in a folder has been modified?
3
votes
1answer
478 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 ...
0
votes
0answers
120 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
79 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
71 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
179 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
29 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. ...