FredHutch / lf-backup

lf-backup (aka large file backup) takes a list of filenames from a csv file or sql and copies the files to a swift objectstore
Other
0 stars 0 forks source link

restore not working: name 'lflib' is not defined #9

Closed robert-mcdermott closed 7 years ago

robert-mcdermott commented 7 years ago

After install via pip on a clean test system the backup funtionality works, but when attempting to perform a restore, I get the following error:

$ lf-backup -C lf-backup4 -r 7 --prefix /restoredata
Traceback (most recent call last):
  File "/usr/local/bin/lfbackup.py", line 11, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.5/dist-packages/lf_backup/lfbackup.py", line 271, in main
    restore(parse_args,crier)
  File "/usr/local/lib/python3.5/dist-packages/lf_backup/lfbackup.py", line 214, in restore
    c_objs=lflib.get_sw_container(parse_args.container)
NameError: name 'lflib' is not defined
jmkatcher commented 7 years ago

Sorry about that. My development environment calls lflib as that's how that package is written. The current lfbackup install copies it to lf_backup.

robert-mcdermott commented 7 years ago

@jmkatcher has the fixed version been pushed to PyPi yet?

jmkatcher commented 7 years ago

It's been checked in to github.