Hi Riccaardo, Am 03.12.2018 um 12:09 schrieb Riccardo Mottola via maintainers <maintainers@lists.opencsw.org>: > let us take the "strong" route, remove traces of Performance, re-upload it > again. > > Sorry for the delay, the last time I tried there were issues with the > catalog, now I retried. > > Maciej (Matchek) Bliziński wrote: >> Use the following command to remove the package: >> ./lib/python/safe_remove_package.py --os-releases=SunOS5.9,… -c <catalogname> >> I probably wrote this script, today I remember almost nothing about it, but >> I guess it checks that removing the package in question will not create >> dangling dependencies. > > I try to use it as this: what am I doing wrong? > > rmottola@login [login]:~/mgar > gar/v2/lib/python/safe_remove_package.py > --os-releases=SunOS5.10 -c CSWPerformance1 > Traceback (most recent call last): > File "gar/v2/lib/python/safe_remove_package.py", line 225, in <module> > main() > File "gar/v2/lib/python/safe_remove_package.py", line 221, in main > pr.RemovePackage(options.catalogname, not options.dry_run, os_releases) > File "gar/v2/lib/python/safe_remove_package.py", line 132, in RemovePackage > rd = RevDeps(self.rest_client) > File "gar/v2/lib/python/safe_remove_package.py", line 75, in __init__ > self.cp = rest.CachedPkgstats(fn_pkgstatsdb, rest_client) > File "/home/rmottola/opencsw/.buildsys/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 0x3f1690>> ignored
You need to set PYTHONPATH. I just ran it: dam@login [login]:/home/dam/mgar/gar/v2 > export PYTHONPATH=`pwd` dam@login [login]:/home/dam/mgar/gar/v2 > cd lib/python dam@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@login [login]:/home/dam/mgar/gar/v2/lib/python > Best regards — Dago -- "You don't become great by trying to be great, you become great by wanting to do something, and then doing it so hard that you become great in the process." - xkcd #896