Bug 266836 - www/py-notebook: obsolete version of devel/py-ipykernel
Summary: www/py-notebook: obsolete version of devel/py-ipykernel
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Po-Chuan Hsieh
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-05 06:17 UTC by Simeon Simeonov
Modified: 2022-10-09 19:38 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Simeon Simeonov 2022-10-05 06:17:17 UTC
When building devel/py-jupyterlab the following problem occurs:

Since devel/py-jupyterlab has both 
${PYTHON_PKGNAMEPREFIX}notebook>=0<7:www/py-notebook@${PY_FLAVOR}
and
${PYTHON_PKGNAMEPREFIX}nbclassic>=0:devel/py-nbclassic@${PY_FLAVOR}
as dependencies

and at the same time
www/py-notebook uses
${PYTHON_PKGNAMEPREFIX}ipykernel5>=0:devel/py-ipykernel5@${PY_FLAVOR}

while
devel/py-nbclassic uses
${PYTHON_PKGNAMEPREFIX}ipykernel>=0:devel/py-ipykernel@${PY_FLAVOR}

The following problem occurs when building devel/py-jupyterlab

Installing py310-ipykernel5-5.5.6...
pkg-static: py310-ipykernel5-5.5.6 conflicts with py310-ipykernel-6.16.0 (installs files into the same place).  Problematic file: /usr/local/lib/python3.10/site-packages/ipykernel/__init__.py
*** Error code 1


The simplest solution (that works for me) seems to be to upgrade py-ipykernel
for www/py-notebook

-               ${PYTHON_PKGNAMEPREFIX}ipykernel5>=0:devel/py-ipykernel5@${PY_FLAVOR} \
+               ${PYTHON_PKGNAMEPREFIX}ipykernel>=0:devel/py-ipykernel@${PY_FLAVOR} \
Comment 1 Po-Chuan Hsieh freebsd_committer freebsd_triage 2022-10-09 19:38:23 UTC
It should be fixed in ports 1b7da231a69cd3c1aad5fb57480ed49d5ae09778.