Probably messed python, Waydroid and Lutris stopped opening/working

I saw some forums saying not using a enviroment can mess python, and i think i did just that. now i have these 2 issues.

❯ waydroid
Traceback (most recent call last):
File "/usr/bin/waydroid", line 7, in <module>
import tools
File "/usr/lib/waydroid/tools/__init__.py", line 8, in <module>
import dbus.mainloop.glib
ModuleNotFoundError: No module named 'dbus'
❯ lutris
Error importing Lutris application module: No module named 'lutris'

Lutris will, however, open and run a “recently opened” file, while waydroid gave no result. Both issues seem to be python related, from what i gathered. I tried doing sudo pacman -S python3 python-pip to no change whatsoever. one forum said i needed to delete some files in the pip directory resultant from a package install, but im not sure if i should or how to do it.

What, specifically, do you think caused it? You could try reinstalling Lutris and Waydroid, or if you forcefully installed a pip package, you can try uninstalling it, but without more info it’s tough to say. Rolling back to a snapshot might be the easiest fix.

not exactly sure, but i do remember installing some stuff, though i can’t remember why. Also, how can i rollback? i’ll check what i have installed
EDIT i have a lotta packages, actually. ill remove some

The problem was brew, which changed some paths in $PATH. I just had to uninstall it

Running some random installation script is not a great idea if you do not at least a little inspecting of it first.

And why do we think we need homebrew anyways?

We also have packages/alternative-packages in places like the AUR.

Finally since we are talking about python and ‘installing stuff’ .. it may be worth repeating:
Do not use anything like sudo pip install or similar.