Error reproduced below: Set up virtual environment with bokeh version 0.13.0, it was working but I reinstalled my environment the same way as before: ‘python3 -m venv [environment name]’ but I receive the error below. Normally I would run the command below for access from web but I used just ‘bokeh serve percpetron.py’ for simplicity and troubleshooting.
bokeh serve perceptron_plot.py --port XXXX --prefix=/perceptron_plot --allow-websocket-origin=www.website.com
Commands are in red. Ubuntu 18.04.2 LTS 64-bit.
···
user@server1:/home/jeff/dfenv/df/perceptron_plot$ python3 -m venv test_environment
user@server1:/home/jeff/dfenv/df/perceptron_plot$ source test_environment/bin/activate
(test_environment) user@server1:/home/jeff/dfenv/df/perceptron_plot$ pip install bokeh==0.13.0
Collecting bokeh==0.13.0
Collecting Jinja2>=2.7 (from bokeh==0.13.0)
Collecting PyYAML>=3.10 (from bokeh==0.13.0)
Collecting numpy>=1.7.1 (from bokeh==0.13.0)
Collecting packaging>=16.8 (from bokeh==0.13.0)
Collecting python-dateutil>=2.1 (from bokeh==0.13.0)
Collecting six>=1.5.2 (from bokeh==0.13.0)
Collecting tornado>=4.3 (from bokeh==0.13.0)
Collecting MarkupSafe>=0.23 (from Jinja2>=2.7->bokeh==0.13.0)
Collecting pyparsing>=2.0.2 (from packaging>=16.8->bokeh==0.13.0)
Building wheels for collected packages: bokeh, PyYAML, tornado
Running setup.py bdist_wheel for bokeh … error
Complete output from command /home/jeff/dfenv/dd/perceptron_plot/test_environment/bin/python3 -u -c “import setuptools, tokenize;file=’/tmp/pip-build-4zhscx7a/bokeh/setup.py’;f=getattr(tokenize, ‘open’, open)(file);code=f.read().replace(’\r\n’, ‘\n’);f.close();exec(compile(code, file, ‘exec’))” bdist_wheel -d /tmp/tmplyjavr1zpip-wheel- --python-tag cp36:
/usr/lib/python3.6/distutils/dist.py:261: UserWarning: Unknown distribution option: 'long_description_content_type’
warnings.warn(msg)
usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] …]
or: -c --help [cmd1 cmd2 …]
or: -c --help-commands
or: -c cmd --help
error: invalid command 'bdist_wheel’
----------------------------------------
Failed building wheel for bokeh
Running setup.py clean for bokeh
Running setup.py bdist_wheel for PyYAML … error
Complete output from command /home/jeff/dfenv/df/perceptron_plot/test_environment/bin/python3 -u -c “import setuptools, tokenize;file=’/tmp/pip-build-4zhscx7a/PyYAML/setup.py’;f=getattr(tokenize, ‘open’, open)(file);code=f.read().replace(’\r\n’, ‘\n’);f.close();exec(compile(code, file, ‘exec’))” bdist_wheel -d /tmp/tmp34bjmwatpip-wheel- --python-tag cp36:
usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] …]
or: -c --help [cmd1 cmd2 …]
or: -c --help-commands
or: -c cmd --help
error: invalid command 'bdist_wheel’
----------------------------------------
Failed building wheel for PyYAML
Running setup.py clean for PyYAML
Running setup.py bdist_wheel for tornado … error
Complete output from command /home/jeff/dfenv/df/perceptron_plot/test_environment/bin/python3 -u -c “import setuptools, tokenize;file=’/tmp/pip-build-4zhscx7a/tornado/setup.py’;f=getattr(tokenize, ‘open’, open)(file);code=f.read().replace(’\r\n’, ‘\n’);f.close();exec(compile(code, file, ‘exec’))” bdist_wheel -d /tmp/tmp7nquk_38pip-wheel- --python-tag cp36:
usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] …]
or: -c --help [cmd1 cmd2 …]
or: -c --help-commands
or: -c cmd --help
error: invalid command 'bdist_wheel’
----------------------------------------
Failed building wheel for tornado
Running setup.py clean for tornado
Failed to build bokeh PyYAML tornado
Installing collected packages: MarkupSafe, Jinja2, PyYAML, numpy, pyparsing, six, packaging, python-dateutil, tornado, bokeh
Running setup.py install for PyYAML … done
Running setup.py install for tornado … done
Running setup.py install for bokeh … done
Successfully installed Jinja2-2.10 MarkupSafe-1.1.1 PyYAML-3.13 bokeh-0.13.0 numpy-1.16.2 packaging-19.0 pyparsing-2.3.1 python-dateutil-2.8.0 six-1.12.0 tornado-6.0.1
(test_environment) user@server1:/home/jeff/dfenv/df/perceptron_plot$ bokeh serve perceptron_plot.py
Traceback (most recent call last):
File “/home/jeff/dfenv/df/perceptron_plot/test_environment/bin/bokeh”, line 11, in
load_entry_point(‘bokeh==0.13.0’, ‘console_scripts’, ‘bokeh’)()
File “/home/jeff/dfenv/df/perceptron_plot/test_environment/lib/python3.6/site-packages/bokeh/main.py”, line 44, in main
from bokeh.command.bootstrap import main as _main
File “/home/jeff/dfenv/df/perceptron_plot/test_environment/lib/python3.6/site-packages/bokeh/command/init.py”, line 18, in
_build_docstring()
File “/home/jeff/dfenv/df/perceptron_plot/test_environment/lib/python3.6/site-packages/bokeh/command/init.py”, line 10, in _build_docstring
from . import subcommands
File “/home/jeff/dfenv/df/perceptron_plot/test_environment/lib/python3.6/site-packages/bokeh/command/subcommands/init.py”, line 31, in
all = _collect()
File “/home/jeff/dfenv/df/perceptron_plot/test_environment/lib/python3.6/site-packages/bokeh/command/subcommands/init.py”, line 19, in _collect
mod = import_module("." + modname, package)
File “/usr/lib/python3.6/importlib/init.py”, line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “/home/jeff/dfenv/df/perceptron_plot/test_environment/lib/python3.6/site-packages/bokeh/command/subcommands/serve.py”, line 309, in
from bokeh.server.tornado import DEFAULT_WEBSOCKET_MAX_MESSAGE_SIZE_BYTES
File “/home/jeff/dfenv/df/perceptron_plot/test_environment/lib/python3.6/site-packages/bokeh/server/tornado.py”, line 24, in
from .urls import per_app_patterns, toplevel_patterns
File “/home/jeff/dfenv/df/perceptron_plot/test_environment/lib/python3.6/site-packages/bokeh/server/urls.py”, line 39, in
from .views.ws import WSHandler
File “/home/jeff/dfenv/df/perceptron_plot/test_environment/lib/python3.6/site-packages/bokeh/server/views/ws.py”, line 20, in
from …protocol.receiver import Receiver
File “/home/jeff/dfenv/df/perceptron_plot/test_environment/lib/python3.6/site-packages/bokeh/protocol/receiver.py”, line 8, in
from tornado.concurrent import return_future
ImportError: cannot import name 'return_future’