Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#74861 - Paperwork does not start due to python numpy import error

Attached to Project: Arch Linux
Opened by J. M. Reckel (ArchChem) - Thursday, 26 May 2022, 19:55 GMT
Last edited by Antonio Rojas (arojas) - Saturday, 28 May 2022, 14:49 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

paperwork does not start due to a python-numpy import error

Additional info:
* Versions: paperwork 2.1.1-1 python-numpy-1.22.3-1
* log after running paperwork-gtk in the command line:

Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/openpaperwork_core/uncaught_exception.py", line 29, in _on_uncaught_exception
self.core.call_one(
File "/usr/lib/python3.10/site-packages/openpaperwork_core/__init__.py", line 430, in call_one
assert \
AssertionError: A plugin has been loaded without being initialized. Call core.init() first

Original exception was:
RuntimeError: module compiled against API version 0xf but this version of numpy is 0xe
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/openpaperwork_core/uncaught_exception.py", line 29, in _on_uncaught_exception
self.core.call_one(
File "/usr/lib/python3.10/site-packages/openpaperwork_core/__init__.py", line 430, in call_one
assert \
AssertionError: A plugin has been loaded without being initialized. Call core.init() first

Original exception was:
Traceback (most recent call last):
File "/usr/bin/paperwork-gtk", line 33, in <module>
sys.exit(load_entry_point('paperwork==2.1.1', 'gui_scripts', 'paperwork-gtk')())
File "/usr/lib/python3.10/site-packages/paperwork_gtk/main.py", line 216, in main
main_main(sys.argv[1:])
File "/usr/lib/python3.10/site-packages/paperwork_gtk/main.py", line 187, in main_main
core.call_all("config_load_plugins", "paperwork-gtk", DEFAULT_GUI_PLUGINS)
File "/usr/lib/python3.10/site-packages/openpaperwork_core/__init__.py", line 406, in call_all
callback(*args, **kwargs)
File "/usr/lib/python3.10/site-packages/openpaperwork_core/config/__init__.py", line 99, in config_load_plugins
self.core.call_all(
File "/usr/lib/python3.10/site-packages/openpaperwork_core/__init__.py", line 406, in call_all
callback(*args, **kwargs)
File "/usr/lib/python3.10/site-packages/openpaperwork_core/config/backend/configparser.py", line 247, in config_backend_load_plugins
self.core.load(module)
File "/usr/lib/python3.10/site-packages/openpaperwork_core/__init__.py", line 165, in load
module = importlib.import_module(module_name)
File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 883, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/usr/lib/python3.10/site-packages/paperwork_backend/guesswork/label/sklearn/__init__.py", line 18, in <module>
import scipy.sparse
File "/usr/lib/python3.10/site-packages/scipy/sparse/__init__.py", line 267, in <module>
from ._csr import *
File "/usr/lib/python3.10/site-packages/scipy/sparse/_csr.py", line 10, in <module>
from ._sparsetools import (csr_tocsc, csr_tobsr, csr_count_blocks,
ImportError: numpy.core.multiarray failed to import


Steps to reproduce:
1. Install paperwork
2. Run paperwork-gtk (in the command line)
This task depends upon

Closed by  Antonio Rojas (arojas)
Saturday, 28 May 2022, 14:49 GMT
Reason for closing:  Not a bug
Comment by J. M. Reckel (ArchChem) - Thursday, 26 May 2022, 19:57 GMT
Please change title to [paperwork]... sorry!
Comment by Chih-Hsuan Yen (yan12125) - Saturday, 28 May 2022, 08:37 GMT
paperwork-gtk seems fine for me, and this line from your log seems unusual

> RuntimeError: module compiled against API version 0xf but this version of numpy is 0xe

python-numpy-1.22.3-1 already has API version 0xf. Probably you have older numpy installed somewhere.
Comment by J. M. Reckel (ArchChem) - Saturday, 28 May 2022, 13:20 GMT
> python-numpy-1.22.3-1 already has API version 0xf. Probably you have older numpy installed somewhere.

You are right, thank you for the hint! After removing my locally installed numpy with pip3 uninstall numpy, paperwork-gtk3 starts again. Thanks, the bug can be closed then.

Loading...