Resolving Python conflicts (in wxPython)

Mojca Miklavec mojca at macports.org
Wed Aug 14 09:26:12 PDT 2013


Hi,

I have two questions regarding python bundling.

(1) When I tried to install py27-wxpython-2.8 and py27-wxpython-3.0 I
got the following error:

Error: org.macports.activate for port py27-wxpython-2.8 returned:
Image error: /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/wx.pth
is being used by the active py27-wxpython-3.0 port.  Please deactivate
this port first, or use 'port -f activate py27-wxpython-2.8' to force
the activation.
DEBUG: Error code: registry::image-error
DEBUG: Backtrace: Image error:
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/wx.pth
is being used by the active py27-wxpython-3.0 port.  Please deactivate
this port first, or use 'port -f activate py27-wxpython-2.8' to force
the activation.
    invoked from within

Is there any easy workaround for this or do the packages simply need
to conflict with each other?


(2) On the other hand (and way less problematic), if I tried to
install both py27-wxpython-3.0 and py26-wxpython-3.0, I got the
following error:

Error: org.macports.activate for port py26-wxpython-3.0 returned:
Image error: /opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxPython/2.9/include/wx-2.9/wx/wxPython/i_files/__init__.py
is being used by the active py27-wxpython-3.0 port.  Please deactivate
this port first, or use 'port -f activate py26-wxpython-3.0' to force
the activation.
Warning: targets not executed for py26-wxpython-3.0: org.macports.activate

Is there anything I can do about that? (I actually find it weird that
wxPython is trying to instal files to
/opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxPython/2.9/include/wx-2.9/wx/wxPython/i_files/__init__.py.
Maybe there is a simple cure to change the exact path where these
files go based on python version.)

Thank you,
    Mojca


More information about the macports-dev mailing list