Alpaca from the repo issue or my boneheadedness?

Hello,

  • OpenMandriva Lx version: Rome 25.01

  • Desktop environment (KDE, LXQT…): Plasma6

Trying to run Alpaca but it doesnt open.

From Konsole I get:

Traceback (most recent call last):
File “/usr/bin/alpaca”, line 44, in
from alpaca import main
File “/usr/share/Alpaca/alpaca/main.py”, line 28, in
from .window import AlpacaWindow
File “/usr/share/Alpaca/alpaca/window.py”, line 23, in
import odf.opendocument as odfopen
ModuleNotFoundError: No module named ‘odf’

The lines from the relevant files are:
/usr/bin/alpaca

from alpaca import main

main.py

from .window import AlpacaWindow

window.py

import odf.opendocument as odfopen

This started from me removing the Flatpak version of Alpaca and installing the Alpaca from the repos. Is it possible that flatpak removed something it shouldnt have or is there maybe something missing from the repo package?

Also lib64odfgen is installed but I do see that the following ones are not.

  • python-odf
  • python-odf-tools
  • python2-odf

Normally I would just install all of them and try that but I dont want to break anything. Lol.

Sorry if this is not to help with your current problem:
How do you remove the flatpak apps?

Is it something you do in console? If so (and that’s the purpose of my question) it’s good practice to keep transactions logs for future documentation if any need.
At the time of installations, but even more so when it comes to remove stuff.

I do realize that it’s late in this specific case :confused: however it may be useful for others to know.

I used Flatdrake in this case.

But typically you just do in Konsole

flatpak remove (app name)

1 Like

It’s been several days and I been looking for how to fix this.
I can dig for the logs if they end up being needed.

IMO a try won’t hurt

I dont know where to find the logs for flatpak or flatdrake. But I honestly dont think that flatpak touches anything outside of flatpak.
But I did find the dnf.log for when I installed Alpaca today.

2025-01-26T10:52:03-0500 INFO ================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
alpaca x86_64 3.2.0-1 rolling-x86_64 326 k
Installing dependencies:
lib64vte-gir3.91 x86_64 0.78.2-1 rolling-x86_64 17 k
numactl x86_64 2.0.19-1 rolling-x86_64 56 k
python-coverage x86_64 7.6.10-1 rolling-x86_64 370 k
python-html2text noarch 2024.2.26-1 rolling-x86_64 25 k
python-httpretty noarch 1.1.4-1 rolling-x86_64 29 k
python-icu x86_64 2.14-1 rolling-x86_64 333 k
python-mock noarch 4.0.3-1 rolling-x86_64 32 k
python-pydbus noarch 0.6.0-1 rolling-x86_64 20 k
python-pypdf noarch 5.1.0-1 rolling-x86_64 674 k
python-pytube noarch 15.0.0-1 rolling-x86_64 52 k
python-youtube-transcript-api noarch 0.6.2-1 rolling-x86_64 26 k

Transaction Summary
================================================================================
Install 12 Packages

I didnt see anything about the python-odf or pytthon-odf-tools so I went ahead and installed those since they are small and I’m guessing those are python modules and it wouldnt hurt having an extra module or two.

2025-01-27T19:12:10-0500 INFO ================================================================================
Package Architecture Version Repository Size
================================================================================
Installing:
python-odf noarch 1.4.1-1 rolling-x86_64 120 k
python-odf-tools noarch 1.4.1-1 rolling-x86_64 42 k
Installing dependencies:
python-defusedxml noarch 0.7.1-1 rolling-x86_64 27 k

Transaction Summary
================================================================================
Install 3 Packages

2025-01-27T19:12:10-0500 INFO Total download size: 189 k
2025-01-27T19:12:10-0500 INFO Installed size: 802 k
2025-01-27T19:12:12-0500 INFO Downloading Packages:
2025-01-27T19:12:14-0500 INFO --------------------------------------------------------------------------------
2025-01-27T19:12:14-0500 INFO Total 96 kB/s | 189 kB 00:01
2025-01-27T19:12:14-0500 DEBUG Using rpmkeys executable at /usr/sbin/rpmkeys to verify signatures
2025-01-27T19:12:14-0500 INFO Running transaction check
2025-01-27T19:12:14-0500 INFO Transaction check succeeded.
2025-01-27T19:12:14-0500 INFO Running transaction test
2025-01-27T19:12:14-0500 INFO Transaction test succeeded.
2025-01-27T19:12:14-0500 DDEBUG timer: transaction test: 13 ms
2025-01-27T19:12:14-0500 INFO Running transaction
2025-01-27T19:12:14-0500 DDEBUG RPM transaction start.
2025-01-27T19:12:15-0500 DDEBUG RPM transaction over.
2025-01-27T19:12:15-0500 DDEBUG timer: verify transaction: 123 ms
2025-01-27T19:12:15-0500 DDEBUG timer: transaction: 460 ms
2025-01-27T19:12:15-0500 DEBUG Completion plugin: Generating completion cache…
2025-01-27T19:12:15-0500 DEBUG Installed: python-defusedxml-0.7.1-1.noarch
2025-01-27T19:12:15-0500 DEBUG Installed: python-odf-1.4.1-1.noarch
2025-01-27T19:12:15-0500 DEBUG Installed: python-odf-tools-1.4.1-1.noarch
2025-01-27T19:12:15-0500 INFO Complete!
2025-01-27T19:12:15-0500 DDEBUG Cleaning up.
2025-01-27T19:12:15-0500 DDEBUG /var/cache/dnf/rolling-x86_64-be271eac6fa7887a/packages/python-odf-1.4.1-1-omv4090.noarch.rpm removed
2025-01-27T19:12:15-0500 DDEBUG /var/cache/dnf/rolling-x86_64-be271eac6fa7887a/packages/python-defusedxml-0.7.1-1-omv4090.noarch.rpm removed
2025-01-27T19:12:15-0500 DDEBUG /var/cache/dnf/rolling-x86_64-be271eac6fa7887a/packages/python-odf-tools-1.4.1-1-omv4090.noarch.rpm removed
2025-01-27T19:12:15-0500 DDEBUG Plugins were unloaded.

And just like that Alpaca is working as advertised.

2 Likes

Should I report this as a bug if it doesnt install all the dependencies?

1 Like

Yes please. Don’t forget to throw in a link to this thread at the end of the report.

2 Likes

Done!
Link to github issue:

1 Like