It looks like the driver was not properly ported to WeeWX V4. There is
still some old V3 cod in there. Try filing an issue request with the author.

-tk

On Tue, Aug 11, 2020 at 6:59 PM Chris Howard <ch.w...@gmail.com> wrote:

>
> I am attempting to install on a BeagleBone Black Wireless.
> My device is a Vaisala wxt520.  I have installed a driver from github.
>
> BeagleBone ubuntu is based on Debian 9 so I am running python2.
>
> I'm not afraid to edit files, but not sure if this driver should run on my
> system
> and maybe I just missing something dumb in the install.
>
> I did try a small sample python program to see if I could successfully
> import syslog
> and send a message to syslog.  That seemed to work fine.
>
> Here is my error message:
> Aug 12 01:34:33 beaglebone weewx[2348]: Stopping weewx weather system:
> weewx not running....
> Aug 12 01:34:40 beaglebone weewx[2400] INFO __main__: Initializing weewx
> version 4.1.1
> Aug 12 01:34:40 beaglebone weewx[2400] INFO __main__: Using Python 2.7.13
> (default, Sep 26 2018, 18:42:22) #012[GCC 6.3.0 20170516]
> Aug 12 01:34:40 beaglebone weewx[2400] INFO __main__: Platform
> Linux-4.14.71-ti-r80-armv7l-with-debian-9.5
> Aug 12 01:34:40 beaglebone weewx[2400] INFO __main__: Locale is
> 'en_US.UTF-8'
> Aug 12 01:34:40 beaglebone weewx[2400] INFO __main__: PID file is
> /var/run/weewx.pid
> Aug 12 01:34:40 beaglebone weewx[2389]: Starting weewx weather system:
> weewx.
> Aug 12 01:34:40 beaglebone weewx[2404] INFO __main__: Using configuration
> file /etc/weewx/weewx.conf
> Aug 12 01:34:40 beaglebone weewx[2404] INFO __main__: Debug is 0
> Aug 12 01:34:41 beaglebone weewx[2404] INFO weewx.engine: Loading station
> type WXT5x0 (user.wxt5x0)
> Aug 12 01:34:41 beaglebone weewx[2404] ERROR weewx.engine: Import of
> driver failed: global name 'syslog' is not defined (<type
> 'exceptions.NameError'>)
> Aug 12 01:34:41 beaglebone weewx[2404] CRITICAL weewx.engine:     ****
> Traceback (most recent call last):
> Aug 12 01:34:41 beaglebone weewx[2404] CRITICAL weewx.engine:     ****
> File "/usr/share/weewx/weewx/engine.py", line 103, in setupStation
> Aug 12 01:34:41 beaglebone weewx[2404] CRITICAL weewx.engine:     ****
>   self.console = loader_function(config_dict, self)
> Aug 12 01:34:41 beaglebone weewx[2404] CRITICAL weewx.engine:     ****
> File "/usr/share/weewx/user/wxt5x0.py", line 109, in loader
> Aug 12 01:34:41 beaglebone weewx[2404] CRITICAL weewx.engine:     ****
>   return WXT5x0Driver(**config_dict[DRIVER_NAME])
> Aug 12 01:34:41 beaglebone weewx[2404] CRITICAL weewx.engine:     ****
> File "/usr/share/weewx/user/wxt5x0.py", line 470, in __init__
> Aug 12 01:34:41 beaglebone weewx[2404] CRITICAL weewx.engine:     ****
>   loginf('driver version is %s' % DRIVER_VERSION)
> Aug 12 01:34:41 beaglebone weewx[2404] CRITICAL weewx.engine:     ****
> File "/usr/share/weewx/user/wxt5x0.py", line 122, in loginf
> Aug 12 01:34:41 beaglebone weewx[2404] CRITICAL weewx.engine:     ****
>   logmsg(syslog.LOG_INFO, msg)
> Aug 12 01:34:41 beaglebone weewx[2404] CRITICAL weewx.engine:     ****
> NameError: global name 'syslog' is not defined
> Aug 12 01:34:41 beaglebone weewx[2404] CRITICAL __main__: Unable to load
> driver: global name 'syslog' is not defined
> Aug 12 01:34:41 beaglebone weewx[2404] CRITICAL __main__:     ****
> Exiting...
>
>
> --
> 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 weewx-user+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/48c3ed56-d160-4952-a0ac-265d98a7be20o%40googlegroups.com
> <https://groups.google.com/d/msgid/weewx-user/48c3ed56-d160-4952-a0ac-265d98a7be20o%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/CAPq0zEDOf%2BZAj_gFRx0YFVXAdzLd1cUKN16x4H0Ha1a7mx02Sg%40mail.gmail.com.

Reply via email to