Opened 6 months ago

Closed 2 months ago

#69542 closed defect (fixed)

Jupyter_select fails

Reported by: brunoomartin Owned by: stromnov (Andrey Stromnov)
Priority: Normal Milestone:
Component: ports Version: 2.9.1
Keywords: Cc: pmetzger (Perry E. Metzger)
Port: jupyter_select

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Hi, Trying to run the command

bash-5.2# port select --set jupyter py311-jupyter

reports the following error

Selecting 'py311-jupyter' for 'jupyter' failed: could not create new link "/opt/local/bin/jupyter-bundlerextension": target "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/bin/jupyter-bundlerextension" doesn't exist

Indeed, jupyter-bundlerextension does not exist in the Framework (though the remaining path does).
I'm not able to change the Jupiter kernel though python is using the good one.
Any fix ? Thanks in advance.

Change History (11)

comment:1 Changed 6 months ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Keywords: Jupyter_select removed
Port: jupyter_select added

comment:2 Changed 6 months ago by jmroot (Joshua Root)

Owner: set to stromnov
Status: newassigned

comment:3 Changed 6 months ago by greyhare

I have the same problem with selecting py312-jupyter.

I can't find any files named that:

$ sudo find /opt/local -name jupyter-bundlerextension
$

comment:4 Changed 6 months ago by albcn

I get the same behaviour under macports 2.9.3 at sonoma arm. Interestingly I can select the 311 version.

$ sudo     port select --set jupyter py312-jupyter
Selecting 'py312-jupyter' for 'jupyter' failed: could not create new link "/opt/local/bin/jupyter-bundlerextension": target "/opt/local/Library/Frameworks/Python.framework/Versions/3.12/bin/jupyter-bundlerextension" doesn't exist

comment:5 Changed 4 months ago by 0dB

Same. MacPorts base version 2.9.3, Sonoma:

sudo port select --set jupyter py312-jupyter
Selecting 'py312-jupyter' for 'jupyter' failed: could not create new link "/opt/local/bin/jupyter-bundlerextension": target "/opt/local/Library/Frameworks/Python.framework/Versions/3.12/bin/jupyter-bundlerextension" doesn't exist

But for me, as opposed to albcn, I also cannot select the py311 version:

sudo port select --set jupyter py311-jupyter
Selecting 'py311-jupyter' for 'jupyter' failed: could not create new link "/opt/local/bin/jupyter-bundlerextension": target "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/bin/jupyter-bundlerextension" doesn't exist

But for info, I had already once previously selected py311-jupyter:

port select --summary                       
Name         Selected           Options
====         ========           =======
jupyter      py311-jupyter      py311-jupyter py312-jupyter none

I just was not able to select it "again".

Last edited 4 months ago by 0dB (previous) (diff)

comment:6 Changed 4 months ago by albcn

Curious by 0dB comment, I tried to re-select previous versions, now I cannot select any of installed.

  ~ sudo port select jupyter py310-jupyter
Selecting 'py310-jupyter' for 'jupyter' failed: could not create new link "/opt/local/bin/jupyter-bundlerextension": target "/opt/local/Library/Frameworks/Python.framework/Versions/3.10/bin/jupyter-bundlerextension" doesn't exist
  ~ sudo port select jupyter py311-jupyter
Selecting 'py311-jupyter' for 'jupyter' failed: could not create new link "/opt/local/bin/jupyter-bundlerextension": target "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/bin/jupyter-bundlerextension" doesn't exist
  ~ sudo port select jupyter py312-jupyter
Selecting 'py312-jupyter' for 'jupyter' failed: could not create new link "/opt/local/bin/jupyter-bundlerextension": target "/opt/local/Library/Frameworks/Python.framework/Versions/3.12/bin/jupyter-bundlerextension" doesn't exist

comment:7 Changed 3 months ago by ryandesign (Ryan Carsten Schmidt)

Cc: pmetzger added

Has duplicate #70214.

comment:8 Changed 3 months ago by pmetzger (Perry E. Metzger)

This has been open for quite a while I see.

comment:9 Changed 2 months ago by numaryu

I think this is caused by the migration of jupyter notebook from v6 to v7. Using the nbclassic package or just removing entries from /opt/local/etc/select/jupyter/base avoids the problem.

comment:10 Changed 2 months ago by pmetzger (Perry E. Metzger)

So what's the fix?

comment:11 Changed 2 months ago by reneeotten (Renee Otten)

Resolution: fixed
Status: assignedclosed

In 63f0e33d13a5adf56381f8a35f4c48afab9b4f95/macports-ports (master):

jupyter_select: fix files

Closes: #69542

Note: See TracTickets for help on using tickets.