I've installed it by downloading the package from python.org and then "sudo 
make altinstall"
Il giorno martedì 30 marzo 2021 alle 17:10:32 UTC+2 [email protected] ha 
scritto:

> How did you install it? Using apt-get? pyenv? Something else?
>
> On Tue, Mar 30, 2021 at 8:03 AM Mauro De Lauretis <[email protected]> 
> wrote:
>
>> Thank you for your reply, Tom!
>>
>> Actually I've installed the Python 3.8.4 version on my RPi, but I don't 
>> have any folder of it in /usr/bin.
>>
>> Any ideas why?
>>
>> Mauro
>> Il giorno martedì 30 marzo 2021 alle 16:45:26 UTC+2 [email protected] ha 
>> scritto:
>>
>>> This is definitely a Python version problem. You need Python 3.5 or 
>>> later. 
>>>
>>> If you simply run weewxd, the version of Python that it will use is 
>>> controlled by the "shebang" line in the file --- that is, the very first 
>>> line in weewxd. That, in turn, is set by whichever version of Python 
>>> you used to install WeeWX. My guess is that your shebang line references 
>>> Python 3.4.2. Check.
>>>
>>> Assuming that's the case, you have two choices:
>>>
>>> 1. Reinstall, but this time make sure you're using Python 3.8 to do the 
>>> install. You may have to give an explicit path to Python to get the version 
>>> you want:
>>>
>>> */usr/bin/python3.8 setup.py install*
>>>
>>>
>>> 2. Or, run weewxd with the explicit version of Python. It may look 
>>> something like
>>>
>>> */usr/bin/python3.8 /home/weewx/bin/weewxd *
>>>
>>>
>>> -tk
>>>
>>>
>>> On Tue, Mar 30, 2021 at 4:44 AM Mauro De Lauretis <[email protected]> 
>>> wrote:
>>>
>>>> Hi all,
>>>>
>>>> I can't get Weewx to work since I've upgraded to the last released 
>>>> version.
>>>> This is what I get:
>>>>
>>>> root@rasp_pineto:/home/weewx# tail -f /var/log/syslog
>>>>
>>>> Mar 30 13:34:16 rasp_pineto systemd[1]: Starting LSB: weewx weather 
>>>> system...
>>>>
>>>> Mar 30 13:34:19 rasp_pineto weewx[1332] INFO __main__: Initializing 
>>>> weewx version 4.3.0
>>>>
>>>> Mar 30 13:34:19 rasp_pineto weewx[1332] INFO __main__: Using Python 
>>>> 3.4.2 (default, Sep 16 2019, 19:58:00) #012[GCC 4.9.2]
>>>>
>>>> Mar 30 13:34:19 rasp_pineto weewx[1332] INFO __main__: Platform 
>>>> Linux-4.19.42+-armv6l-with-debian-8.0
>>>>
>>>> Mar 30 13:34:19 rasp_pineto weewx[1332] INFO __main__: Locale is 
>>>> 'it_IT.UTF-8'
>>>>
>>>> Mar 30 13:34:19 rasp_pineto weewx[1332] INFO __main__: PID file is 
>>>> /var/run/weewx.pid
>>>>
>>>> Mar 30 13:34:20 rasp_pineto weewx[1322]: Starting weewx weather system: 
>>>> weewx.
>>>>
>>>> Mar 30 13:34:20 rasp_pineto systemd[1]: Started LSB: weewx weather 
>>>> system.
>>>>
>>>> Mar 30 13:34:20 rasp_pineto weewx[1336] INFO __main__: Using 
>>>> configuration file /home/weewx/weewx.conf
>>>>
>>>> Mar 30 13:34:20 rasp_pineto weewx[1336] INFO __main__: Debug is 0
>>>>
>>>> Mar 30 13:34:20 rasp_pineto weewx[1336] INFO weewx.engine: Loading 
>>>> station type Vantage (weewx.drivers.vantage)
>>>>
>>>> Mar 30 13:34:20 rasp_pineto weewx[1336] ERROR weewx.engine: Import of 
>>>> driver failed: unsupported operand type(s) for %: 'bytes' and 'tuple' 
>>>> (<class 'TypeError'>)
>>>>
>>>> Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine:     
>>>> ****  Traceback (most recent call last):
>>>>
>>>> Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine:     
>>>> ****    File "/home/weewx/bin/weewx/engine.py", line 119, in setupStation
>>>>
>>>> Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine:     
>>>> ****      self.console = loader_function(config_dict, self)
>>>>
>>>> Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine:     
>>>> ****    File "/home/weewx/bin/weewx/drivers/vantage.py", line 39, in loader
>>>>
>>>> Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine:     
>>>> ****      return VantageService(engine, config_dict)
>>>>
>>>> Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine:     
>>>> ****    File "/home/weewx/bin/weewx/drivers/vantage.py", line 1898, in 
>>>> __init__
>>>>
>>>> Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine:     
>>>> ****      Vantage.__init__(self, **config_dict[DRIVER_NAME])
>>>>
>>>> Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine:     
>>>> ****    File "/home/weewx/bin/weewx/drivers/vantage.py", line 515, in 
>>>> __init__
>>>>
>>>> Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine:     
>>>> ****      self._setup()
>>>>
>>>> Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine:     
>>>> ****    File "/home/weewx/bin/weewx/drivers/vantage.py", line 1326, in 
>>>> _setup
>>>>
>>>> Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine:     
>>>> ****      unit_bits              = self._getEEPROM_value(0x29)[0]
>>>>
>>>> Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine:     
>>>> ****    File "/home/weewx/bin/weewx/drivers/vantage.py", line 1384, in 
>>>> _getEEPROM_value
>>>>
>>>> Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine:     
>>>> ****      command = b"EEBRD %X %X\n" % (offset, nbytes)
>>>>
>>>> Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine:     
>>>> ****  TypeError: unsupported operand type(s) for %: 'bytes' and 'tuple'
>>>>
>>>> Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL __main__: Unable to 
>>>> load driver: unsupported operand type(s) for %: 'bytes' and 'tuple'
>>>>
>>>> Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL __main__:     ****  
>>>> Exiting...
>>>>
>>>>
>>>>
>>>> I don't know why the system is using Python 3.4.2 even my default 
>>>> version is 3.8.4
>>>>
>>>>
>>>> root@rasp_pineto:/home/weewx# python -V
>>>>
>>>> Python 3.8.4
>>>>
>>>>
>>>> I've tried to rollback to the previous version of Weewx, but I get the 
>>>> same error.
>>>>
>>>>
>>>> Thank you for help
>>>>
>>>>
>>>> Mauro
>>>>
>>>> -- 
>>>> 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/89977cb6-ece2-4441-bdf8-0fb5c5d46d5fn%40googlegroups.com
>>>>  
>>>> <https://groups.google.com/d/msgid/weewx-user/89977cb6-ece2-4441-bdf8-0fb5c5d46d5fn%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/4ebe679a-1152-4a37-a425-759994145ae0n%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/weewx-user/4ebe679a-1152-4a37-a425-759994145ae0n%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/fae7cbd7-187c-4b38-b074-775d20efbd70n%40googlegroups.com.

Reply via email to