Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 915645

Summary: net-analyzer/scapy-2.5.0 fails test - ImportError: Cannot execute crypto-related method! Please install python-cryptography v1.7 or later.
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Sam James <sam>
Status: CONFIRMED ---    
Severity: normal CC: netmon
Priority: Normal Keywords: TESTFAILURE
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tar.xz
net-analyzer:scapy-2.5.0:20231012-041347.log
temp.tar.xz

Description Toralf Förster gentoo-dev 2023-10-12 17:28:27 UTC
  File "/var/tmp/portage/net-analyzer/scapy-2.5.0/work/scapy-2.5.0/scapy/layers/tls/cert.py", line 219, in __call__
    obj.import_from_asn1pkt(pubkey)
  File "/var/tmp/portage/net-analyzer/scapy-2.5.0/work/scapy-2.5.0/scapy/layers/tls/cert.py", line 302, in import_from_asn1pkt
    self.fill_and_store(modulus=modulus, pubExp=pubExp)
  File "/var/tmp/portage/net-analyzer/scapy-2.5.0/work/scapy-2.5.0/scapy/config.py", line 951, in func_in
    raise ImportError("Cannot execute crypto-related method! "
ImportError: Cannot execute crypto-related method! Please install python-cryptography v1.7 or later.

During handling of the above exception, another exception occurred:

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_no_multilib_hardened_test-20231010-123509

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-13 *
clang/llvm (if any):
/usr/lib/llvm/17
17.0.2
Python 3.11.6
Available Rust versions:
  [1]   rust-bin-1.73.0 *
php cli (if any):
go version go1.21.1 linux/amd64

  HEAD of ::gentoo
commit fcb234ce455c5d652e87ac69407d4b6446fa00be
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Thu Oct 12 00:17:03 2023 +0000

    2023-10-12 00:17:03 UTC

emerge -qpvO net-analyzer/scapy
[ebuild  N    ] net-analyzer/scapy-2.5.0  USE="test" PYTHON_TARGETS="python3_11 -python3_10"
Comment 1 Toralf Förster gentoo-dev 2023-10-12 17:28:29 UTC
Created attachment 872634 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-10-12 17:28:30 UTC
Created attachment 872635 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2023-10-12 17:28:31 UTC
Created attachment 872636 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2023-10-12 17:28:32 UTC
Created attachment 872637 [details]
etc.portage.tar.xz
Comment 5 Toralf Förster gentoo-dev 2023-10-12 17:28:34 UTC
Created attachment 872638 [details]
net-analyzer:scapy-2.5.0:20231012-041347.log
Comment 6 Toralf Förster gentoo-dev 2023-10-12 17:28:35 UTC
Created attachment 872639 [details]
temp.tar.xz