From: Kienan Stewart via lttng-dev <lttng-dev@lists.lttng.org>
To: lttng-dev@lists.lttng.org
Cc: laksd@nvidia.com
Subject: Re: [lttng-dev] Python lttngust module import error
Date: Mon, 8 Jan 2024 10:10:31 -0500 [thread overview]
Message-ID: <c0837834-d205-4aec-be6a-f46d25ffc35d@efficios.com> (raw)
In-Reply-To: <MW3PR12MB4555207ADC0ECAF8DA3EFF74D998A@MW3PR12MB4555.namprd12.prod.outlook.com>
Hi Lakshmi,
could you elaborate on which version of lttngust you have and how you
installed it?
One possibility that I can imagine is that your ldconfig cache is out of
date for some reason - `ldconfig -p` will simply print the contents of
the cache - perhaps the files are no longer in the location specified in
that cache?
thanks,
kienan
On 12/26/23 11:19, Lakshmi Deverkonda via lttng-dev wrote:
> 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
>
> _______________________________________________
> lttng-dev mailing list
> lttng-dev@lists.lttng.org
> https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
next prev parent reply other threads:[~2024-01-08 15:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-26 16:19 Lakshmi Deverkonda via lttng-dev
2024-01-08 15:10 ` Kienan Stewart via lttng-dev [this message]
2024-01-08 16:52 ` Michael Jeanson via lttng-dev
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c0837834-d205-4aec-be6a-f46d25ffc35d@efficios.com \
--to=lttng-dev@lists.lttng.org \
--cc=kstewart@efficios.com \
--cc=laksd@nvidia.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox