Opened 15 years ago

Closed 15 years ago

Last modified 12 years ago

#23330 closed defect (fixed)

py-matplotlib build failue due to failed py-pyobjc2 py-pyobjc2-cocoa build

Reported by: alimoeeny@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.8.2
Keywords: Cc: jyrkiwahlstedt, skymoo (Adam Mercer), antoniosmanousakis (Antonios Manousakis)
Port: py-matplotlib, py-macholib

Description

I am trying to install matplotlib on a Snow Leopard MacBookPro. I managed to install scipy and numpy and mac ports defaulted to python 2.4 which is fine by me. But for matplot lib I receive this error: The following dependencies failed to build: py-pyobjc2 py-pyobjc2-cocoa

I appreciate any help with that.

Alis-MacBook-Pro:~ ali$ sudo port install -d py-matplotlib
--->  Computing dependencies for py-matplotlib
--->  Building py-pyobjc2
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py-pyobjc2/work/pyobjc-core" && /opt/local/bin/python2.4 setup.py build " returned error 1
Command output: Traceback (most recent call last):
  File "setup.py", line 322, in ?
    package_data = {
  File "/opt/local/lib/python2.4/distutils/core.py", line 110, in setup
    _setup_distribution = dist = klass(attrs)
  File "/opt/local/lib/python2.4/site-packages/setuptools/dist.py", line 260, in __init__
    self.fetch_build_eggs(attrs.pop('setup_requires'))
  File "/opt/local/lib/python2.4/site-packages/setuptools/dist.py", line 283, in fetch_build_eggs
    for dist in working_set.resolve(
  File "/opt/local/lib/python2.4/site-packages/pkg_resources.py", line 569, in resolve
    raise VersionConflict(dist,req) # XXX put more info here
pkg_resources.VersionConflict: (macholib 1.2 (/opt/local/lib/python2.4/site-packages), Requirement.parse('macholib>=1.2.1'))

Error: The following dependencies failed to build: py-pyobjc2 py-pyobjc2-cocoa
Error: Status 1 encountered during processing.

Change History (6)

comment:1 Changed 15 years ago by skymoo (Adam Mercer)

Cc: jwa@… ram@… added
Keywords: matplotlib removed
Port: py-matplotlib py-macholib added

The problem is that py-macholib needs to be bumped to version 1.2.1.

Is there any specific reason you want the python-2.4 version of matplotlib, as you're running Snow Leopard I would highly recommend using the python-2.6 version, py26-matplotlib.

comment:2 Changed 15 years ago by alimoeeny@…

Thanks for the swift reply. It is my first time using mac ports and it is really amazing.

Actually I prefer python2.6 I tried to install scipy and just used: sudo port install py-scipy and it defaulted to python 2.4 (I mean it installed python2.4 with instructions to install python-select and make the 2.4 default. After your suggestion to use python 2.5 I retried the whole process with py26-* and so far I got py26-scipy and py26-numpy and py26-matplotlib to work. Sill working on the matplotlib backends (py26-wxpython failed, trying py26-gtk now).

Great job with macports.

comment:3 Changed 15 years ago by skymoo (Adam Mercer)

Currently wxWidgets fails to build on Snow Leopard (#20952), hence py26-wxpython also fails.

comment:4 Changed 15 years ago by alimoeeny@…

I got it working with backend : MacOSX All fine, thanks again.

comment:5 Changed 15 years ago by skymoo (Adam Mercer)

Resolution: fixed
Status: newclosed

py-macholib update to 1.2.1 in r62835

comment:6 Changed 12 years ago by antoniosmanousakis (Antonios Manousakis)

Cc: antonism@… added

Cc Me!

Note: See TracTickets for help on using tickets.