Re: Import of driver failed

48 views
Skip to first unread message
Message has been deleted

Andrew Milner

unread,
Sep 20, 2019, 7:04:33 AM9/20/19
to weewx-user
perhaps it would help us if you attached a copy of your weewx.conf



On Friday, 20 September 2019 13:34:25 UTC+3, Laurent Lasne wrote:
Hi Everyone,

Weather station : Raspberry pi3, running Raspbian buster
Driver for weewx: jardiamj/BYOWS_RPi
                           
Tutorial             : Build your own weather station_Raspberry pi project   (Uploading data to weather underground)


     After getting my station up and running perfectly using the python3 code from the tutorial: SQLite, all sensors reading and upload to weather underground, I decided to give a go to weewx, but I have an issue. When I start weewx manually 
sudo weewxd /etc/weewx/weewx.conf

I got that in my /var/log/Syslog when debug = 1 in  : weewx.conf
Sep 20 11:17:52 raspberrypi weewx[4040]: engine: Initializing weewx version 3.9.2
Sep 20 11:17:52 raspberrypi weewx[4040]: engine: Using Python 2.7.16 (default, Apr  6 2019, 01:42:57) #012[GCC 8.2.0]
Sep 20 11:17:52 raspberrypi weewx[4040]: engine: Platform Linux-4.19.66-v7+-armv7l-with-debian-10.1
Sep 20 11:17:52 raspberrypi weewx[4040]: engine: Locale is 'en_GB.UTF-8'
Sep 20 11:17:52 raspberrypi weewx[4040]: engine: Using configuration file /etc/weewx/weewx.conf
Sep 20 11:17:52 raspberrypi weewx[4040]: engine: Debug is 1
Sep 20 11:17:52 raspberrypi weewx[4040]: engine: Initializing engine
Sep 20 11:17:52 raspberrypi weewx[4040]: engine: Loading station type BYOWS (user.byows_rpi)
Sep 20 11:17:52 raspberrypi weewx[4040]: engine: Import of driver failed: int() can't convert non-string with explicit base (<type 'exceptions.TypeError'>)
Sep 20 11:17:52 raspberrypi weewx[4040]: engine: Unable to load driver: int() can't convert non-string with explicit base
Sep 20 11:17:52 raspberrypi weewx[4040]:     ****  Exiting...

I know that wiring is ok because working with python3
I did reinstall libraries for python 2.7 
I made some research but come empty-handed
I am not a programmer, just in learning phase python3 (first language for me).
Not bad knowledge of Linux, Debian ubuntu Knoppix, etc...
I don't know what to do next, I hope I will get help.
Thank you for your time 

Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted

Andrew Milner

unread,
Sep 20, 2019, 9:15:14 AM9/20/19
to weewx-user
now you have deleted the original post with the log etc!!!

can you confirm that byows_rpi.py is in the user directory - perhaps a listing of the user directory would be beneficial to check permissions etc of the file



On Friday, 20 September 2019 15:28:22 UTC+3, Laurent Lasne wrote:
Reply all
Reply to author
Forward
Message has been deleted
0 new messages