Mike Walker wrote:
> Output...
> 
> $ pkg info
> Traceback (most recent call last):
>   File "/usr/bin/pkg", line 2284, in ?
>     __ret = main_func()
>   File "/usr/bin/pkg", line 2245, in main_func
>     return info(img, pargs)
>   File "/usr/bin/pkg", line 1105, in info
>     img.history.operation_name = "info"
>   File "/usr/lib/python2.4/vendor-packages/pkg/client/history.py", line 182, 
> in __setattr__
>     op.userid = portable.get_userid()
>   File "/usr/lib/python2.4/vendor-packages/pkg/portable/os_unix.py", line 70, 
> in get_userid
>     return get_user_by_name(os.getlogin(), None, False)
>   File "/usr/lib/python2.4/vendor-packages/pkg/portable/os_unix.py", line 
> 119, in get_user_by_name
>     return pwd.getpwnam(name).pw_uid
> KeyError: 'getpwnam(): name not found: noisufno'

This looks like it thinks your user's groupname is "nosiufno" but it 
can't find that group in the group file.

A newer version of pkg(5) shouldn't have this traceback/problem.

> pkg: This is an internal error.  Please let the developers know about this
> problem by filing a bug at http://defect.opensolaris.org and including the
> above traceback and this message.  The version of pkg(5) is 'be1ad23e7704+'.
> 
> $ sudo pkg image-update
> Traceback (most recent call last):
>   File "/usr/bin/pkg", line 2314, in ?
>     __img.history.operation_result = \
>   File "/usr/lib/python2.4/vendor-packages/pkg/client/history.py", line 205, 
> in __setattr__
>     self.__save()
>   File "/usr/lib/python2.4/vendor-packages/pkg/client/history.py", line 417, 
> in __save
>     encoding=sys.getdefaultencoding())
>   File 
> "/var/tmp/pkgbuild-gbuild/SUNWPython-extra-2.4.2-build/usr/lib/python2.4/site-packages/_xmlplus/dom/minidom.py",
>  line 1746, in writexml
>   File 
> "/var/tmp/pkgbuild-gbuild/SUNWPython-extra-2.4.2-build/usr/lib/python2.4/site-packages/_xmlplus/dom/minidom.py",
>  line 821, in writexml
>   File 
> "/var/tmp/pkgbuild-gbuild/SUNWPython-extra-2.4.2-build/usr/lib/python2.4/site-packages/_xmlplus/dom/minidom.py",
>  line 816, in writexml
>   File 
> "/var/tmp/pkgbuild-gbuild/SUNWPython-extra-2.4.2-build/usr/lib/python2.4/site-packages/_xmlplus/dom/minidom.py",
>  line 304, in _write_data
> AttributeError: 'NoneType' object has no attribute 'replace'
> 
> Thoughts?

This looks like it can't get information about your client or user 
because you're using sudo instead of pfexec or running it as root.

This should also be resolved due to a workaround that was put in place 
in a newer version of pkg(5).

A newer version of pkg(5) should be available soon for you to install, 
or alternatively, you could obtain it from the pkg development gate and 
try that.

-- 
Shawn Walker
_______________________________________________
indiana-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/indiana-discuss

Reply via email to