Bottles icon indicating copy to clipboard operation
Bottles copied to clipboard

[Bug]: Bottles doesnt launch after update to version 60 (ModuleNotFoundError: No module named 'yara')

Open RadimEZ opened this issue 10 months ago • 13 comments

Describe the bug

Appliacation does not launch: ModuleNotFoundError: No module named 'yara'

To Reproduce

  • Update flatpak from flathub to bottles version 60
  • Try to launch, e.g. via flatpak run com.usebottles.bottles
  • Observe error:
(process:2): Gtk-WARNING **: 08:26:02.160: Locale not supported by C library.
        Using the fallback 'C' locale.
Traceback (most recent call last):
  File "/app/bin/bottles", line 49, in <module>
    from bottles.frontend import main
  File "/app/share/bottles/bottles/frontend/main.py", line 45, in <module>
    from bottles.frontend.windows.window import BottlesWindow
  File "/app/share/bottles/bottles/frontend/windows/window.py", line 41, in <module>
    from bottles.frontend.views.details import DetailsView
  File "/app/share/bottles/bottles/frontend/views/details.py", line 35, in <module>
    from bottles.frontend.views.eagle import EagleView
  File "/app/share/bottles/bottles/frontend/views/eagle.py", line 27, in <module>
    from bottles.backend.managers.eagle import EagleManager
  File "/app/share/bottles/bottles/backend/managers/eagle.py", line 25, in <module>
    import yara
ModuleNotFoundError: No module named 'yara'

Package

Flatpak from Flathub

Distribution

Manjaro KDE

Debugging Information

Official Package: true
Version: '61.0'
DE/WM: plasmax11
Display:
    X.org: true
    X.org (port): :0
    Wayland: false
Graphics:
    vendors:
        amd:
            vendor: amd
            envs:
                DRI_PRIME: '1'
            icd: /usr/share/vulkan/icd.d/radeon_icd.x86_64.json:/usr/lib/x86_64-linux-gnu/GL/vulkan/icd.d/radeon_icd.x86_64.json:/usr/lib/i386-linux-gnu/GL/vulkan/icd.d/radeon_icd.i686.json
    prime:
        integrated: null
        discrete: null
Kernel:
    Type: Linux
    Version: 6.12.64-1-MANJARO
Disk:
    Total: 16671002624
    Free: 16670826496
RAM:
    MemTotal: 31.1GiB
    MemAvailable: 23.9GiB
Bottles_envs: null

Troubleshooting Logs

(process:2): Gtk-WARNING **: 08:28:00.428: Locale not supported by C library.
        Using the fallback 'C' locale.
Traceback (most recent call last):
  File "/app/bin/bottles", line 49, in <module>
    from bottles.frontend import main
  File "/app/share/bottles/bottles/frontend/main.py", line 45, in <module>
    from bottles.frontend.windows.window import BottlesWindow
  File "/app/share/bottles/bottles/frontend/windows/window.py", line 41, in <module>
    from bottles.frontend.views.details import DetailsView
  File "/app/share/bottles/bottles/frontend/views/details.py", line 35, in <module>
    from bottles.frontend.views.eagle import EagleView
  File "/app/share/bottles/bottles/frontend/views/eagle.py", line 27, in <module>
    from bottles.backend.managers.eagle import EagleManager
  File "/app/share/bottles/bottles/backend/managers/eagle.py", line 25, in <module>
    import yara
ModuleNotFoundError: No module named 'yara'

Additional context

No response

RadimEZ avatar Jan 25 '26 07:01 RadimEZ

Having the same issue here

dynodevv avatar Jan 25 '26 07:01 dynodevv

Same here, ❯ flatpak run com.usebottles.bottles Traceback (most recent call last): File "/app/bin/bottles", line 49, in from bottles.frontend import main File "/app/share/bottles/bottles/frontend/main.py", line 45, in from bottles.frontend.windows.window import BottlesWindow File "/app/share/bottles/bottles/frontend/windows/window.py", line 41, in from bottles.frontend.views.details import DetailsView File "/app/share/bottles/bottles/frontend/views/details.py", line 35, in from bottles.frontend.views.eagle import EagleView File "/app/share/bottles/bottles/frontend/views/eagle.py", line 27, in from bottles.backend.managers.eagle import EagleManager File "/app/share/bottles/bottles/backend/managers/eagle.py", line 25, in import yara ModuleNotFoundError: No module named 'yara'

