Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ulauncher broken after upgrading Python on Arch #930

Closed
3 tasks done
iago-lito opened this issue Dec 14, 2021 · 5 comments
Closed
3 tasks done

Ulauncher broken after upgrading Python on Arch #930

iago-lito opened this issue Dec 14, 2021 · 5 comments
Labels

Comments

@iago-lito
Copy link

Environment

$ uname -a -> Linux etak 5.15.7-arch1-1 #1 SMP PREEMPT Wed, 08 Dec 2021 14:33:16 +0000 x86_64 GNU/Linux

Bug description

Ulauncher fails to launch with the following python error

Traceback (most recent call last):
  File "/usr/bin/ulauncher", line 27, in <module>
    from ulauncher.main import main
ModuleNotFoundError: No module named 'ulauncher'

The package was installed with yay for AUR

Name            : ulauncher
Version         : 5.14.2-1
Description     : Application launcher for Linux
Architecture    : any
URL             : https://ulauncher.io
Licenses        : GPL3
Groups          : None
Provides        : None
Depends On      : gobject-introspection-runtime  libkeybinder3  gtk3  webkit2gtk  libnotify  gdk-pixbuf2  wmctrl  python-dbus  python-levenshtein  python-pyinotify  python-websocket-client
                  python-pyxdg  python-gobject  python-cairo
Optional Deps   : libappindicator-gtk3: tray icon [installed]
Required By     : None
Optional For    : None
Conflicts With  : None
Replaces        : None
Installed Size  : 5.79 MiB
Packager        : Unknown Packager
Build Date      : Mon 15 Nov 2021 09:18:17 AM CET
Install Date    : Mon 15 Nov 2021 09:18:26 AM CET
Install Reason  : Explicitly installed
Install Script  : Yes
Validated By    : None

Log output

$ ulauncher -v                                                                                                                                                                           1 ↵
Traceback (most recent call last):
  File "/usr/bin/ulauncher", line 27, in <module>
    from ulauncher.main import main
ModuleNotFoundError: No module named 'ulauncher'

Issue isn't already reported

  • I have searched for similar issues before reporting this to avoid creating a duplicate issue.

Not an extension issue

  • This issue applies to the Ulauncher application, not a specific extension

Latest version

  • I am using the latest Ulauncher release
@iago-lito iago-lito added the bug label Dec 14, 2021
@iago-lito iago-lito changed the title Ulauncher doesn't start anymore with "module not found" error. Ulauncher doesn't start anymore with "no module named 'ulauncher'" Dec 14, 2021
@friday
Copy link
Member

friday commented Dec 14, 2021

Edit: I resurrected this issue because 3.11 is getting closer to a release (although not as close as I thought). Just apply the same logic but for whichever version you're upgrading from/to.

It's because Arch breaks AUR Python modules when you upgrade Python versions, like now from 3.9 to 3.10. You just need to rebuild ulauncher and other modules built for python 3.9

If you use yay make sure you rebuild: yay -S ulauncher --answerclean All or paru -S ulauncher --rebuild

This will list any other packages you need to rebuild after the Python upgrade: pacman -Qoq /usr/lib/python3.9

This can do it all for you, but it might not work if the package is not compatible with Python 3.10 yay -S $(pacman -Qoq /usr/lib/python3.9) --answerclean All

See more: https://www.reddit.com/r/archlinux/comments/rf6c84/psa_python_310_is_in_core_rebuild_your_aur/

@friday friday pinned this issue Dec 14, 2021
@iago-lito
Copy link
Author

Great, reinstalling with yay and cleanBuild resolved the issue. Thanks <3

@friday
Copy link
Member

friday commented Dec 14, 2021

Added to the comment above that you may want to run this pacman -Qoq /usr/lib/python3.9 to see other packages that was broken by the Python upgrade.

@friday friday changed the title Ulauncher doesn't start anymore with "no module named 'ulauncher'" Ulauncher broken after upgrading Python to 3.10 on Arch Dec 14, 2021
@ECon87
Copy link

ECon87 commented Jan 2, 2022

It seems resolved but in my case I had to clean the paru cache as well. It seems obvious ex post, but at the time it did not.

@friday
Copy link
Member

friday commented Jan 3, 2022

It seems resolved but in my case I had to clean the paru cache as well. It seems obvious ex post, but at the time it did not.

Only if you don't cleanBuild.

@friday friday unpinned this issue Mar 1, 2022
@friday friday changed the title Ulauncher broken after upgrading Python to 3.10 on Arch Ulauncher broken after upgrading Python on Arch May 13, 2022
@friday friday pinned this issue May 13, 2022
@friday friday unpinned this issue Aug 3, 2022
@friday friday pinned this issue Mar 2, 2023
@friday friday unpinned this issue Jul 26, 2023
@friday friday pinned this issue Jul 31, 2023
@friday friday unpinned this issue Feb 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants