|
Bugzilla – Full Text Bug Listing |
| Summary: | criterion fails to build on Leap 15.6 - ImportError: cannot import name 'builder' | ||
|---|---|---|---|
| Product: | [openSUSE] openSUSE Distribution | Reporter: | Lubos Kocman <lubos.kocman> |
| Component: | Other | Assignee: | Paolo Stivanin <pstivanin> |
| Status: | IN_PROGRESS --- | QA Contact: | E-mail List <qa-bugs> |
| Severity: | Normal | ||
| Priority: | P5 - None | CC: | mlin, pstivanin |
| Version: | Leap 15.6 | ||
| Target Milestone: | --- | ||
| Hardware: | Other | ||
| OS: | Other | ||
| Whiteboard: | |||
| Found By: | --- | Services Priority: | |
| Business Priority: | Blocker: | --- | |
| Marketing QA Status: | --- | IT Deployment: | --- |
|
Description
Lubos Kocman
2024-04-16 21:42:44 UTC
I did reach out to Paolo over email The issue seems to be related with Python 3.6 and its deps. We need to use Python 3.11 on Leap in order to get it to work. We need to update python3-protobuf from 3.9 to 4.25 I give it a try with python311-protobuf-4.25.1 however it failed with different reason https://build.opensuse.org/package/show/home:mlin7442:rebuild_fails_156/criterion I guess that's because Leap is not using py311 as default (just a guess, I'd have to check), so the following fails: [ 29s] Traceback (most recent call last): [ 29s] File "/usr/bin/nanopb_generator.py", line 36, in <module> [ 29s] import google.protobuf.text_format as text_format [ 29s] ModuleNotFoundError: No module named 'google' [ 29s] --nanopb_out: protoc-gen-nanopb: Plugin failed with status code 1. because /usr/bin/nanopb_generator.py calls python3 and python3 is a symlink to 3.6. Or was the python interpreter changed to 3.11 by default on Leap? Not changed to 3.11 by default, but 3.11 is 2nd option available other than 3.6. And protobuf 4.25 from SLE15 has built with python 3.11. Looks like nanopb need to be build with 3.11 as well... Maybe we ran out of time to have a fixed criterion before Leap 15.6 GA, perhaps we have to delete criterion in Leap 15.6, we can revive it with a fixed criterion via maintenance.. |