[lttng-dev] babeltrace-python bindings

2014-11-04 Thread Bin YE
Hi there i have installed Lttng and babeltrace my system:Ubuntu 14.04LTS I have made following steps sudo apt-add-repository ppa:lttng/ppa sudo apt-get update sudo apt-get install lttng-tools sudo apt-get install lttng-modules-dkms sudo apt-get install liblttng-ust-dev export PYTHON="python3" ex

Re: [lttng-dev] babeltrace-python bindings

2014-11-04 Thread Francis Deslauriers
Hi, Do you get any errors at configure or compile time? Cheers, Francis On Tue, Nov 4, 2014 at 5:37 PM, Bin YE wrote: > Hi there > > i have installed Lttng and babeltrace > my system:Ubuntu 14.04LTS > I have made following steps > > sudo apt-add-repository ppa:lttng/ppa > sudo apt-get update >

Re: [lttng-dev] babeltrace-python bindings

2014-11-04 Thread Philippe Proulx
On Tue, Nov 4, 2014 at 5:37 PM, Bin YE wrote: > Hi there > > i have installed Lttng and babeltrace > my system:Ubuntu 14.04LTS > I have made following steps > > sudo apt-add-repository ppa:lttng/ppa > sudo apt-get update > sudo apt-get install lttng-tools > sudo apt-get install lttng-modules-dkms

Re: [lttng-dev] babeltrace-python bindings

2014-11-05 Thread Julien Desfossez
Hi, The problem resides with the default search path of Python on Debian/Ubuntu. When installing manually a Python library, it is installed in /usr/local/lib/python3.x/site-packages, but Python on Debian/Ubuntu does not look into this path but does look into dist-packages... So you can either sym

Re: [lttng-dev] babeltrace-python bindings

2014-11-05 Thread Jérémie Galarneau
This commit in the master branch should perform the detection and install the module under dist-packages when using Debian. Could anyone confirm it works on Ubuntu? I can backport it to stable-1.2 if it helps. commit 1b39e2de5485147dd3dc7089c4edfd685d5cad96 Author: Jérémie Galarneau Date: Thu O

Re: [lttng-dev] babeltrace-python bindings

2014-11-05 Thread Julien Desfossez
Tested on a fresh Ubuntu 14.04 install and it works ! Thanks :-) !! On 14-11-05 04:02 PM, Jérémie Galarneau wrote: > This commit in the master branch should perform the detection and > install the module under dist-packages when using Debian. Could anyone > confirm it works on Ubuntu? I can backp

Re: [lttng-dev] babeltrace-python bindings

2014-11-06 Thread Alexandre Montplaisir
Hi, Just a note, the python bindings are also packaged in the Debian/Ubuntu packages, under the "python3-babeltrace" package. On Ubuntu it's only available on 12.10 and up though, but it should be available if one uses the PPA packages. Cheers, Alexandre On 11/06/2014 03:00 AM, Julien Des

Re: [lttng-dev] babeltrace-python bindings

2014-11-06 Thread Alexandre Montplaisir
> Ubuntu 12.10 I meant 14.10 (Utopic), my bad. On 11/06/2014 06:40 PM, Alexandre Montplaisir wrote: Hi, Just a note, the python bindings are also packaged in the Debian/Ubuntu packages, under the "python3-babeltrace" package. On Ubuntu it's only available on 12.10 and up though, but it sho

Re: [lttng-dev] babeltrace-python bindings

2014-11-06 Thread Jérémie Galarneau
On Wed, Nov 5, 2014 at 9:00 PM, Julien Desfossez wrote: > Tested on a fresh Ubuntu 14.04 install and it works ! > > Thanks :-) !! Thanks for testing! I have backported the fix to the stable-1.2 branch. commit 33287b163aa7d5b066be157d8c67c4f7bca2d618 Author: Jérémie Galarneau Date: Thu Oct 16

[lttng-dev] Babeltrace python bindings documentation is no up-to-date

