Pacman-mirrors 4.15

v4.15 has been pushed to unstable branch.

12 Likes


--test-aync seems not implemented in pacmana-mirrors

~ >>> time sudo pacman-mirrors --test-async -f 0                            [2]
Version 4.15
USAGE:
 pacman-mirrors [-h] [-f [NUMBER]] [-i [-d]] [-m METHOD]
		[-c COUNTRY [COUNTRY...] | [--geoip]]
		[-l] [-lc] [-q] [-t SECONDS] [-v] [-n]
		[--api] [-S/-B BRANCH] [-p PREFIX]
			[-P PROTO [PROTO...]] [-R] [-U URL]
pacman-mirrors: error: unrecognized arguments: --test-async
sudo pacman-mirrors --test-async -f 0  0.57s user 0.07s system 106% cpu 0.597 total

I am getting "mirror loop" messages. Dont know what that means.

5# sudo pacman-mirrors -g
[sudo] Passwort für matthias: 
::INFO Downloading mirrors from repo.manjaro.org
filter_mirror_protocols mirror loop -> mirror={'continent': 'Europe', 'branches': [1, 1, 1], 'country': 'Germany', 'last_sync': '00:06', 'protocols': ['https'], 'resp_time': 0, 'url': 'https://mirror.alpix.eu/manjaro/'}
filter_mirror_protocols mirror loop -> mirror={'continent': 'Europe', 'branches': [1, 1, 1], 'country': 'Germany', 'last_sync': '01:46', 'protocols': ['http'], 'resp_time': 0, 'url': 'http://mirror.ragenetwork.de/manjaro/'}
filter_mirror_protocols mirror loop -> mirror={'continent': 'Europe', 'branches': [1, 1, 1], 'country': 'Germany', 'last_sync': '01:16', 'protocols': ['https'], 'resp_time': 0, 'url': 'https://ftp.halifax.rwth-aachen.de/manjaro/'}
filter_mirror_protocols mirror loop -> mirror={'continent': 'Europe', 'branches': [0, 0, 0], 'country': 'Germany', 'last_sync': '05:59', 'protocols': ['http', 'ftp'], 'resp_time': 0, 'url': 'http://ftp.tu-chemnitz.de/pub/linux/manjaro/'}
filter_mirror_protocols mirror loop -> mirror={'continent': 'Europe', 'branches': [1, 1, 1], 'country': 'Germany', 'last_sync': '00:16', 'protocols': ['https'], 'resp_time': 0, 'url': 'https://mirror.netzspielplatz.de/manjaro/packages/'}
filter_mirror_protocols mirror loop -> mirror={'continent': 'Europe', 'branches': [0, 0, 0], 'country': 'Germany', 'last_sync': '05:56', 'protocols': ['https'], 'resp_time': 0, 'url': 'https://mirror.netcologne.de/manjaro/'}
filter_mirror_protocols mirror loop -> mirror={'continent': 'Europe', 'branches': [0, 0, 0], 'country': 'Germany', 'last_sync': '07:46', 'protocols': ['http', 'ftp'], 'resp_time': 0, 'url': 'http://ftp.rz.tu-bs.de/pub/mirror/manjaro.org/repos/'}
filter_mirror_protocols mirror loop -> mirror={'continent': 'Europe', 'branches': [1, 1, 1], 'country': 'Germany', 'last_sync': '00:06', 'protocols': ['https'], 'resp_time': 0, 'url': 'https://mirror.philpot.de/manjaro/'}
filter_mirror_protocols mirror loop -> mirror={'continent': 'Europe', 'branches': [1, 1, 1], 'country': 'Germany', 'last_sync': '00:06', 'protocols': ['https'], 'resp_time': 0, 'url': 'https://manjaro.moson.eu/'}
::INFO Using custom mirror file
::INFO Querying mirrors - This may take some time
  0.122 Germany        : https://mirror.alpix.eu/manjaro/
  0.137 Germany        : https://ftp.halifax.rwth-aachen.de/manjaro/
  0.113 Germany        : https://mirror.netzspielplatz.de/manjaro/packages/
  0.090 Germany        : https://mirror.philpot.de/manjaro/
  0.142 Germany        : https://manjaro.moson.eu/
