-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Impossible to install or update jupyterlab extensions #16029
Comments
This might have been introduced in #15650 which added writing to a temporary file to create a constraints file before installation: jupyterlab/jupyterlab/extensions/pypi.py Lines 335 to 350 in 02a6c0a
If that is the case, potential solutions include passing requirements on the command line instead, or figuring out why the Python executable does not have access to temporary file created from the parent process |
This is interesting pypa/pip-audit#646:
So apparently we should not use Of note, the Python docs states:
So, it might be that we could just switch It is tempting to just get rid of the temporary file and specify the arguments on CLI (which means using requirements rather than |
Or someone could address the underlying issue of package downgrades in |
@krassowski I'm not really sure what I have to do, did I have to change the code and compile it myself or can I just modify the pypi file (if it exist) in my computer? |
If you feel comfortable doing so you can try it (I do that sometimes myself), but please be aware that this might break your installation if you make a typo and you may need to reinstall. The alternative is installing from source which might be a bit challenging but you would basically clone my branch and follow https://jupyterlab.readthedocs.io/en/latest/developer/contributing.html#installing-jupyterlab |
This is good progress! I think we can merge that PR then. What extension did you try to install? Some extensions may require restarting JupyterLab altogether to work. |
I tried by hazard on the 2 first ones 310-notebook and abirami-hide-code. I think the issue comes from other stuff, in fact my jupyterlab labextension list shows C:\Python\share\jupyter\labextensions The (?) on pypi manager says: Extension installation path: C:\Python |
Frankly I do not know if these are functional extensions. Can you try to install one of the extensions from https://github.com/jupyterlab-contrib/ (I would suggest one which has status "ready" badge), e.g. https://github.com/jupyterlab-contrib/jupyterlab-spreadsheet-editor or https://github.com/jupyterlab-contrib/jupyterlab-favorites or https://github.com/jupyterlab-contrib/spellchecker |
I have still the exact same issue with these 2 extensions |
Reopening as there may be more work needed to get it to work. |
@Wickdhub to install spellchecker extension from command line please run @pjsgsy can you confirm which JupyterLab version do you see this error with? |
Description
When I try to install or update any jupyterlab extensions, I got the error:
Error: ERROR: Could not open requirements file: [Errno 13] Permission denied: 'C:\Users\Username\AppData\Local\Temp\tmp7rvtr5s7'
(The name of the file change each time I'm trying to install an extension)
And in fact this file does not exist in that folder.
Reproduce
Expected behavior
Install the extension
Context
Troubleshoot Output
Command Line Output
The text was updated successfully, but these errors were encountered: