You are not logged in.

#1 2019-12-11 12:29:27

arch32yes
Member
Registered: 2017-09-30
Posts: 116

[solved] reflector - /usr/bin/python3: No module named Reflector

Hello User,

i want to use "reflector".

Name                     : reflector
Version                  : 2019.3-1.0

pacman -S reflector

reflector
/usr/bin/python3: No module named Reflector

Reflector doesn`t start.

How can i use reflector?

Greetz

arch32yes

Last edited by arch32yes (2019-12-12 10:47:23)

Offline

#2 2019-12-11 17:55:10

levi
Moderator
From: Yorkshire, UK
Registered: 2018-06-16
Posts: 1,197

Re: [solved] reflector - /usr/bin/python3: No module named Reflector

Yes, reflector ships a python 3.7 library, while arch32 now runs on python 3.8 across the board.  The package does depend on python3, but does not tie the version down any further, and hasn't been rebuilt since March this year (when I guess we were all on python 3.7).


Architecture: pentium4, Testing repos: Yes, Hardware: EeePC 901+2GB RAM+OS half on the SD card.

Offline

#3 2019-12-11 20:07:16

abaumann
Administrator
From: Zurich
Registered: 2019-11-14
Posts: 985
Website

Re: [solved] reflector - /usr/bin/python3: No module named Reflector

which library is it? I can reschedule it.

Offline

#4 2019-12-11 20:11:48

abaumann
Administrator
From: Zurich
Registered: 2019-11-14
Posts: 985
Website

Re: [solved] reflector - /usr/bin/python3: No module named Reflector

[root@eeepc ~]# pacman -Ql reflector
reflector /usr/
reflector /usr/bin/
reflector /usr/bin/reflector
reflector /usr/lib/
reflector /usr/lib/python3.7/
reflector /usr/lib/python3.7/site-packages/
reflector /usr/lib/python3.7/site-packages/Reflector-2019.03.08.01.54.39-py3.7.egg-info
reflector /usr/lib/python3.7/site-packages/Reflector.py
reflector /usr/lib/python3.7/site-packages/__pycache__/
reflector /usr/lib/python3.7/site-packages/__pycache__/Reflector.cpython-37.opt-1.pyc
reflector /usr/lib/python3.7/site-packages/__pycache__/Reflector.cpython-37.pyc
[root@eeepc ~]# pacman -Q | grep reflector
reflector 2019.3-1.0

aha, reflector itself needs a kick. will do.

Offline

#5 2019-12-11 21:43:10

levi
Moderator
From: Yorkshire, UK
Registered: 2018-06-16
Posts: 1,197

Re: [solved] reflector - /usr/bin/python3: No module named Reflector

How would we stop this kind of thing happening again?  Surprisingly to me, the python package containing at the time of writing python 3.8 only advertises that it provides python3.  That means using the built in dependencies you could only specify that you wanted to depend on any version of python 3 or a specific one (say 3.8.0-1.1).  That suggests to me that since we apparently have a way of stopping partial upgrades of all of the python packages from testing to stable doesn't use the dependencies.  I'm also aware that perl5 has part of any pacman upgrade that tests for files in /usr/lib/perl5 other than the current version, but there's no equivalent for python, which would have found this error ahead of time provided someone had reflector installed when python updated.


Architecture: pentium4, Testing repos: Yes, Hardware: EeePC 901+2GB RAM+OS half on the SD card.

Offline

#6 2019-12-12 07:02:59

deep42thought
Administrator
From: Jena, Germany
Registered: 2017-06-17
Posts: 617

Re: [solved] reflector - /usr/bin/python3: No module named Reflector

The dependency is correctly tracked in the database (based on "/usr/lib/python$version" -> "depends on python=$version"):

$ mysql buildmaster -e 'select * from dependencies'"$(mysql_join_dependencies_versions)$(mysql_join_dependencies_install_targets)"' where dependent=251912' # this is reflector-2019.3-1.0
+---------+-----------+--------------+-----------------+---------+------------------+--------+-------+-------+---------+------+------------+
| id      | dependent | depending_on | dependency_type | version | version_relation | id     | order | epoch | version | id   | name       |
+---------+-----------+--------------+-----------------+---------+------------------+--------+-------+-------+---------+------+------------+
| 6894504 |    251912 |            3 |               5 |  166903 | >=               | 166903 |     1 |     0 | .       |    3 | base-devel |
| 6894505 |    251912 |           22 |               2 |  166903 | >=               | 166903 |     1 |     0 | .       |   22 | base       |
| 6894672 |    251912 |           63 |               4 |   17220 | <                |  17220 |  4524 |     0 | 3.8     |   63 | python     |
| 6894671 |    251912 |           63 |               4 |   18455 | >=               |  18455 |  4493 |     0 | 3.7     |   63 | python     |
| 6894506 |    251912 |         1013 |               2 |  166903 | >=               | 166903 |     1 |     0 | .       | 1013 | python3    |
+---------+-----------+--------------+-----------------+---------+------------------+--------+-------+-------+---------+------+------------+

The problem was, that db-update did not pay attention to the version part of that information. It should be fixed since a week or so, now.

Offline

#7 2019-12-12 09:27:17

abaumann
Administrator
From: Zurich
Registered: 2019-11-14
Posts: 985
Website

Re: [solved] reflector - /usr/bin/python3: No module named Reflector

reflector 2019.10-2.2 is fixed now.

Offline

#8 2019-12-12 10:43:39

arch32yes
Member
Registered: 2017-09-30
Posts: 116

Re: [solved] reflector - /usr/bin/python3: No module named Reflector

Hello abaumonn,

i don`t can use reflector.

