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/c6037437-fe02-40ca-931c-fc998041a872n%40googlegroups.com.

Reply via email to