All of lore.kernel.org
 help / color / mirror / Atom feed
From: Josh Triplett <josh@freedesktop.org>
To: Travis Vachon <Travis.F.Vachon@williams.edu>
Cc: xen-devel@lists.xensource.com
Subject: Re: libxenstat python bindings
Date: Mon, 17 Oct 2005 14:37:04 -0700	[thread overview]
Message-ID: <43541980.3060309@freedesktop.org> (raw)
In-Reply-To: <1129558244.18539.8.camel@localhost.localdomain>


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

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 #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 251 bytes --]

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

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

      parent reply	other threads:[~2005-10-17 21:37 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-17 14:10 libxenstat python bindings Travis Vachon
2005-10-17 16:40 ` Anthony Liguori
2005-10-17 21:37 ` Josh Triplett [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=43541980.3060309@freedesktop.org \
    --to=josh@freedesktop.org \
    --cc=Travis.F.Vachon@williams.edu \
    --cc=xen-devel@lists.xensource.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.