Hi Chris,
I guess you followed the documentation for installing on a Pi?
http://www.weewx.com/docs/debian.htm
In that case first uninstall WeeWX {should keep configuration}:
sudo apt remove weewx
Also keep in mind that the WLL driver uses the Python *requests* library.
Install it using:
sudo apt install python3-requests
Then re-install according to the page linked above. In the first section
only run the command that's labeled "*For Debian10 and later, use python3*".
Skip the following line for Python 2.
Follow all other sections as usual.
[email protected] schrieb am Samstag, 20. Februar 2021 um 11:52:18 UTC+1:
> hello michael,
>
> you are right - install worked now, but i get an error in syslog.
>
> how can i tell my pi to use python3 instead of python2?
>
> regards,
> chris
>
> [email protected] schrieb am Freitag, 19. Februar 2021 um 20:00:51
> UTC+1:
>
>> As far as I can see, you are using Python 2 or this problem occurs only
>> with this version.
>> However, the plugin is unfortunately only compatible with Python 3, as it
>> also uses some other Py 3-only features.
>>
>> regards,
>> Michael
>> [email protected] schrieb am Freitag, 19. Februar 2021 um 19:31:26 UTC+1:
>>
>>> thank you, this solved the problem :)
>>>
>>> [email protected] schrieb am Freitag, 19. Februar 2021 um 14:09:18 UTC+1:
>>>
>>>> The problem is that the extension author used the copyright character
>>>> ('©') in the first line of the code for install.py, which is a non-ascii
>>>> character. In Python 2.x, the default encoding of source code is ascii. If
>>>> non-ascii characters are going to be used, then the encoding must be
>>>> declared, which the author did not do. In Python 3.x, the default encoding
>>>> is utf-8, so the copyright character will work.
>>>>
>>>> The fix is to either remove the character, or switch to Python 3.x. Or,
>>>> contact the author.
>>>>
>>>> On Fri, Feb 19, 2021 at 2:01 AM Christian Gruber <[email protected]>
>>>> wrote:
>>>>
>>>>> hello,
>>>>>
>>>>> i am trying to install this extension to use it with my
>>>>> weatherlink-live
>>>>> https://github.com/michael-slx/weewx-weatherlink-live
>>>>>
>>>>> it fails with the following error:
>>>>>
>>>>> ######################################
>>>>> Request to install 'release.zip'
>>>>> Extracting from zip archive release.zip
>>>>> Traceback (most recent call last):
>>>>> File "/usr/share/weewx/wee_extension", line 88, in <module>
>>>>> main()
>>>>> File "/usr/share/weewx/wee_extension", line 80, in main
>>>>> ext.install_extension(options.install)
>>>>> File "/usr/share/weewx/weecfg/extension.py", line 125, in
>>>>> install_extension
>>>>> self.install_from_dir(extension_dir)
>>>>> File "/usr/share/weewx/weecfg/extension.py", line 147, in
>>>>> install_from_dir
>>>>> extension_dir)
>>>>> File "/usr/share/weewx/weecfg/__init__.py", line 1866, in
>>>>> get_extension_installer
>>>>> __import__('install')
>>>>> File "/var/tmp/weewx-weatherlink-live-release/install.py", line 1
>>>>> SyntaxError: Non-ASCII character '\xc2' in file
>>>>> /var/tmp/weewx-weatherlink-live-release/install.py on line 1, but no
>>>>> encoding declared; see http://python.oev/peps/pep-0263/ for details
>>>>> ######################################
>>>>>
>>>>> maybe someone can help me :)
>>>>>
>>>>> regards
>>>>> chris
>>>>>
>>>>> --
>>>>> 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].
>>>>> To view this discussion on the web visit
>>>>> https://groups.google.com/d/msgid/weewx-user/17172c68-ef7b-4d29-a23d-06caf60b4de9n%40googlegroups.com
>>>>>
>>>>> <https://groups.google.com/d/msgid/weewx-user/17172c68-ef7b-4d29-a23d-06caf60b4de9n%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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/weewx-user/1a992758-a708-4422-9d89-2a1ef1d1289an%40googlegroups.com.