databio / bulker

Manager for multi-container computing environments
https://bulker.io
BSD 2-Clause "Simplified" License
24 stars 2 forks source link

'str' object does not support item assignment #94

Open rcorces opened 6 months ago

rcorces commented 6 months ago

I havent looked into how to fix this but there seems to be a bug in bulker that manifests with the above error whenever you use bulker unload and remove that last element of a crate folder.

If you started with a blank bulker_config file you could reproduce this by loading a crate and then unloading that same crate and the config file should end up with something that looks like this

  crates:
    databio: OrderedDict()

The problem seems to be that OrderedDict() is being left behind and at least for me, that results in the str error above whenever I try to do other load commands with bulker. If I delete that line in the config file, it all goes back to normal.

nsheff commented 6 months ago

I see. thanks for reporting. it should remove the whole thing, just needs an extra line of code in there in the unload function...