Bug 1684 - ImportError: No module named '_ctypes'
Summary: ImportError: No module named '_ctypes'
Alias: None
Product: PulseView
Classification: Unclassified
Component: Other (show other bugs)
Version: unreleased development snapshot
Hardware: All All
: Normal normal
Target Milestone: ---
Assignee: Nobody
Depends on:
Reported: 2021-05-17 10:10 CEST by Helge Kruse
Modified: 2022-08-18 18:33 CEST (History)
2 users (show)


Note You need to log in before you can comment on or make changes to this bug.
Description Helge Kruse 2021-05-17 10:10:40 CEST
Download today PulseView-NIGHTLY-x86_64.AppImage and start it on Lubuntu x86_64. There is a plugin that can't be loaded:

helgek@esprimo:~$ Downloads/PulseView-NIGHTLY-x86_64.AppImage 
pulseview: /tmp/.mount_PulseVaysUXY/usr/lib/libselinux.so.1: no version information available (required by /lib/x86_64-linux-gnu/libgio-2.0.so.0)
pulseview: /tmp/.mount_PulseVaysUXY/usr/lib/libselinux.so.1: no version information available (required by /lib/x86_64-linux-gnu/libmount.so.1)
srd: ImportError: Failed to load decoder ir_irmp: import by name failed: No module named '_ctypes'
srd: Traceback (most recent call last):
  File "/tmp/.mount_PulseVaysUXY/usr/share/libsigrokdecode/decoders/ir_irmp/__init__.py", line 25, in <module>
    from .pd import Decoder
  File "/tmp/.mount_PulseVaysUXY/usr/share/libsigrokdecode/decoders/ir_irmp/pd.py", line 21, in <module>
    from . import irmp_library
  File "/tmp/.mount_PulseVaysUXY/usr/share/libsigrokdecode/decoders/ir_irmp/irmp_library.py", line 24, in <module>
    import ctypes
  File "/tmp/.mount_PulseVaysUXY/usr/share/pyshared/ctypes/__init__.py", line 7, in <module>
    from _ctypes import Union, Structure, Array
ImportError: No module named '_ctypes'
Comment 1 karlp 2022-03-23 21:01:34 CET
Still an issue with the nightly appimage version PulseView 0.5.0-git-7e5c839
and   libsigrokdecode 0.6.0-git-24ba9e1/4:0:0 (rt: 0.6.0-git-24ba9e1/4:0:0)
Comment 2 Peter Mortensen 2022-08-18 18:33:29 CEST
I can confirm it for:

    Nightly of 2022-08-18 ("0.5.0-git-153225b") run on Ubuntu 18.04


But not for:

Built from current source on 2022-08-14 on Ubuntu 22.04 (2022-07-30 for PulseView itself), likely the exact same source files for PulseView itself as the 2022-08-18 nightly. (And run on the same system, but not installed - using the noncommittal method described on page 4 in <https://sigrok.org/doc/pulseview/0.4.2/manual.pdf>)

It has a different (probably unrelated) warning:

"Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway."