Tag Info

New answers tagged

2

Check if /usr/local/bin is in your PATH and that it's before /usr/bin. In the terminal: echo $PATH I believe brew doctor will warn you about this if it's not. Basically, if it's not, the system will look in /usr/bin first instead of /usr/local/bin, which is where homebrew links everything. For bash, you just need to add: export ...


0

I have tested this a bit in my free time today, and it seems that subprocess.call(['open','-a','Preview',path]) is your best option for opening PDFs in Preview from Python. I'm still not sure why using the absolute path to Preview doesn't work, though. I am trying to find a way to get a process PID based on its window title in AppleScript. For example, if ...


1

easy_install is part of setuptools. There's a handy script to bootstrap it: curl https://bootstrap.pypa.io/ez_setup.py -o - | python You may need to put sudo before python if it throws a permissions error. There's a few more details here: https://pypi.python.org/pypi/setuptools#installation-instructions but that one-liner should do the trick in most ...


0

Try port contents py27-docutils | grep rst2html. It will tell you there's a /opt/local/bin/rst2html-2.7.py file, i.e. you can run rst2html-2.7.py on your command line. The additional -2.7 in this filename is necessary to avoid conflicts between the different py*-docutils packages for different versions of python, e.g. if you want both the 2.7 and the 3.4 ...


0

You can manually configure the firewall to unblock a port (i.e. 8080). You'll need to open /etc/pf.conf in a text editor and add: pass in proto tcp from any to any port 8080 to the end of the file (for port 8080, adjust to suit your needs). Then restart your computer. If that doesn't work run: $ sudo pfctl -vnf /etc/pf.conf to see if you get an error. ...


-1

I would reinstall the OS from the boot DVD or recovery partition. This will put the Apple python back. This is the only place where the correct python executable is anywhere else but apple supplied media will have a different python on - e.g. it will have its framework in a different place I would not use any non apple supplied python for use in Apple tools ...


1

I had this same issue after i uninstalled the version of Python that came with the Mac OS and installed a new version with homebrew. I fixed it by creating a symlink from where iPhoto thought python was suppose to be and where python actually was. Since I installed python with homebrew, the relevant python directory lived here: ...


1

Ok, I've tried this again on a fresh install of everything and have it working. Here are the details Step 1. In OSX Server, turn on Python in Websites Step 2. Install the eyefi software. They put the software on the card, so you just need to look for it there and run the installer. Step 3. Using the eye-fi helper software, setup the preferences for card ...



Top 50 recent answers are included