Reflector does not work

Running the “reflector” command on my system results in:

Traceback (most recent call last):
  File "/usr/bin/reflector", line 3, in <module>
    import Reflector
ModuleNotFoundError: No module named 'Reflector'

I can verify that I do have the reflector module installed on my Python environment.
I have attempted to reinstall the module as well as the pacman package, but all attempts lead to that same error.

Can we the contents of pacman.conf and the output of sudo pacman -Syu

I am not sure what the reflector module is in your Python environment.

You want to have the reflector package on your system from Arch Extra.
https://archlinux.org/packages/extra/any/reflector/

If you don’t have it, install it. Check with

pacman -Qs reflector

If it’s not installed:

sudo pacman -Syu reflector

I thought this was in the EOS ISO’s as of a couple years ago. if you have a recent installation, did you remove the reflector package??

I have it installed:

local/reflector 2021.11-7
    A Python 3 module and script to retrieve and filter the latest Pacman mirror list.
local/reflector-simple 2023-2
    Simple GUI wrapper for 'reflector'.

Pacman.conf:

#
# /etc/pacman.conf
#
# See the pacman.conf(5) manpage for option and repository directives

#
# GENERAL OPTIONS
#
[options]
# The following paths are commented out with their default values listed.
# If you wish to use different paths, uncomment and update the paths.
#RootDir     = /
#DBPath      = /var/lib/pacman/
#CacheDir    = /var/cache/pacman/pkg/
#LogFile     = /var/log/pacman.log
#GPGDir      = /etc/pacman.d/gnupg/
#HookDir     = /etc/pacman.d/hooks/
HoldPkg     = pacman glibc
#XferCommand = /usr/bin/curl -L -C - -f -o %o %u
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
#CleanMethod = KeepInstalled
#UseDelta    = 0.7
Architecture = auto

# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
#IgnorePkg   =
#IgnoreGroup =

#NoUpgrade   =
#NoExtract   =

# Misc options
#UseSyslog
Color
ILoveCandy
#NoProgressBar
#CheckSpace
VerbosePkgLists
DisableDownloadTimeout
ParallelDownloads = 5

# By default, pacman accepts packages signed by keys that its local keyring
# trusts (see pacman-key and its man page), as well as unsigned packages.
SigLevel    = Required DatabaseOptional
LocalFileSigLevel = Optional
#RemoteFileSigLevel = Required

# NOTE: You must run `pacman-key --init` before first using pacman; the local
# keyring can then be populated with the keys of all official Arch Linux
# packagers with `pacman-key --populate archlinux`.

#
# REPOSITORIES
#   - can be defined here or included from another file
#   - pacman will search repositories in the order defined here
#   - local/custom mirrors can be added here or in separate files
#   - repositories listed first will take precedence when packages
#     have identical names, regardless of version number
#   - URLs will have $repo replaced by the name of the current repo
#   - URLs will have $arch replaced by the name of the architecture
#
# Repository entries are of the format:
#       [repo-name]
#       Server = ServerName
#       Include = IncludePath
#
# The header [repo-name] is crucial - it must be present and
# uncommented to enable the repo.
#

# The testing repositories are disabled by default. To enable, uncomment the
# repo name header and Include lines. You can add preferred servers immediately
# after the header, and they will be used before the default mirrors.

[endeavouros]
SigLevel = PackageRequired
Include = /etc/pacman.d/endeavouros-mirrorlist

#[testing]
#Include = /etc/pacman.d/mirrorlist

[core]
Include = /etc/pacman.d/mirrorlist

[extra]
Include = /etc/pacman.d/mirrorlist

#[community-testing]
#Include = /etc/pacman.d/mirrorlist

[community]
Include = /etc/pacman.d/mirrorlist

# If you want to run 32 bit applications on your x86_64 system,
# enable the multilib repositories as required here.

#[multilib-testing]
#Include = /etc/pacman.d/mirrorlist

[multilib]
Include = /etc/pacman.d/mirrorlist

# An example of a custom package repository.  See the pacman manpage for
# tips on creating your own repositories.
#[custom]
#SigLevel = Optional TrustAll
#Server = file:///home/custompkgs

sudo pacman -Syu:

:: Synchronising package databases...
 endeavouros is up-to-date
 core 132.5 KiB 276 KiB/s 00:00 [--------------------------------------] 100%
 extra 8.3 MiB 3.02 MiB/s 00:03 [--------------------------------------] 100%
 community is up to date
 multilib is up to date
:: system-wide update started...
Resolving dependencies...
Checking for conflicting packages...

Package (5) old version new version last change download capacity

