Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 884819 - net-analyzer/wireshark-4.0.1 - ModuleNotFoundError: No module named _posixsubprocess
Summary: net-analyzer/wireshark-4.0.1 - ModuleNotFoundError: No module named _posixsub...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sam James
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-12-08 09:06 UTC by Toralf Förster
Modified: 2022-12-13 04:08 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,19.76 KB, text/plain)
2022-12-08 09:06 UTC, Toralf Förster
Details
emerge-history.txt.bz2 (emerge-history.txt.bz2,55.40 KB, application/x-bzip)
2022-12-08 09:06 UTC, Toralf Förster
Details
environment (environment,155.20 KB, text/plain)
2022-12-08 09:06 UTC, Toralf Förster
Details
etc.clang.tar.bz2 (etc.clang.tar.bz2,699 bytes, application/x-bzip)
2022-12-08 09:06 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,26.37 KB, application/x-bzip)
2022-12-08 09:06 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,12.98 KB, application/x-bzip)
2022-12-08 09:06 UTC, Toralf Förster
Details
net-analyzer:wireshark-4.0.1:20221207-231650.log (net-analyzer:wireshark-4.0.1:20221207-231650.log,36.25 KB, text/plain)
2022-12-08 09:06 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,40.00 KB, application/x-bzip)
2022-12-08 09:07 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2022-12-08 09:06:52 UTC
too long lines were shrinked:

Could not find platform dependent libraries <exec_prefix>
Traceback (most recent call last):
  File "/var/tmp/portage/net-analyzer/wireshark-4.0.1/work/wireshark-4.0.1/tools/make-version.py", line 35, in <module>
    import subprocess
  File "/usr/lib/python3.12/subprocess.py", line 104, in <module>
    from _posixsubprocess import fork_exec as _fork_exec
ModuleNotFoundError: No module named '_posixsubprocess'
[7/2438] /usr/bin/x86_64-pc-linux-gnu-gcc -DG_DISABLE_DEPRECATED -DG_DISABLE_SINGLE_INCLUDES -I/var/tmp/portage/net-analyzer/wireshark-4.0.1/work/wireshark-4.0.1_build -I/var/tmp/portage/net-analyzer/wireshark-4.0.1/work/wireshark-4.0.1 -I/var/tmp/portage/net-analyzer/wireshark-4.0.1/work/wireshark-
[8/2438] /usr/bin/x86_64-pc-linux-gnu-gcc -DG_DISABLE_DEPRECATED -DG_DISABLE_SINGLE_INCLUDES -I/var/tmp/portage/net-analyzer/wireshark-4.0.1/work/wireshark-4.0.1_build -I/var/tmp/portage/net-analyzer/wireshark-4.0.1/work/wireshark-4.0.1 -I/var/tmp/portage/net-analyzer/wireshark-4.0.1/work/wireshark-

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_plasma_systemd-j4-20221205-191215

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-12 *
clang/llvm (if any):
clang version 15.0.6
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/15/bin
Configuration file: /etc/clang/clang.cfg
/usr/lib/llvm/15
15.0.6
Python 3.10.9
Available Rust versions:
  [1]   rust-bin-1.65.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 11.0.17_p8 [openjdk-bin-11]
*)	Eclipse Temurin JDK 17.0.5_p8 [openjdk-bin-17]
3)	Eclipse Temurin JDK 8.352_p08 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-11 
  [3]   openjdk-bin-17  system-vm

php cli (if any):

  HEAD of ::gentoo
commit 581b56a49791e2ffff7950e57e2b32406702a2e5
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Wed Dec 7 22:31:49 2022 +0000

    2022-12-07 22:31:49 UTC

emerge -qpvO net-analyzer/wireshark
[ebuild  N    ] net-analyzer/wireshark-4.0.1  USE="capinfos captype dftest dumpcap editcap filecaps gui mergecap minizip netlink pcap plugins randpkt randpktdump reordercap sharkd ssl text2pcap tshark udpdump zlib zstd -androiddump -bcg729 -brotli -ciscodump -doc -dpauxmon -http2 -ilbc -kerberos -libxml2 (-lto) -lua -lz4 -maxminddb -opus (-qt6) -sbc -sdjournal (-selinux) -smi -snappy -spandsp -sshdump -test -tfshark -wifi" LUA_SINGLE_TARGET="lua5-1"
Comment 1 Toralf Förster gentoo-dev 2022-12-08 09:06:53 UTC
Created attachment 840937 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-12-08 09:06:54 UTC
Created attachment 840939 [details]
emerge-history.txt.bz2
Comment 3 Toralf Förster gentoo-dev 2022-12-08 09:06:55 UTC
Created attachment 840941 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2022-12-08 09:06:56 UTC
Created attachment 840943 [details]
etc.clang.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2022-12-08 09:06:57 UTC
Created attachment 840945 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-12-08 09:06:58 UTC
Created attachment 840947 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2022-12-08 09:06:59 UTC
Created attachment 840949 [details]
net-analyzer:wireshark-4.0.1:20221207-231650.log
Comment 8 Toralf Förster gentoo-dev 2022-12-08 09:07:00 UTC
Created attachment 840951 [details]
temp.tar.bz2
Comment 9 Techwolf 2022-12-08 15:21:23 UTC
Masking and removing dev-lang/python-3.12.0_alpha2 fixed it for me.

The real question here is why was it picking up an 3.12 module when 3.10 is used.

# eselect python list
Available Python interpreters, in order of preference:
  [1]   python3.10
  [2]   python3.11 (fallback)
  [3]   python3.9 (fallback)
  [4]   python3.8 (fallback)
  [5]   python2.7 (fallback)

There was no 3.12 to be selected on my system.

Another question is why an alpha package in ~test? I though all alpha packages are masked and are only to be used for dev testing.
Comment 10 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-12-08 15:27:13 UTC
Yes, it's a bug in the package as it's not respecting EPYTHON. However, Python 3.12 shouldn't get automatically dragged in to user systems because no eclasses support it.
Comment 11 Larry the Git Cow gentoo-dev 2022-12-13 04:08:35 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a974312c47c04399c97ab6e3b0f5d06db3f7b1f0

commit a974312c47c04399c97ab6e3b0f5d06db3f7b1f0
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-12-13 04:08:17 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-12-13 04:08:25 +0000

    net-analyzer/wireshark: respect selected Python choice
    
    Closes: https://bugs.gentoo.org/885703
    Closes: https://bugs.gentoo.org/884819
    Signed-off-by: Sam James <sam@gentoo.org>

 net-analyzer/wireshark/wireshark-3.6.10.ebuild | 3 +++
 net-analyzer/wireshark/wireshark-3.6.9.ebuild  | 3 +++
 net-analyzer/wireshark/wireshark-4.0.1.ebuild  | 3 +++
 net-analyzer/wireshark/wireshark-4.0.2.ebuild  | 3 +++
 net-analyzer/wireshark/wireshark-9999.ebuild   | 3 +++
 5 files changed, 15 insertions(+)
Comment 12 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-12-13 04:08:40 UTC
(In reply to Sam James from comment #10)
> Yes, it's a bug in the package as it's not respecting EPYTHON. However,
> Python 3.12 shouldn't get automatically dragged in to user systems because
> no eclasses support it.

i.e. you have dev-lang/python (unversioned) in your world file, I think.