Hi,

I've done that but I am still getting this:-


Nov 27 19:49:55 localhost weewx[29712]: engine: Initializing weewx version 3.6.2
Nov 27 19:49:55 localhost weewx[29712]: engine: Using Python 2.7.6 (default, 
Jun 22 2015, 17:58:13) #012[GCC 4.8.2]
Nov 27 19:49:56 localhost weewx[29712]: engine: Platform 
Linux-3.13.0-88-generic-x86_64-with-Ubuntu-14.04-trusty
Nov 27 19:49:56 localhost weewx[29712]: engine: pid file is /var/run/weewx.pid
Nov 27 19:49:56 localhost weewx[29716]: engine: Using configuration file 
/etc/weewx/weewx.conf
Nov 27 19:49:56 localhost weewx[29716]: engine: Loading station type OWFS 
(user.owfs)
Nov 27 19:49:56 localhost weewx[29716]: engine: Caught unrecoverable exception 
in engine:
Nov 27 19:49:56 localhost weewx[29716]:     **** libow-3.1.so.4: cannot open 
shared object file: No such file or directory
Nov 27 19:49:56 localhost weewx[29716]:     ****  Traceback (most recent call 
last):
Nov 27 19:49:56 localhost weewx[29716]:     ****    File 
"/usr/share/weewx/weewx/engine.py", line 841, in main
Nov 27 19:49:56 localhost weewx[29716]:     ****      engine = 
engine_class(config_dict)
Nov 27 19:49:56 localhost weewx[29716]:     ****    File 
"/usr/share/weewx/weewx/engine.py", line 70, in __init__
Nov 27 19:49:56 localhost weewx[29716]:     **** self.setupStation(config_dict)
Nov 27 19:49:56 localhost weewx[29716]:     ****    File 
"/usr/share/weewx/weewx/engine.py", line 94, in setupStation
Nov 27 19:49:56 localhost weewx[29716]:     **** __import__(driver)
Nov 27 19:49:56 localhost weewx[29716]:     ****    File 
"/usr/share/weewx/user/owfs.py", line 166, in <module>
Nov 27 19:49:56 localhost weewx[29716]:     ****      import ow
Nov 27 19:49:56 localhost weewx[29716]:     ****    File 
"/usr/lib/python2.7/dist-packages/ow/__init__.py", line 33, in <module>
Nov 27 19:49:56 localhost weewx[29716]:     ****      from ow import _OW
Nov 27 19:49:56 localhost weewx[29716]:     ****  ImportError: libow-3.1.so.4: 
cannot open shared object file: No such file or directory
Nov 27 19:49:56 localhost weewx[29716]:     ****  Exiting.


David


On 27/11/2016 19:44, mwall wrote:


On Sunday, November 27, 2016 at 1:55:16 PM UTC-5, David Johns wrote:

    Hi,

    Ok. There is no such directory as etc/defaults on this version of ubuntu. 
So I have added the LD_LIBRARY_PATH to the weewx file in /etc/init.d/

    It still did not work starting weewx in the usual way (service weewx start) 
and threw up the original errors.

    However, I tried the way you said by running weewxd /etc/weewx/weewx.conf and gives 
the following output. However running as a  service still does not work and still 
complains about "libow-3.1.so.4: cannot open shared object file: No such file or 
directory".


david,

i mistyped.  the directory is /etc/default, not /etc/defaults.  so do this:

echo "LD_LIBRARY_PATH=/opt/owfs/lib" | sudo tee /etc/default/weewx

that should make weewx run properly when you invoke it using the 'service' 
command.

your second problem is actually a bigger issue - owfs is not returning data for 
your sensors.  is the owfs server running? (it looks like you are reading from 
the owfs server, not from a serial/i2c/usb interface)

m
--
You received this message because you are subscribed to a topic in the Google Groups 
"weewx-user" group.
To unsubscribe from this topic, visit 
https://groups.google.com/d/topic/weewx-user/mbldmY3J7o4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to 
[email protected] 
<mailto:[email protected]>.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to