::INFO Writing mirror list
::Germany         : https://mirror.philpot.de/manjaro/testing/$repo/$arch
::Germany         : https://mirror.netzspielplatz.de/manjaro/packages/testing/$repo/$arch
::Germany         : https://mirror.alpix.eu/manjaro/testing/$repo/$arch
::Germany         : https://ftp.halifax.rwth-aachen.de/manjaro/testing/$repo/$arch
::Germany         : https://manjaro.moson.eu/testing/$repo/$arch
::INFO Mirror list generated and saved to: /etc/pacman.d/mirrorlist
::INFO To reset custom mirrorlist 'sudo pacman-mirrors -id'
::INFO To remove custom config run  'sudo pacman-mirrors -c all'

It's --use-async

~ >>> time sudo pacman-mirrors --use-async -f 0                                                                                                                         
::INFO Downloading mirrors from repo.manjaro.org
WARNING ! THE ASYNC ARGUMENT IS EXPERIMENTAL
FILE REPORTS AT: https://gitlab.manjaro.org/applications/pacman-mirrors/issues/
I acknowledge that use of async is experimental. Continue? (Y/n) 
::INFO Using default mirror file
::INFO Querying mirrors - This may take some time
     0.2620 :: Austria         - http://mirror.easyname.at/manjaro/
     0.2560 :: Belgium         - http://mirror.futureweb.be/manjaro/
     0.3700 :: Belarus         - http://mirror.datacenter.by/pub/mirrors/manjaro/
     0.4920 :: Belgium         - https://mirror.futureweb.be/manjaro/
     0.2810 :: Czech           - https://mirror.dkm.cz/manjaro/
     0.4320 :: Bulgaria        - https://manjaro.ipacct.com/manjaro/
     0.2750 :: France          - http://kibo.remi.lu/
     0.8190 :: Austria         - ftp://mirror.easyname.at/manjaro/
     0.3060 :: France          - https://manjaro.ynh.ovh/
     0.3980 :: Germany         - https://mirror.alpix.eu/manjaro/
     0.2650 :: Germany         - http://mirror.ragenetwork.de/manjaro/
     0.2290 :: Germany         - https://mirror.netzspielplatz.de/manjaro/packages/
     0.3530 :: Germany         - https://ftp.halifax.rwth-aachen.de/manjaro/
     0.5140 :: Georgia         - http://manjaro.grena.ge/
     0.6970 :: Georgia         - https://manjaro.grena.ge/
     0.8230 :: Denmark         - https://www.uex.dk/public/manjaro/
     0.5980 :: Germany         - ftp://ftp.halifax.rwth-aachen.de/manjaro/
     0.3610 :: Germany         - https://mirror.philpot.de/manjaro/
     0.3110 :: Germany         - https://manjaro.moson.eu/
     0.3660 :: Italy           - https://manjaro.mirror.garr.it/mirrors/manjaro/
     1.7340 :: Australia       - http://manjaro.melbourneitmirror.net/
     0.5300 :: Hungary         - https://nova.quantum-mirror.hu/mirrors/pub/manjaro/
     1.5970 :: Brazil          - https://www.caco.ic.unicamp.br/manjaro/
     1.4230 :: Ecuador         - http://mirror.espoch.edu.ec/manjaro/
     0.7170 :: Hungary         - https://quantum-mirror.hu/mirrors/pub/manjaro/

     0.7160 :: Greece          - https://ftp.cc.uoc.gr/mirrors/linux/manjaro/
     1.6430 :: Ecuador         - https://mirror.cedia.org.ec/manjaro/
     0.7460 :: Italy           - https://ct.mirror.garr.it/mirrors/manjaro/
     0.8300 :: Italy           - https://ba.mirror.garr.it/mirrors/manjaro/
     0.5100 :: Germany         - http://manjaro.moson.eu/
     2.0040 :: Chile           - https://mirror.ufro.cl/manjaro/o/

     0.6190 :: Greece          - http://ftp.cc.uoc.gr/mirrors/linux/manjaro/
     0.5400 :: Hungary         - http://quantum-mirror.hu/mirrors/pub/manjaro/
     0.5150 :: Hungary         - http://nova.quantum-mirror.hu/mirrors/pub/manjaro/
     0.2320 :: United_Kingdom  - http://manjaro.mirrors.uk2.net/
     0.4390 :: Spain           - http://ftp.caliu.cat/pub/distribucions/manjaro/
     0.3840 :: Ukraine         - http://mirrors.colocall.net/manjaro/
     0.3670 :: United_Kingdom  - https://www.mirrorservice.org/sites/repo.manjaro.org/repos/
     0.6550 :: Russia          - https://mirror.yandex.ru/mirrors/manjaro/
     0.6570 :: Sweden          - https://ftp.lysator.liu.se/pub/manjaro/
     0.7300 :: Spain           - https://ftp.caliu.cat/pub/distribucions/manjaro/
     0.7140 :: Sweden          - ftp://ftp.lysator.liu.se/pub/manjaro/
     0.7520 :: Ukraine         - ftp://mirrors.colocall.net/manjaro/
     1.0150 :: Kenya           - http://manjaro.mirror.liquidtelecom.com/
     0.6540 :: United_States   - http://distro.ibiblio.org/manjaro/
     0.7520 :: United_States   - http://repo.ialab.dsu.edu/manjaro/
     1.2630 :: Greece          - ftp://ftp.cc.uoc.gr/mirrors/linux/manjaro/
     0.9090 :: United_Kingdom  - http://repo.manjaro.org.uk/
     0.8340 :: United_States   - https://repo.ialab.dsu.edu/manjaro/
     1.6800 :: Kenya           - https://manjaro.mirror.liquidtelecom.com/
     1.6860 :: Japan           - http://ftp.tsukuba.wide.ad.jp/Linux/manjaro/
     0.8290 :: United_States   - https://mirror.math.princeton.edu/pub/manjaro/
     2.9370 :: China           - https://mirrors.sjtug.sjtu.edu.cn/manjaro/
     1.8090 :: New_Zealand     - http://manjaro.mirrors.theom.nz/
     1.2450 :: United_States   - https://mirrors.ocf.berkeley.edu/manjaro/
     1.8910 :: South_Korea     - https://mirror.d-tl.com/manjaro/
     4.3300 :: Bulgaria        - https://mirrors.netix.net/manjaro/
     4.2710 :: Poland          - https://mirror.tuchola-dc.pl/manjaro/
