Hi George!

I finally got a gentoo system built and ran into the same problem as you. I think it's because of an error that happened during the build step for the Python module.

building '_OW' extension
creating build/temp.linux- i686-2.3
i386-pc-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -fPIC -I../../owlib/src/include -I../../../src/include -I/usr/include/python2.3 -c ow_wrap.c -o build/temp.linux-i686-2.3/ow_wrap.o
i386-pc-linux-gnu-gcc -pthread -shared build/temp.linux- i686-2.3/ow_wrap.o -L../../owlib/src/c/.libs -R/opt/owfs/lib -low -o build/lib.linux-i686-2.3/ow/_OW.so
i386-pc-linux-gnu-gcc: unrecognized option `-R/opt/owfs/lib'

I'm not yet certain on the purpose of the -R option or why it's not recognized. The python module is built and when make install is run, everything is installed into the correct directories. But running Python gives:

[EMAIL PROTECTED] ~/src/owfs $ python -c "import ow; print ow.__version__"
Traceback (most recent call last):
  File "<string>", line 1, in ?
  File "/usr/lib/python2.3/site-packages/ow/__init__.py", line 31, in ?
    import _OW
ImportError: libow.so.0: cannot open shared object file: No such file or directory

For now, there's a quick workaround in defining LD_LIBRARY_PATH to include /opt/owfs/lib.

[EMAIL PROTECTED] ~/src/owfs $ LD_LIBRARY_PATH=/opt/owfs/lib python -c "import ow; print ow.__version__"
2.2p0RC-1.7

In the mean time, I'll try to figure out what's going on with building on gentoo. If anyone has any ideas as to the purpose of the -R option, where its coming from and why gcc on gentoo is rejecting it, please send along an email...

- Peter


On 1/15/06, George Bobeck <[EMAIL PROTECTED]> wrote:
Peter~

my /opt/owfs/lib directory contains:

libow.a
libow.la
libow.so
libow.so.0
libow.so.0.0.0

When I did my install (as root) I did the following:

./bootstrap
./configure --enable-python
make
make install

Output from ./configure --enable-python

Deployment location: /opt/owfs

Compile-time options:
    Caching is enabled
    USB is enabled
    Multithreading is enabled
    Parallel port DS1410E is enabled
    Profiling is DISABLED

Module configuration:
    owfs is enabled
    owhttpd is enabled
    ownfsd is DISABLED
    owftpd is DISABLED
    owserver is enabled
    owcapi is DISABLED
    swig is enabled
    owperl is enabled
    owphp is DISABLED
    owpython is enabled
    owtcl is DISABLED

I'll try installing from CVS again later tonight and see if that fixes
the problem.

George Bobeck


On 1/15/06, Peter Kropf <[EMAIL PROTECTED]> wrote:
> Hi George -
>
> I've encountered this problem when the core owfs library wasn't built /
> installed. Can you look at /opt/owfs/lib and let me know what's there?
>
> I've also done a fresh checkout of OWFS, built it and loaded the ow python
> module without any problems. Here' are the steps that I followed:
>
>     cd owfs
>     ./bootstrap
>     ./configure --enable-python --disable-owfs --disable-owperl
> --disable-owhttpd --disable-owserver
>     make
>     sudo make install
>     python -c "import ow; print ow.__version__"
>
> I can send along the output logs from the various steps if it would help.
> (Didn't want to waste the bandwidth if it's not needed...)
>
> I'm also in the process of installing gentoo on a system here to see if
> there's something specific to gentoo that's causing the problem. Might be a
> day or so before I have everything installed and can build OWFS...
>
> - Peter
>
>
>
> On 1/11/06, George Bobeck < [EMAIL PROTECTED]> wrote:
> >
> > I installed the cvs version of owfs and any time I try to either run
> > the python examples (i.e. temperature.py) or import ow I recieve the
> > following error:
> >
> > Traceback (most recent call last):
> >   File "<stdin>", line 1, in ?
> >   File "/usr/lib/python2.4/site-packages/ow/__init__.py",
> line 31, in ?
> >     import _OW
> > ImportError: libow.so.0: cannot open shared object file: No such file
> > or directory
> >
> > I am running Gentoo Linux 2005.1 with the 2.6.14 kernel.  My python
> > version is 2.4.2.
> >
> > George Bobeck
> >
> >
> > -------------------------------------------------------
> > This SF.net email is sponsored by: Splunk Inc. Do you grep through log
> files
> > for problems?  Stop!  Download the new AJAX search engine that makes
> > searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
> > http://ads.osdn.com/?ad_idv37&alloc_id865&opclick
> > _______________________________________________
> > Owfs-developers mailing list
> > Owfs-developers@lists.sourceforge.net
> >
> https://lists.sourceforge.net/lists/listinfo/owfs-developers
> >
>
>

Reply via email to