Help with installing weewx-gw1000 driver

258 views
Skip to first unread message

Phil Bilboe

unread,
Jan 28, 2024, 12:36:48 PM1/28/24
to weewx-user
I'm new to linux and trying to install weewx to read my gw1100 gateway.

I'm running Ubuntu 18.04.2 LTS and have completed the debian install and the simulator works and generates a webpage.

When I try to install the gw1000 driver I get the following:

phil@phil-Inspiron-1545:~$ wee_extension --install=/var/tmp/gw1000-0.6.0b3.tar.gz
Request to install '/var/tmp/gw1000-0.6.0b3.tar.gz'
Extracting from tar archive /var/tmp/gw1000-0.6.0b3.tar.gz
Traceback (most recent call last):
  File "/usr/share/weewx/wee_extension", line 92, in <module>
    main()
  File "/usr/share/weewx/wee_extension", line 84, in main
    ext.install_extension(options.install)
  File "/usr/share/weewx/weecfg/extension.py", line 130, in install_extension
    self.install_from_dir(extension_dir)
  File "/usr/share/weewx/weecfg/extension.py", line 150, in install_from_dir
    installer_path, installer = weecfg.get_extension_installer(extension_dir)
  File "/usr/share/weewx/weecfg/__init__.py", line 1904, in get_extension_installer
    installer = loader()
  File "/var/tmp/gw1000/install.py", line 396, in loader
  File "/var/tmp/gw1000/install.py", line 401, in __init__
  File "/var/tmp/gw1000/install.py", line 386, in version_compare
AttributeError: 'module' object has no attribute 'zip_longest'

When I try to go to the next step and test the driver I get the following:

PYTHONPATH=/home/weewx/bin python -m user.gw1000 --test-driver
/usr/bin/python: No module named user.gw1000

or I get:
PYTHONPATH=/usr/share/weewx python -m user.gw1000 --test-driver
/usr/bin/python: No module named user.gw1000

I'm kind of lost as to what to do next. Any suggestions would be appreciated.

vince

unread,
Jan 28, 2024, 1:48:03 PM1/28/24
to weewx-user
I would extract the .tar.gz file and tell wee_extension to install the directory of contents therein...

cd /var/tmp
tar zxvf gw1000-0.6.0b3.tar.gz
wee_extension --install gw1000

vince

unread,
Jan 28, 2024, 1:56:45 PM1/28/24
to weewx-user
I might add that you mentioned you're on Ubuntu 18.04.2 LTS which is many months past end of standard support. You really should be on Ubuntu 22.04.3 LTS which has standard support until June 2027.  If this is a standalone system or a throwaway test system, I'd recommend flattening it to a current os before you get too invested in other things running on it which would make a flatten+reload more involved.

Phil Bilboe

unread,
Jan 28, 2024, 2:36:54 PM1/28/24
to weewx-user
Its an old Pentium dual core laptop, 2 x 2Ghz that I have lying around. I thought I would try getting Weewx setup on it for a learning experience and if successful use a raspberry pi for long term use. I guess I could try to find an up to date OS lite that will run on it or just buy a raspberry pi. Thanks for your input it is very much appreciated.

Phil Bilboe

unread,
Feb 3, 2024, 12:20:42 PM2/3/24
to weewx-user


OK, I've managed to install the driver. I'm running version 5 which, I'm guessing, is why wee_extension didn't work. I ran weectl extension instead and it worked.

phil@phil-Inspiron-1545:/var/tmp$ sudo weectl extension install gw1000
[sudo] password for phil:  
Using configuration file /etc/weewx/weewx.conf
Install extension 'gw1000' (y/n)? y
Saving installer file to /etc/weewx/bin/user/installer/GW1000.
Saved configuration dictionary. Backup copy at /etc/weewx/weewx.conf.20240203171318.
Finished installing extension GW1000 from gw1000.

Thanks for your help.
Reply all
Reply to author
Forward
0 new messages