Opened 4 years ago
Closed 4 years ago
#62660 closed defect (fixed)
py39-jupyterlab: jupyter_packaging version mismatch
Reported by: | jsalort (Julien Salort) | Owned by: | stromnov (Andrey Stromnov) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.6.4 |
Keywords: | Cc: | ||
Port: | py-jupyterlab |
Description
Jupyterlab refuses to launch due to jupyter_packaging version mismatch. I get the same result with jupyter-3.8 or jupyter-3.9. I don't know if it matters, but I selected the py39 version of all installed packages with port select.
% port version Version: 2.6.4 % port installed "py39-jupyter*" The following ports are currently installed: py39-jupyter @1.0.0_1 (active) py39-jupyter_client @6.1.12_0 (active) py39-jupyter_console @6.4.0_0 (active) py39-jupyter_core @4.7.1_0 (active) py39-jupyter_packaging @0.8.1_0 (active) py39-jupyter_server @1.5.1_0 (active) py39-jupyter_sphinx @0.3.2_0 (active) py39-jupyterlab @3.0.12_0 (active) py39-jupyterlab_pygments @0.1.2_0 (active) py39-jupyterlab_server @2.3.0_0 py39-jupyterlab_server @2.4.0_0 (active)
Here is the result while trying to launch jupyter lab
% jupyter-3.9 lab Traceback (most recent call last): File "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pkg_resources/__init__.py", line 568, in _build_master ws.require(__requires__) File "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pkg_resources/__init__.py", line 886, in require needed = self.resolve(parse_requirements(requirements)) File "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pkg_resources/__init__.py", line 777, in resolve raise VersionConflict(dist, req).with_context(dependent_req) pkg_resources.ContextualVersionConflict: (jupyter-packaging 0.8.1 (/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages), Requirement.parse('jupyter_packaging~=0.7.3'), {'jupyterlab'}) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/bin/jupyter-lab", line 33, in <module> sys.exit(load_entry_point('jupyterlab==3.0.12', 'console_scripts', 'jupyter-lab')()) File "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/bin/jupyter-lab", line 25, in importlib_load_entry_point return next(matches).load() File "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/metadata.py", line 77, in load module = import_module(match.group('module')) File "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 1030, in _gcd_import File "<frozen importlib._bootstrap>", line 1007, in _find_and_load File "<frozen importlib._bootstrap>", line 972, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed File "<frozen importlib._bootstrap>", line 1030, in _gcd_import File "<frozen importlib._bootstrap>", line 1007, in _find_and_load File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 680, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 790, in exec_module File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed File "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/jupyterlab/__init__.py", line 7, in <module> from .labapp import LabApp File "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/jupyterlab/labapp.py", line 15, in <module> from jupyterlab_server import slugify, WORKSPACE_EXTENSION File "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/jupyterlab_server/__init__.py", line 4, in <module> from .app import LabServerApp File "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/jupyterlab_server/app.py", line 11, in <module> from .handlers import LabConfig, add_handlers File "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/jupyterlab_server/handlers.py", line 19, in <module> from .translations_handler import TranslationsHandler File "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/jupyterlab_server/translations_handler.py", line 16, in <module> from .translation_utils import get_language_pack, get_language_packs, is_valid_locale, translator File "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/jupyterlab_server/translation_utils.py", line 15, in <module> import pkg_resources File "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pkg_resources/__init__.py", line 3243, in <module> def _initialize_master_working_set(): File "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pkg_resources/__init__.py", line 3226, in _call_aside f(*args, **kwargs) File "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pkg_resources/__init__.py", line 3255, in _initialize_master_working_set working_set = WorkingSet._build_master() File "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pkg_resources/__init__.py", line 570, in _build_master return cls._build_from_requirements(__requires__) File "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pkg_resources/__init__.py", line 583, in _build_from_requirements dists = ws.resolve(reqs, Environment()) File "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pkg_resources/__init__.py", line 772, in resolve raise DistributionNotFound(req, requirers) pkg_resources.DistributionNotFound: The 'jupyter_packaging~=0.7.3' distribution was not found and is required by jupyterlab
Other jupyter commands, such as jupyter-3.9 console
or jupyter-3.9 notebook
do work:
% jupyter-3.9 console Jupyter console 6.4.0 Python 3.9.4 (default, Apr 6 2021, 11:23:37) Type 'copyright', 'credits' or 'license' for more information IPython 7.22.0 -- An enhanced Interactive Python. Type '?' for help. In [1]:
I am sure that it used to work, but I do not know when it stopped working. The installed version of jupyter_packaging is newer than the asked 0.7.3, so I do not know why jupyter lab complains. Except if it requires the one specific version ? In that case, the port file should block the version of jupyter_packaging somehow ?
Change History (2)
comment:1 Changed 4 years ago by mf2k (Frank Schima)
Cc: | stromnov removed |
---|---|
Owner: | set to stromnov |
Status: | new → assigned |
comment:2 Changed 4 years ago by reneeotten (Renee Otten)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
this seems to be resolved -at least it works for me- after the update in this commit. Please test and if you still have trouble feel free to reopen this ticket.