Setup IDE
OllisGit edited this page Mar 14, 2022
·
23 revisions
See https://github.com/OllisGit/OctoPrint-KnowledgeBase/wiki/Setup-IDE#pre---condition-setup
http://docs.octoprint.org/en/master/plugins/gettingstarted.html https://github.com/foosel/OctoPrint/wiki/Setup-on-Windows
Make sure you have the right python version (current 2.7.9)
$ cd ~/devel
$ git clone https://github.com/foosel/OctoPrint
[...]
$ cd OctoPrint
$ virtualenv venv
[...]
$ source venv/bin/activate
(venv) $ pip install -e .[develop,plugins]
if not working, try:
(venv) $ pip install -e .
[...]
(venv) $ octoprint --help
Usage: octoprint [OPTIONS] COMMAND [ARGS]...
start octoprint:
(venv) $ octoprint serve
$ deactivate
$ pip install pip --upgrade
$pip install https://get.octoprint.org/latest
$ octoprint serve
or
$ OctoPrint serve
Open Browser: http://localhost:5000/
Add Run Configuration
Select "Python" and press +
Name: OctoPrint Server
Script path: /Users/o0632/0_Projekte/3DDruck/OctoPrint/octoprint_latest/run
Parameters: serve --debug
Python interpreter: Python 2.7 (venv)
for Python 3 you need to add an Environment-Variable: ;LC_ALL=de_DE.utf-8
Working directory: /Users/o0632/0_Projekte/3DDruck/OctoPrint/octoprint_latest
External tool: Update dependencies
Programm: /Users/o0632/0_Projekte/3DDruck/OctoPrint/octoprint_latest/venv/bin/pip
Arguments: install -e .[develop,plugins]
Working dir: $ProjectFileDir$
https://docs.octoprint.org/en/master/development/virtual_printer.html ATTENTION: Virtual Printer Toolcount = 3
edit in config.yaml
in OctoPi you can find the file here: /home/pi/.octoprint/config.yaml
# Settings only relevant for development
devel:
virtualPrinter:
enabled: true
forceChecksum: false
okAfterResend: false
okWitchLinenumber: false
webassets:
bundle: false
minify: false
edit in config.yaml
server:
ignoreIncompleteStartup: true
startOnceInSafeMode: false
...
(venv) $ octoprint serve --safe
https://github.com/pyenv/pyenv
brew update
brew install pyenv
echo 'eval "$(pyenv init --path)"' >> ~/.zprofile
echo 'eval "$(pyenv init -)"' >> ~/.zshrc
Restart your login session for the changes to profile files to take effect.
pyenv install 3.7.3
pyenv global 3.7.3
~ » python --version
Python 3.7.3
pip install -U --force-reinstall virtualenv
pip install virtualenv