Closed scachemaille closed 6 years ago
Can confirm this with 4.7.6-2 as well. It's excatly the same error.
Same error Version 4.7.6
File "/usr/lib/python3.6/site-packages/pacman_mirrors/dialogs/graphicalui.py", line 54, in __init__
"{}h {}m".format(server["last_sync"][:2]
This lead me to think that some data is missing in the status.json
file.
Under which conditions does the error occur?
When the error occurs what is the content of custom-mirrors.json
(if any) and status.json
from /var/lib/pacman-mirrors
?
I cant reproduce it.
Here are my files, right after running sudo pacmam-mirrors -i
. I also added pacman-mirrors.conf
.
Your pacman-mirrors.conf
contains invalid settings. The current valid configuration is here
The other files is OK.
Using the command mentioned in OP
sudo pacman-mirrors -i
I cannot reproduce the issue. Not even with a full mirror pool. (pacman-mirrors -c all
)
My pacman-mirrors.conf
##
#/etc/pacman-mirrors.conf
##
#Branch Pacman should use (stable, testing, unstable)
Branch = testing
#Generation method
#1) rank - rank mirrors depending on their access time
#2) random - randomly generate the output mirrorlist
Method = rank
#Define protocols and priority
# separated by comma 'https,http' or 'http,https'
#ATM available protocols are: http, https, ftp
#Not specifying a protocol will ban the protocol from being used
#If a mirror has more than one protocol defined only the first is written to the mirrorlist
#Empty means all in reversed alphabetic order
Protocols =
#Get a list of all available counties with 'pacman-mirrors -l'
#Value can be 'Custom' or nothing which means all
# OnlyCountry =
#When set to False - all certificates are accepted.
#Use only if you fully trust all ssl-enabled mirrors.
SSLVerify = True
@Skycoder42
right after running sudo pacmam-mirrors -i
Could you copy status.json
and custom-mirrors.json
before you it?
@Skycoder42 Are you running on Wayland?
Is it on TTY?
Same error. Plasma xorg. first.zip second.zip
First - before interactive Second - After.
Just updated to pacman-mirrors-4.8.1-3 - still crashing in interactive mode.
@xircon Could you post the error message from 4.8.1-3?
v. 4.7.6-2 Failing for me with this return:
Traceback (most recent call last):
File "/usr/bin/pacman-mirrors", line 57, in <module>
pm.run()
File "/usr/lib/python3.6/site-packages/pacman_mirrors/pacman_mirrors.py", line 912, in run
self.build_interactive_mirror_list()
File "/usr/lib/python3.6/site-packages/pacman_mirrors/pacman_mirrors.py", line 609, in build_interactive_mirror_list
self.default)
File "/usr/lib/python3.6/site-packages/pacman_mirrors/dialogs/graphicalui.py", line 160, in run
window = GraphicalUI(server_list, random, default)
File "/usr/lib/python3.6/site-packages/pacman_mirrors/dialogs/graphicalui.py", line 54, in __init__
"{}h {}m".format(server["last_sync"][:2],
TypeError: 'int' object is not subscriptable
pacman-mirrors.tar.gz I had run '-i' before creating the first archive already, but here is one after command fail again: pacman-mirrors2.tar.gz
@xircon @commonsourcecs
That is most weird - that code does not existin 4.8.1
File "/usr/lib/python3.6/site-packages/pacman_mirrors/dialogs/graphicalui.py", line 54, in __init__
"{}h {}m".format(server["last_sync"][:2],
Found source for me. '-i' fails when there is any discrepancy in the list. In my region/list, there is one mirror currently Timed Out. To test, I switched to Netherlands (all mirrors active and synced to Testing). Then ran '-i' on its own again. That worked.
Had to nip out - 4.8.1-5 same problems - do you want the zip?
Yes, mirror times out:
0.213 Germany : https://mirror.netcologne.de/manjaro/
..... Germany : https://repo.rhindon.net/manjaro/
..... Germany : https://repo.stdout.net/manjaro/
.: ERROR [Errno -2] Name or service not known 'https://repo.stdout.net/manjaro/'
Could be the problem?
Hello, Finally i'm here too, even if i feel that is way too overwhelming. Here are the files you requested on manjaro forum: pacman_mirrors_1.zip pacman_mirrors_2.zip
Are in the order you requested and hopefully helpful!
4.8.1-1 also Confirmed that '-i' fails with list containing 'Timed Out' mirrors but succeeds on list without. This can also be mitigated for lists with bad mirror, as long as another option is passed such as using -ic. It would appear -i needs help sorting or making sense of oddities in the list. (while simple '-a' seems deprecated now, '--api' or '-B' no longer works in 4.8.1-1 though)
Yes - the api is my bad - I added some checks for any api related argument eg -B without the actual --api
present - and it failed me. This has been corrected.
With version Version 4.8.1dev
(4.8.1-6) the error message has changed a little:
Traceback (most recent call last):
File "/usr/bin/pacman-mirrors", line 57, in <module>
pm.run()
File "/usr/lib/python3.6/site-packages/pacman_mirrors/pacman_mirrors.py", line 853, in run
self.build_interactive_mirror_list()
File "/usr/lib/python3.6/site-packages/pacman_mirrors/pacman_mirrors.py", line 585, in build_interactive_mirror_list
interactive_list = mirrorFn.translate_pool_to_interactive(worklist)
File "/usr/lib/python3.6/site-packages/pacman_mirrors/mirrors/mirrorFn.py", line 207, in translate_pool_to_interactive
"last_sync": "{}h {}m".format(mirror["last_sync"][:2].replace(":", ""),
TypeError: 'int' object is not subscriptable
EDIT: I too have the mirror that times out. After removing the mirror from the custom-mirrors.json
(or removing the file) it worked again (The speedtest before still tests the broken mirror, but as it is not the custom-mirrors.json it works fine). Note: The entry hat -1
for all 3 branches, so it was easy to find.
@fhdk Im using kwin with X11, not wayland. And yes, it's a normal graphical console, aka a tty. But as it seems the reson is are the broken custom mirrors.
The issue has been solved with the release of 4.8.2
4.8.2-2
Traceback (most recent call last):
File "/usr/bin/pacman-mirrors", line 57, in <module>
pm.run()
File "/usr/lib/python3.6/site-packages/pacman_mirrors/pacman_mirrors.py", line 853, in run
self.build_interactive_mirror_list()
File "/usr/lib/python3.6/site-packages/pacman_mirrors/pacman_mirrors.py", line 585, in build_interactive_mirror_list
interactive_list = mirrorFn.translate_pool_to_interactive(worklist)
File "/usr/lib/python3.6/site-packages/pacman_mirrors/mirrors/mirrorFn.py", line 213, in translate_pool_to_interactive
"last_sync": "{}h {}m".format(mirror["last_sync"][:2].replace(":", ""),
TypeError: 'int' object is not subscriptable
I just tried
sudo pacman-mirros -i
and it seems broken. I have the following error:pacman-mirrors 4.7.5-1