pySim ModuleNotFoundError: No module named 'construct'

Vadim Yanitskiy vyanitskiy at sysmocom.de
Fri Apr 30 13:51:56 UTC 2021


Hi Niels,

 > Requirement already satisfied: construct in 
/usr/local/lib/python3.8/dist-packages (2.10.67)

you need to make sure that '/usr/local/lib/python3.8/dist-packages' is 
in the Python's search path (similar to LD_LIBRARY_PATH):

$ python3
 >>> import sys
 >>> sys.path

Here is the output from my system:

['', '/usr/lib/python39.zip',
      '/usr/lib/python3.9',
      '/usr/lib/python3.9/lib-dynload',
      '/home/fixeria/.local/lib/python3.9/site-packages',
      '/usr/lib/python3.9/site-packages']

If '/usr/local/lib/python3.8/dist-packages' is not there, then indeed 
importing will not work.  You will need to re-configure pip to use a 
proper directory, or add this path to PYTHONPATH.  Good luck!

P.S. So now we have Niels and Neels in the thread ;)

Best regards,
Vadim.

-- 
- Vadim Yanitskiy <vyanitskiy at sysmocom.de>    http://www.sysmocom.de/
=======================================================================
* sysmocom - systems for mobile communications GmbH
* Alt-Moabit 93
* 10559 Berlin, Germany
* Sitz / Registered office: Berlin, HRB 134158 B
* Geschaeftsfuehrer / Managing Director: Harald Welte


More information about the OpenBSC mailing list