ImportError: cannot import name 'return_future'

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

Using cached https://files.pythonhosted.org/packages/07/1b/1bb751797f0bbbafc2642c629656ce158e7e7b7fb1110f449f7c320fb819/bokeh-0.13.0.tar.gz

Collecting Jinja2>=2.7 (from bokeh==0.13.0)

Using cached https://files.pythonhosted.org/packages/7f/ff/ae64bacdfc95f27a016a7bed8e8686763ba4d277a78ca76f32659220a731/Jinja2-2.10-py2.py3-none-any.whl

Collecting PyYAML>=3.10 (from bokeh==0.13.0)

Using cached https://files.pythonhosted.org/packages/9e/a3/1d13970c3f36777c583f136c136f804d70f500168edc1edea6daa7200769/PyYAML-3.13.tar.gz

Collecting numpy>=1.7.1 (from bokeh==0.13.0)

Using cached https://files.pythonhosted.org/packages/35/d5/4f8410ac303e690144f0a0603c4b8fd3b986feb2749c435f7cdbb288f17e/numpy-1.16.2-cp36-cp36m-manylinux1_x86_64.whl

Collecting packaging>=16.8 (from bokeh==0.13.0)

Using cached https://files.pythonhosted.org/packages/91/32/58bc30e646e55eab8b21abf89e353f59c0cc02c417e42929f4a9546e1b1d/packaging-19.0-py2.py3-none-any.whl

Collecting python-dateutil>=2.1 (from bokeh==0.13.0)

Using cached https://files.pythonhosted.org/packages/41/17/c62faccbfbd163c7f57f3844689e3a78bae1f403648a6afb1d0866d87fbb/python_dateutil-2.8.0-py2.py3-none-any.whl

Collecting six>=1.5.2 (from bokeh==0.13.0)

Using cached https://files.pythonhosted.org/packages/73/fb/00a976f728d0d1fecfe898238ce23f502a721c0ac0ecfedb80e0d88c64e9/six-1.12.0-py2.py3-none-any.whl

Collecting tornado>=4.3 (from bokeh==0.13.0)

Using cached https://files.pythonhosted.org/packages/b1/7f/8109821ff9df1bf3519169e34646705c32ac13be6a4d51a79ed57f47686e/tornado-6.0.1.tar.gz

Collecting MarkupSafe>=0.23 (from Jinja2>=2.7->bokeh==0.13.0)

Using cached https://files.pythonhosted.org/packages/b2/5f/23e0023be6bb885d00ffbefad2942bc51a620328ee910f64abe5a8d18dd1/MarkupSafe-1.1.1-cp36-cp36m-manylinux1_x86_64.whl

Collecting pyparsing>=2.0.2 (from packaging>=16.8->bokeh==0.13.0)

Using cached https://files.pythonhosted.org/packages/de/0a/001be530836743d8be6c2d85069f46fecf84ac6c18c7f5fb8125ee11d854/pyparsing-2.3.1-py2.py3-none-any.whl

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’

Hi,

Tornado 6.x (released a few days ago) removed tornado.concurrent AFAICT, which means it is incompatible with Bokeh 0.13. You will have to either:

* upgrade to a newer Bokeh version (highly recommend), or
* downgrade to an older Tornado version

Thanks,

Bryan

···

On Mar 6, 2019, at 4:39 PM, [email protected] wrote:

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
  Using cached https://files.pythonhosted.org/packages/07/1b/1bb751797f0bbbafc2642c629656ce158e7e7b7fb1110f449f7c320fb819/bokeh-0.13.0.tar.gz
Collecting Jinja2>=2.7 (from bokeh==0.13.0)
  Using cached https://files.pythonhosted.org/packages/7f/ff/ae64bacdfc95f27a016a7bed8e8686763ba4d277a78ca76f32659220a731/Jinja2-2.10-py2.py3-none-any.whl
Collecting PyYAML>=3.10 (from bokeh==0.13.0)
  Using cached https://files.pythonhosted.org/packages/9e/a3/1d13970c3f36777c583f136c136f804d70f500168edc1edea6daa7200769/PyYAML-3.13.tar.gz
Collecting numpy>=1.7.1 (from bokeh==0.13.0)
  Using cached https://files.pythonhosted.org/packages/35/d5/4f8410ac303e690144f0a0603c4b8fd3b986feb2749c435f7cdbb288f17e/numpy-1.16.2-cp36-cp36m-manylinux1_x86_64.whl
Collecting packaging>=16.8 (from bokeh==0.13.0)
  Using cached https://files.pythonhosted.org/packages/91/32/58bc30e646e55eab8b21abf89e353f59c0cc02c417e42929f4a9546e1b1d/packaging-19.0-py2.py3-none-any.whl
Collecting python-dateutil>=2.1 (from bokeh==0.13.0)
  Using cached https://files.pythonhosted.org/packages/41/17/c62faccbfbd163c7f57f3844689e3a78bae1f403648a6afb1d0866d87fbb/python_dateutil-2.8.0-py2.py3-none-any.whl
