I was able to get the pre-127 version of pkg.depotd started from an alternate root:

# setenv PYTHONPATH /export/home/ipkgroot_v0/usr/lib/python2.4/vendor-packages # /usr/bin/python2.4 /export/home/ipkgroot_v0/usr/lib/pkg.depotd -p 10750 -d /var/pkg/repo-sru-x86

It starts fine, but if I try to access it with wget, the following errors are kicked out from pkg.depotd:

[30/Nov/2009:10:24:56] Error encountered while processing template: index.shtml
Traceback (most recent call last):
File "/usr/lib/python2.4/vendor-packages/pkg/server/face.py", line 100, in respond
   # The user shouldn't see why we can't render a template, but
File "/usr/lib/python2.4/vendor-packages/pkg/server/face.py", line 69, in __render_template
   # All errors are treated as a 404 since reverse proxies such as Apache
File "/usr/lib/python2.4/vendor-packages/mako/template.py", line 126, in render_unicode return runtime._render(self, self.callable_, args, data, as_unicode=True) File "/usr/lib/python2.4/vendor-packages/mako/runtime.py", line 335, in _render _render_context(template, callable_, context, *args, **_kwargs_for_callable(callable_, data)) File "/usr/lib/python2.4/vendor-packages/mako/runtime.py", line 352, in _render_context
   _exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
File "/usr/lib/python2.4/vendor-packages/mako/runtime.py", line 385, in _exec_template
   callable_(context, *args, **kwargs)
 File "index_shtml", line 35, in render_body
File "/usr/lib/python2.4/vendor-packages/pkg/server/api.py", line 276, in __init__
   return
File "/usr/lib/python2.4/vendor-packages/pkg/server/api.py", line 65, in __init__
VersionException: Incompatible API version '6' specified; expected: '5'.

10.4.168.51 - - [30/Nov/2009:10:24:56] "HEAD / HTTP/1.0" 404 714 "" "Wget/1.10.2"

Notice the path is not from /export/home/ipkgroot_v0. Is there another place that I should be setting PYTHONPATH (somewhere in the apache area maybe) to fix this issue?

-- Alan
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to