Thanks for your time!
I mainly do not understand why the snap does not find my own modules.
This:
File “/snap/ocrmypdfgui/10/bin/ocrmypdfgui”, line 5, in from ocrmypdfgui.main import main ModuleNotFoundError: No module named ‘ocrmypdfgui’
it is launching the correct python file in bin which in turn imports the main module from my ocrmypdfgui program.
the module is installed in /snap/ocrmypdfgui/10/lib/python3.8/site-packages/ocrmypdfgui:
Tree Output:
alexander@alexander-xps-13:/snap/ocrmypdfgui/10/lib/python3.8/site-packages/ocrmypdfgui$ tree . ├── gui.py ├── init.py ├── main.py ├── ocr.py ├── plugin_progressbar.py └── pycache ├── gui.cpython-38.pyc ├── init.cpython-38.pyc ├── main.cpython-38.pyc ├── ocr.cpython-38.pyc └── plugin_progressbar.cpython-38.pyc
This is the snaps /bin
alexander@alexander-xps-13:/snap/ocrmypdfgui/10/bin$ tree . ├── activate ├── activate.csh ├── activate.fish ├── Activate.ps1 ├── chardetect ├── coloredlogs ├── dumppdf.py ├── humanfriendly ├── img2pdf ├── img2pdf-gui ├── ocrmypdf ├── ocrmypdfgui ├── pdf2txt.py ├── pip ├── pip3 ├── pip3.8 ├── pycache │ ├── dumppdf.cpython-38.pyc │ └── pdf2txt.cpython-38.pyc ├── python → python3 ├── python3 → /usr/bin/python3.8 └── tqdm
As far as I understand everything is in place for the program to at least start. I do not understand why
/snap/ocrmypdfgui/10/bin/ocrmypdfgui.py
does not find my module which is in
/snap/ocrmypdfgui/10/lib/python3.8/site-packages/