::INFO Writing mirror list
::Belarus         : http://mirror.datacenter.by/pub/mirrors/manjaro/unstable
::Czech           : https://mirror.dkm.cz/manjaro/unstable
::Bulgaria        : https://manjaro.ipacct.com/manjaro/unstable
::Belgium         : https://mirror.futureweb.be/manjaro/unstable
::France          : http://kibo.remi.lu/unstable
::Austria         : http://mirror.easyname.at/manjaro/unstable
::France          : https://manjaro.ynh.ovh/unstable
::Germany         : https://mirror.alpix.eu/manjaro/unstable
::Germany         : http://mirror.ragenetwork.de/manjaro/unstable
::Germany         : https://mirror.netzspielplatz.de/manjaro/packages/unstable
::Georgia         : https://manjaro.grena.ge/unstable
::Denmark         : https://www.uex.dk/public/manjaro/unstable
::Germany         : https://ftp.halifax.rwth-aachen.de/manjaro/unstable
::Germany         : https://mirror.philpot.de/manjaro/unstable
::Italy           : https://manjaro.mirror.garr.it/mirrors/manjaro/unstable
::Australia       : http://manjaro.melbourneitmirror.net/unstable
::Brazil          : https://www.caco.ic.unicamp.br/manjaro/unstable
::Ecuador         : http://mirror.espoch.edu.ec/manjaro/unstable
::Brazil          : https://manjaro.c3sl.ufpr.br/unstable
::Ecuador         : https://mirror.cedia.org.ec/manjaro/unstable
::Italy           : https://ct.mirror.garr.it/mirrors/manjaro/unstable
::Italy           : https://ba.mirror.garr.it/mirrors/manjaro/unstable
::Germany         : https://manjaro.moson.eu/unstable
::Chile           : https://mirror.ufro.cl/manjaro/unstable
::Bangladesh      : http://mirror.xeonbd.com/manjaro/unstable
::Hungary         : https://quantum-mirror.hu/mirrors/pub/manjaro/unstable
::Hungary         : https://nova.quantum-mirror.hu/mirrors/pub/manjaro/unstable
::United_Kingdom  : http://manjaro.mirrors.uk2.net/unstable
::United_Kingdom  : https://www.mirrorservice.org/sites/repo.manjaro.org/repos/unstable
::Russia          : https://mirror.yandex.ru/mirrors/manjaro/unstable
::Spain           : https://ftp.caliu.cat/pub/distribucions/manjaro/unstable
::Sweden          : https://ftp.lysator.liu.se/pub/manjaro/unstable
::Ukraine         : http://mirrors.colocall.net/manjaro/unstable
::United_States   : http://distro.ibiblio.org/manjaro/unstable
::Greece          : https://ftp.cc.uoc.gr/mirrors/linux/manjaro/unstable
::United_Kingdom  : http://repo.manjaro.org.uk/unstable
::United_States   : https://repo.ialab.dsu.edu/manjaro/unstable
::Kenya           : https://manjaro.mirror.liquidtelecom.com/unstable
::Japan           : http://ftp.tsukuba.wide.ad.jp/Linux/manjaro/unstable
::United_States   : https://mirror.math.princeton.edu/pub/manjaro/unstable
::China           : https://mirrors.sjtug.sjtu.edu.cn/manjaro/unstable
::New_Zealand     : http://manjaro.mirrors.theom.nz/unstable
::United_States   : https://mirrors.ocf.berkeley.edu/manjaro/unstable
::South_Korea     : https://mirror.d-tl.com/manjaro/unstable
::Bulgaria        : https://mirrors.netix.net/manjaro/unstable
::Poland          : https://mirror.tuchola-dc.pl/manjaro/unstable
::INFO Mirror list generated and saved to: /etc/pacman.d/mirrorlist
sudo pacman-mirrors --use-async -f 0  3.46s user 0.53s system 41% cpu 9.547 total

