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

Cant install 3.0.4 on windows 11 and Python 3.9.7+ #146

Closed
ItamarShDev opened this issue Mar 2, 2022 · 8 comments
Closed

Cant install 3.0.4 on windows 11 and Python 3.9.7+ #146

ItamarShDev opened this issue Mar 2, 2022 · 8 comments

Comments

@ItamarShDev
Copy link

ItamarShDev commented Mar 2, 2022

trying to build our JLab env in Windows 11 failed with the following error:

Failed to build jupyter-bokeh
ERROR: Could not build wheels for jupyter-bokeh which use PEP 517 and cannot be installed directly
WARNING: You are using pip version 21.1.2; however, version 22.0.3 is available.
You should consider upgrading via the 'C:\Users\ItamarSharify\Documents\modeling\MOD\Scripts\python.exe -m pip install --upgrade pip' command.

The same error happened on:

  1. both old and latest pip
  2. both old and latest setuptools
  3. python 3.9.7 and python 3.9.9
  4. 2 different windows PCs, one with Windows 11 and one with Windows 10

This is not happening in Ubuntu 20.04 machines.
We have one Windows 11 pc that for some reason manages to install it.

Reverting to 3.0.2 works.

Here is the full pp install log:
pip install.txt

@bryevdv
Copy link
Member

bryevdv commented Mar 3, 2022

No idea what might be going on, but you might try the suggestions here in the mean time:

https://stackoverflow.com/a/63999596/3406693

@bryevdv
Copy link
Member

bryevdv commented Mar 3, 2022

@philippjfr @mattpap do we not publish wheels? Is that intentional? I thought we did now but I only see sdist at https://pypi.org/project/jupyter-bokeh/#files

Edit: I will have to see if I can manually publish a wheel in the next few days, until #141 is worked on

@bryevdv
Copy link
Member

bryevdv commented Mar 3, 2022

@ItamarShDev there is now a wheel (just for 3.0.4)

dev-3.9 ❯ pip install jupyter_bokeh
Collecting jupyter_bokeh
  Downloading jupyter_bokeh-3.0.4-py3-none-any.whl (1.4 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.4/1.4 MB 12.8 MB/s eta 0:00:00

can you see if this now works for you? If so this issue can be closed since the other issue is still open about publishing wheels in general

@philippjfr @mattpap FYI I built the wheel from the downloaded sdist with bdist_wheel AFAIK that should work fine

@ItamarShDev
Copy link
Author

Works! thank you very much @bryevdv !
image

@philippjfr
Copy link
Contributor

Thanks @bryevdv! I've never actually had the time to get set up to build and upload any packages for this repo. At some point I would like to automate it with GH Actions like we have for HoloViz packages.

@ItamarShDev
Copy link
Author

ItamarShDev commented Mar 3, 2022 via email

@jgbustos
Copy link

trying to build our JLab env in Windows 11 failed with the following error:

Failed to build jupyter-bokeh
ERROR: Could not build wheels for jupyter-bokeh which use PEP 517 and cannot be installed directly
WARNING: You are using pip version 21.1.2; however, version 22.0.3 is available.
You should consider upgrading via the 'C:\Users\ItamarSharify\Documents\modeling\MOD\Scripts\python.exe -m pip install --upgrade pip' command.

The same error happened on:

1. both old and latest pip

2. both old and latest setuptools

3. python 3.9.7 and python 3.9.9

4. 2 different windows PCs, one with Windows 11 and one with Windows 10

This is not happening in Ubuntu 20.04 machines. We have one Windows 11 pc that for some reason manages to install it.

Reverting to 3.0.2 works.

Here is the full pp install log: pip install.txt

I have exactly the same problem on my machine. The only way I can make it build is by forcing pip and setuptools into legacy behaviour, ignoring pyproject.toml and building based on setup.py.

Try running
pip install -U --use-deprecated=legacy-resolver jupyter-bokeh

@pinusm
Copy link

pinusm commented Apr 24, 2023

Another solution, as pointed out by @jgbustos, is to allow Windows to use longer paths and removing the max path limitation.

Your administrator will need to activate the “Enable Win32 long paths” group policy, or set LongPathsEnabled to 1 in the registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem.
...
After changing the above option, no further configuration is required.

See source here.

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