Ask Your Question
0

trying to install tshark 3.4 (asn2wrs error) [closed]

asked 2024-11-06 15:08:11 +0000

WShak3 gravatar image

updated 2024-11-06 15:10:06 +0000

Hi,

I'm trying to install tshark 3.4 from source code in ubuntu 24.04.1 LTS, I managed to install the basic utilities from the debian-setup.sh but I'm encounter an error with a module named asn2wrs. I'm new to this and I'm not a dev so idk how to address this since when I try to install de module the server is unable to locate the package.

I've done a ot of research but nothing seems to solve this problem, any help would be appreciated.

here is some info that can help

python3 --version Python 3.12.3

cmake --version cmake version 3.30.5

here is the error:

CMake Error at cmake/modules/LocatePythonModule.cmake:47 (message): Could NOT find python module asn2wrs Call Stack (most recent call first): cmake/modules/UseAsn2Wrs.cmake:11 (locate_python_module) epan/dissectors/asn1/HI2Operations/CMakeLists.txt:34 (ASN2WRS)

Eventhough there is a asn2wrs.py in /tools directory it seems cmake doesnt detect it, I'm assuming thats whats happening but not sure.

I've tried to install an older version of python with and the same error occurs.

Thank you

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by WShak3
close date 2024-11-07 01:45:40.107812

1 Answer

Sort by ยป oldest newest most voted
0

answered 2024-11-06 22:51:40 +0000

johnthacker gravatar image

updated 2024-11-07 00:56:18 +0000

You don't happen to have a space in the name of your build directory, do you? https://gitlab.com/wireshark/wireshar...

That's not a problem in any supported version, but it does cause that error in 3.4 and earlier.

The other problem is that LocatePyrhonModule doesn't work on Python 3.12 because of 3.12 removing a Python midule used by it. LocatePythonModulewas removed for that reason and others from Wireshark 3.6 and later, but as 3.4 was out of support when Python 3.12 was released you'll have to backport that change: https://gitlab.com/wireshark/wireshar...

edit flag offensive delete link more

Comments

You are right, I made the changes and it worked.

Thank you!!

WShak3 gravatar imageWShak3 ( 2024-11-07 01:45:01 +0000 )edit

Question Tools

1 follower

Stats

Asked: 2024-11-06 15:08:11 +0000

Seen: 17 times

Last updated: 2 hours ago