Install on Archlinux

25 views
Skip to first unread message

guillaume.betous

unread,
May 4, 2019, 3:14:23 AM5/4/19
to Paperwork
Hi,

I want to try paperwork, byt I coud not succeed on installing it under Archlinux.

Here is what I did to install with dependancies :
# pacman -S enchant
# pacman -S python-pyenchant
# pip3 install paperwork
# pacman -S tesseract
# pacman -S tesseract-data-fra
# pacman -S tesseract-data-eng
# pacman -S sane

After that I check dependancies :

$ paperwork-shell chkdeps paperwork_backend
[WARN] Unknown distribution. Can't suggest packages to install
All dependencies have been found.

$ paperwork-shell chkdeps paperwork
[WARN] Unknown distribution. Can't suggest packages to install
INFO   Pyinsane_daemon Ready
INFO   Pyinsane_daemon Daemon stopped
All dependencies have been found.

But when I launch "paperwork" :

$ paperwork
/usr/lib/python3.7/site-packages/paperwork/paperwork.py:27: PyGIWarning: Notify was imported without specifying a version first. Use gi.require_version('Notify', '0.7') before import to ensure that the right version gets loaded.
  from gi.repository import Notify  # noqa: E402
/usr/lib/python3.7/site-packages/paperwork/frontend/diag/__init__.py:11: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
  from gi.repository import Gtk
/usr/lib/python3.7/site-packages/paperwork_backend/pdf/doc.py:21: PyGIWarning: Poppler was imported without specifying a version first. Use gi.require_version('Poppler', '0.18') before import to ensure that the right version gets loaded.
  from gi.repository import Poppler
/usr/lib/python3.7/site-packages/paperwork_backend/img/doc.py:30: PyGIWarning: PangoCairo was imported without specifying a version first. Use gi.require_version('PangoCairo', '1.0') before import to ensure that the right version gets loaded.
  from gi.repository import PangoCairo
INFO   paperwork.paperwork            Using locales in '/usr/lib/python3.7/site-packages/paperwork/frontend/locale'
INFO   paperwork.paperwork            Initializing pyinsane ...
INFO   pyinsane2.sane.abstract_proc   Starting Pyinsane subprocess
INFO   pyinsane2.sane.abstract_proc   Pyinsane pipes: /tmp/pyinsane_l_ln338h/pipe_c2s | /tmp/pyinsane_l_ln338h/pipe_s2c
INFO   Pyinsane_daemon Ready
INFO   pyinsane2.sane.abstract_proc   Connected to Pyinsane subprocess
INFO   paperwork.paperwork            Initializing libnotify ...
INFO   paperwork_backend.config       Config file not found. Will use '/home/guillaume/.config/paperwork.conf'
INFO   paperwork_backend.config       Reloading /home/guillaume/.config/paperwork.conf ...
INFO   paperwork.paperwork            Stopping Pyinsane ...
INFO   Pyinsane_daemon Daemon stopped
ERROR  paperwork.frontend.diag        === UNCATCHED EXCEPTION ===
Traceback (most recent call last):
  File "/usr/bin/paperwork", line 11, in <module>
    load_entry_point('paperwork==1.2.4', 'gui_scripts', 'paperwork')()
  File "/usr/lib/python3.7/site-packages/paperwork/paperwork.py", line 191, in main
    m.main(hook_func, skip_workdir_scan)
  File "/usr/lib/python3.7/site-packages/paperwork/paperwork.py", line 159, in main
    self.config.read()
  File "/usr/lib/python3.7/site-packages/paperwork_backend/config.py", line 188, in read
    setting.load(self._configparser)
  File "/usr/lib/python3.7/site-packages/paperwork_backend/config.py", line 63, in load
    self.value = self.default_value_func()
  File "/usr/lib/python3.7/site-packages/paperwork/frontend/util/config.py", line 284, in <lambda>
    lambda: ocr_lang(config.settings['ocr_lang']))
  File "/usr/lib/python3.7/site-packages/paperwork/frontend/util/config.py", line 230, in get_default_spellcheck_lang
    return lang.alpha_2
AttributeError: 'NoneType' object has no attribute 'alpha_2'
ERROR  paperwork.frontend.diag        ===========================

Thanks for your help !

gUI

Jerome Flesch

unread,
May 6, 2019, 5:42:08 AM5/6/19
to paperw...@googlegroups.com, guillaume.betous

Hello,


This bug will be fixed in the next release.

In the meantime, I believe there is a Paperwork package in AUR ( https://www.archlinux.org/packages/community/any/paperwork/ ?). The other option is to install it using Flatpak.


Best regards,

--
You received this message because you are subscribed to the Google Groups "Paperwork" group.
To unsubscribe from this group and stop receiving emails from it, send an email to paperwork-gu...@googlegroups.com.
Visit this group at https://groups.google.com/group/paperwork-gui.
For more options, visit https://groups.google.com/d/optout.


Reply all
Reply to author
Forward
0 new messages