Bugs after F37 upagrade? Fedora 37

Hello wonderfull community! I hope you are well.

I just upgrade to F37 from F36 from my VM to test first and even the process was totally SMOOTHLY, I have some bugs :frowning: .

Just when open the terminal I get this error:

Traceback (most recent call last):
  File "/usr/bin/register-python-argcomplete", line 28, in <module>
    import argcomplete
ModuleNotFoundError: No module named 'argcomplete'

And when I try to update either with dnf or yum standalone command I get error, I get the same error:

isudovm@fedoraserver:~$ dnf
Traceback (most recent call last):
  File "/usr/bin/dnf", line 61, in <module>
    from dnf.cli import main
ModuleNotFoundError: No module named 'dnf'
isudovm@fedoraserver:~$ yum
Traceback (most recent call last):
  File "/usr/bin/yum", line 61, in <module>
    from dnf.cli import main
ModuleNotFoundError: No module named 'dnf'

I was looking in google but I didn't find anything, I don't know if I didn't search in an effective way.

The dnf command is looking for the moudule at this location.

ls -l /usr/lib/python3.11/site-packages/dnf/cli/main.py

If that files does not exist, then you have a real problem and this can be very hard to fix without a clean re-install.

Can you try to run this

env -i dnf --version

If that works, then run

env | grep PYTHON

One of these variable if any may cause python to look for module in the wrong place.

Thanks Villy, I just tried your recommendations and the main.py module doesn’t exist :confused: . I’m a little disappointed because I did this upgrade on a VM that has practically nothing, I did all the indicated procedure, now I don’t even dare to do it on my workstation.

Always a good idea to try things on a system you can just throw away. There most have been a serious problem that occurred during the update. If you used the dnf update method, you may find the error messages in /var/log/dnf.log or /var/log/dnf.rpm.log. I don’t know how that would look like as I never ran into this problem. Also worth doing is checking if you have plenty of disk space in your VM. The update procedure need quite a bit of free space depending on how many modules are installed.

Thanks Villy. I already check de /var/log/dnf.log but I didn’t find nothing interesting there…