12. Dez. 2019

python-3.8.0-1.0 - reflector-2019.3-1.0

pacman -S python3
pacman -S refletor

reflector
/usr/bin/python3: No module named Reflector

pacman -Qi reflector
Name                     : reflector
Version                  : 2019.3-1.0
Beschreibung             : A Python 3 module and script to retrieve and filter the latest Pacman mirror list.

How can i get "reflector 2019.10-2.2"?

Thank you for your fast work.

Greetz

arch32yes


Solved: oh, my mistake, i have forgot "pacman -Syu".

Nice, i'm happy reflector works.

Last edited by arch32yes (2019-12-12 10:48:32)

Offline

#9 2019-12-12 10:48:33

abaumann
Administrator
From: Zurich
Registered: 2019-11-14
Posts: 985
Website

Re: [solved] reflector - /usr/bin/python3: No module named Reflector

np, glad it works. :-)

Offline

#10 2019-12-12 18:58:22

levi
Moderator
From: Yorkshire, UK
Registered: 2018-06-16
Posts: 1,197

Re: [solved] reflector - /usr/bin/python3: No module named Reflector

deep42thought wrote:

The dependency is correctly tracked in the database (based on "/usr/lib/python$version" -> "depends on python=$version"):

$ mysql buildmaster -e 'select * from dependencies'"$(mysql_join_dependencies_versions)$(mysql_join_dependencies_install_targets)"' where dependent=251912' # this is reflector-2019.3-1.0
+---------+-----------+--------------+-----------------+---------+------------------+--------+-------+-------+---------+------+------------+
| id      | dependent | depending_on | dependency_type | version | version_relation | id     | order | epoch | version | id   | name       |
+---------+-----------+--------------+-----------------+---------+------------------+--------+-------+-------+---------+------+------------+
| 6894504 |    251912 |            3 |               5 |  166903 | >=               | 166903 |     1 |     0 | .       |    3 | base-devel |
| 6894505 |    251912 |           22 |               2 |  166903 | >=               | 166903 |     1 |     0 | .       |   22 | base       |
| 6894672 |    251912 |           63 |               4 |   17220 | <                |  17220 |  4524 |     0 | 3.8     |   63 | python     |
| 6894671 |    251912 |           63 |               4 |   18455 | >=               |  18455 |  4493 |     0 | 3.7     |   63 | python     |
| 6894506 |    251912 |         1013 |               2 |  166903 | >=               | 166903 |     1 |     0 | .       | 1013 | python3    |
+---------+-----------+--------------+-----------------+---------+------------------+--------+-------+-------+---------+------+------------+

The problem was, that db-update did not pay attention to the version part of that information. It should be fixed since a week or so, now.

That quoted dependency list seems to suggest it needs >= python 3.7 and < python 3.8, which would invalidate python 3.8, and positively require python 3.7.x which to be fair is correct for before reflector was rebuilt, but wrong if it was produced since then.


Architecture: pentium4, Testing repos: Yes, Hardware: EeePC 901+2GB RAM+OS half on the SD card.

Offline

Board footer

Powered by FluxBB