core/linux 6.3.4.arch2-1 6.3.5.arch1-1 0.03 MiB 146.51 MiB
core/linux-headers 6.3.4.arch2-1 6.3.5.arch1-1 0.01 MiB 29.37 MiB
extra/linux-zen 6.3.4.zen2-1 6.3.5.zen1-1 -0.02 MiB 151.35 MiB
extra/linux-zen-headers 6.3.4.zen2-1 6.3.5.zen1-1 0.01 MiB 30.62 MiB
extra/orc 0.4.33-1 0.4.34-1 0.00 MiB 0.25 MiB

Total download capacity: 358.10 MiB
Total installed capacity: 621.71 MiB
Final upgrade capacity: 0.03 MiB

:: Do you want to install? [Y/n] Y
:: Retrieve package...
 orc-0.4.34-1-x86_64 251.5 KiB 889 KiB/s 00:00 [--------------------------------------] 100%
 linux-zen-headers-6.3.5.zen1-1-x86_64 30.6 MiB 3.13 MiB/s 00:10 [--------------------------------------] 100%
 linux-headers-6.3.5.arch1-1-x86_64 29.4 MiB 1870 KiB/s 00:16 [--------------------------------------] 100%
 linux-zen-6.3.5.zen1-1-x86_64 151.4 MiB 3.12 MiB/s 00:48 [--------------------------------------] 100%
 linux-6.3.5.arch1-1-x86_64 146.5 MiB 2.56 MiB/s 00:57 [--------------------------------------] 100%
 Total (5/5) 358.1 MiB 6.25 MiB/s 00:57 [--------------------------------------] 100%