vs. without the new flag

~ >>> time sudo pacman-mirrors -f 0                                                                                                                                     
::INFO Downloading mirrors from repo.manjaro.org
::INFO Using default mirror file
::INFO Querying mirrors - This may take some time
  ..... Australia      : http://manjaro.melbourneitmirror.net/
  0.339 Austria        : http://mirror.easyname.at/manjaro/
  0.383 Austria        : ftp://mirror.easyname.at/manjaro/
  ..... Bangladesh     : http://mirror.xeonbd.com/manjaro/
  0.249 Belarus        : http://mirror.datacenter.by/pub/mirrors/manjaro/
  0.253 Belgium        : https://mirror.futureweb.be/manjaro/
  0.149 Belgium        : http://mirror.futureweb.be/manjaro/
  1.571 Brazil         : https://manjaro.c3sl.ufpr.br/
  3.087 Brazil         : https://www.caco.ic.unicamp.br/manjaro/
  ..... Bulgaria       : https://mirrors.netix.net/manjaro/
  0.456 Bulgaria       : https://manjaro.ipacct.com/manjaro/
  1.839 Chile          : https://mirror.ufro.cl/manjaro/
  2.799 China          : https://mirrors.sjtug.sjtu.edu.cn/manjaro/
  0.235 Czech          : https://mirror.dkm.cz/manjaro/
  0.737 Denmark        : https://www.uex.dk/public/manjaro/
  1.957 Ecuador        : https://mirror.cedia.org.ec/manjaro/
  1.856 Ecuador        : http://mirror.espoch.edu.ec/manjaro/
  0.209 France         : https://manjaro.ynh.ovh/
  0.438 France         : http://kibo.remi.lu/
  0.680 Georgia        : https://manjaro.grena.ge/
  0.434 Georgia        : http://manjaro.grena.ge/
  0.223 Germany        : https://mirror.alpix.eu/manjaro/
  0.181 Germany        : http://mirror.ragenetwork.de/manjaro/
  0.256 Germany        : https://ftp.halifax.rwth-aachen.de/manjaro/
  0.456 Germany        : ftp://ftp.halifax.rwth-aachen.de/manjaro/
  0.326 Germany        : https://mirror.netzspielplatz.de/manjaro/packages/
  0.271 Germany        : https://mirror.philpot.de/manjaro/
  0.188 Germany        : https://manjaro.moson.eu/
  0.159 Germany        : http://manjaro.moson.eu/
  0.634 Greece         : https://ftp.cc.uoc.gr/mirrors/linux/manjaro/
  0.414 Greece         : http://ftp.cc.uoc.gr/mirrors/linux/manjaro/
  0.965 Greece         : ftp://ftp.cc.uoc.gr/mirrors/linux/manjaro/
  0.477 Hungary        : https://quantum-mirror.hu/mirrors/pub/manjaro/
  0.329 Hungary        : http://quantum-mirror.hu/mirrors/pub/manjaro/
  0.433 Hungary        : https://nova.quantum-mirror.hu/mirrors/pub/manjaro/
  0.348 Hungary        : http://nova.quantum-mirror.hu/mirrors/pub/manjaro/
  0.301 Italy          : https://manjaro.mirror.garr.it/mirrors/manjaro/
  0.353 Italy          : https://ba.mirror.garr.it/mirrors/manjaro/
  0.413 Italy          : https://ct.mirror.garr.it/mirrors/manjaro/
  1.572 Japan          : http://ftp.tsukuba.wide.ad.jp/Linux/manjaro/
  1.512 Kenya          : https://manjaro.mirror.liquidtelecom.com/
  0.901 Kenya          : http://manjaro.mirror.liquidtelecom.com/
  1.909 New_Zealand    : http://manjaro.mirrors.theom.nz/
  ..... Poland         : https://mirror.tuchola-dc.pl/manjaro/
  0.310 Russia         : https://mirror.yandex.ru/mirrors/manjaro/
  3.301 South_Korea    : https://mirror.d-tl.com/manjaro/
  0.714 Spain          : https://ftp.caliu.cat/pub/distribucions/manjaro/
  0.395 Spain          : http://ftp.caliu.cat/pub/distribucions/manjaro/
  0.424 Sweden         : https://ftp.lysator.liu.se/pub/manjaro/
  0.511 Sweden         : ftp://ftp.lysator.liu.se/pub/manjaro/
  0.344 Ukraine        : http://mirrors.colocall.net/manjaro/
  0.583 Ukraine        : ftp://mirrors.colocall.net/manjaro/
  0.895 United_Kingdom : http://repo.manjaro.org.uk/
  0.168 United_Kingdom : https://www.mirrorservice.org/sites/repo.manjaro.org/repos/
  0.161 United_Kingdom : http://manjaro.mirrors.uk2.net/
  1.549 United_States  : https://repo.ialab.dsu.edu/manjaro/
  0.637 United_States  : http://repo.ialab.dsu.edu/manjaro/
  0.595 United_States  : http://distro.ibiblio.org/manjaro/
  1.210 United_States  : https://mirrors.ocf.berkeley.edu/manjaro/
  0.734 United_States  : https://mirror.math.princeton.edu/pub/manjaro/
