Message: Re: Onx (Lab) can't find libOnXPython.so to open a file Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Onx (Lab) can't find libOnXPython.so to open a file 

Keywords: OpenScientist
Forum: Analysis
Re: None How can I use Geant4 within OpenScientist? (Yang Bin)
Re: None Onx (Lab) can't find libOnXPython.so to open a file (Karen Saucke)
Date: 20 Jan, 2005
From: Guy Barrand <Guy Barrand>

   Hello Karen

  Same problem than with the Lab / Zebra driver ; the Python driver in OnX and Lab
are not in the binary distribs. I prefer to not put them because in general people have
their own python installation, and coming with some python binary (libpython.so) may
clash heavily with user context.

  Then to reconstruct the Python drivers :
      OS> cd <OSC installation path>/OnX/<version>/cmt
      OS> <setup>
      OS> <make> Python      (make = gmake on Linux and : nmake /f nmake on Windows)
      OS> <you can try to spawn onx, the default GUI has some Examples to test the Python
                driver>

      OS> cd <OSC installation path>/Lab/<version>/cmt
      OS> <setup>
      OS>  <make> Python
      OS> onx
    The Lab default GUI has some pulldown menu with some Python examples.

  Since Python is dynamicly loaded, you must have a shared lib for your python ; oftenly
there is only an archve lib (a libpython.a. To build a shared lib for your python, there is
some quite simple shell script under OnX<version>tools ; pyshared and makshlib.
makshlib extract the .o and pass a "g++ -shared" on them to build a libpython.so. 

  With the new OpenScientist-14 release (Lab/v11r0) there are pure AIDA python
examples in Lab/<version>/examples/Python that you may try. You may try them
from the Python prompt under the Lab GUI, or directly from the Python shell :
   OS> <setup Lab>
   OS> python
   >>> import aidaex0
  (exit from the GUI with File/Exit)
   >>> import aidaex1

  In fact I have not tested yet the AnaEx01, I shall do that as soon as possible....

  Else, if you fall on too much problems in activating all that in your own context,
feel free to contact me directly ; direct emails permits to move faster on user
specific contexts.

   Regards


Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

 Add Message Add Message
to: "Re: Onx (Lab) can't find libOnXPython.so to open a file"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]