Setup on Mac
Pages 37
- Home
- Assorted OctoPrint Quick Tips
- Available Events
- Configuration
- Configuring Access Control
- Control your printer's ATX PSU through a RAMPS board using OctoPrint
- Controlling a relay board from your RPi
- Cookbook: Custom Controls
- Cookbook: System Commands
- Cookbook: Useful Eventhooks
- Cura Integration
- Dependencies supported in Python 3
- FAQ
- How to file a bug report
- How to request new features for OctoPrint
- MJPG Streamer configuration
- OctoPrint support for 250000 baud rate on Raspbian
- octoprint.server ERROR Uncaught exception
- Plugin: Cura
- Plugin: Discovery
- Plugin: Plugin Manager
- Plugin: Software Update
- REST API
- Reverse proxy configuration examples
- Setup BeagleBone Black Rev C (Jessie)
- Setup OctoPrint with Smoothie
- Setup on a Cosino with Mega 2560 extension running Debian
- Setup on a Raspberry Pi running Raspbian
- Setup on BeagleBone Black running Ångström
- Setup on Mac
- Setup on OUYA and other Android devices
- Setup on Raspberry Pi running Minibian
- Setup on Windows
- Supported Printers
- Translating OctoPrint
- Wanted: Help!
- Webcams known to work
- Show 22 more pages…
OctoPrint for Mac
Note: These installation instructions are based on the steps I (@foosel) took in order to get OctoPrint up and running on a MacMini running OS X 10.9.5. I'm an absolute beginner when it comes to Macs (I'm at home on Linux and Windows), so please improve these instructions where necessary - this is a wiki anyone with a Github account can edit, so please, contribute!
The old instructions can still be found in the history of this page but were very much outdated by now.
Preparation
Must be performed with a user with Administrative privileges.
Requires the latest version of Xcode suitable for your OS X. For example, OS X 10.11 (El Capitan) requires Xcode 7. Specifically, this is to ensure that locally compiled components of Python libraries (such as
pyobjc) can be installed successfully.
Install Xcode's Command Line Tools
-
xcode-select --install– this may ask you to accept the Xcode user license. It doesn't hurt to also run
sudo xcodebuild, to be sure the license acceptance process completed.-
If you have more than one version of Xcode installed (unlikely -- you will know if you do) then ...
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
Install Homebrew and use it to install Python
A version of Python is already installed within OS X. However, it's best to run with a more actively maintained, up to date and community supported version. OctoPrint employs Python 2.7, the default version installed by Homebrew, as follows:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"brew install python
Install virtualenv
We utilize virtualenv to maintain an isolated Python environment for OctoPrint development. This prevents other, global Python libraries or updates from breaking OctoPrint. While not strictly required, virtualenv can save us from headaches, down the road. See the virtualdev docs for more detail.
pip install virtualenv
Installing OctoPrint
git clone https://github.com/foosel/OctoPrint.gitcd OctoPrintvirtualenv venv-
source venv/bin/activate(assumes you're using the default BASH shell.active.cshis also available.) pip install -U pyobjcpython setup.py install
Running OctoPrint
-
cd OctoPrint– the folder created from the above,git clone source venv/bin/activateoctoprint
or
path/to/OctoPrint/venv/bin/octoprint
Updated 2016-06-05 by @gruvin. Corrections welcomed!