(5/5) Key ring key identified [--------------------------------------] 100%
(5/5) Check package integrity [--------------------------------------] 100%
(5/5) Load package file [--------------------------------------] 100%
(5/5) Check for file conflicts [--------------------------------------] 100%
:: Run pre-transaction hooks...
(1/2) Removing initramfs...
(2/2) Remove DKMS modules
:: Processing package changes...
(1/5) Update linux [--------------------------------------] 100%
(2/5) Update linux-headers [--------------------------------------] 100%
(3/5) Update linux-zen [--------------------------------------] 100%
(4/5) Update linux-zen-headers [--------------------------------------] 100%
(5/5) update orc [--------------------------------------] 100%
:: Run post-transaction hooks...
(1/6) Arming ConditionNeedsUpdate...
(2/6) Updating module dependencies...
(3/6) Install DKMS modules
==> dkms install --no-depmod nvidia/530.41.03 -k 6.3.5-arch1-1
==> dkms install --no-depmod nvidia/530.41.03 -k 6.3.5-zen1-1-zen
==> depmod 6.3.5-zen1-1-zen
==> depmod 6.3.5-arch1-1
(4/6) Updating initramfs...
:: Building initramfs for linux (6.3.5-arch1-1)
dracut: Executing: /usr/bin/dracut --force --hostonly --no-hostonly-cmdline /usr/lib/modules/6.3.5-arch1-1/initrd 6.3.5-arch1-1
dracut: dracut module 'dash' will not be installed, because command 'dash' could not be found!
dracut: dracut module 'mksh' will not be installed, because command 'mksh' could not be found!
dracut: dracut module 'busybox' will not be installed, because command 'busybox' could not be found!
dracut: dracut module 'dbus-broker' will not be installed, because command 'dbus-broker' could not be found!
dracut: dracut module 'rngd' will not be installed, because command 'rngd' could not be found!
dracut: dracut module 'connman' will not be installed, because command 'connmand' could not be found!
dracut: dracut module 'connman' will not be installed, because command 'connmanctl' could not be found!
dracut: dracut module 'connman' will not be installed, because command 'connmand-wait-online' could not be found!
dracut: dracut module 'network-wicked' will not be installed, because command 'wicked' could not be found!
dracut: dracut module 'tpm2-tss' will not be installed, because command 'tpm2' could not be found!
dracut: dracut module 'iscsi' will not be installed, because command 'iscsi-iname' could not be found!
dracut: dracut module 'iscsi' will not be installed, because command 'iscsiadm' could not be found!
dracut: dracut module 'iscsi' will not be installed, because command 'iscsid' could not be found!
dracut: dracut module 'nvmf' will not be installed, because command 'nvme' could not be found!
dracut: dracut module 'biosdevname' will not be installed, because command 'biosdevname' could not be found!
dracut: dracut module 'memstrack' will not be installed, because command 'memstrack' could not be found!
dracut: memstrack is not available
dracut: If you need to use rd.memdebug>=4, please install memstrack and procps-ng
dracut: dracut module 'squash' will not be installed, because command 'mksquashfs' could not be found!
dracut: dracut module 'squash' will not be installed, because command 'unsquashfs' could not be found!
dracut: dracut module 'dash' will not be installed, because command 'dash' could not be found!
dracut: dracut module 'mksh' will not be installed, because command 'mksh' could not be found!
dracut: dracut module 'busybox' will not be installed, because command 'busybox' could not be found!
dracut: dracut module 'dbus-broker' will not be installed, because command 'dbus-broker' could not be found!
dracut: dracut module 'rngd' will not be installed, because command 'rngd' could not be found!
dracut: dracut module 'connman' will not be installed, because command 'connmand' could not be found!
dracut: dracut module 'connman' will not be installed, because command 'connmanctl' could not be found!
dracut: dracut module 'connman' will not be installed, because command 'connmand-wait-online' could not be found!
dracut: dracut module 'network-wicked' will not be installed, because command 'wicked' could not be found!
dracut: dracut module 'tpm2-tss' will not be installed, because command 'tpm2' could not be found!
dracut: dracut module 'iscsi' will not be installed, because command 'iscsi-iname' could not be found!
dracut: dracut module 'iscsi' will not be installed, because command 'iscsiadm' could not be found!
dracut: dracut module 'iscsi' will not be installed, because command 'iscsid' could not be found!
dracut: dracut module 'nvmf' will not be installed, because command 'nvme' could not be found!
dracut: dracut module 'memstrack' will not be installed, because command 'memstrack' could not be found!
dracut: memstrack is not available
dracut: If you need to use rd.memdebug>=4, please install memstrack and procps-ng
dracut: dracut module 'squash' will not be installed, because command 'mksquashfs' could not be found!
dracut: dracut module 'squash' will not be installed, because command 'unsquashfs' could not be found!
dracut: *** Including module: systemd ***
dracut: *** Including module: systemd-initrd ***
dracut: *** Including module: dbus-daemon ***
dracut: *** Including module: dbus ***
dracut: *** Including module: i18n ***
dracut: *** Including module: bluetooth ***
dracut: Skipping udev rule: 69-btattach-bcm.rules
dracut: *** Including module: kernel-modules ***
dracut: *** Including module: kernel-modules-extra ***
dracut: *** Including module: resume ***
dracut: *** Including module: rootfs-block ***
dracut: *** Including module: terminfo ***
dracut: *** Including module: udev-rules ***
dracut: Skipping udev rule: 40-redhat.rules
dracut: Skipping udev rule: 50-firmware.rules
dracut: Skipping udev rule: 50-udev.rules
dracut: Skipping udev rule: 91-permissions.rules
dracut: Skipping udev rule: 80-drivers-modprobe.rules
dracut: Skipping udev rule: 70-persistent-net.rules
dracut: *** Including module: dracut-systemd ***
dracut: *** Including module: usrmount ***
dracut: *** Including module: base ***
dracut: *** Including module: fs-lib ***
dracut: *** Including module: shutdown ***
dracut: *** Including modules done ***
dracut: *** Installing kernel module dependencies ***
dracut: *** Installing kernel module dependencies done ***
dracut: *** Resolving executable dependencies ***
dracut: *** Resolving executable dependencies done ***
dracut: *** Hardlinking files ***
dracut: Mode:                     real
dracut: Method:                   sha256
dracut: Files:                    1025
dracut: Linked:                   64 files
dracut: Compared:                 0 xattrs
dracut: Compared:                 151 files
dracut: Saved:                    6.8 MiB
dracut: Duration:                 0.066754 seconds
dracut: *** Hardlinking files done ***
dracut: *** Generating early-microcode cpio image ***
dracut: *** Using microcode found in '/boot/intel-ucode.img' ***
dracut: *** Store current command line parameters ***
dracut: *** Stripping files ***
dracut: *** Stripping files done ***
dracut: *** Creating image file '/usr/lib/modules/6.3.5-arch1-1/initrd' ***
dracut: *** Creating initramfs image file '/usr/lib/modules/6.3.5-arch1-1/initrd' done ***
:: Building fallback initramfs for linux (6.3.5-arch1-1)
dracut: Executing: /usr/bin/dracut --force --no-hostonly /boot/initramfs-linux-fallback.img 6.3.5-arch1-1
dracut: dracut module 'dash' will not be installed, because command 'dash' could not be found!
dracut: dracut module 'mksh' will not be installed, because command 'mksh' could not be found!
dracut: dracut module 'busybox' will not be installed, because command 'busybox' could not be found!
dracut: dracut module 'dbus-broker' will not be installed, because command 'dbus-broker' could not be found!
dracut: dracut module 'rngd' will not be installed, because command 'rngd' could not be found!
dracut: dracut module 'connman' will not be installed, because command 'connmand' could not be found!
dracut: dracut module 'connman' will not be installed, because command 'connmanctl' could not be found!
dracut: dracut module 'connman' will not be installed, because command 'connmand-wait-online' could not be found!
dracut: dracut module 'network-wicked' will not be installed, because command 'wicked' could not be found!
dracut: dracut module 'tpm2-tss' will not be installed, because command 'tpm2' could not be found!
dracut: dracut module 'fcoe' will not be installed, because command 'dcbtool' could not be found!
dracut: dracut module 'fcoe' will not be installed, because command 'fipvlan' could not be found!
dracut: dracut module 'fcoe' will not be installed, because command 'lldpad' could not be found!
dracut: dracut module 'fcoe' will not be installed, because command 'fcoemon' could not be found!
dracut: dracut module 'fcoe' will not be installed, because command 'fcoeadm' could not be found!
dracut: dracut module 'fcoe-uefi' will not be installed, because command 'dcbtool' could not be found!
dracut: dracut module 'fcoe-uefi' will not be installed, because command 'fipvlan' could not be found!
dracut: dracut module 'fcoe-uefi' will not be installed, because command 'lldpad' could not be found!
dracut: dracut module 'iscsi' will not be installed, because command 'iscsi-iname' could not be found!
dracut: dracut module 'iscsi' will not be installed, because command 'iscsiadm' could not be found!
dracut: dracut module 'iscsi' will not be installed, because command 'iscsid' could not be found!
dracut: dracut module 'nbd' will not be installed, because command 'nbd-client' could not be found!
dracut: dracut module 'nvmf' will not be installed, because command 'nvme' could not be found!
dracut: dracut module 'biosdevname' will not be installed, because command 'biosdevname' could not be found!
dracut: dracut module 'memstrack' will not be installed, because command 'memstrack' could not be found!
dracut: memstrack is not available
dracut: If you need to use rd.memdebug>=4, please install memstrack and procps-ng
dracut: dracut module 'squash' will not be installed, because command 'mksquashfs' could not be found!
dracut: dracut module 'squash' will not be installed, because command 'unsquashfs' could not be found!
dracut: *** Including module: systemd ***
dracut: *** Including module: systemd-initrd ***
dracut: *** Including module: modsign ***
dracut: *** Including module: i18n ***
dracut: *** Including module: btrfs ***
dracut: *** Including module: crypt ***
dracut: *** Including module: dm ***
dracut: Skipping udev rule: 64-device-mapper.rules
dracut: Skipping udev rule: 60-persistent-storage-dm.rules
dracut: Skipping udev rule: 55-dm.rules
dracut: *** Including module: dmraid ***
dracut: *** Including module: kernel-modules ***
dracut: *** Including module: kernel-modules-extra ***
dracut: *** Including module: lvm ***
dracut: Skipping udev rule: 64-device-mapper.rules
dracut: Skipping udev rule: 56-lvm.rules
dracut: Skipping udev rule: 60-persistent-storage-lvm.rules
dracut: *** Including module: mdraid ***
dracut: Skipping udev rule: 64-md-raid.rules
dracut: *** Including module: multipath ***
dracut: Skipping udev rule: 40-multipath.rules
dracut: *** Including module: nvdimm ***
dracut: *** Including module: qemu ***
dracut: *** Including module: qemu-net ***
dracut: *** Including module: btrfs-snapshot-overlay ***
dracut: *** Including module: lunmask ***
dracut: *** Including module: resume ***
dracut: *** Including module: rootfs-block ***
dracut: *** Including module: terminfo ***
dracut: *** Including module: udev-rules ***
dracut: Skipping udev rule: 40-redhat.rules
dracut: Skipping udev rule: 50-firmware.rules
dracut: Skipping udev rule: 50-udev.rules
dracut: Skipping udev rule: 91-permissions.rules
dracut: Skipping udev rule: 80-drivers-modprobe.rules
dracut: *** Including module: virtiofs ***
dracut: *** Including module: dracut-systemd ***
dracut: *** Including module: usrmount ***
dracut: *** Including module: base ***
dracut: *** Including module: fs-lib ***
dracut: *** Including module: shutdown ***
dracut: *** Including modules done ***
dracut: *** Installing kernel module dependencies ***
dracut: *** Installing kernel module dependencies done ***
dracut: *** Resolving executable dependencies ***
dracut: *** Resolving executable dependencies done ***
dracut: *** Hardlinking files ***
dracut: Mode:                     real
dracut: Method:                   sha256
dracut: Files:                    2072
dracut: Linked:                   9 files
dracut: Compared:                 0 xattrs
dracut: Compared:                 469 files
dracut: Saved:                    1.42 MiB
dracut: Duration:                 0.042985 seconds
dracut: *** Hardlinking files done ***
dracut: *** Generating early-microcode cpio image ***
dracut: *** Constructing AuthenticAMD.bin ***
dracut: *** Using microcode found in '/boot/intel-ucode.img' ***
dracut: *** Store current command line parameters ***
dracut: *** Stripping files ***
dracut: *** Stripping files done ***
dracut: *** Creating image file '/boot/initramfs-linux-fallback.img' ***
dracut: *** Creating initramfs image file '/boot/initramfs-linux-fallback.img' done ***
:: Building initramfs for linux-zen (6.3.5-zen1-1-zen)
dracut: Executing: /usr/bin/dracut --force --hostonly --no-hostonly-cmdline /usr/lib/modules/6.3.5-zen1-1-zen/initrd 6.3.5-zen1-1-zen
dracut: dracut module 'dash' will not be installed, because command 'dash' could not be found!
dracut: dracut module 'mksh' will not be installed, because command 'mksh' could not be found!
dracut: dracut module 'busybox' will not be installed, because command 'busybox' could not be found!
dracut: dracut module 'dbus-broker' will not be installed, because command 'dbus-broker' could not be found!
dracut: dracut module 'rngd' will not be installed, because command 'rngd' could not be found!
dracut: dracut module 'connman' will not be installed, because command 'connmand' could not be found!
dracut: dracut module 'connman' will not be installed, because command 'connmanctl' could not be found!
dracut: dracut module 'connman' will not be installed, because command 'connmand-wait-online' could not be found!
dracut: dracut module 'network-wicked' will not be installed, because command 'wicked' could not be found!
dracut: dracut module 'tpm2-tss' will not be installed, because command 'tpm2' could not be found!
dracut: dracut module 'iscsi' will not be installed, because command 'iscsi-iname' could not be found!
dracut: dracut module 'iscsi' will not be installed, because command 'iscsiadm' could not be found!
dracut: dracut module 'iscsi' will not be installed, because command 'iscsid' could not be found!
dracut: dracut module 'nvmf' will not be installed, because command 'nvme' could not be found!
dracut: dracut module 'biosdevname' will not be installed, because command 'biosdevname' could not be found!
dracut: dracut module 'memstrack' will not be installed, because command 'memstrack' could not be found!
dracut: memstrack is not available
dracut: If you need to use rd.memdebug>=4, please install memstrack and procps-ng
dracut: dracut module 'squash' will not be installed, because command 'mksquashfs' could not be found!
dracut: dracut module 'squash' will not be installed, because command 'unsquashfs' could not be found!
dracut: dracut module 'dash' will not be installed, because command 'dash' could not be found!
dracut: dracut module 'mksh' will not be installed, because command 'mksh' could not be found!
dracut: dracut module 'busybox' will not be installed, because command 'busybox' could not be found!
dracut: dracut module 'dbus-broker' will not be installed, because command 'dbus-broker' could not be found!
dracut: dracut module 'rngd' will not be installed, because command 'rngd' could not be found!
dracut: dracut module 'connman' will not be installed, because command 'connmand' could not be found!
dracut: dracut module 'connman' will not be installed, because command 'connmanctl' could not be found!
dracut: dracut module 'connman' will not be installed, because command 'connmand-wait-online' could not be found!
dracut: dracut module 'network-wicked' will not be installed, because command 'wicked' could not be found!
dracut: dracut module 'tpm2-tss' will not be installed, because command 'tpm2' could not be found!
dracut: dracut module 'iscsi' will not be installed, because command 'iscsi-iname' could not be found!
dracut: dracut module 'iscsi' will not be installed, because command 'iscsiadm' could not be found!
dracut: dracut module 'iscsi' will not be installed, because command 'iscsid' could not be found!
dracut: dracut module 'nvmf' will not be installed, because command 'nvme' could not be found!
dracut: dracut module 'memstrack' will not be installed, because command 'memstrack' could not be found!
dracut: memstrack is not available
dracut: If you need to use rd.memdebug>=4, please install memstrack and procps-ng
dracut: dracut module 'squash' will not be installed, because command 'mksquashfs' could not be found!
dracut: dracut module 'squash' will not be installed, because command 'unsquashfs' could not be found!
dracut: *** Including module: systemd ***
dracut: *** Including module: systemd-initrd ***
dracut: *** Including module: dbus-daemon ***
dracut: *** Including module: dbus ***
dracut: *** Including module: i18n ***
dracut: *** Including module: bluetooth ***
dracut: Skipping udev rule: 69-btattach-bcm.rules
dracut: *** Including module: kernel-modules ***
dracut: *** Including module: kernel-modules-extra ***
dracut: *** Including module: resume ***
dracut: *** Including module: rootfs-block ***
dracut: *** Including module: terminfo ***
dracut: *** Including module: udev-rules ***
dracut: Skipping udev rule: 40-redhat.rules
dracut: Skipping udev rule: 50-firmware.rules
dracut: Skipping udev rule: 50-udev.rules
dracut: Skipping udev rule: 91-permissions.rules
dracut: Skipping udev rule: 80-drivers-modprobe.rules
dracut: Skipping udev rule: 70-persistent-net.rules
dracut: *** Including module: dracut-systemd ***
dracut: *** Including module: usrmount ***
dracut: *** Including module: base ***
dracut: *** Including module: fs-lib ***
dracut: *** Including module: shutdown ***
dracut: *** Including modules done ***
dracut: *** Installing kernel module dependencies ***
dracut: *** Installing kernel module dependencies done ***
dracut: *** Resolving executable dependencies ***
dracut: *** Resolving executable dependencies done ***
dracut: *** Hardlinking files ***
dracut: Mode:                     real
dracut: Method:                   sha256
dracut: Files:                    1026
dracut: Linked:                   64 files
dracut: Compared:                 0 xattrs
dracut: Compared:                 155 files
dracut: Saved:                    6.8 MiB
dracut: Duration:                 0.085346 seconds
dracut: *** Hardlinking files done ***
dracut: *** Generating early-microcode cpio image ***
dracut: *** Using microcode found in '/boot/intel-ucode.img' ***
dracut: *** Store current command line parameters ***
dracut: *** Stripping files ***
dracut: *** Stripping files done ***
dracut: *** Creating image file '/usr/lib/modules/6.3.5-zen1-1-zen/initrd' ***
dracut: *** Creating initramfs image file '/usr/lib/modules/6.3.5-zen1-1-zen/initrd' done ***
:: Building fallback initramfs for linux-zen (6.3.5-zen1-1-zen)
dracut: Executing: /usr/bin/dracut --force --no-hostonly /boot/initramfs-linux-zen-fallback.img 6.3.5-zen1-1-zen
dracut: dracut module 'dash' will not be installed, because command 'dash' could not be found!
dracut: dracut module 'mksh' will not be installed, because command 'mksh' could not be found!
dracut: dracut module 'busybox' will not be installed, because command 'busybox' could not be found!
dracut: dracut module 'dbus-broker' will not be installed, because command 'dbus-broker' could not be found!
dracut: dracut module 'rngd' will not be installed, because command 'rngd' could not be found!
dracut: dracut module 'connman' will not be installed, because command 'connmand' could not be found!
dracut: dracut module 'connman' will not be installed, because command 'connmanctl' could not be found!
dracut: dracut module 'connman' will not be installed, because command 'connmand-wait-online' could not be found!
dracut: dracut module 'network-wicked' will not be installed, because command 'wicked' could not be found!
dracut: dracut module 'tpm2-tss' will not be installed, because command 'tpm2' could not be found!
dracut: dracut module 'fcoe' will not be installed, because command 'dcbtool' could not be found!
dracut: dracut module 'fcoe' will not be installed, because command 'fipvlan' could not be found!
dracut: dracut module 'fcoe' will not be installed, because command 'lldpad' could not be found!
dracut: dracut module 'fcoe' will not be installed, because command 'fcoemon' could not be found!
dracut: dracut module 'fcoe' will not be installed, because command 'fcoeadm' could not be found!
dracut: dracut module 'fcoe-uefi' will not be installed, because command 'dcbtool' could not be found!
dracut: dracut module 'fcoe-uefi' will not be installed, because command 'fipvlan' could not be found!
dracut: dracut module 'fcoe-uefi' will not be installed, because command 'lldpad' could not be found!
dracut: dracut module 'iscsi' will not be installed, because command 'iscsi-iname' could not be found!
dracut: dracut module 'iscsi' will not be installed, because command 'iscsiadm' could not be found!
dracut: dracut module 'iscsi' will not be installed, because command 'iscsid' could not be found!
dracut: dracut module 'nbd' will not be installed, because command 'nbd-client' could not be found!
dracut: dracut module 'nvmf' will not be installed, because command 'nvme' could not be found!
dracut: dracut module 'biosdevname' will not be installed, because command 'biosdevname' could not be found!
dracut: dracut module 'memstrack' will not be installed, because command 'memstrack' could not be found!
dracut: memstrack is not available
dracut: If you need to use rd.memdebug>=4, please install memstrack and procps-ng
dracut: dracut module 'squash' will not be installed, because command 'mksquashfs' could not be found!
dracut: dracut module 'squash' will not be installed, because command 'unsquashfs' could not be found!
dracut: *** Including module: systemd ***
dracut: *** Including module: systemd-initrd ***
dracut: *** Including module: modsign ***
dracut: *** Including module: i18n ***
dracut: *** Including module: btrfs ***
dracut: *** Including module: crypt ***
dracut: *** Including module: dm ***
dracut: Skipping udev rule: 64-device-mapper.rules
dracut: Skipping udev rule: 60-persistent-storage-dm.rules
dracut: Skipping udev rule: 55-dm.rules
dracut: *** Including module: dmraid ***
dracut: *** Including module: kernel-modules ***
dracut: *** Including module: kernel-modules-extra ***
dracut: *** Including module: lvm ***
dracut: Skipping udev rule: 64-device-mapper.rules
dracut: Skipping udev rule: 56-lvm.rules
dracut: Skipping udev rule: 60-persistent-storage-lvm.rules
dracut: *** Including module: mdraid ***
dracut: Skipping udev rule: 64-md-raid.rules
dracut: *** Including module: multipath ***
dracut: Skipping udev rule: 40-multipath.rules
dracut: *** Including module: nvdimm ***
dracut: *** Including module: qemu ***
dracut: *** Including module: qemu-net ***
dracut: *** Including module: btrfs-snapshot-overlay ***
dracut: *** Including module: lunmask ***
dracut: *** Including module: resume ***
dracut: *** Including module: rootfs-block ***
dracut: *** Including module: terminfo ***
dracut: *** Including module: udev-rules ***
dracut: Skipping udev rule: 40-redhat.rules
dracut: Skipping udev rule: 50-firmware.rules
dracut: Skipping udev rule: 50-udev.rules
dracut: Skipping udev rule: 91-permissions.rules
dracut: Skipping udev rule: 80-drivers-modprobe.rules
dracut: *** Including module: virtiofs ***
dracut: *** Including module: dracut-systemd ***
dracut: *** Including module: usrmount ***
dracut: *** Including module: base ***
dracut: *** Including module: fs-lib ***
dracut: *** Including module: shutdown ***
dracut: *** Including modules done ***
dracut: *** Installing kernel module dependencies ***
dracut: *** Installing kernel module dependencies done ***
dracut: *** Resolving executable dependencies ***
dracut: *** Resolving executable dependencies done ***
dracut: *** Hardlinking files ***
dracut: Mode:                     real
dracut: Method:                   sha256
dracut: Files:                    2074
dracut: Linked:                   9 files
dracut: Compared:                 0 xattrs
dracut: Compared:                 482 files
dracut: Saved:                    1.42 MiB
dracut: Duration:                 0.041601 seconds
dracut: *** Hardlinking files done ***
dracut: *** Generating early-microcode cpio image ***
dracut: *** Constructing AuthenticAMD.bin ***
dracut: *** Using microcode found in '/boot/intel-ucode.img' ***
dracut: *** Store current command line parameters ***
dracut: *** Stripping files ***
dracut: *** Stripping files done ***
dracut: *** Creating image file '/boot/initramfs-linux-zen-fallback.img' ***
dracut: *** Creating initramfs image file '/boot/initramfs-linux-zen-fallback.img' done ***
(5/6) Check if user should be informed about rebooting after certain system package upgrades.
(6/6) Checking which packages need to be rebuilt