::INFO Writing mirror list
::Belgium         : https://mirror.futureweb.be/manjaro/unstable
::Germany         : https://manjaro.moson.eu/unstable
::United_Kingdom  : http://manjaro.mirrors.uk2.net/unstable
::United_Kingdom  : https://www.mirrorservice.org/sites/repo.manjaro.org/repos/unstable
::Germany         : http://mirror.ragenetwork.de/manjaro/unstable
::France          : https://manjaro.ynh.ovh/unstable
::Germany         : https://mirror.alpix.eu/manjaro/unstable
::Czech           : https://mirror.dkm.cz/manjaro/unstable
::Belarus         : http://mirror.datacenter.by/pub/mirrors/manjaro/unstable
::Germany         : https://mirror.philpot.de/manjaro/unstable
::Italy           : https://manjaro.mirror.garr.it/mirrors/manjaro/unstable
::Russia          : https://mirror.yandex.ru/mirrors/manjaro/unstable
::Germany         : https://mirror.netzspielplatz.de/manjaro/packages/unstable
::Hungary         : https://quantum-mirror.hu/mirrors/pub/manjaro/unstable
::Hungary         : https://nova.quantum-mirror.hu/mirrors/pub/manjaro/unstable
::Italy           : https://ba.mirror.garr.it/mirrors/manjaro/unstable
::Austria         : http://mirror.easyname.at/manjaro/unstable
::Spain           : https://ftp.caliu.cat/pub/distribucions/manjaro/unstable
::Italy           : https://ct.mirror.garr.it/mirrors/manjaro/unstable
::Georgia         : https://manjaro.grena.ge/unstable
::France          : http://kibo.remi.lu/unstable
::Bulgaria        : https://manjaro.ipacct.com/manjaro/unstable
::Germany         : https://ftp.halifax.rwth-aachen.de/manjaro/unstable
::Sweden          : https://ftp.lysator.liu.se/pub/manjaro/unstable
::Ukraine         : http://mirrors.colocall.net/manjaro/unstable
::United_States   : http://distro.ibiblio.org/manjaro/unstable
::United_States   : https://repo.ialab.dsu.edu/manjaro/unstable
::United_States   : https://mirror.math.princeton.edu/pub/manjaro/unstable
::Denmark         : https://www.uex.dk/public/manjaro/unstable
::United_Kingdom  : http://repo.manjaro.org.uk/unstable
::Kenya           : https://manjaro.mirror.liquidtelecom.com/unstable
::Greece          : https://ftp.cc.uoc.gr/mirrors/linux/manjaro/unstable
::United_States   : https://mirrors.ocf.berkeley.edu/manjaro/unstable
::Brazil          : https://manjaro.c3sl.ufpr.br/unstable
::Japan           : http://ftp.tsukuba.wide.ad.jp/Linux/manjaro/unstable
::Chile           : https://mirror.ufro.cl/manjaro/unstable
::Ecuador         : http://mirror.espoch.edu.ec/manjaro/unstable
::New_Zealand     : http://manjaro.mirrors.theom.nz/unstable
::Ecuador         : https://mirror.cedia.org.ec/manjaro/unstable
::Australia       : http://manjaro.melbourneitmirror.net/unstable
::China           : https://mirrors.sjtug.sjtu.edu.cn/manjaro/unstable
::Brazil          : https://www.caco.ic.unicamp.br/manjaro/unstable
::South_Korea     : https://mirror.d-tl.com/manjaro/unstable
::Bangladesh      : http://mirror.xeonbd.com/manjaro/unstable
::Poland          : https://mirror.tuchola-dc.pl/manjaro/unstable
::Bulgaria        : https://mirrors.netix.net/manjaro/unstable
::INFO Mirror list generated and saved to: /etc/pacman.d/mirrorlist
sudo pacman-mirrors -f 0  4.09s user 0.42s system 7% cpu 1:00.62 total

