Opened 3 years ago

Closed 3 years ago

#63596 closed defect (fixed)

py-sip and py-sip4 conflict

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: michaelld (Michael Dickens)
Priority: Normal Milestone:
Component: ports Version: 2.7.99
Keywords: Cc: reneeotten (Renee Otten), cooljeanius (Eric Gallager)
Port: py-sip py-sip4

Description

--->  Activating py37-sip4 @4.19.25_1+universal
Error: Failed to activate py37-sip4: Image error: /opt/local/Library/Frameworks/Python.framework/Versions/3.7/bin/sip is being used by the active py37-sip port.  Please deactivate this port first, or use 'port -f activate py37-sip4' to force the activation.

Change History (4)

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

that is strange Ryan as I have no problems here:

 % port -v installed | grep sip | grep -v pyqt5
  py37-sip @6.2.0_0 (active) requested_variants='' platform='darwin 19' archs='x86_64' date='2021-10-09T06:46:06-0400'
  py37-sip4 @4.19.25_1 (active) requested_variants='' platform='darwin 19' archs='x86_64' date='2021-10-09T06:46:07-0400'
  py39-sip @6.2.0_0 (active) requested_variants='' platform='darwin 19' archs='x86_64' date='2021-10-03T14:22:36-0400'
  py39-sip4 @4.19.25_1 (active) requested_variants='' platform='darwin 19' archs='x86_64' date='2021-10-04T12:09:28-0400'

the py37-sip port does not install a file called sip:

% port contents py37-sip | grep bin | grep -v bindings
  /opt/local/Library/Frameworks/Python.framework/Versions/3.7/bin/sip-build
  /opt/local/Library/Frameworks/Python.framework/Versions/3.7/bin/sip-distinfo
  /opt/local/Library/Frameworks/Python.framework/Versions/3.7/bin/sip-install
  /opt/local/Library/Frameworks/Python.framework/Versions/3.7/bin/sip-module
  /opt/local/Library/Frameworks/Python.framework/Versions/3.7/bin/sip-sdist
  /opt/local/Library/Frameworks/Python.framework/Versions/3.7/bin/sip-wheel
  /opt/local/bin/sip-build-3.7
  /opt/local/bin/sip-distinfo-3.7
  /opt/local/bin/sip-install-3.7
  /opt/local/bin/sip-module-3.7
  /opt/local/bin/sip-sdist-3.7
  /opt/local/bin/sip-wheel-3.7

so there shouldn't be a conflict. In fact, there are no overlapping files in both packages and that's why I removed the conflicts declaration in this commit.

In short, I am not sure why you're seeing this issue, unless it's related to the universal variant which I don't use nor can test on my OS. If that's the case can you please list the files that py37-sip and py37-sip4 want to install if you activate either of them?

comment:2 Changed 3 years ago by cooljeanius (Eric Gallager)

Cc: cooljeanius added

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

oh, I see... you probably still have py-sip installed that is also version 4.19.25 - that will indeed conflict with py-sip4 which provides the same version. Okay, I will add a deactivate hack to py-sip4 to deactivate py-sip but only if the installed version is the the same. Let me test that locally and then I'll push a commit.

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

Resolution: fixed
Status: assignedclosed

In c93129fc2df41268113bcd62f6ad5802a993d412/macports-ports (master):

py-sip4: reinstate deactivate hack

  • deactivate py-pip if the installed version is 4.19.25 or before

Closes: #63596

Note: See TracTickets for help on using tickets.