2016-10-31 Thread Jean Spector
When trying to use the example from http://diamon.org/babeltrace/docs/python/examples/ (pointed to via http://lttng.org/viewers/), the code is not up-to-date. For instance, the first line in the example (import babeltrace.reader) fails as there's no 'reader' to import. I've managed to get over it

Re: [lttng-dev] Babeltrace python bindings documentation is no up-to-date

2016-10-31 Thread Philippe Proulx
On Sat, Oct 29, 2016 at 9:55 AM, Jean Spector wrote: > When trying to use the example from > http://diamon.org/babeltrace/docs/python/examples/ (pointed to via > http://lttng.org/viewers/), the code is not up-to-date. > > For instance, the first line in the example (import babeltrace.reader) fails

Re: [lttng-dev] Babeltrace python bindings documentation is no up-to-date

2016-10-31 Thread Jean Spector
Thank you Philippe. Adding a different documentation page for older versions (it's the latest package on RHEL 7.2 - so I'd expect more newbies to encounter this issue) could help anyone trying the Python bindings for the first time. I'm sure you realize that trying the official example and failing

Re: [lttng-dev] Babeltrace python bindings documentation is no up-to-date

2016-10-31 Thread Philippe Proulx
On Mon, Oct 31, 2016 at 4:02 PM, Jean Spector wrote: > Thank you Philippe. > > Adding a different documentation page for older versions (it's the latest > package on RHEL 7.2 - so I'd expect more newbies to encounter this issue) > could help anyone trying the Python bindings for the first time. >

Re: [lttng-dev] Babeltrace python bindings documentation is no up-to-date

2016-10-31 Thread Jean Spector
On Mon, Oct 31, 2016 at 10:38 PM, Philippe Proulx wrote: > On Mon, Oct 31, 2016 at 4:02 PM, Jean Spector > wrote: > > Thank you Philippe. > > > > Adding a different documentation page for older versions (it's the latest > > package on RHEL 7.2 - so I'd expect more newbies to encounter this issue

Re: [lttng-dev] Babeltrace python bindings documentation is no up-to-date

2016-10-31 Thread Michael Jeanson
On 2016-10-31 16:44, Jean Spector wrote: > It's a matter of rpm dependencies. > Once installed, it might work fine with python 3.4 - but yum just > refuses to install it on RHEL 7.2 RHEL 7 doesn't ship with python 3 out of the box, you'll need to get it from a software collection, have a look at :

Re: [lttng-dev] Babeltrace python bindings documentation is no up-to-date

2016-10-31 Thread Michael Jeanson
On 2016-10-31 17:20, Jean Spector wrote: > Hi Michael, > > That's where I got python33 from eventually :-) > What I called out-of-the-box is actually EPEL. > I could just run "yum install python34" on my RHEL 7.2 (while the same > wouldn't work for python33), so for me it was the natural version t

Re: [lttng-dev] Babeltrace python bindings documentation is no up-to-date

2016-10-31 Thread Jean Spector
Hi Michael, That's where I got python33 from eventually :-) What I called out-of-the-box is actually EPEL. I could just run "yum install python34" on my RHEL 7.2 (while the same wouldn't work for python33), so for me it was the natural version to use. Software Collections, though, required additio

Re: [lttng-dev] Babeltrace python bindings documentation is no up-to-date

2016-10-31 Thread Philippe Proulx
On Mon, Oct 31, 2016 at 4:38 PM, Philippe Proulx wrote: > On Mon, Oct 31, 2016 at 4:02 PM, Jean Spector wrote: >> Thank you Philippe. >> >> Adding a different documentation page for older versions (it's the latest >> package on RHEL 7.2 - so I'd expect more newbies to encounter this issue) >> cou

Re: [lttng-dev] Babeltrace python bindings documentation is no up-to-date

2016-11-01 Thread Jean Spector
I couldn't reproduce the issues I had when building from source on my VM and don't have a vanilla RHEL 7.2 now to reproduce :-( Regarding documentation, current changes look all right. Adding a note regarding software collections will certainly help. There's another minor issue I see in the docs.