from around one minute to about 10 seconds!
Wow, what an improvement!

2 Likes
sudo pacman-mirrors -f 0
Traceback (most recent call last):
  File "/usr/bin/pacman-mirrors", line 20, in <module>
    from pacman_mirrors import pacman_mirrors
  File "/usr/lib/python3.7/site-packages/pacman_mirrors/pacman_mirrors.py", line 31, in <module>
    from pacman_mirrors.builder import common, fasttrack, interactive
  File "/usr/lib/python3.7/site-packages/pacman_mirrors/builder/common.py", line 24, in <module>
    from pacman_mirrors.builder.builder import build_pool
  File "/usr/lib/python3.7/site-packages/pacman_mirrors/builder/builder.py", line 26, in <module>
    from pacman_mirrors.functions.outputFn import write_custom_mirrors_json
  File "/usr/lib/python3.7/site-packages/pacman_mirrors/functions/outputFn.py", line 23, in <module>
    from pacman_mirrors.functions import customFn
  File "/usr/lib/python3.7/site-packages/pacman_mirrors/functions/customFn.py", line 22, in <module>
    from pacman_mirrors.functions import defaultFn
  File "/usr/lib/python3.7/site-packages/pacman_mirrors/functions/defaultFn.py", line 23, in <module>
    from pacman_mirrors.functions import pools
  File "/usr/lib/python3.7/site-packages/pacman_mirrors/functions/pools.py", line 23, in <module>
    from pacman_mirrors.functions.httpFn import get_ip_country
  File "/usr/lib/python3.7/site-packages/pacman_mirrors/functions/httpFn.py", line 26, in <module>
    import requests
ModuleNotFoundError: No module named 'requests'
sudo pacman-mirrors --use-async -f 0
Traceback (most recent call last):
  File "/usr/bin/pacman-mirrors", line 20, in <module>
    from pacman_mirrors import pacman_mirrors
  File "/usr/lib/python3.7/site-packages/pacman_mirrors/pacman_mirrors.py", line 31, in <module>
    from pacman_mirrors.builder import common, fasttrack, interactive
  File "/usr/lib/python3.7/site-packages/pacman_mirrors/builder/common.py", line 24, in <module>
    from pacman_mirrors.builder.builder import build_pool
  File "/usr/lib/python3.7/site-packages/pacman_mirrors/builder/builder.py", line 26, in <module>
    from pacman_mirrors.functions.outputFn import write_custom_mirrors_json
  File "/usr/lib/python3.7/site-packages/pacman_mirrors/functions/outputFn.py", line 23, in <module>
    from pacman_mirrors.functions import customFn
  File "/usr/lib/python3.7/site-packages/pacman_mirrors/functions/customFn.py", line 22, in <module>
    from pacman_mirrors.functions import defaultFn
  File "/usr/lib/python3.7/site-packages/pacman_mirrors/functions/defaultFn.py", line 23, in <module>
    from pacman_mirrors.functions import pools
  File "/usr/lib/python3.7/site-packages/pacman_mirrors/functions/pools.py", line 23, in <module>
    from pacman_mirrors.functions.httpFn import get_ip_country
  File "/usr/lib/python3.7/site-packages/pacman_mirrors/functions/httpFn.py", line 26, in <module>
    import requests
