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 

michael.s...@gmail.com 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
> grua...@gmail.com schrieb am Freitag, 19. Februar 2021 um 19:31:26 UTC+1:
>
>> thank you, this solved the problem :)
>>
>> tke...@gmail.com 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 <grua...@gmail.com> 
>>> 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 weewx-user+...@googlegroups.com.
>>>> 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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/c25c62d1-15b2-4834-bf02-48c215f51208n%40googlegroups.com.

Reply via email to