WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] libxenstat python bindings

To: Travis Vachon <Travis.F.Vachon@xxxxxxxxxxxx>
Subject: Re: [Xen-devel] libxenstat python bindings
From: Josh Triplett <josh@xxxxxxxxxxxxxxx>
Date: Mon, 17 Oct 2005 14:37:04 -0700
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 17 Oct 2005 21:34:26 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1129558244.18539.8.camel@xxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <1129558244.18539.8.camel@xxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20051007 Debian/1.7.12-1
Travis Vachon wrote:
> I seem to be having a little trouble with libxenstat, and was wondering
> if the xenstat guys might be able to help.
> 
> I've pulled the xen-unstable.hg tree and done a somewhat clean install
> (ie, post-make uninstall, as well as deleting the relevant libxenstat
> libraries).
> 
> Next, I entered the tools/xenstat/libxenstat directory and modified the
> Makefile so that the shared libraries would be installed. I've included
> my Makefile below.
> 
> I ran:
> 
> make
> make install
> make python-bindings
> make install-python-bindings
> 
> 
> Next, I started a python session and entered:
> 
> import xenstat 
> 
> and got the following output.
> 
> 
>>Python 2.3.5 (#2, Sep  4 2005, 22:01:42)
>>[GCC 3.3.5 (Debian 1:3.3.5-13)] on linux2
>>Type "help", "copyright", "credits" or "license" for more information.
>>
>>>>>import xenstat
>>
>>Traceback (most recent call last):
>>  File "<stdin>", line 1, in ?
>>  File "/usr/local/lib/python2.3/site-packages/xenstat.py", line 5, in ?
>>    import _xenstat
>>ImportError: /usr/local/lib/python2.3/site-packages/_xenstat.so: undefined 
>>symbol: xenstat_init
> 
> Any thoughts?

You have modified the makefile to install into the prefix /usr/local,
but /usr/local/lib is often not included in the default library search
path; this may be the cause of your problem.  If so, you can either add
/usr/local/lib to the default search path by editting /etc/ld.so.conf,
or you can install into the prefix /usr which will put the libraries in
/usr/lib.

Also, as Anthony pointed out, keep in mind that xenstat will not be an
officially supported public interface in Xen 3.0.  It may become such an
interface in the unstable tree after 3.0 is released.  However, don't
let that stop you from making use of it, and feel free to ask if you
need any additional assistance.

- Josh Triplett

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>