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

Issue installing jupyter_bokeh in VSCode #180

Open
Karlossal opened this issue Jan 18, 2023 · 6 comments
Open

Issue installing jupyter_bokeh in VSCode #180

Karlossal opened this issue Jan 18, 2023 · 6 comments

Comments

@Karlossal
Copy link

This could be something I have done wrong. Relatively new to using python (started about a year ago). Here is the error:

PS C:\Users\Karl.Hampton> pip install jupyter_bokeh
Collecting jupyter_bokeh
Using cached jupyter_bokeh-3.0.5.tar.gz (779 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: bokeh>=2.4.0 in c:\users\karl.hampton\appdata\local\programs\python\python310\lib\site-packages (from jupyter_bokeh) (2.4.3)
Collecting ipywidgets>=8.0.0
Using cached ipywidgets-8.0.4-py3-none-any.whl (137 kB)
Requirement already satisfied: Jinja2>=2.9 in c:\users\karl.hampton\appdata\local\programs\python\python310\lib\site-packages (from bokeh>=2.4.0->jupyter_bokeh) (3.1.2)
Requirement already satisfied: typing-extensions>=3.10.0 in c:\users\karl.hampton\appdata\local\programs\python\python310\lib\site-packages (from bokeh>=2.4.0->jupyter_bokeh) (4.4.0)
Requirement already satisfied: PyYAML>=3.10 in c:\users\karl.hampton\appdata\local\programs\python\python310\lib\site-packages (from bokeh>=2.4.0->jupyter_bokeh) (6.0)
Requirement already satisfied: numpy>=1.11.3 in c:\users\karl.hampton\appdata\local\programs\python\python310\lib\site-packages (from bokeh>=2.4.0->jupyter_bokeh) (1.23.2)
Requirement already satisfied: pillow>=7.1.0 in c:\users\karl.hampton\appdata\local\programs\python\python310\lib\site-packages (from bokeh>=2.4.0->jupyter_bokeh) (9.2.0)
Requirement already satisfied: packaging>=16.8 in c:\users\karl.hampton\appdata\local\programs\python\python310\lib\site-packages (from bokeh>=2.4.0->jupyter_bokeh) (21.3)
Requirement already satisfied: tornado>=5.1 in c:\users\karl.hampton\appdata\roaming\python\python310\site-packages (from bokeh>=2.4.0->jupyter_bokeh) (6.2)
Requirement already satisfied: ipython>=6.1.0 in c:\users\karl.hampton\appdata\roaming\python\python310\site-packages (from ipywidgets>=8.0.0->jupyter_bokeh) (8.5.0)
Requirement already satisfied: ipykernel>=4.5.1 in c:\users\karl.hampton\appdata\roaming\python\python310\site-packages (from ipywidgets>=8.0.0->jupyter_bokeh) (6.15.3)
Requirement already satisfied: traitlets>=4.3.1 in c:\users\karl.hampton\appdata\local\programs\python\python310\lib\site-packages (from ipywidgets>=8.0.0->jupyter_bokeh) (5.8.1)
Collecting jupyterlab-widgets~=3.0
Using cached jupyterlab_widgets-3.0.5-py3-none-any.whl (384 kB)
Collecting widgetsnbextension~=4.0
Using cached widgetsnbextension-4.0.5-py3-none-any.whl (2.0 MB)
Requirement already satisfied: pyzmq>=17 in c:\users\karl.hampton\appdata\roaming\python\python310\site-packages (from ipykernel>=4.5.1->ipywidgets>=8.0.0->jupyter_bokeh) (24.0.0)
Requirement already satisfied: matplotlib-inline>=0.1 in c:\users\karl.hampton\appdata\roaming\python\python310\site-packages (from ipykernel>=4.5.1->ipywidgets>=8.0.0->jupyter_bokeh) (0.1.6)
Requirement already satisfied: jupyter-client>=6.1.12 in c:\users\karl.hampton\appdata\local\programs\python\python310\lib\site-packages (from ipykernel>=4.5.1->ipywidgets>=8.0.0->jupyter_bokeh) (7.4.8)
Requirement already satisfied: debugpy>=1.0 in c:\users\karl.hampton\appdata\roaming\python\python310\site-packages (from ipykernel>=4.5.1->ipywidgets>=8.0.0->jupyter_bokeh) (1.6.3)
Requirement already satisfied: psutil in c:\users\karl.hampton\appdata\roaming\python\python310\site-packages (from ipykernel>=4.5.1->ipywidgets>=8.0.0->jupyter_bokeh) (5.9.2)
Requirement already satisfied: nest-asyncio in c:\users\karl.hampton\appdata\roaming\python\python310\site-packages (from ipykernel>=4.5.1->ipywidgets>=8.0.0->jupyter_bokeh) (1.5.5)
Requirement already satisfied: jedi>=0.16 in c:\users\karl.hampton\appdata\roaming\python\python310\site-packages (from ipython>=6.1.0->ipywidgets>=8.0.0->jupyter_bokeh) (0.18.1)
Requirement already satisfied: pickleshare in c:\users\karl.hampton\appdata\roaming\python\python310\site-packages (from ipython>=6.1.0->ipywidgets>=8.0.0->jupyter_bokeh) (0.7.5)
Requirement already satisfied: prompt-toolkit<3.1.0,>3.0.1 in c:\users\karl.hampton\appdata\roaming\python\python310\site-packages (from ipython>=6.1.0->ipywidgets>=8.0.0->jupyter_bokeh) (3.0.31)
Requirement already satisfied: decorator in c:\users\karl.hampton\appdata\roaming\python\python310\site-packages (from ipython>=6.1.0->ipywidgets>=8.0.0->jupyter_bokeh) (5.1.1)
Requirement already satisfied: backcall in c:\users\karl.hampton\appdata\roaming\python\python310\site-packages (from ipython>=6.1.0->ipywidgets>=8.0.0->jupyter_bokeh) (0.2.0)
Requirement already satisfied: colorama in c:\users\karl.hampton\appdata\local\programs\python\python310\lib\site-packages (from ipython>=6.1.0->ipywidgets>=8.0.0->jupyter_bokeh) (0.4.5)
Requirement already satisfied: stack-data in c:\users\karl.hampton\appdata\roaming\python\python310\site-packages (from ipython>=6.1.0->ipywidgets>=8.0.0->jupyter_bokeh) (0.5.0)
Requirement already satisfied: pygments>=2.4.0 in c:\users\karl.hampton\appdata\roaming\python\python310\site-packages (from ipython>=6.1.0->ipywidgets>=8.0.0->jupyter_bokeh) (2.13.0)
Requirement already satisfied: MarkupSafe>=2.0 in c:\users\karl.hampton\appdata\local\programs\python\python310\lib\site-packages (from Jinja2>=2.9->bokeh>=2.4.0->jupyter_bokeh) (2.1.1)
Requirement already satisfied: pyparsing!=3.0.5,>=2.0.2 in c:\users\karl.hampton\appdata\local\programs\python\python310\lib\site-packages (from packaging>=16.8->bokeh>=2.4.0->jupyter_bokeh) (3.0.9)
Requirement already satisfied: parso<0.9.0,>=0.8.0 in c:\users\karl.hampton\appdata\roaming\python\python310\site-packages (from jedi>=0.16->ipython>=6.1.0->ipywidgets>=8.0.0->jupyter_bokeh) (0.8.3)
Requirement already satisfied: jupyter-core>=4.9.2 in c:\users\karl.hampton\appdata\local\programs\python\python310\lib\site-packages (from jupyter-client>=6.1.12->ipykernel>=4.5.1->ipywidgets>=8.0.0->jupyter_bokeh) (5.1.3)
Requirement already satisfied: python-dateutil>=2.8.2 in c:\users\karl.hampton\appdata\local\programs\python\python310\lib\site-packages (from jupyter-client>=6.1.12->ipykernel>=4.5.1->ipywidgets>=8.0.0->jupyter_bokeh) (2.8.2)
Requirement already satisfied: entrypoints in c:\users\karl.hampton\appdata\roaming\python\python310\site-packages (from jupyter-client>=6.1.12->ipykernel>=4.5.1->ipywidgets>=8.0.0->jupyter_bokeh) (0.4)
Requirement already satisfied: wcwidth in c:\users\karl.hampton\appdata\roaming\python\python310\site-packages (from prompt-toolkit<3.1.0,>3.0.1->ipython>=6.1.0->ipywidgets>=8.0.0->jupyter_bokeh) (0.2.5)Requirement already satisfied: executing in c:\users\karl.hampton\appdata\roaming\python\python310\site-packages (from stack-data->ipython>=6.1.0->ipywidgets>=8.0.0->jupyter_bokeh) (1.0.0)
Requirement already satisfied: asttokens in c:\users\karl.hampton\appdata\roaming\python\python310\site-packages (from stack-data->ipython>=6.1.0->ipywidgets>=8.0.0->jupyter_bokeh) (2.0.8)
Requirement already satisfied: pure-eval in c:\users\karl.hampton\appdata\roaming\python\python310\site-packages (from stack-data->ipython>=6.1.0->ipywidgets>=8.0.0->jupyter_bokeh) (0.2.2)
Requirement already satisfied: pywin32>=1.0 in c:\users\karl.hampton\appdata\roaming\python\python310\site-packages (from jupyter-core>=4.9.2->jupyter-client>=6.1.12->ipykernel>=4.5.1->ipywidgets>=8.0.0->jupyter_bokeh) (304)
Requirement already satisfied: platformdirs>=2.5 in c:\users\karl.hampton\appdata\local\programs\python\python310\lib\site-packages (from jupyter-core>=4.9.2->jupyter-client>=6.1.12->ipykernel>=4.5.1->ipywidgets>=8.0.0->jupyter_bokeh) (2.5.2)
Requirement already satisfied: six>=1.5 in c:\users\karl.hampton\appdata\local\programs\python\python310\lib\site-packages (from python-dateutil>=2.8.2->jupyter-client>=6.1.12->ipykernel>=4.5.1->ipywidgets>=8.0.0->jupyter_bokeh) (1.16.0)
Building wheels for collected packages: jupyter_bokeh
Building wheel for jupyter_bokeh (pyproject.toml) ... error
error: subprocess-exited-with-error

× Building wheel for jupyter_bokeh (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [157 lines of output]
C:\Users\Karl.Hampton\AppData\Local\Temp\pip-build-env-t50rdwo8\overlay\Lib\site-packages\setuptools\config\setupcfg.py:508: SetuptoolsDeprecationWarning: The license_file parameter is deprecated,
use license_files instead.
warnings.warn(msg, warning_class)
running bdist_wheel
running jsdeps
running handle_files
running build
running build_py
creating build
creating build\lib
creating build\lib\jupyter_bokeh
copying jupyter_bokeh\widgets.py -> build\lib\jupyter_bokeh
copying jupyter_bokeh_version.py -> build\lib\jupyter_bokeh
copying jupyter_bokeh_init_.py -> build\lib\jupyter_bokeh
running egg_info
writing jupyter_bokeh.egg-info\PKG-INFO
writing dependency_links to jupyter_bokeh.egg-info\dependency_links.txt
writing requirements to jupyter_bokeh.egg-info\requires.txt
writing top-level names to jupyter_bokeh.egg-info\top_level.txt
reading manifest file 'jupyter_bokeh.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'jupyter-config\jupyter_bokeh.json'
warning: manifest_maker: MANIFEST.in, line 11: path 'jupyter_bokeh/nbextension/' cannot end with '/'

  no previously-included directories found matching '**\node_modules'
  no previously-included directories found matching 'lib'
  warning: no previously-included files matching '*~' found anywhere in distribution
  warning: no previously-included files matching '*.pyc' found anywhere in distribution
  warning: no previously-included files matching '*.pyo' found anywhere in distribution
  warning: no previously-included files matching '.git' found anywhere in distribution
  warning: no previously-included files matching '.ipynb_checkpoints' found anywhere in distribution
  adding license file 'LICENSE.txt'
  writing manifest file 'jupyter_bokeh.egg-info\SOURCES.txt'
  C:\Users\Karl.Hampton\AppData\Local\Temp\pip-build-env-t50rdwo8\overlay\Lib\site-packages\setuptools\command\build_py.py:202: SetuptoolsDeprecationWarning:     Installing 'jupyter_bokeh.labextension' as data is deprecated, please list it in `packages`.
      !!
 
 
      ############################
      # Package would be ignored #
      ############################
      Python recognizes 'jupyter_bokeh.labextension' as an importable package,
      but it is not listed in the `packages` configuration of setuptools.
 
      'jupyter_bokeh.labextension' has been automatically added to the distribution only
      because it may contain data files, but this behavior is likely to change
      in future versions of setuptools (and therefore is considered deprecated).
 
      Please make sure that 'jupyter_bokeh.labextension' is included as a package by using
      the `packages` configuration field or the proper discovery methods
      (for example by using `find_namespace_packages(...)`/`find_namespace:`
      instead of `find_packages(...)`/`find:`).
 
      You can read more about "package discovery" and "data files" on setuptools
      documentation page.
 
 
  !!
 
    check.warn(importable)
  C:\Users\Karl.Hampton\AppData\Local\Temp\pip-build-env-t50rdwo8\overlay\Lib\site-packages\setuptools\command\build_py.py:202: SetuptoolsDeprecationWarning:     Installing 'jupyter_bokeh.labextension.static' as data is deprecated, please list it in `packages`.
      !!
 
 
      ############################
      # Package would be ignored #
      ############################
      Python recognizes 'jupyter_bokeh.labextension.static' as an importable package,
      but it is not listed in the `packages` configuration of setuptools.
 
      'jupyter_bokeh.labextension.static' has been automatically added to the distribution only
      because it may contain data files, but this behavior is likely to change
      in future versions of setuptools (and therefore is considered deprecated).
 
      Please make sure that 'jupyter_bokeh.labextension.static' is included as a package by using
      the `packages` configuration field or the proper discovery methods
      (for example by using `find_namespace_packages(...)`/`find_namespace:`
      instead of `find_packages(...)`/`find:`).
 
      You can read more about "package discovery" and "data files" on setuptools
      documentation page.
 
 
  !!
 
    check.warn(importable)
  C:\Users\Karl.Hampton\AppData\Local\Temp\pip-build-env-t50rdwo8\overlay\Lib\site-packages\setuptools\command\build_py.py:202: SetuptoolsDeprecationWarning:     Installing 'jupyter_bokeh.nbextension' as data is deprecated, please list it in `packages`.
      !!
 
 
      ############################
      # Package would be ignored #
      ############################
      Python recognizes 'jupyter_bokeh.nbextension' as an importable package,
      but it is not listed in the `packages` configuration of setuptools.
 
      'jupyter_bokeh.nbextension' has been automatically added to the distribution only
      because it may contain data files, but this behavior is likely to change
      in future versions of setuptools (and therefore is considered deprecated).
 
      Please make sure that 'jupyter_bokeh.nbextension' is included as a package by using
      the `packages` configuration field or the proper discovery methods
      (for example by using `find_namespace_packages(...)`/`find_namespace:`
      instead of `find_packages(...)`/`find:`).
 
      You can read more about "package discovery" and "data files" on setuptools
      documentation page.
 
 
  !!
 
    check.warn(importable)
  creating build\lib\jupyter_bokeh\labextension
  copying jupyter_bokeh\labextension\package.json -> build\lib\jupyter_bokeh\labextension
  creating build\lib\jupyter_bokeh\labextension\static
  copying jupyter_bokeh\labextension\static\534.f9c3354e97b1d4a203bf.js -> build\lib\jupyter_bokeh\labextension\static
  copying jupyter_bokeh\labextension\static\809.5a8907e446c57e3738b7.js -> build\lib\jupyter_bokeh\labextension\static
  copying jupyter_bokeh\labextension\static\984.4b78fac45778699a4bc1.js -> build\lib\jupyter_bokeh\labextension\static
  copying jupyter_bokeh\labextension\static\984.4b78fac45778699a4bc1.js.LICENSE.txt -> build\lib\jupyter_bokeh\labextension\static
  copying jupyter_bokeh\labextension\static\remoteEntry.562cb38782c61606e964.js -> build\lib\jupyter_bokeh\labextension\static
  copying jupyter_bokeh\labextension\static\style.js -> build\lib\jupyter_bokeh\labextension\static
  creating build\lib\jupyter_bokeh\nbextension
  copying jupyter_bokeh\nbextension\extension.js -> build\lib\jupyter_bokeh\nbextension
  copying jupyter_bokeh\nbextension\index.js -> build\lib\jupyter_bokeh\nbextension
  copying jupyter_bokeh\nbextension\index.js.map -> build\lib\jupyter_bokeh\nbextension
  installing to build\bdist.win-amd64\wheel
  running install
  running install_lib
  creating build\bdist.win-amd64
  creating build\bdist.win-amd64\wheel
  creating build\bdist.win-amd64\wheel\jupyter_bokeh
  creating build\bdist.win-amd64\wheel\jupyter_bokeh\labextension
  copying build\lib\jupyter_bokeh\labextension\package.json -> build\bdist.win-amd64\wheel\.\jupyter_bokeh\labextension
  creating build\bdist.win-amd64\wheel\jupyter_bokeh\labextension\static
  copying build\lib\jupyter_bokeh\labextension\static\534.f9c3354e97b1d4a203bf.js -> build\bdist.win-amd64\wheel\.\jupyter_bokeh\labextension\static
  copying build\lib\jupyter_bokeh\labextension\static\809.5a8907e446c57e3738b7.js -> build\bdist.win-amd64\wheel\.\jupyter_bokeh\labextension\static
  copying build\lib\jupyter_bokeh\labextension\static\984.4b78fac45778699a4bc1.js -> build\bdist.win-amd64\wheel\.\jupyter_bokeh\labextension\static
  copying build\lib\jupyter_bokeh\labextension\static\984.4b78fac45778699a4bc1.js.LICENSE.txt -> build\bdist.win-amd64\wheel\.\jupyter_bokeh\labextension\static
  copying build\lib\jupyter_bokeh\labextension\static\remoteEntry.562cb38782c61606e964.js -> build\bdist.win-amd64\wheel\.\jupyter_bokeh\labextension\static
  copying build\lib\jupyter_bokeh\labextension\static\style.js -> build\bdist.win-amd64\wheel\.\jupyter_bokeh\labextension\static
  creating build\bdist.win-amd64\wheel\jupyter_bokeh\nbextension
  copying build\lib\jupyter_bokeh\nbextension\extension.js -> build\bdist.win-amd64\wheel\.\jupyter_bokeh\nbextension
  copying build\lib\jupyter_bokeh\nbextension\index.js -> build\bdist.win-amd64\wheel\.\jupyter_bokeh\nbextension
  copying build\lib\jupyter_bokeh\nbextension\index.js.map -> build\bdist.win-amd64\wheel\.\jupyter_bokeh\nbextension
  copying build\lib\jupyter_bokeh\widgets.py -> build\bdist.win-amd64\wheel\.\jupyter_bokeh
  copying build\lib\jupyter_bokeh\_version.py -> build\bdist.win-amd64\wheel\.\jupyter_bokeh
  copying build\lib\jupyter_bokeh\__init__.py -> build\bdist.win-amd64\wheel\.\jupyter_bokeh
  running install_data
  creating build\bdist.win-amd64\wheel\jupyter_bokeh-3.0.5.data
  creating build\bdist.win-amd64\wheel\jupyter_bokeh-3.0.5.data\data
  creating build\bdist.win-amd64\wheel\jupyter_bokeh-3.0.5.data\data\share
  creating build\bdist.win-amd64\wheel\jupyter_bokeh-3.0.5.data\data\share\jupyter
  creating build\bdist.win-amd64\wheel\jupyter_bokeh-3.0.5.data\data\share\jupyter\labextensions
  creating build\bdist.win-amd64\wheel\jupyter_bokeh-3.0.5.data\data\share\jupyter\labextensions\@bokeh
  creating build\bdist.win-amd64\wheel\jupyter_bokeh-3.0.5.data\data\share\jupyter\labextensions\@bokeh\jupyter_bokeh
  creating build\bdist.win-amd64\wheel\jupyter_bokeh-3.0.5.data\data\share\jupyter\labextensions\@bokeh\jupyter_bokeh\static
  copying jupyter_bokeh\labextension\static\534.f9c3354e97b1d4a203bf.js -> build\bdist.win-amd64\wheel\jupyter_bokeh-3.0.5.data\data\share\jupyter\labextensions\@bokeh\jupyter_bokeh\static
  copying jupyter_bokeh\labextension\static\984.4b78fac45778699a4bc1.js.LICENSE.txt -> build\bdist.win-amd64\wheel\jupyter_bokeh-3.0.5.data\data\share\jupyter\labextensions\@bokeh\jupyter_bokeh\static
  error: could not create 'build\bdist.win-amd64\wheel\jupyter_bokeh-3.0.5.data\data\share\jupyter\labextensions\@bokeh\jupyter_bokeh\static\984.4b78fac45778699a4bc1.js.LICENSE.txt': No such file or 

directory
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for jupyter_bokeh
Failed to build jupyter_bokeh
ERROR: Could not build wheels for jupyter_bokeh, which is required to install pyproject.toml-based projects

@bryevdv
Copy link
Member

bryevdv commented Jan 23, 2023

@Karlossal We need a bit more information to try and actually reproduce this. I don't see any issues trying to install on OSX, for instance. Please update your issue with all relevant package and system version info, etc.

cc @ndmlny-qs

@Karlossal
Copy link
Author

I'm using Windows 10, python 3.10.6, bokeh 3.0.3 although I have also tried bokeh 2.4.3.

@tcmetzger
Copy link
Member

I tried replicating this on Win 10 with a clean virtualenv. The pip install ran without errors. This is the relevant portion, I think:

Building wheels for collected packages: jupyter-bokeh
  Building wheel for jupyter-bokeh (PEP 517) ... done
  Created wheel for jupyter-bokeh: filename=jupyter_bokeh-3.0.5-py3-none-any.whl size=1398382 sha256=356aa5a8ae1f5b2bf9e379b7a19a9fe838f79e97a563b3c17923cdd50074ef85
  Stored in directory: c:\users\timo metzger\appdata\local\pip\cache\wheels\5d\22\7a\004bb485ed7f92dbc4e41ee7152b82b4e6764e1d37d25c6748
Successfully built jupyter-bokeh

@Karlossal I don't know you use case but if you want to use Bokeh with Jupyter notebooks in VSCode, that usually works out of the box, without installing jupyter_bokeh (as described in https://docs.bokeh.org/en/latest/docs/user_guide/output/jupyter.html#classic-notebooks)

@Karlossal
Copy link
Author

I'm trying to use panel which requires the install of jupyter bokeh according to the panel install guide

VSCode notebook
Visual Studio Code (VSCode) versions 2020.4.74986 and later support ipywidgets, and Panel objects can be used as ipywidgets since Panel 0.10 thanks to jupyter_bokeh, which means that you can now use Panel components interactively in VSCode. Ensure you install jupyter_bokeh with pip install jupyter_bokeh or conda install -c bokeh jupyter_bokeh and then enable the extension with pn.extension().

@lovettchris
Copy link

lovettchris commented Mar 9, 2023

I get the same error and there is an inner error saying:

      error: could not create 'build\bdist.win-amd64\wheel\jupyter_bokeh-3.0.5.data\data\share\jupyter\labextensions\@bokeh\jupyter_bokeh\static\984.4b78fac45778699a4bc1.js.LICENSE.txt': No such file or directory
      [end of output]

Is there a missing LICENSE.txt file?

@jgbustos
Copy link

jgbustos commented Mar 15, 2023

This is most likely not a defect with jupyter-bokeh, but a limitation in Windows that pip has to live with:
https://docs.python.org/3/using/windows.html#removing-the-max-path-limitation

In short, Windows used to have a limit of 260 chars in file path names. This limit has been extended to 32k chars, but it requires tweaking the Registry as described in the link above. Worth a try @Karlossal, @lovettchris

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants