You are not logged in.

#1 2018-08-09 21:21:44

kalsan
Member
Registered: 2011-10-10
Posts: 119

[solved] ModuleNotFoundError: No module named 'pikaur'

I ran a large upgrade using pikaur and after the very last hook it hung. Now everything works except that pikaur refuses to start:
Traceback (most recent call last):
  File "/usr/bin/pikaur", line 5, in <module>
    from pikaur.main import main
ModuleNotFoundError: No module named 'pikaur'


Downgrading pikaur or re-installing its newest version did not help. Pacman says "nothing to do".
I'm a bit puzzled since I never experienced this before. There is not a single matching Google result for the given error message.

What can I do to make pikaur become alive again? Thanks in advance. I might be slow with replies for the next few days.

Last edited by kalsan (2018-08-10 08:24:54)

Offline

#2 2018-08-09 22:04:22

Morganamilo
Package Maintainer (PM)
Registered: 2017-12-05
Posts: 77

Re: [solved] ModuleNotFoundError: No module named 'pikaur'

You need to rebuild the package, not just reinstall it.

Offline

#3 2018-08-09 23:18:33

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: [solved] ModuleNotFoundError: No module named 'pikaur'

As the many recent threads about Python applications not being able to find their modules can attest to, you must *rebuild* all python applications after a major update to python.

This should always be your *first* step when it comes to trying to fix AUR packages: does it work if you rebuild it?


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#4 2018-08-10 08:24:39

kalsan
Member
Registered: 2011-10-10
Posts: 119

Re: [solved] ModuleNotFoundError: No module named 'pikaur'

Turns out you can be an Arch user for 5 years and still not know this. I feel ashamed. Thank you so much for your quick replies. Works like a charm now.

Offline

Board footer

Powered by FluxBB