Collecting six>=1.5.2 (from bokeh==0.13.0)
  Using cached https://files.pythonhosted.org/packages/73/fb/00a976f728d0d1fecfe898238ce23f502a721c0ac0ecfedb80e0d88c64e9/six-1.12.0-py2.py3-none-any.whl
Collecting tornado>=4.3 (from bokeh==0.13.0)
  Using cached https://files.pythonhosted.org/packages/b1/7f/8109821ff9df1bf3519169e34646705c32ac13be6a4d51a79ed57f47686e/tornado-6.0.1.tar.gz
Collecting MarkupSafe>=0.23 (from Jinja2>=2.7->bokeh==0.13.0)
  Using cached https://files.pythonhosted.org/packages/b2/5f/23e0023be6bb885d00ffbefad2942bc51a620328ee910f64abe5a8d18dd1/MarkupSafe-1.1.1-cp36-cp36m-manylinux1_x86_64.whl
Collecting pyparsing>=2.0.2 (from packaging>=16.8->bokeh==0.13.0)
  Using cached https://files.pythonhosted.org/packages/de/0a/001be530836743d8be6c2d85069f46fecf84ac6c18c7f5fb8125ee11d854/pyparsing-2.3.1-py2.py3-none-any.whl
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 <module>
    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 <module>
    _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 <module>
    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 <module>
    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 <module>
    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 <module>
    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 <module>
    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 <module>
    from tornado.concurrent import return_future
ImportError: cannot import name 'return_future'

--
You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/f7975dfe-261f-40ca-a17c-5a7ce22828e8%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

Yup, I was already about to close this discussion… indeed, I downgraded to older tornado version and it worked.

···

On Wednesday, March 6, 2019 at 5:02:25 PM UTC-8, Bryan Van de ven wrote:

Hi,

Tornado 6.x (released a few days ago) removed tornado.concurrent AFAICT, which means it is incompatible with Bokeh 0.13. You will have to either:

  • upgrade to a newer Bokeh version (highly recommend), or

  • downgrade to an older Tornado version

Thanks,

Bryan

On Mar 6, 2019, at 4:39 PM, [email protected] wrote:

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

Using cached https://files.pythonhosted.org/packages/07/1b/1bb751797f0bbbafc2642c629656ce158e7e7b7fb1110f449f7c320fb819/bokeh-0.13.0.tar.gz

Collecting Jinja2>=2.7 (from bokeh==0.13.0)

Using cached https://files.pythonhosted.org/packages/7f/ff/ae64bacdfc95f27a016a7bed8e8686763ba4d277a78ca76f32659220a731/Jinja2-2.10-py2.py3-none-any.whl

Collecting PyYAML>=3.10 (from bokeh==0.13.0)

Using cached https://files.pythonhosted.org/packages/9e/a3/1d13970c3f36777c583f136c136f804d70f500168edc1edea6daa7200769/PyYAML-3.13.tar.gz

Collecting numpy>=1.7.1 (from bokeh==0.13.0)

Using cached https://files.pythonhosted.org/packages/35/d5/4f8410ac303e690144f0a0603c4b8fd3b986feb2749c435f7cdbb288f17e/numpy-1.16.2-cp36-cp36m-manylinux1_x86_64.whl

Collecting packaging>=16.8 (from bokeh==0.13.0)

Using cached https://files.pythonhosted.org/packages/91/32/58bc30e646e55eab8b21abf89e353f59c0cc02c417e42929f4a9546e1b1d/packaging-19.0-py2.py3-none-any.whl

Collecting python-dateutil>=2.1 (from bokeh==0.13.0)

Using cached https://files.pythonhosted.org/packages/41/17/c62faccbfbd163c7f57f3844689e3a78bae1f403648a6afb1d0866d87fbb/python_dateutil-2.8.0-py2.py3-none-any.whl

Collecting six>=1.5.2 (from bokeh==0.13.0)

Using cached https://files.pythonhosted.org/packages/73/fb/00a976f728d0d1fecfe898238ce23f502a721c0ac0ecfedb80e0d88c64e9/six-1.12.0-py2.py3-none-any.whl

Collecting tornado>=4.3 (from bokeh==0.13.0)

Using cached https://files.pythonhosted.org/packages/b1/7f/8109821ff9df1bf3519169e34646705c32ac13be6a4d51a79ed57f47686e/tornado-6.0.1.tar.gz

Collecting MarkupSafe>=0.23 (from Jinja2>=2.7->bokeh==0.13.0)

Using cached https://files.pythonhosted.org/packages/b2/5f/23e0023be6bb885d00ffbefad2942bc51a620328ee910f64abe5a8d18dd1/MarkupSafe-1.1.1-cp36-cp36m-manylinux1_x86_64.whl

Collecting pyparsing>=2.0.2 (from packaging>=16.8->bokeh==0.13.0)

Using cached https://files.pythonhosted.org/packages/de/0a/001be530836743d8be6c2d85069f46fecf84ac6c18c7f5fb8125ee11d854/pyparsing-2.3.1-py2.py3-none-any.whl

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](http://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’


You received this message because you are subscribed to the Google Groups “Bokeh Discussion - Public” group.

To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].

To post to this group, send email to [email protected].

To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/f7975dfe-261f-40ca-a17c-5a7ce22828e8%40continuum.io.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.