I installed this machine from the OpenSolaris 200805 CD i got from sun, upgraded to snv_98, then a few days ago to snv_99 (the day after 99 came out, so i could see if their were any major problems). For some reason my machine seems to be unique in that since updating to snv_99 pkg it has been throwing a very interesting error. at the recommendation of the fine people in #OpenSolaris on freenode i am presenting this question to you. the error is as follows:
<snip> Traceback (most recent call last): File "/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' </snip> This error results from almost all the command that can be passed to pkg with the exception of "pkg info" with no arguments which results in this error: <snip> Traceback (most recent call last): File "/bin/pkg", line 2284, in ? __ret = main_func() File "/bin/pkg", line 2245, in main_func return info(img, pargs) File "/bin/pkg", line 1105, in info img.history.operation_name = "info" File "/usr/lib/python2.4/vendor-packages/pkg/client/history.py", line 181, in __setattr__ op.username = portable.get_username() File "/usr/lib/python2.4/vendor-packages/pkg/portable/os_unix.py", line 89, in get_username return os.getlogin() OSError: unable to determine login name 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+'. </snip> I'm not sure as these two errors are related, as my python-fu is not strong. ;) but at the very least the second error provides some useful information that the first does not, such as the pkg version. If talking with me would be easier, i will be on freenode under the registered nick of "Tilt". Thank you in advance for any help that may be offered. -- This message posted from opensolaris.org