~

Linux: CachyOS KDE Kernel: Linux 6.18.7-2-cachyos Flatpak is updated

Stass887 avatar Jan 25 '26 07:01 Stass887

Same here with a fresh install of BazziteOS for a friend, and I cannot run with this 'yara'. Is it a Flatpak packaging problem? Did the users who already had 'bottles' on the machine and who only had to do a simple update have a problem as well?

CoffeePuma55644 avatar Jan 25 '26 08:01 CoffeePuma55644

Same here Debian stable 13.3

ibbaa avatar Jan 25 '26 08:01 ibbaa

Same issue Mint 22.3 after flathub update:

Traceback (most recent call last): File "/app/bin/bottles", line 49, in from bottles.frontend import main File "/app/share/bottles/bottles/frontend/main.py", line 45, in from bottles.frontend.windows.window import BottlesWindow File "/app/share/bottles/bottles/frontend/windows/window.py", line 41, in from bottles.frontend.views.details import DetailsView File "/app/share/bottles/bottles/frontend/views/details.py", line 35, in from bottles.frontend.views.eagle import EagleView File "/app/share/bottles/bottles/frontend/views/eagle.py", line 27, in from bottles.backend.managers.eagle import EagleManager File "/app/share/bottles/bottles/backend/managers/eagle.py", line 25, in import yara ModuleNotFoundError: No module named 'yara'

Eternal9100 avatar Jan 25 '26 08:01 Eternal9100

Same behaviour on Zorin OS 18 Core installed on my laptop 4 hours ago. Kernel version: 6.14.0-37-generic

$ flatpak run com.usebottles.bottles Traceback (most recent call last): File "/app/bin/bottles", line 49, in from bottles.frontend import main File "/app/share/bottles/bottles/frontend/main.py", line 45, in from bottles.frontend.windows.window import BottlesWindow File "/app/share/bottles/bottles/frontend/windows/window.py", line 41, in from bottles.frontend.views.details import DetailsView File "/app/share/bottles/bottles/frontend/views/details.py", line 35, in from bottles.frontend.views.eagle import EagleView File "/app/share/bottles/bottles/frontend/views/eagle.py", line 27, in from bottles.backend.managers.eagle import EagleManager File "/app/share/bottles/bottles/backend/managers/eagle.py", line 25, in import yara ModuleNotFoundError: No module named 'yara'

TysiacW avatar Jan 25 '26 08:01 TysiacW

Okay, a quick workaround until they fix this:

sudo flatpak update \
  --commit=00a13c00407548053f05ed2e58c33cd9946d4fec65c5767ef9c1e7523b3e7780 \
  com.usebottles.bottles

This will downgrade your flatpak to the commit from November 27th 2025 (which is the commit before this broken one)

You should also mask/pin the flatpak to prevent it from updating, otherwise you'll get upgraded back up to the broken version

sudo flatpak mask com.usebottles.bottles

When they fix the issue, remove the mask and update:

sudo flatpak mask --remove com.usebottles.bottles
sudo flatpak update

huang-jy avatar Jan 25 '26 09:01 huang-jy

It's work, @huang-jy! Thank you!!!

JaiFail avatar Jan 25 '26 09:01 JaiFail

https://github.com/flathub/com.usebottles.bottles/pull/521

I think this PR should have already resolved the issue.

fxzxmicah avatar Jan 25 '26 09:01 fxzxmicah

Yes, I see it showing up literally an hour ago. Will test shortly

huang-jy avatar Jan 25 '26 09:01 huang-jy

Can confirm the update works

huang-jy avatar Jan 25 '26 09:01 huang-jy

@fxzxmicah The flathub web still shows the update from 4 hours from the time of this message but it will be resolved. This is a problem with flathub. Users have no control or or ability to regress a version unless they have the commit string like @huang-jy provided. But we're OK and thanks for the quick update.

Eternal9100 avatar Jan 25 '26 09:01 Eternal9100

Current flathub version 61.1 fixed the issue

RadimEZ avatar Jan 25 '26 09:01 RadimEZ