Page History
...
This document and its children contain a dump of technical information included with Revizor on how to install it and how to use some of the included tools.
Note: Revizor uses virtualenv, a Python tool for isolating the application from the system and installing needed Python packages in an own virtual environment. If you get weird errors about missing packages, remember to run the virtualenv setup script first, so the package root points to the application's package installation folders and not the system-wide one.
For example:
wouter@kkv54:~/Projects/OCRUI$ ./export.py -h
Traceback (most recent call last):
File "./export.py", line 16, in <module>
from app.storage import store
File "/home/wouter/Projects/OCRUI/app/storage/__init__.py", line 6, in <module>
from storage import Store
File "/home/wouter/Projects/OCRUI/app/storage/storage.py", line 12, in <module>
from app.exceptions import ConfigurationError
File "/home/wouter/Projects/OCRUI/app/exceptions.py", line 2, in <module>
from psycopg2 import Error as DBException
ImportError: No module named psycopg2
wouter@kkv54:~/Projects/OCRUI$ . env/bin/activate
(env)wouter@kkv54:~/Projects/OCRUI$ ./export.py -h
usage: export.py [-h] [-v] [-d] [-t {korp}] [-l] [-r REVISION] [-s SAVEDIR]
uuid
positional arguments:
uuid UUID of document to export
optional arguments:
-h, --help show this help message and exit
-v, --verbose show informational messages
-d, --debug show debugging messages
-t {korp}, --type {korp}
optional export profile with special ZIP layout or
metadata filters
-l, --lang add language prefix to zipped path
-r REVISION, --revision REVISION
specify revision to export (default: last)
-s SAVEDIR, --savedir SAVEDIR
save ZIP file in this directory (must exist)
(env)wouter@kkv54:~/Projects/OCRUI$