kb icon indicating copy to clipboard operation
kb copied to clipboard

Reinstall nuked my existing KBs!!!

Open dnorthup-ums opened this issue 2 years ago • 2 comments

Expected Behavior

Re-install to cope with OS upgrade, be able to use my existing KBs

Actual Behavior

It DELETED THEM.

Steps to Reproduce the Problem

  1. Upgrade OS, therefore upgrading the system python
  2. Find that KB doesn't work anymore
  3. Re-install KB via pip
  4. Find that KB re-install removed completely the existing store of KBs

Specifications

(Note, this is kinda useless in this case, but whatever)

  • Version: NEW is latest, today (2023-05-16), from pip (pre-upgrade may have been 0.1.6, current seems to be 0.1.7; I don't trust it anymore)
  • Platform: Was F36, Now F37
  • Subsystem: ????

dnorthup-ums avatar May 16 '23 18:05 dnorthup-ums

Note, it is going to take me at least 8 hours to regenerate this information, at best, so I'm very angry right now.

dnorthup-ums avatar May 16 '23 18:05 dnorthup-ums

I found the answer, and I'm still not pleased. If a package is going to completely abandon the previous data storage location (in 0.1.6 and earlier: ~/.kb) then upon upgrade it must check the previous location for data and migrate it to the new location instead of creating a new data store from scratch. If I find the neurons to do the python-fu I'll let you know. More than anything else, I'm leaving this here in case somebody else has the same problem I did.

dnorthup-ums avatar May 18 '23 14:05 dnorthup-ums

Sorry you are completely right! I should write a note somewhere with this! Tried to change this at an early stage but still it affected some users.

gnebbia avatar Mar 10 '24 11:03 gnebbia