Mirror of the lttng-dev mailing list
 help / color / mirror / Atom feed
From: Michael Jeanson via lttng-dev <lttng-dev@lists.lttng.org>
To: "Smet, Jonathan A. [US-US]" <Jonathan.A.Smet@leidos.com>,
	"lttng-dev@lists.lttng.org" <lttng-dev@lists.lttng.org>
Subject: Re: [lttng-dev] BabelTrace 1.5.8 Error
Date: Tue, 10 Oct 2023 18:03:04 -0400	[thread overview]
Message-ID: <e9d7efb4-7bf0-4e37-ad13-3571f4f4e1de@efficios.com> (raw)
In-Reply-To: <BN2P110MB1237C60889C689B25E536D96DACDA@BN2P110MB1237.NAMP110.PROD.OUTLOOK.COM>

On 2023-10-10 17:33, Smet, Jonathan A. [US-US] via lttng-dev wrote:
> Hello,
> 
> I found this email in the README of 
> https://github.com/efficios/babeltrace/tree/stable-1.5 
> <https://github.com/efficios/babeltrace/tree/stable-1.5>
> 
> I have a question regarding the usage of BabelTrace using version 1.5.8. I am 
> running on Ubuntu 20.04 and have installed or dependencies to use BabelTrace 
> with Python bindings:
> 
>   * sudo apt-get install lttng-tools
>   * sudo apt-get install lttng-modules-dkms
>   * sudo apt-get install liblttng-ust-dev
>   * sudo apt-get install python3-babeltrace
> 
> When trying to import BabelTrace in a Python script with “import babeltrace”, 
> I receive the following error (more error output in the attached text file): 
> “ModuleNotFoundError: No module named 'babeltrace._babeltrace'” followed by 
> “ModuleNotFoundError: No module named '_babeltrace'”.
> 
> My folder structure at /usr/lib/python3/dist-packages/babeltrace are as follows:
> 
>   * _babeltrace.cpython-38-x86_64-linux-gnu.so
>   * Babeltrace.py
>   * __init__.py
>   * /__pycache__
> 
> I’ve been trying to debug this issue for a couple of days, but am running into 
> a wall. I’ve decided to email your team in case you have seen this issue 
> before, or are able to spot a simple issue with my setup.
> 
> Thank you,
> 
> Jon Smet

Hi Jon,

The Ubuntu python3-babeltrace package contains a binary module 
(_babeltrace.cpython-38-x86_64-linux-gnu.so) built for the system's python 3.8 
interpreter, in the log file you attached you seem to be using python 3.7 
(/usr/lib/python3.7/importlib/__init__.py).

You either need to use the system's python3 interpreter to use the packaged 
python3-babeltrace or build your own version of python3-babeltrace against the 
python 3.7 interpreter you are using.

Regards,

Michael

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

      reply	other threads:[~2023-10-10 22:03 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-10 21:33 Smet, Jonathan A. [US-US] via lttng-dev
2023-10-10 22:03 ` Michael Jeanson via lttng-dev [this message]

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=e9d7efb4-7bf0-4e37-ad13-3571f4f4e1de@efficios.com \
    --to=lttng-dev@lists.lttng.org \
    --cc=Jonathan.A.Smet@leidos.com \
    --cc=mjeanson@efficios.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