Installed the release candidate using pip. All working fine using simulator 
driver. Then tried to install Gary's weewx-gw1000.py driver and repeatedly 
get this error: -

(weewx-venv) Ian@bookworm:~$ weectl extension install 
https://github.com/gjr80/weewx-gw1000/releases/download/v0.6.0b2/gw1000-0.6.0b2.tar.gz
Using configuration file /home/Ian/weewx-data/weewx.conf
Request to install 
'https://github.com/gjr80/weewx-gw1000/releases/download/v0.6.0b2/gw1000-0.6.0b2.tar.gz'.
Extracting from tar archive /tmp/tmpdoa3q052
Traceback (most recent call last):
  File "/home/Ian/weewx-venv/bin/weectl", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/home/Ian/weewx-venv/lib/python3.11/site-packages/weectl.py", line 
66, in main
    namespace.func(namespace)
  File 
"/home/Ian/weewx-venv/lib/python3.11/site-packages/weectllib/__init__.py", 
line 96, in dispatch
    namespace.action_func(config_dict, namespace)
  File 
"/home/Ian/weewx-venv/lib/python3.11/site-packages/weectllib/extension_cmd.py", 
line 116, in install_extension
    ext.install_extension(namespace.source)
  File 
"/home/Ian/weewx-venv/lib/python3.11/site-packages/weecfg/extension.py", 
line 114, in install_extension
    extension_name = self._install_from_file(test_fd.name, 
info.get_content_subtype())
                    
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File 
"/home/Ian/weewx-venv/lib/python3.11/site-packages/weecfg/extension.py", 
line 154, in _install_from_file
    extension_name = self.install_from_dir(extension_dir)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File 
"/home/Ian/weewx-venv/lib/python3.11/site-packages/weecfg/extension.py", 
line 165, in install_from_dir
    installer_path, installer = 
weecfg.get_extension_installer(extension_dir)
                                
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File 
"/home/Ian/weewx-venv/lib/python3.11/site-packages/weecfg/__init__.py", 
line 738, in get_extension_installer
    installer = loader()
                ^^^^^^^^
  File "/tmp/tmpekv6izgc/gw1000/install.py", line 377, in loader
  File "/tmp/tmpekv6izgc/gw1000/install.py", line 382, in __init__
  File 
"/home/Ian/weewx-venv/lib/python3.11/site-packages/setuptools/_distutils/version.py",
 
line 54, in __init__
    self.parse(vstring)
  File 
"/home/Ian/weewx-venv/lib/python3.11/site-packages/setuptools/_distutils/version.py",
 
line 157, in parse
    raise ValueError("invalid version number '%s'" % vstring)
ValueError: invalid version number '5.0.0rc1'
(weewx-venv) Ian@bookworm:~$ 

I guess the second last line is the key one. Being trying to dig my way out 
of this one without success. I never had a problem with any of the other 
recent builds of version 5.

Any help would be appreciated,

Thanks,
Ian

On Friday, December 22, 2023 at 1:38:26 PM UTC matthew wall wrote:

> On Friday, December 22, 2023 at 8:31:47 AM UTC-5 Paul R Anderson wrote:
>
> On startup __init__.py now logs this:
> Dec 21 06:47:19 hall-9000 weewxd[4484]: INFO weewx: Adding 'user' 
> directory '/home/panders/weewx-data/bin'
>
> First time I saw it I thought wait that directory should exist, it's where 
> my extensions live, hope they're OK. Then I realized it's just adding the 
> dir to PYTHONPATH
>
>  
> addressed in commit <a href="e402cd4">
> https://github.com/weewx/weewx/commit/e402cd4dee6fb9db397b224c4c05188b884c8d69
> </a>
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-development/18cc73e5-f691-4dd4-8043-b96e1c2d141fn%40googlegroups.com.

Reply via email to