Skip to content

Instantly share code, notes, and snippets.

@foofoodog
Last active August 29, 2015 14:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save foofoodog/7d89065858df68aa875c to your computer and use it in GitHub Desktop.
Save foofoodog/7d89065858df68aa875c to your computer and use it in GitHub Desktop.
Rip and replace OctoPrint
#!/usr/bin/env bash
cd ~
sudo service octoprint stop
sudo rm -Rf OctoPrint
sudo rm -Rf .octoprint
sudo apt-get update
sudo apt-get -y upgrade
sudo apt-get -y install python-pip python-dev python-setuptools python-virtualenv git libyaml-dev
git clone https://github.com/foosel/OctoPrint.git
cd OctoPrint
virtualenv --system-site-packages venv
./venv/bin/python setup.py install
mkdir ~/.octoprint
sudo usermod -a -G tty pi
sudo usermod -a -G dialout pi
sudo service octoprint start
2015-08-08 21:19:18,975 - octoprint.server - INFO - Starting OctoPrint 1.2.0 (master branch)
2015-08-08 21:19:19,011 - octoprint.plugin.core - INFO - Loading plugins from /home/pi/.octoprint/plugins, /home/pi/oprint/lib/python2.7/site-packages/OctoPrint-1.2.0-py2.7.egg/octoprint/plugins and installed plugin packages...
2015-08-08 21:19:20,944 - octoprint.plugins.discovery - INFO - pybonjour is not installed, Zeroconf Discovery won't be available
2015-08-08 21:19:20,951 - octoprint.plugin.core - INFO - Found 6 plugin(s) providing 6 mixin implementations, 1 hook handlers
2015-08-08 21:19:20,974 - octoprint.filemanager.storage - INFO - Initializing the file metadata for /home/pi/.octoprint/uploads...
2015-08-08 21:19:20,979 - octoprint.filemanager.storage - INFO - ... file metadata for /home/pi/.octoprint/uploads initialized successfully.
2015-08-08 21:19:26,491 - octoprint.util.pip - INFO - Found pip at /home/pi/oprint/bin/pip, version is 1.1
2015-08-08 21:19:26,503 - octoprint.plugin.core - INFO - Initialized 6 plugin(s)
2015-08-08 21:19:26,590 - octoprint.plugin.core - INFO - 6 plugin(s) registered with the system:
| CuraEngine (bundled) = /home/pi/oprint/lib/python2.7/site-packages/OctoPrint-1.2.0-py2.7.egg/octoprint/plugins/cura
| Discovery (bundled) = /home/pi/oprint/lib/python2.7/site-packages/OctoPrint-1.2.0-py2.7.egg/octoprint/plugins/discovery
| Plugin Manager (bundled) = /home/pi/oprint/lib/python2.7/site-packages/OctoPrint-1.2.0-py2.7.egg/octoprint/plugins/pluginmanager
| STL Viewer (0.2.0) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_stlviewer
| Software Update (bundled) = /home/pi/oprint/lib/python2.7/site-packages/OctoPrint-1.2.0-py2.7.egg/octoprint/plugins/softwareupdate
| Virtual Printer (bundled) = /home/pi/oprint/lib/python2.7/site-packages/OctoPrint-1.2.0-py2.7.egg/octoprint/plugins/virtual_printer
2015-08-08 21:19:26,630 - octoprint.filemanager - INFO - Adding backlog items from all storage types to analysis queue...
2015-08-08 21:19:26,634 - octoprint.filemanager - INFO - Added 0 items from storage type "local" to analysis queue
2015-08-08 21:19:28,515 - requests.packages.urllib3.connectionpool - INFO - Starting new HTTP connection (1): plugins.octoprint.org
2015-08-08 21:19:28,567 - octoprint.plugins.pluginmanager - ERROR - Could not fetch plugins from repository at http://plugins.octoprint.org/plugins.json: ('Connection aborted.', gaierror(-2, 'Name or service not known'))
Traceback (most recent call last):
File "/home/pi/oprint/lib/python2.7/site-packages/OctoPrint-1.2.0-py2.7.egg/octoprint/plugins/pluginmanager/__init__.py", line 475, in _fetch_repository_from_url
r = requests.get(repository_url)
File "/usr/local/lib/python2.7/dist-packages/requests-2.7.0-py2.7.egg/requests/api.py", line 69, in get
return request('get', url, params=params, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/requests-2.7.0-py2.7.egg/requests/api.py", line 50, in request
response = session.request(method=method, url=url, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/requests-2.7.0-py2.7.egg/requests/sessions.py", line 465, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python2.7/dist-packages/requests-2.7.0-py2.7.egg/requests/sessions.py", line 573, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/requests-2.7.0-py2.7.egg/requests/adapters.py", line 415, in send
raise ConnectionError(err, request=request)
ConnectionError: ('Connection aborted.', gaierror(-2, 'Name or service not known'))
2015-08-08 21:19:28,611 - octoprint.server - INFO - Listening on http://0.0.0.0:5000
2015-08-08 21:19:28,629 - octoprint.plugins.stlviewer - INFO - STL Viewer loaded!
2015-08-08 21:21:36,481 - octoprint.plugins.cura - INFO - Path to CuraEngine has not been configured yet or does not exist (currently set to None), Cura will not be selectable for slicing
2015-08-08 21:21:37,281 - octoprint.server.util.sockjs - INFO - New connection from client: 192.168.1.3
2015-08-08 21:21:59,312 - requests.packages.urllib3.connectionpool - INFO - Starting new HTTPS connection (1): api.github.com
2015-08-08 21:21:59,369 - py.warnings - WARNING - /usr/local/lib/python2.7/dist-packages/requests-2.7.0-py2.7.egg/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
2015-08-08 21:21:59,961 - octoprint.plugins.softwareupdate - INFO - Saved version cache to disk
2015-08-08 21:24:53,350 - octoprint.plugins.softwareupdate - WARNING - Cannot perform update for octoprint, update type is not fully configured
2015-08-08 21:24:53,431 - octoprint.plugins.softwareupdate - INFO - Saved version cache to disk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment