jupyterlab / jupyterlab-desktop

JupyterLab desktop application, based on Electron.
BSD 3-Clause "New" or "Revised" License
3.76k stars 365 forks source link

Bug: default install directory result in import error #807

Closed yetong2023 closed 7 months ago

yetong2023 commented 8 months ago

To reproduce this: ` !pip install paddlepaddle import paddle

WinError 123 The name of the file or directory name tag syntax is incorrect:'\\?\C:\Users\yt\AppData\Roaming\jupyterlab-desktop\jlab_server\Lib\site-packages\paddle\base\..\libs'`

While in other platform, such as anoconda jupyterlab, winpython jupyterlab, there is no such error.

welcome[bot] commented 8 months ago

Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! :hugs:
If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively. welcome You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! :wave:
Welcome to the Jupyter community! :tada:

JasonWeill commented 8 months ago

@yetong2023 Thanks for opening this issue! Which version of JupyterLab Desktop are you using and which Windows version are you using?

mbektas commented 7 months ago

I have been debugging this issue together with https://github.com/jupyterlab/jupyterlab-desktop/issues/784 and they both have the same root cause. When bundled environment is installed on Windows, the environment prefix has UNC path format, starting with \\?\. Python (or some libraries) are not able to resolve those paths, causing these errors.

@yetong2023 as a workaround you can create a new Python environment (using New environment option) and install the dependency there.

JasonWeill commented 7 months ago

@yetong2023 Any update regarding the most recent comment from @mbektas ?