Hmm…that all looks fine.

Perhaps your python environment is broken? Have you ever used sudo pip to install/remove/upgrade anything? That can cause havoc with Python packages.

@HouYi9
Your pacman.conf file still has the community repo activated in it.
Those lines should be commented out, or deleted.
The community repo has been migrated. To extra, if I remember right.
Community is still there, but empty now and it will be completely removed soon.

:v:

What does paccheck --md5sum reflector show?

I’ve never tried sudo pip before.

reflector: all files match mtree md5sums

I’ll take note of that.

1 Like

Please run

python

you get a prompt.

Here type

import Reflector

I guess you will get an error

Then run

import sys
sys.path

Here it is how it looks like on my system

I got:

Python 3.10.11 (main, May  8 2023, 13:36:36) [GCC 12.2.1 20230201] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import Reflector
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'Reflector'
>>> import sys
>>> sys.path
['', '/usr/lib/python310.zip', '/usr/lib/python3.10', '/usr/lib/python3.10/lib-dynload', '/home/supernova/.local/lib/python3.10/site-packages', '/usr/lib/python3.10/site-packages']
>>>

Then from the command line

pip list -v | grep -i reflector

What does pacman -Qi python show? Why are you running python 3.10?

Running python 3.10 due to having different python environments and setting that one as the default one. However, the environment your command shows also has the same problem whereby despite having the Reflector module installed, it cannot be imported.
Also, pacman -Qi python:
[インストール済み] = [already installed]

