Opened 11 years ago

Closed 10 years ago

#40134 closed defect (fixed)

matplotlib, tornado and setuptools (broken setup)

Reported by: andre.dos.anjos@… Owned by: seanfarley (Sean Farley)
Priority: Normal Milestone:
Component: ports Version: 2.2.0
Keywords: Cc: petrrr
Port: py-matplotlib

Description

After upgrade to py27-matplotlib @1.3.0, I can't any longer "require" this package using pkg_resources/setuptools:

$ python
...
>>> import pkg_resources
>>> pkg_resources.require('matplotlib')
pkg_resources.require('matplotlib')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pkg_resources.py", line 728, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pkg_resources.py", line 626, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: tornado

There seems to exist a unresolved dependence to py-tornado that was not brought in with the update. Strangely, just importing matplotlib works, but as soon as you try to "require" it through setuptools, it will break.

Installing py*-tornado fixes the problem.

To fix this problem one would need to add py*-tornado as a MacPort dependence to py*-matplotlib.

Change History (4)

comment:1 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: changed from macports-tickets@… to sean@…

comment:2 Changed 10 years ago by elieskhoury@…

Hello,

We still have this problem.

Any news?

Thanks, Elie

comment:3 Changed 10 years ago by petrrr

Cc: Peter.Danecek@… added

Cc Me!

comment:4 Changed 10 years ago by mf2k (Frank Schima)

Resolution: fixed
Status: newclosed

I poked around and the webagg does require tornado.

r113419.

Note: See TracTickets for help on using tickets.