Project

General

Profile

Actions

Bug #5666

closed

ModuleNotFoundError: No module named 'construct.lib.containers'

Added by r.groesbeek over 1 year ago. Updated over 1 year ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Start date:
08/29/2022
Due date:
% Done:

100%

Spec Reference:

Description

Hi,

Is there some handy thing I could debug this?

[root@changeme pysim ]# apt-get install -y python3-construct && ./pySim-read.py -p0
Reading package lists... Done
Building dependency tree
Reading state information... Done
python3-construct is already the newest version (2.8.16-0.4).
The following package was automatically installed and is no longer required:
libfwupdplugin1
Use 'apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 91 not upgraded.
Traceback (most recent call last):
File "./pySim-read.py", line 31, in <module>
from pySim.ts_51_011 import EF, DF, EF_SST_map, EF_AD
File "/root/pysim/pySim/ts_51_011.py", line 32, in <module>
from pySim.profile import match_sim
File "/root/pysim/pySim/profile.py", line 24, in <module>
from pySim.commands import SimCardCommands
File "/root/pysim/pySim/commands.py", line 25, in <module>
from pySim.construct import LV
File "/root/pysim/pySim/construct.py", line 1, in <module>
from construct.lib.containers import Container, ListContainer
ModuleNotFoundError: No module named 'construct.lib.containers'
[root@changeme pysim ]#

Construct itself (from source) seems to work mostly as well

[root@changeme construct ]# make test
python3.9 -m pytest --benchmark-disable --showlocals =========================================================== test session starts ===========================================================
platform linux -- Python 3.9.5, pytest-7.1.2, pluggy-1.0.0
benchmark: 3.4.1 (defaults: timer=time.perf_counter disable_gc=False min_rounds=5 min_time=0.000005 max_time=1.0 calibration_precision=10 warmup=False warmup_iterations=100000)
rootdir: /root/construct
plugins: benchmark-3.4.1, cov-3.0.0
collected 469 items

tests/test_benchmarks.py .......................................................................................................... [ 22%]
................................................................................................ [ 43%]
tests/test_compiler.py .. [ 43%]
tests/test_core.py ..............................................x........x...........................................x............ [ 67%]
....................................x..........x...xx.x.... [ 79%]
tests/test_expr.py .....xx.. [ 81%]
tests/test_multiprocessing.py . [ 82%]
tests/deprecated_gallery/test_formats.py .......... [ 84%]
tests/deprecated_gallery/test_protocols.py ...........x. [ 86%]
tests/gallery/test_gallery.py .. [ 87%]
tests/lib/test_binary.py .......... [ 89%]
tests/lib/test_bitstream.py .. [ 89%]
tests/lib/test_containers_dict.py .................................. [ 97%]
tests/lib/test_containers_list.py . [ 97%]
tests/lib/test_hex.py .. [ 97%]
tests/lib/test_py3compat.py .... [ 98%]
tests/lib/test_search.py ...... [100%]

===================================================== 458 passed, 11 xfailed in 4.17s =====================================================
[root@changeme construct ]#


Related issues

Blocked by pySim - Bug #5668: Jenkins build verification is broken: pylint crashesResolvedfixeria08/30/2022

Actions
Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)