Mirror of the lttng-dev mailing list
 help / color / mirror / Atom feed
* [lttng-dev] Python lttngust module import error
@ 2023-12-26 16:19 Lakshmi Deverkonda via lttng-dev
  2024-01-08 15:10 ` Kienan Stewart via lttng-dev
  2024-01-08 16:52 ` Michael Jeanson via lttng-dev
  0 siblings, 2 replies; 3+ messages in thread
From: Lakshmi Deverkonda via lttng-dev @ 2023-12-26 16:19 UTC (permalink / raw)
  To: lttng-dev


[-- Attachment #1.1: Type: text/plain, Size: 2774 bytes --]

Hi,

I'm observing an issue recently wrt import of python3 lttng module.
Following is the error and need your help to find out what is wrong.

>>> import lttngust
Exception in thread system:
Traceback (most recent call last):
  File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.7/threading.py", line 865, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/local/lib/python3.7/dist-packages/lttngust/agent.py", line 291, in _client_thread_target
    client = _TcpClient(name, _SESSIOND_HOST, port, reg_queue)
  File "/usr/local/lib/python3.7/dist-packages/lttngust/agent.py", line 76, in __init__
    raise e
  File "/usr/local/lib/python3.7/dist-packages/lttngust/agent.py", line 73, in __init__
    self._log_handler = lttngust.loghandler._Handler()
  File "/usr/local/lib/python3.7/dist-packages/lttngust/loghandler.py", line 32, in __init__
    self.agent_lib = ctypes.cdll.LoadLibrary(_Handler._LIB_NAME)
  File "/usr/lib/python3.7/ctypes/__init__.py", line 434, in LoadLibrary
    return self._dlltype(name)
  File "/usr/lib/python3.7/ctypes/__init__.py", line 356, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: liblttng-ust-python-agent.so: cannot open shared object file: No such file or directory


>>>

I have installed liblttng-ust-python-agent.so

/# ldconfig -p | grep liblttng
      liblttng-ust.so.0 (libc6,x86-64) => /lib/x86_64-linux-gnu/liblttng-ust.so.0
      liblttng-ust-tracepoint.so.0 (libc6,x86-64) => /lib/x86_64-linux-gnu/liblttng-ust-tracepoint.so.0
      liblttng-ust-python-agent.so.0 (libc6,x86-64) => /lib/x86_64-linux-gnu/liblttng-ust-python-agent.so.0
      liblttng-ust-pthread-wrapper.so.0 (libc6,x86-64) => /lib/x86_64-linux-gnu/liblttng-ust-pthread-wrapper.so.0
      liblttng-ust-libc-wrapper.so.0 (libc6,x86-64) => /lib/x86_64-linux-gnu/liblttng-ust-libc-wrapper.so.0
      liblttng-ust-fork.so.0 (libc6,x86-64) => /lib/x86_64-linux-gnu/liblttng-ust-fork.so.0
      liblttng-ust-fd.so.0 (libc6,x86-64) => /lib/x86_64-linux-gnu/liblttng-ust-fd.so.0
      liblttng-ust-dl.so.0 (libc6,x86-64) => /lib/x86_64-linux-gnu/liblttng-ust-dl.so.0
      liblttng-ust-cyg-profile.so.0 (libc6,x86-64) => /lib/x86_64-linux-gnu/liblttng-ust-cyg-profile.so.0
      liblttng-ust-cyg-profile-fast.so.0 (libc6,x86-64) => /lib/x86_64-linux-gnu/liblttng-ust-cyg-profile-fast.so.0
      liblttng-ust-ctl.so.4 (libc6,x86-64) => /lib/x86_64-linux-gnu/liblttng-ust-ctl.so.4
      liblttng-ctl.so.0 (libc6,x86-64) => /lib/x86_64-linux-gnu/liblttng-ctl.so.0


Regards,
Lakshmi

[-- Attachment #1.2: Type: text/html, Size: 10648 bytes --]

[-- Attachment #2: Type: text/plain, Size: 156 bytes --]

_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-01-08 16:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-26 16:19 [lttng-dev] Python lttngust module import error Lakshmi Deverkonda via lttng-dev
2024-01-08 15:10 ` Kienan Stewart via lttng-dev
2024-01-08 16:52 ` Michael Jeanson via lttng-dev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox