Issue with non-existing package
Riccardo Mottola
rmottola at opencsw.org
Thu Dec 6 11:35:32 CET 2018
Hi Dagobert,
On 12/3/18 1:34 PM, Dagobert Michelsen wrote:
> You need to set PYTHONPATH. I just ran it:
>
> dam at login [login]:/home/dam/mgar/gar/v2 > export PYTHONPATH=`pwd`
> dam at login [login]:/home/dam/mgar/gar/v2 > cd lib/python
> dam at login [login]:/home/dam/mgar/gar/v2/lib/python > ./safe_remove_package.py --os-releases=SunOS5.10 -c CSWPerformance1
> WARNING 2018-12-03 13:32:51,965 safe_remove_package.py:152 could not fetch 'CSWPerformance1' from sparc/SunOS5.10: HTTP Error 404: Not Found
> INFO 2018-12-03 13:32:52,089 safe_remove_package.py:83 MakeRevIndex('unstable', 'sparc', 'SunOS5.10', False)
> WARNING 2018-12-03 13:33:21,073 safe_remove_package.py:152 could not fetch 'CSWPerformance1' from i386/SunOS5.10: HTTP Error 404: Not Found
> INFO 2018-12-03 13:33:21,244 safe_remove_package.py:83 MakeRevIndex('unstable', 'i386', 'SunOS5.10', False)
> # [performance] unstable sparc SunOS5.10 063411d820abce0b73e9968fc447d41e
> # [performance] unstable i386 SunOS5.10 aabd4967527cb8a11988a96b6d8f8b4a
> dam at login [login]:/home/dam/mgar/gar/v2/lib/python >
perhaps there is also a permission issue? I think I need to repeat this
for 5.9, since I still get:
CHECKPKG_OVERRIDES_CSWperformance +=
file-collision|/opt/csw/GNUstep/Local/Library/Headers/Performance/GSIOThreadPool.h|CSWPerformance1|CSWperformance
I retried, I set up PYTHONPATH as you did:
rmottola at login [login]:~/mgar/gar/v2/lib/python > echo $PYTHONPATH
/home/rmottola/mgar/gar/v2
rmottola at login [login]:~/mgar/gar/v2/lib/python >
./safe_remove_package.py --os-releases=SunOS5.9 -c CSWPerformance1
Traceback (most recent call last):
File "./safe_remove_package.py", line 225, in <module>
main()
File "./safe_remove_package.py", line 221, in main
pr.RemovePackage(options.catalogname, not options.dry_run, os_releases)
File "./safe_remove_package.py", line 132, in RemovePackage
rd = RevDeps(self.rest_client)
File "./safe_remove_package.py", line 75, in __init__
self.cp = rest.CachedPkgstats(fn_pkgstatsdb, rest_client)
File "/home/rmottola/mgar/gar/v2/lib/python/rest.py", line 530, in
__init__
self.d = anydbm.open("%s.db" % self.filename, "c")
File "/opt/csw/lib/python2.6/anydbm.py", line 83, in open
return mod.open(file, flag, mode)
File "/opt/csw/lib/python2.6/dbhash.py", line 19, in open
return bsddb.hashopen(file, flag, mode)
File "/opt/csw/lib/python2.6/bsddb/__init__.py", line 361, in hashopen
d.open(file, db.DB_HASH, flags, mode)
bsddb.db.DBNoSuchFileError: (2, 'No such file or directory')
Exception AttributeError: "'CachedPkgstats' object has no attribute 'd'"
in <bound method CachedPkgstats.__del__ of
<lib.python.rest.CachedPkgstats object at 0x3d56d0>> ignored
More information about the maintainers
mailing list