If you follow this document and still have troubles, please open an issue on GitHub: so I can fill in the gaps.
Within extracted directory copy
$ cp papermerge.conf.py.example /etc/papermerge.conf.py $ chmod 640 /etc/papermerge.conf.py
1a. Look at the config-file with your favorite text editor. Leave default settings or adjust to your needs:
DBDIR: SQLite database storage location
MEDIA_DIR: your documents storage location
STATIC_DIR: this is where all static files will be collected by
IMPORTER_DIR: Papermerge is looking for new files here
Create and Activate python virtual environment with:
$ python3 -m venv .venv $ source .venv/bin/activate
Install necessary dependencies:
$ pip install -r requirements/base.txt
Initialize SQLite database with:
$ ./manage.py migrate
Collect static files for webserver with:
$ ./manage.py collectstatic
Create a user for Papermerge instance:
$ ./manage.py createsuperuser
Start webserver with:
$ ./manage.py runserver <IP>:<PORT>
If no specific IP or PORT is given, the default is 127.0.0.1:8000 also known as http://localhost:8000/. It should look like in the screenshot below. Use the login credentials that you created in #6 to access Papermerge.
You are almost there, but there is no worker running yet.
- In a separate window, change to the project’s root directory again, but this time, you should start the worker script with ./manage.py worker.
- Now put a JPEG, PNG or TIFF file into the IMPORTER_DIR.
- Wait a few minutes for Papermerge to run OCR.
Preview of the documents uploaded:
- Now you should be able to select text in OCRed document!