Hi everyone,
this is my first post on this forum, but I've some problems whit the begin of this tutorial. I follow step by step the guide but can't reach the same result.
I wanna develop a plugin directly on my raspberry Pi3B+, so i skip first instructions:
cd ~/devel
git clone https://github.com/foosel/OctoPrint
[...]
cd OctoPrint
virtualenv venv
[...]
source venv/bin/activate
(venv) pip install -e .[develop,plugins]
[...]
(venv) octoprint --help
Usage: octoprint [OPTIONS] COMMAND [ARGS]...
[...]
So i skip to this part:
source ~/oprint/bin/activate
(oprint) octoprint --help
Usage: octoprint [OPTIONS] COMMAND [ARGS]...
[...]
but when i try to write the first example helloworld.py and then command "octoprint serve", octoprint go to safe mode and the command return me this message, that is a little bit different from the one in the example:
2019-10-24 21:54:28,660 - octoprint.startup - INFO - ******************************************************************************
2019-10-24 21:54:28,662 - octoprint.startup - INFO - Starting OctoPrint 1.3.12
2019-10-24 21:54:28,663 - octoprint.startup - INFO - ******************************************************************************
2019-10-24 21:54:28,808 - octoprint.util.connectivity_checker - INFO - Connectivity changed from offline to online
2019-10-24 21:54:29,208 - octoprint.startup - INFO - Blacklist processing done, adding 1 blacklisted plugin versions: roomtemp (any)
2019-10-24 21:54:29,252 - octoprint.plugin.core - INFO - Loading plugins from /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins, /home/pi/.octoprint/plugins and installed plugin packages...
2019-10-24 21:54:30,995 - octoprint.plugin.core - INFO - Found 16 plugin(s) providing 15 mixin implementations, 23 hook handlers
2019-10-24 21:54:31,297 - octoprint.server.heartbeat - INFO - Starting server heartbeat, 900.0s interval
2019-10-24 21:54:31,322 - octoprint.cli.server - ERROR - Uncaught exception
Traceback (most recent call last):
File "/home/pi/oprint/bin/octoprint", line 11, in
load_entry_point('OctoPrint', 'console_scripts', 'octoprint')()
File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint/init.py", line 609, in main
octo(args=args, prog_name="octoprint", auto_envvar_prefix="OCTOPRINT")
File "/home/pi/oprint/local/lib/python2.7/site-packages/click/core.py", line 764, in call
return self.main(*args, **kwargs)
File "/home/pi/oprint/local/lib/python2.7/site-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/home/pi/oprint/local/lib/python2.7/site-packages/click/core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/pi/oprint/local/lib/python2.7/site-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/pi/oprint/local/lib/python2.7/site-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/home/pi/oprint/local/lib/python2.7/site-packages/click/decorators.py", line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint/cli/server.py", line 206, in serve_command
ignore_blacklist)
File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint/cli/server.py", line 118, in run_server
octoprint_server.run()
File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint/server/init.py", line 281, in run
self._start_intermediary_server()
File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint/server/init.py", line 1751, in _start_intermediary_server
self._intermediary_server.server_bind()
File "/usr/lib/python2.7/BaseHTTPServer.py", line 108, in server_bind
SocketServer.TCPServer.server_bind(self)
File "/usr/lib/python2.7/SocketServer.py", line 431, in server_bind
self.socket.bind(self.server_address)
File "/usr/lib/python2.7/socket.py", line 228, in meth
return getattr(self._sock,name)(*args)
error: [Errno 98] Address already in use
I'm running:
OctoPrint version : 1.3.12
OctoPi version : 0.16.0
Sorry for my bad english, but i've no idea how i can make it work, am I make a mistake?
Thanks Giovanni.