-
Notifications
You must be signed in to change notification settings - Fork 9
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
problem when installing with jupyter notebook #242
Comments
Huh, I have never seen that kind of error. I can't reproduce this on my (Fedora) machine using
and that works. My understanding is that jupyter is encouraging everyone to go through I'm not quite sure how to best debug this -- I'm not sure why there would be a A couple of possible ideas:
|
Hi, conda create --name p2 pip python=3.9
|
Okay, I'm still unable to reproduce this error following these steps. I'm using conda-forge as the only channel, so maybe that's the difference? If you have time and can check the bullet points I wrote above, as well as what channels you're conda is using, that might help us get more specific. But I think for now we assume it's a mixing of pip/conda issue (see related #104). I don't think it won't work with notebook, because I'm able to get it working with |
So, I checked and if I install first the notebook and then plenoptic there is no problem. There is also no problem when installing with jupyter lab. So, I would say, we just check this again after solving the pip issue. |
I was able to reproduce the issue (on a mac, if that matters). It's also not specific to jupyter (or plenoptic, for that matter) - if one tries to import This looks like a but it turns out to be a jupyter problem. requests tries to import either they require but the version that is installed is Inspecting the uninstalling requests and reinstalling jupyter or notebook from pip resolved the problem. It also seems to be just a problem with the So I think adding the |
@DanielaPamplona Can you try following our new installation instructions? In particular, the conda instructions. |
Hi, I am about to leave on vacations. See you in September!
…----------------------------------------------------------------------------------------------
Daniela Pamplona
Researcher and Lecturer at Université Paris-Est Créteil Val de Marne
https://danielapamplona.github.io/
Sent: Friday, August 23, 2024 at 5:29 PM
From: "William F. Broderick" ***@***.***>
To: "plenoptic-org/plenoptic" ***@***.***>
Cc: "Daniela Pamplona" ***@***.***>, "Mention" ***@***.***>
Subject: Re: [plenoptic-org/plenoptic] problem when installing with jupyter notebook (Issue #242)
@DanielaPamplona Can you try following our new installation instructions? In particular, the conda instructions.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
I created a new env. in conda, installed plenoptic and jupyter notebook. When I tried to launch the notebook I got an error and it did not launch. I repeated the process without installing plenoptic and it worked.
Error below (copy-paste):
(p2) daniela@Vietnam:~$ jupyter notebook
Traceback (most recent call last):
File "/home/daniela/anaconda3/envs/p2/lib/python3.9/site-packages/requests/compat.py", line 11, in
import chardet
ModuleNotFoundError: No module named 'chardet'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/daniela/anaconda3/envs/p2/bin/jupyter-notebook", line 7, in
from notebook.app import main
File "/home/daniela/anaconda3/envs/p2/lib/python3.9/site-packages/notebook/app.py", line 20, in
from jupyterlab.commands import ( # type:ignore[import-untyped]
File "/home/daniela/anaconda3/envs/p2/lib/python3.9/site-packages/jupyterlab/init.py", line 8, in
from .handlers.announcements import (
File "/home/daniela/anaconda3/envs/p2/lib/python3.9/site-packages/jupyterlab/handlers/announcements.py", line 15, in
from jupyterlab_server.translation_utils import translator
File "/home/daniela/anaconda3/envs/p2/lib/python3.9/site-packages/jupyterlab_server/init.py", line 6, in
from .app import LabServerApp
File "/home/daniela/anaconda3/envs/p2/lib/python3.9/site-packages/jupyterlab_server/app.py", line 15, in
from .handlers import LabConfig, add_handlers
File "/home/daniela/anaconda3/envs/p2/lib/python3.9/site-packages/jupyterlab_server/handlers.py", line 21, in
from .listings_handler import ListingsHandler, fetch_listings
File "/home/daniela/anaconda3/envs/p2/lib/python3.9/site-packages/jupyterlab_server/listings_handler.py", line 10, in
import requests
File "/home/daniela/anaconda3/envs/p2/lib/python3.9/site-packages/requests/init.py", line 45, in
from .exceptions import RequestsDependencyWarning
File "/home/daniela/anaconda3/envs/p2/lib/python3.9/site-packages/requests/exceptions.py", line 9, in
from .compat import JSONDecodeError as CompatJSONDecodeError
File "/home/daniela/anaconda3/envs/p2/lib/python3.9/site-packages/requests/compat.py", line 13, in
import charset_normalizer as chardet
File "/home/daniela/anaconda3/envs/p2/lib/python3.9/site-packages/charset_normalizer/init.py", line 23, in
from charset_normalizer.api import from_fp, from_path, from_bytes, normalize
File "/home/daniela/anaconda3/envs/p2/lib/python3.9/site-packages/charset_normalizer/api.py", line 10, in
from charset_normalizer.md import mess_ratio
File "charset_normalizer/md.py", line 5, in
ImportError: cannot import name 'COMMON_SAFE_ASCII_CHARACTERS' from 'charset_normalizer.constant' (/home/daniela/anaconda3/envs/p2/lib/python3.9/site-packages/charset_normalizer/constant.py)
System (please complete the following information):
The text was updated successfully, but these errors were encountered: