The title says it
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d23846dad7175a4f631e96eb4eecd503151aa3c9 commit d23846dad7175a4f631e96eb4eecd503151aa3c9 Author: Alfredo Tupone <tupone@gentoo.org> AuthorDate: 2023-11-01 20:49:01 +0000 Commit: Alfredo Tupone <tupone@gentoo.org> CommitDate: 2023-11-01 20:50:13 +0000 sci-libs/onnx: install python modules Closes: https://bugs.gentoo.org/915843 Signed-off-by: Alfredo Tupone <tupone@gentoo.org> sci-libs/onnx/onnx-1.14.0-r1.ebuild | 32 -------------------- sci-libs/onnx/onnx-1.14.0-r2.ebuild | 59 +++++++++++++++++++++++++++++++++++++ 2 files changed, 59 insertions(+), 32 deletions(-)
$ python Python 3.11.6 (main, Oct 5 2023, 09:51:19) [GCC 13.2.1 20230826] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import onnx Traceback (most recent call last): File "<stdin>", line 1, in <module> ModuleNotFoundError: No module named 'onnx' >>> Also, you'd need to pass, as suggested by the onnx readme, -DONNX_USE_LITE_PROTO=ON to the configure script. Otherwise any app that links to onnx and protobuf (directly or indirectly, say via caffe2) suffers from double initialization errors in the protobuf lib.
Sorry, missed the python use-flag. But the question of linking to the lite version of the protobuf library is still valid.
Here is the error log when trying to use the python onnx module: WARNING: All log messages before absl::InitializeLog() is called are written to STDERR E0000 00:00:1698932044.731554 70448 descriptor_database.cc:656] File already exists in database: onnx/onnx-ml.proto F0000 00:00:1698932044.732185 70448 descriptor.cc:1995] Check failed: GeneratedDatabase()->Add(encoded_file_descriptor, size)
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b38f4eb8d5464f99182d356e4941bea648ec5b3f commit b38f4eb8d5464f99182d356e4941bea648ec5b3f Author: Alfredo Tupone <tupone@gentoo.org> AuthorDate: 2023-11-11 16:20:03 +0000 Commit: Alfredo Tupone <tupone@gentoo.org> CommitDate: 2023-11-11 16:21:42 +0000 sci-libs/onnx: add ONNX_USE_LITE_PROTO=ON Closes: https://bugs.gentoo.org/915843 Signed-off-by: Alfredo Tupone <tupone@gentoo.org> sci-libs/onnx/onnx-1.14.0-r2.ebuild | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
(In reply to Eugene Shalygin from comment #4) > Here is the error log when trying to use the python onnx module: > WARNING: All log messages before absl::InitializeLog() is called are written > to STDERR > E0000 00:00:1698932044.731554 70448 descriptor_database.cc:656] File > already exists in database: onnx/onnx-ml.proto > F0000 00:00:1698932044.732185 70448 descriptor.cc:1995] Check failed: > GeneratedDatabase()->Add(encoded_file_descriptor, size) Hope today commit fixes it