Opened 15 years ago
Closed 15 years ago
#20327 closed defect (fixed)
rst2pdf 0.11 missing run time dependancies
Reported by: | hinman@… | Owned by: | blb@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.7.1 |
Keywords: | Cc: | ||
Port: | rst2pdf |
Description
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
Change History (2)
comment:1 Changed 15 years ago by mf2k (Frank Schima)
Owner: | changed from macports-tickets@… to blb@… |
---|
comment:2 Changed 15 years ago by blb@…
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
Thanks for the catch, fixed in r53946.