You are not logged in.
Hello,
I seem to have ran into a similar problem as https://bbs.archlinux32.org/viewtopic.php?id=2860
reflector
Traceback (most recent call last)
File "/usr/bin/reflector", line 3, in <module>
import Reflector
ModuleNotFoundError: No module named 'Reflector'
I notice that my output is different than the one specified in the above post.
I admit that my knowledge of Arch Linux, as well as relevant topics like Python, is relatively limited, as I'm trying to learn it by tinkering with Arch32 on an old spare PC;
that to say, I apologize if there is a seemingly obvious solution.
However, the output of pacman -Ql reflector being identical to the one posted in https://bbs.archlinux32.org/viewtopic.php?id=3364 leads me to believe the problem lies with the Python version (posting below for clarity)
reflector /etc/
reflector /etc/xdg/
reflector /etc/xdg/reflector/
reflector /etc/xdg/reflector/reflector.conf
reflector /usr/
reflector /usr/bin/
reflector /usr/bin/reflector
reflector /usr/lib/
reflector /usr/lib/python3.10/
reflector /usr/lib/python3.10/site-packages/
reflector /usr/lib/python3.10/site-packages/Reflector-2021.11.20.02.41.03-py3.10.egg-info
reflector /usr/lib/python3.10/site-packages/Reflector.py
reflector /usr/lib/python3.18/site-packages/_pycache_
reflector /usr/lib/python3.18/site-packages/_pycache_Reflector.cpython-310.opt-1.pyc
reflector /usr/lib/python3.18/site-packages/__pycache_Reflector.cpython-310.pyc
reflector /usr/lib/systemd/
reflector /usr/lib/systemd/system/
reflector /usr/lib/systemd/system/reflector.service
reflector /usr/lib/systemd/system/reflector.timer
reflector /usr/share/
reflector /usr/share/man/
reflector /usr/share/man/man1/
reflector /usr/share/man/man1/reflector.1.gz
I can't find a solution in the second thread, while the first linked thread was seemingly solved by an update that seems to no longer work as of Jan 2025.
Are there any temporary fixes to this problem I could safely implement to get Reflector running (as my manually sorted mirrorlist seems to prevent me, or at least make it unpredictable whether I'm able to resolve host on packages I'm trying to install), and are there any perspectives for permanent fixes to the problem?
I would also humbly appreciate being broadly pointed to relevant documentation that could help me learn to understand and solve similar problems with Python dependencies in the future - especially if the fault lies on my part :'3
edit: fixing accidental linebreaks in pacman -Ql reflector output
Last edited by ronja (2025-01-06 03:10:19)
Offline
This means python is 3.11.8 and the Reflector module has not been rebuilt for it. Nothing wrong on your part. :-)
shell> python --version
Python 3.11.8
shell> find /usr/lib/python3.1* -name '*Reflect*'
/usr/lib/python3.10/site-packages/Reflector-2021.11.20.02.41.03-py3.10.egg-info
/usr/lib/python3.10/site-packages/Reflector.py
/usr/lib/python3.10/site-packages/__pycache__/Reflector.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/__pycache__/Reflector.cpython-310.pyc
Offline
Sweet! Am I correct in assuming that learning to rebuild Reflector, and in doing so specifying to use python 3.11.8 should now fix my problem?
Offline