Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add websocket-client as a dependancy #1648

timothyhollabaugh opened this issue Dec 12, 2016 · 4 comments


None yet
2 participants
Copy link

commented Dec 12, 2016

What were you doing?

Trying to use the octoprint client listen command to get updates from Octoprint.

What did you expect to happen?

I expected the octoprint client listen to show messages from the Octoprint server

What happened instead?

It gave me an error message about no module named websocket

➜  octoprint git:(master) octoprint client listen               
Traceback (most recent call last):
  File "/usr/bin/octoprint", line 9, in <module>
    load_entry_point('OctoPrint', 'console_scripts', 'octoprint')()
  File "/usr/lib/python2.7/site-packages/OctoPrint-1.3.0.dev1245+gcba742a-py2.7.egg/octoprint/", line 310, in main
    octo(args=args, prog_name="octoprint", auto_envvar_prefix="OCTOPRINT")
  File "/usr/lib/python2.7/site-packages/click-6.2-py2.7.egg/click/", line 716, in __call__
    return self.main(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/click-6.2-py2.7.egg/click/", line 696, in main
    rv = self.invoke(ctx)
  File "/usr/lib/python2.7/site-packages/click-6.2-py2.7.egg/click/", line 1060, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/lib/python2.7/site-packages/click-6.2-py2.7.egg/click/", line 1060, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/lib/python2.7/site-packages/click-6.2-py2.7.egg/click/", line 889, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/lib/python2.7/site-packages/click-6.2-py2.7.egg/click/", line 534, in invoke
    return callback(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/OctoPrint-1.3.0.dev1245+gcba742a-py2.7.egg/octoprint/cli/", line 176, in listen
  File "/usr/lib/python2.7/site-packages/OctoPrint-1.3.0.dev1245+gcba742a-py2.7.egg/octoprint_client/", line 382, in connect_socket
  File "/usr/lib/python2.7/site-packages/OctoPrint-1.3.0.dev1245+gcba742a-py2.7.egg/octoprint_client/", line 124, in connect
  File "/usr/lib/python2.7/site-packages/OctoPrint-1.3.0.dev1245+gcba742a-py2.7.egg/octoprint_client/", line 59, in _prepare
    import websocket
ImportError: No module named websocket

I found that after installing the websocket-client module, it works as expected.
I also found no reference to it in

Branch & Commit or Version of OctoPrint

Version 1.3.0 from the master branch

Printer model & used firmware incl. version

Not applicable

Browser and Version of Browser, Operating System running Browser

Not applicable

Link to octoprint.log

Link to contents of terminal tab or serial.log

Not applicable

Link to contents of Javascript console in the browser

Not applicable

Screenshot(s) showing the problem:

Not Applicable

I have read the FAQ.


This comment has been minimized.

Copy link

commented Dec 13, 2016

Ouch. Sorry for that and thanks for the heads-up

@foosel foosel added this to the 1.3.1 milestone Dec 13, 2016

foosel added a commit that referenced this issue Dec 13, 2016


This comment has been minimized.

Copy link

commented Dec 13, 2016

Solved in above commit. Will be in 1.3.1


This comment has been minimized.

Copy link

commented Dec 13, 2016

Thanks for the quick response!


This comment has been minimized.

Copy link

commented Jan 25, 2017

Part of 1.3.1 which has just been released.

@foosel foosel closed this Jan 25, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.