Opened 3 years ago

Closed 3 years ago

#64500 closed defect (fixed)

Selecting py310-ipython fails

Reported by: ednl (Ewoud Dronkert) Owned by: lpsinger (Leo Singer)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: stromnov (Andrey Stromnov), smeingast (Stefan Meingast), ryandesign (Ryan Carsten Schmidt)
Port: py-ipython

Description

After seeing that python310 came as a dependency anyway, and after checking that all py39 ports I use were available as py310 versions, I tried switching to the 3.10 branch and first installed py310-ipython manually. That succeeded but selecting it with the suggested post-install command fails because 3.10/bin/iptest doesn't exist:

user@macmini:~$ sudo port select --set ipython3 py310-ipython
Selecting 'py310-ipython' for 'ipython3' failed: could not create new link "/opt/local/bin/iptest3": target "/opt/local/Library/Frameworks/Python.framework/Versions/3.10/bin/iptest" doesn't exist
user@macmini:~$ sudo port select --set ipython py310-ipython
Selecting 'py310-ipython' for 'ipython' failed: could not create new link "/opt/local/bin/iptest": target "/opt/local/Library/Frameworks/Python.framework/Versions/3.10/bin/iptest" doesn't exist

This is on an M1 Mac mini.

Change History (8)

comment:1 Changed 3 years ago by ednl (Ewoud Dronkert)

I guess it's a development test that was inadvertently not removed from the script? I ran this instead which is probably exactly what the script does (is supposed to do) :

user@macmini:~$ sudo rm /opt/local/bin/ipython
user@macmini:~$ sudo rm /opt/local/bin/ipython3
user@macmini:~$ sudo ln -s /opt/local/Library/Frameworks/Python.framework/Versions/3.10/bin/ipython3 /opt/local/bin/ipython3
user@macmini:~$ sudo ln -s /opt/local/Library/Frameworks/Python.framework/Versions/3.10/bin/ipython /opt/local/bin/ipython
user@macmini:~$ ls -l /opt/local/bin/ipython*
lrwxr-xr-x  1 root  wheel  72 23 jan 13:08 /opt/local/bin/ipython@ -> /opt/local/Library/Frameworks/Python.framework/Versions/3.10/bin/ipython
lrwxr-xr-x  1 root  admin  72 21 jan 08:57 /opt/local/bin/ipython-3.10@ -> /opt/local/Library/Frameworks/Python.framework/Versions/3.10/bin/ipython
lrwxr-xr-x  1 root  admin  71 21 jan 08:58 /opt/local/bin/ipython-3.9@ -> /opt/local/Library/Frameworks/Python.framework/Versions/3.9/bin/ipython
lrwxr-xr-x  1 root  wheel  73 23 jan 13:07 /opt/local/bin/ipython3@ -> /opt/local/Library/Frameworks/Python.framework/Versions/3.10/bin/ipython3
lrwxr-xr-x  1 root  admin  73 21 jan 08:57 /opt/local/bin/ipython3-3.10@ -> /opt/local/Library/Frameworks/Python.framework/Versions/3.10/bin/ipython3
lrwxr-xr-x  1 root  admin  72 21 jan 08:58 /opt/local/bin/ipython3-3.9@ -> /opt/local/Library/Frameworks/Python.framework/Versions/3.9/bin/ipython3

comment:2 Changed 3 years ago by jmroot (Joshua Root)

Cc: stromnov added
Keywords: M1 removed
Owner: set to lpsinger
Status: newassigned

comment:3 Changed 3 years ago by reneeotten (Renee Otten)

Cc: smeingast added

has duplicate 64512

comment:4 Changed 3 years ago by smeingast (Stefan Meingast)

Cc: smeingast removed

comment:5 Changed 3 years ago by smeingast (Stefan Meingast)

Cc: smeingast added

comment:6 Changed 3 years ago by mfacorcoran

I have the same problem with py39-ipython on an intel mac/Big Sur

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

Cc: ryandesign added

comment:8 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: assignedclosed

In 74c013d863af738bc48ec574c547fb182b6f5f51/macports-ports (master):

py-ipython: Fix select files for ipython 8

iptest and iptest3 were removed in ipython 8.

See https://ipython.readthedocs.io/en/stable/whatsnew/version8.html#dependencies-changes-downstream-packaging

Closes: #64500

Note: See TracTickets for help on using tickets.