Bug0102
- Description
- export_index_hit doesn't work at all. First of all there is aminor bug, since is unable to load properly python modules installed under /usr/local/lib64/python2.5/site-packages/. We insert two lines to patch this:
sys.path.append ("/usr/local/lib64/python2.5/site-packages/") sys.path.append ("/usr/local/lib64/python2.5/site-packages/pyflag/")
after import sys.
But we are unable to use the script. Launching it gives us always the same result:
cesio:/usr/local/share/pyflag/utilities # ./export_index_hits.py Moretti /tmp Traceback (most recent call last):
File "./export_index_hits.py", line 34, in <module>
- fsfd = Registry.FILESYSTEMS.fs['DBFS'](sys.argv[1])
AttributeError: 'NoneType' object has no attribute 'fs'
Version is the darc's one.
- Logged
- 2009-06-10
- Logged By
- Assigned to
- Scudette
- Status
- Close
Get back to the BugIndex
export_index_hit is a very old script which should not be there at all since its no longer supported. If you want to export all the inodes which matched you can simply present the keyword hits in the table and then click export to html. You will then get all the inodes in the table exported in a nice html report.
If you still want to do it as a script you can use pyflash to get better automation (see for example examples/extract_images.py for something similar).
BTW the reason the exception is raised above is because we need to run Registry.Init() at some point (it initialises the plugins etc). If you do decide to go with the script idea you should probably call it first.
I have removed the script from darcs to avoid confusion.
Please note that we have a case with 80 different hd images and more that 14000 keywords. It's impossible to select keywords one-by-one with the web GUI. We need something to extract automatically the various hints
Andrea
