I you are running an up to date RPi OS Buster (the latest version), you should 
have Python 3.7 installed.

What do you get when you run the following 3 commands (my example bellows shows 
what you should get)?

jkline@judy:~ $ which python3
/usr/bin/python3
jkline@judy:~ $ python3 --version
Python 3.7.3
jkline@judy:~ $ ls -l /usr/bin/python3
lrwxrwxrwx 1 root root 9 Mar 26  2019 /usr/bin/python3 -> python3.7
jkline@judy:~ $ 

> On Mar 30, 2021, at 1:55 PM, Mauro De Lauretis <mauro.delaure...@gmail.com> 
> wrote:
> 
> I still have the newest version of RPi OS, therefore I don't know what to 
> change.
> But it seems that the python in the system its gone. Maybe I have to do a 
> fresh install.
> 
> 
> 
> Il giorno martedì 30 marzo 2021 alle 21:46:51 UTC+2 tke...@gmail.com ha 
> scritto:
>> Probably configobj was added to your "system" Python. That is, 
>> /usr/bin/python. 
>> 
>> Is there no way to upgrade your system Python? That would be best. If not, 
>> you will have to add configobj to your custom version of Python by using pip:
>> 
>> sudo /usr/local/bin/python -m pip install configobj
>> 
>> You'll have to do that for all the prerequisites:
>> 
>> sudo /usr/local/bin/python -m pip install Cheetah3
>> sudo /usr/local/bin/python -m pip install Pillow
>> sudo /usr/local/bin/python -m pip install pyserial
>> sudo /usr/local/bin/python -m pip install pyusb
>> sudo /usr/local/bin/python -m pip install pyephem
>> 
>> You can see that having to regularly specify the path to your custom 
>> interpreter will be a pain. Better to fix your installation. Why not upgrade 
>> your version of Raspberry Pi OS to something more modern?
>> 
>> -tk
>> 
>> 
>>> On Tue, Mar 30, 2021 at 11:55 AM Mauro De Lauretis <mauro.de...@gmail.com> 
>>> wrote:
>>> You had right, Tom.
>>> 
>>> Now the problem is that the installing process does not find the module 
>>> configojb, even it is correctly installed.
>>> 
>>> Il giorno martedì 30 marzo 2021 alle 17:19:25 UTC+2 tke...@gmail.com ha 
>>> scritto:
>>>> No idea where that would put things. Try /usr/local/bin. 
>>>> 
>>>>> On Tue, Mar 30, 2021 at 8:16 AM Mauro De Lauretis <mauro.de...@gmail.com> 
>>>>> wrote:
>>>>> 
>>>>> 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 tke...@gmail.com 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 
>>>>>>> <mauro.de...@gmail.com> 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 tke...@gmail.com 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 
>>>>>>>>> <mauro.de...@gmail.com> 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 weewx-user+...@googlegroups.com.
>>>>>>>>> To view this discussion on the web visit 
>>>>>>>>> https://groups.google.com/d/msgid/weewx-user/89977cb6-ece2-4441-bdf8-0fb5c5d46d5fn%40googlegroups.com.
>>>>>>> 
>>>>>>> -- 
>>>>>>> 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/4ebe679a-1152-4a37-a425-759994145ae0n%40googlegroups.com.
>>>>> 
>>>>> -- 
>>>>> 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/fae7cbd7-187c-4b38-b074-775d20efbd70n%40googlegroups.com.
>>> 
>>> -- 
>>> 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/d48d5eb8-646e-4fd2-9555-384acbce9501n%40googlegroups.com.
> 
> -- 
> 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/9f25aa8f-5e0a-47e0-9c63-c275159583d4n%40googlegroups.com.

-- 
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/3102E261-77A9-4A7F-B62B-04C9DE45F7E4%40johnkline.com.

Reply via email to