[FIDO] Fido Help

Rolf Lang rolf.lang at la-bw.de
Tue Jul 5 09:02:33 BST 2016

Hi Justin,


Following your advice, I deinstalled python 3.5 and installed python 2.7 and now it works for me!


FIDO: Processed    106 files in 3152.74 msec, 34 files/sec






Von: Justin Simpson [mailto:jsimpson at artefactual.com] 
Gesendet: Donnerstag, 30. Juni 2016 19:25
An: rolf.lang at la-bw.de; fido at lists.openpreservation.org
Betreff: re: [FIDO] Fido Help


Hi Rolf,
I think the problem you described in your email 
from June 23rd may be related to the use of Python3.
Are you able to test Fido using Python 2.7?  
There is an issue on github for this
I have started looking at it, I'm hoping to fix this in a 1.3.5 bugfix release.

Hi there,
I tried some first steps, using FIDO v1.3.4, but failed:
- Installation seems to be fine (on Win7 64Bit)
- calling cmd line works (see below) >python fido.fido 
- but I failed to run >fido -h
- and also get errors for > python -m fido.fido c:\tmp\a.html
Kind regards
Rolf LANG | Landesarchiv Baden-Württemberg | Zentrale Dienste | Ref. 13
Eugenstr. 7 | 70182 Stuttgart | Tel 0711/212-4275 | E-Mail
rolf.lang at la-bw.de <http://lists.openpreservation.org/listinfo/fido> 
More details:
c:\>python -m fido.fido
usage: fido.py [-h] [-v] [-q] [-recurse] [-zip] [-nocontainer]
               [-input INPUT] [-filename FILENAME] [-useformats
               [-nouseformats EXCLUDEPUIDS] [-matchprintf FORMATSTRING]
               [-nomatchprintf FORMATSTRING] [-bufsize BUFSIZE]
               [-container_bufsize CONTAINER_BUFSIZE]
               [-loadformats XML1,...,XMLn] [-confdir CONFDIR]
               [FILE [FILE ...]]
Format Identification for Digital Objects (fido).
FIDO is a command-line tool to identify the file formats of digital objects.
It is designed for simple integration into automated work-flows.
positional arguments:
  FILE                  files to check. If the file is -, then read content
from stdin. In this case, python must be invoked with -u or it may convert
the line terminators.
optional arguments:
  -h, --help            show this help message and exit
  -v                    show version information
  -q                    run (more) quietly
  -recurse              recurse into subdirectories
  -zip                  recurse into zip and tar files
  -nocontainer          disable deep scan of container documents, increases
speed but may reduce accuracy with big files
  -pronom_only          disables loading of format extensions file, only
PRONOM signatures are loaded, may reduce accuracy of results
  -input INPUT          file containing a list of files to check, one per
line. - means stdin
  -filename FILENAME    filename if file contents passed through STDIN
  -useformats INCLUDEPUIDS
                        comma separated string of formats to use in
  -nouseformats EXCLUDEPUIDS
                        comma separated string of formats not to use in
  -matchprintf FORMATSTRING
                        format string (Python style) to use on match. See
nomatchprintf, README.txt.
  -nomatchprintf FORMATSTRING
                        format string (Python style) to use if no match. See
  -bufsize BUFSIZE      size (in bytes) of the buffer to match against
(default=131072 bytes)
  -container_bufsize CONTAINER_BUFSIZE
                        size (in bytes) of the buffer to match against
(default=524288 bytes)
  -loadformats XML1,...,XMLn
                        comma separated string of XML format files to add.
  -confdir CONFDIR      configuration directory to load_fido_xml, for
example, the format specifications from.
Open Planets Foundation (http://www.openplanetsfoundation.org)
See License.txt for license information.
Download from: https://github.com/openplanets/fido/releases
Usage guide: http://wiki.opf-labs.org/display/KB/FIDO+usage+guide
Author: Adam Farquhar (BL), 2010
Maintainer: Maurice de Rooij (OPF/NANETH), 2011, 2012, 2013
FIDO uses the UK National Archives (TNA) PRONOM File Format
and Container descriptions.
PRONOM is available from http://www.nationalarchives.gov.uk/pronom/
c:\>python -m fido.fido c:\tmp\a.html
FIDO v1.3.4 (formats-v84.xml, container-signature-20160121.xml,
Traceback (most recent call last):
line 170, in _run_module_as_main
    "__main__", mod_spec)
line 85, in _run_code
    exec(code, run_globals)
opf_fido-1.3.4-py3.5.egg\fido\fido.py", line 882, in <module>
opf_fido-1.3.4-py3.5.egg\fido\fido.py", line 869, in main
opf_fido-1.3.4-py3.5.egg\fido\fido.py", line 375, in identify_file
    bofbuffer, eofbuffer, _ = self.get_buffers(f, size, seekable=True)
opf_fido-1.3.4-py3.5.egg\fido\fido.py", line 543, in get_buffers
    bofbuffer = self.blocking_read(stream, bytes_to_read)
opf_fido-1.3.4-py3.5.egg\fido\fido.py", line 527, in blocking_read
    buffer += readbuffer
TypeError: Can't convert 'bytes' object to str implicitly

Justin Simpson
Director of Archivematica Technical Services

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openpreservation.org/pipermail/fido/attachments/20160705/147f7084/attachment.html>

More information about the FIDO mailing list