ValueError: blocks[0,:] has incompatible row dimensions.
Hello, I would like to report the following issue. According to Contributing you need some information which I listed below.
- Exact Paperwork version => 2.2.2
- Operation system (Windows ? Linux ?) => Linux
- If you use Linux: how did you install Paperwork ? Using Flatpak ? => ArchLinux pacman
- Logs of the session where the bug happened are strongly recommended. => Traceback (most recent call last):
File "/usr/lib/python3.12/site-packages/openpaperwork_gtk/mainloop/glib.py", line 160, in decorator
func(*args, **kwargs)
File "/usr/lib/python3.12/site-packages/openpaperwork_core/work_queue/default.py", line 30, in _on_error
raise exc
File "/usr/lib/python3.12/site-packages/openpaperwork_core/promise.py", line 235, in _threaded_do
our_r = self.func(*args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/paperwork_backend/guesswork/label/sklearn/__init__.py", line 909, in _reload_label_guessers
) = self._load_classifiers(
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/paperwork_backend/guesswork/label/sklearn/__init__.py", line 948, in _load_classifiers
corpus.standardize_feature_vectors(vectorizer)
File "/usr/lib/python3.12/site-packages/paperwork_backend/guesswork/label/sklearn/__init__.py", line 340, in standardize_feature_vectors
doc_vector = scipy.sparse.hstack([
^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/scipy/sparse/_construct.py", line 733, in hstack
return _block([blocks], format, dtype, return_spmatrix=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/scipy/sparse/_construct.py", line 948, in _block
raise ValueError(msg)
ValueError: blocks[0,:] has incompatible row dimensions. Got blocks[0,1].shape[0] == 5, expected 1.
- If the bug is a UI bug, a screenshot is strongly recommended. => I do not think it is a GUI bug, but I attached a screenshot.
Description The error occurs when starting paperwork. After importing documents those will not appear in the left hand side list of documents. They only appear after restarting the application which again will through the error message above.
Thanks so far.
Edited by Jerome Flesch