ModuleNotFoundError: No module named 'requests'

first time i get this... what to do?

similar error message reported here:

I think it just landed in testing as well.

This update is in stable. I am getting the same errors.

I'm in Stable too

@palo, @notageek report
pacman -Q pacman-mirrors

pacman -Q pacman-mirrors
pacman-mirrors 4.15-1
1 Like

pacman-mirrors 4.15-1

1 Like

i get the same error, even if i remove pacman-mirrors and reinstall it:

:: Repository package will be installed:
pacman-mirrors                                             -> 4.15-1

:: Proceed with installation? [Y/n] 
:: [v]iew package details   [m]anually select packages
>> 

resolving dependencies...
looking for conflicting packages...

Package (1)          New Version  Net Change

core/pacman-mirrors  4.15-1         1,07 MiB

Total Installed Size:  1,07 MiB

:: Proceed with installation? [Y/n] Y
(1/1) checking keys in keyring                                     [####################################] 100%
(1/1) checking package integrity                                   [####################################] 100%
(1/1) loading package files                                        [####################################] 100%
(1/1) checking for file conflicts                                  [####################################] 100%
:: Processing package changes...
(1/1) installing pacman-mirrors                                    [####################################] 100%
Optional dependencies for pacman-mirrors
gtk3: for interactive mode (GUI) [installed]
python-gobject: for interactive mode (GUI)
:: Running post-transaction hooks...
(1/2) Configuring pacman-mirrors ...
Traceback (most recent call last):
File "/usr/bin/pacman-mirrors", line 20, in <module>
from pacman_mirrors import pacman_mirrors
File "/usr/lib/python3.7/site-packages/pacman_mirrors/pacman_mirrors.py", line 31, in <module>
from pacman_mirrors.builder import common, fasttrack, interactive
File "/usr/lib/python3.7/site-packages/pacman_mirrors/builder/common.py", line 24, in <module>
from pacman_mirrors.builder.builder import build_pool
File "/usr/lib/python3.7/site-packages/pacman_mirrors/builder/builder.py", line 26, in <module>
from pacman_mirrors.functions.outputFn import write_custom_mirrors_json
File "/usr/lib/python3.7/site-packages/pacman_mirrors/functions/outputFn.py", line 23, in <module>
from pacman_mirrors.functions import customFn
File "/usr/lib/python3.7/site-packages/pacman_mirrors/functions/customFn.py", line 22, in <module>
from pacman_mirrors.functions import defaultFn
File "/usr/lib/python3.7/site-packages/pacman_mirrors/functions/defaultFn.py", line 23, in <module>
from pacman_mirrors.functions import pools
File "/usr/lib/python3.7/site-packages/pacman_mirrors/functions/pools.py", line 23, in <module>
from pacman_mirrors.functions.httpFn import get_ip_country
File "/usr/lib/python3.7/site-packages/pacman_mirrors/functions/httpFn.py", line 26, in <module>
import requests
ModuleNotFoundError: No module named 'requests'
hint: use `pacman-mirrors` to generate and update your pacman mirrorlist.
(2/2) Arming ConditionNeedsUpdate...

I think I inadvertently build against the wrong branch.

I am checking it now.

i see new version in testing

I am deeply sorry - I have investigated backwards - it seems I forgot to push the code to both repos - my primary working repo of course it works.

I missed pushing it to upstream - which is just another location on gitlab.

Please forgive me - it is entirely on me.


Addendum

It seems the comment it the CHANGELOG.md refers the test argument.

the correct async argument is --use-async

6 Likes

fixed and working now

1 Like

version 4.15-2 is working for me, too.

:slightly_smiling_face: Hey, do not be hard on yourself, @linux-aarhus. You caught the error on time and rectified it.

5 Likes

I'm also getting "mirror loop" messages. How can I hide it?
4.15-2

Forum kindly sponsored by