Open Karlossal opened 1 year ago
@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
I'm using Windows 10, python 3.10.6, bokeh 3.0.3 although I have also tried bokeh 2.4.3.
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)
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().
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?
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
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 '/'
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