[MacPorts] #20327: rst2pdf 0.11 missing run time dependancies

MacPorts noreply at macports.org
Wed Jul 15 13:09:02 PDT 2009


#20327: rst2pdf 0.11 missing run time dependancies
------------------------------+---------------------------------------------
 Reporter:  hinman@…          |       Owner:  macports-tickets@…                   
     Type:  defect            |      Status:  new                                  
 Priority:  Normal            |   Milestone:                                       
Component:  ports             |     Version:  1.7.1                                
 Keywords:                    |        Port:  rst2pdf                              
------------------------------+---------------------------------------------
 first run of rst2pdf gives the following error:

 {{{

 Traceback (most recent call last):
   File "/opt/local/bin/rst2pdf", line 5, in <module>
     from pkg_resources import load_entry_point
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6
 /site-packages/pkg_resources.py", line 2562, in <module>
     working_set.require(__requires__)
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6
 /site-packages/pkg_resources.py", line 626, in require
     needed = self.resolve(parse_requirements(requirements))
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6
 /site-packages/pkg_resources.py", line 524, in resolve
     raise DistributionNotFound(req)  # XXX put more info here
 pkg_resources.DistributionNotFound: simplejson

 }}}

 Installing the py26-simplejson fixed that error.   Second run of rst2pdf
 gives the following error:

 {{{

 Traceback (most recent call last):
   File "/opt/local/bin/rst2pdf", line 5, in <module>
     from pkg_resources import load_entry_point
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6
 /site-packages/pkg_resources.py", line 2562, in <module>
     working_set.require(__requires__)
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6
 /site-packages/pkg_resources.py", line 626, in require
     needed = self.resolve(parse_requirements(requirements))
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6
 /site-packages/pkg_resources.py", line 524, in resolve
     raise DistributionNotFound(req)  # XXX put more info here
 pkg_resources.DistributionNotFound: Pygments

 }}}

 Installing py26-pygments fixed that error.

 The following patch to the Portsfile should fix this:

 {{{

 --- Portfile.orig       2009-07-15 14:39:19.000000000 -0500
 +++ Portfile    2009-07-15 15:05:54.000000000 -0500
 @@ -19,6 +19,7 @@
                      rmd160  1adb0d0bb6d88039a619c6fffa7251e2b871b719

  depends_lib-append  port:py26-reportlab port:py26-docutils
 +depends_run         port:py26-simplejson port:py26-pygments

  post-destroot {
     ln -s ${python.prefix}/bin/rst2pdf ${destroot}${prefix}/bin/rst2pdf

 }}}

-- 
Ticket URL: <http://trac.macports.org/ticket/20327>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list