[MacPorts] #40134: matplotlib, tornado and setuptools (broken setup)

MacPorts noreply at macports.org
Thu Aug 15 10:27:30 PDT 2013


#40134: matplotlib, tornado and setuptools (broken setup)
-------------------------------+--------------------------------
 Reporter:  andre.dos.anjos@…  |      Owner:  macports-tickets@…
     Type:  defect             |     Status:  new
 Priority:  Normal             |  Milestone:
Component:  ports              |    Version:  2.2.0
 Keywords:                     |       Port:  py-matplotlib
-------------------------------+--------------------------------
 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.

-- 
Ticket URL: <https://trac.macports.org/ticket/40134>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list