名前 (name)                  : python
バージョン (version)            : 3.11.3-1
説明 (description)                  : Next generation of the python high-level scripting language
アーキテクチャ (architecture)        : x86_64
URL                    : https://www.python.org/
ライセンス (license)            : custom
グループ (group)              : なし (none)
提供 (provides)                  : python3
依存パッケージ (dependencies)        : bzip2  expat  gdbm  libffi  libnsl  libxcrypt  openssl  zlib
提案パッケージ (recommended packages)        : python-setuptools [インストール済み]
                         python-pip [インストール済み]
                         sqlite [インストール済み]
                         mpdecimal: for decimal [インストール済み]
                         xz: for lzma [インストール済み]
                         tk: for tkinter [インストール済み]
必要パッケージ (required packages)        : dbus-python  dtc  gdb  gdb-common  glances  glusterfs  ipython  libixion
                         libreoffice-fresh  libvirt-python  lightdm-slick-greeter  node-gyp  optimus-manager
                         python-anyio  python-attrs  python-autocommand  python-babel  python-backcall
                         python-beautifulsoup4  python-cairo  python-certifi  python-chardet  python-click
                         python-colorama  python-decorator  python-defusedxml  python-deprecation  python-distro
                         python-entrypoints  python-evdev  python-executing  python-fastjsonschema  python-fqdn
                         python-future  python-gobject  python-idna  python-inflect  python-ipython-genutils
                         python-isoduration  python-jaraco.context  python-jaraco.text  python-jedi
                         python-json-logger  python-json5  python-jsonpointer  python-jsonschema  python-lxml
                         python-markupsafe  python-mistune  python-more-itertools  python-nest-asyncio
                         python-ordered-set  python-overrides  python-packaging  python-pandocfilters
                         python-parso  python-pexpect  python-pickleshare  python-pillow  python-pip  python-ply
                         python-prometheus_client  python-prompt_toolkit  python-psutil  python-ptyprocess
                         python-pure-eval  python-pycryptodomex  python-pycups  python-pycurl  python-pydantic
                         python-pygments  python-pyqt5-sip  python-pyrate-limiter  python-pyrsistent  python-pytz
                         python-pyxdg  python-pyzmq  python-reportlab  python-requests-unixsocket
                         python-ruamel.yaml.clib  python-send2trash  python-setproctitle  python-shtab
                         python-simplejson  python-six  python-sniffio  python-soupsieve  python-termcolor
                         python-testpath  python-tomli  python-tomlkit  python-toolz  python-tornado
                         python-trove-classifiers  python-typing_extensions  python-uc-micro-py  python-ujson
                         python-uri-template  python-urllib3  python-wcwidth  python-webcolors
                         python-webencodings  python-websocket-client  python-y-py  python-yaml  qemu-tools
                         reflector  smbclient  steam  vulkan-mesa-layers  xfce4-screensaver
任意パッケージ (optional packages)        : brltty  btrfs-progs  cifs-utils  git  glib2  gstreamer  gtk2  gupnp  imath  iproute2
                         ki18n  ldb  libcec  libevent  libftdi  libieee1284  libimobiledevice  libnewt  libplist
                         libproxy  libvirt-glib  libxml2  libxslt  lirc  mlt  net-snmp  nfs-utils  nftables
                         obs-studio  openconnect  pcsclite  qbittorrent  rsync  systemd  talloc  tdb  tevent
                         usbutils  util-linux-libs  xapp  xed  xfce4-settings  xfsprogs  zbar
衝突パッケージ (conflicting packages)        : なし (none)
置換パッケージ (substituting package)        : python3
インストール容量 (installed data)      : 75.26 MiB
パッケージ作成者 (package maker)      : Felix Yan <felixonmars@archlinux.org>
ビルド日時 (build date/time)            : 2023年04月05日 11時52分25秒
インストール日時 (install date)      : 2023年05月07日 07時02分21秒
インストール方法 (install method)      : 明示的にインストール (explicitly installed)
インストールスクリプト(install script) : No
検証方法 (verification method)              : 署名 (signature)

It seems likely that this is related to your issue. You shouldn’t have multiple Python versions available natively.

If you need a different version for development, use a pyenv or similar.

As a side note, if your only goal is to rate your mirrors. You could install rate-mirrors instead of using reflector.

2 Likes

You were correct. The reason was because I set 3.10 as the default python environment. Thanks for the tip!
Edit: The solution for me was to simply set the default python environment back to 3.11.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.