THANKS. The installation is done with pip without any hassle.
Everything works fine with my installation with pip.
Weewx does not want to work on my Apache server although I have set the
WEEWX_ROOT = /srv/www/htdocs/weewx/
I put it back to default.
So I made some links and everything works. I will see the cause later since
you indicate in the documentation that it is possible.
The most annoying thing is that I have errors with wee_import to feed my
mysql database:
*sylvain@gandalf:~/weewx-venv/lib/python3.11/site-packages>** python3
wee_import.py --config=/home/sylvain/weewx-data/weewx.conf
--import-config=/home/sylvain /weewx-data/util/import/wu-example.conf
--dry-run --from=2022-7-12 --to=2023-10-24 --verbose*
Using WeeWX configuration file /home/sylvain/weewx-data/weewx.conf
Starting wee_import...
Observation history for Weather Underground station 'I********' will be
imported.
The following options will be used:
config=/home/sylvain/weewx-data/weewx.conf,
import-config=/home/sylvain/weewx-data/util/import/wu-example.conf
station=I*******, from=2022-7-12, to=2023-10-24
apiKey=****************************0b80
dry-run=True, calc_missing=True, ignore_invalid_data=True
slice=250, interval=x, wind_direction=[0.0, 360.0]
Using database binding 'wx_binding', which is bound to database 'weewx'
Destination table 'archive' unit system is '0x11' (METRICWX).
Missing derived observations will be calculated.
Observations timestamped after 2022-07-12 00:00:00 CEST (1657576800) and up
to and
including 2023-10-25 00:00:00 CEST (1698184800) will be imported.
This is a dry run, imported data will not be saved to archive.
Starting dry run import...
Records covering multiple periods have been identified for import.
Period 1...
Obtaining raw import data for period 1 ...
Traceback (most recent call last):
File
"/home/sylvain/weewx-venv/lib/python3.11/site-packages/wee_import.py", line
899, in <module>
hand()
File
"/home/sylvain/weewx-venv/lib/python3.11/site-packages/wee_import.py", line
829, in main
source_obj.run()
File
"/home/sylvain/weewx-venv/lib/python3.11/site-packages/weeimport/weeimport.py",
line 375, in run
_raw_data = self.getRawData(period)
^^^^^^^^^^^^^^^^^^^^^
File
"/home/sylvain/weewx-venv/lib/python3.11/site-packages/weeimport/wuimport.py",
line 249, in getRawData
_raw_data = f.read().decode(char_set)
^^^^^^^^^^^^^^^^^^^^^^^
TypeError: decode() argument 'encoding' must be str, not None
What did I configure incorrectly?
Le mardi 24 octobre 2023 à 01:50:48 UTC+2, Tom Keffer a écrit :
> See my previous email for instructions for installing with pip.
>
> On Mon, Oct 23, 2023 at 3:59 PM Sylvain M <[email protected]> wrote:
>
>> To order
>>
>> *zypper search -v python3-Pillow*
>>
>> I have in return
>>
>> *No matching items found.*
>>
>> I couldn't find version 5 beta for download in .tar.gz.
>> I just found it in .deb
>>
>> Is there an address to download this version 5 to install with pip?
>> I will be happy to test it.
>>
>>
>> Le mardi 24 octobre 2023 à 00:32:56 UTC+2, Tom Keffer a écrit :
>>
>>> Tumbleweed doesn't show earlier versions of packages? What do you see if
>>> you do (note the -v flag):
>>>
>>> *zypper search -v python3-Pillow*
>>>
>>>
>>> If I do it on Leaf, I see that V8.3.1 is available. Then
>>>
>>> *sudo zypper install python3-Pillow-8.3.1-lp152.5.3.1 *
>>>
>>>
>>> would install it. Any version of Pillow later than v5.2 will work.
>>>
>>> Alternatively, the beta for V5 has a patch for Pillow 10.0. *Installation
>>> using pip <https://weewx.com/docs/5.0/quickstarts/pip/>*
>>>
>>> While it's in beta, it's pretty stable.
>>>
>>>
>>>
>>>
>>> On Mon, Oct 23, 2023 at 8:34 AM Sylvain M <[email protected]> wrote:
>>>
>>>> It is not possible to downgrade the Pillow version to 9.5 under
>>>> OpenSuse Tumbleweed (OpenSuse forum).
>>>> The repository I used to install is dedicated to OpenSuse Leap.
>>>> However, I had asked the question of compatibility with Tumbleweed on
>>>> this weewxx-user forum but without an answer which I interpreted as
>>>> obvious.
>>>>
>>>> I'm going to have to stop weewx until there is an update that is
>>>> compatible with Pillow 10.0.1 at best and above all that is compatible
>>>> with
>>>> OpenSuse Tumbleweed.
>>>>
>>>> My weather station is a Bresser Wifi Comfort Weather Center 7-in-1
>>>> which sends data to Wunderground.
>>>> I imported the data from Wunderground with the import tool to populate
>>>> my mysql database with the wee_import tool (perhaps not adapted to my
>>>> version?). I updated it every day.
>>>>
>>>> The goal for me is to have a history of past months and years to
>>>> compare different parameters such as temperatures, rain or wind. It’s
>>>> tracking weather history that fascinates me.
>>>> I have done very little manipulation since I recently installed weewx
>>>> (October 12, 2023).
>>>>
>>>> As I do not have a computer permanently connected, importing data
>>>> seemed ideal to me, especially since my station is not supported by
>>>> current
>>>> drivers.
>>>>
>>>> Le lundi 23 octobre 2023 à 13:50:10 UTC+2, Tom Keffer a écrit :
>>>>
>>>>> As you say, there are several errors here.
>>>>>
>>>>> The first is caused by changes in Pillow, the library WeeWX uses for
>>>>> imaging. A number of features were deprecated in Pillow 10.0
>>>>> <https://pillow.readthedocs.io/en/stable/deprecations.html#font-size-and-offset-methods>.
>>>>>
>>>>> WeeWX Version 5 will have workarounds for these features, but, for now,
>>>>> the
>>>>> solution is to go back to Pillow version 9.5. I don't know how to do that
>>>>> on the SuSE platform, but I'm sure it's possible.
>>>>>
>>>>> It seems that you are using the Bootstrap skin? It is causing the 2nd
>>>>> error (KeyError: 'minvalues'). I do not know anything about this skin,
>>>>> but
>>>>> make sure your copy is up to date --- perhaps the author has fixed it.
>>>>>
>>>>> One of the templates in one of your skin is using the unit 'hpa'. The
>>>>> name is actually "hPa". Note the capital "P".
>>>>>
>>>>> Finally, you are getting a number of "Duplicate entry" errors caused
>>>>> by trying to insert data into the database for time values that already
>>>>> exist in the database. In this case, for records back in July 2022, over
>>>>> a
>>>>> year ago. You didn't say what kind of weather station you are using, but
>>>>> its implementation of genArchiveRecords() is not quite right. Or, perhaps
>>>>> the log is from an archive dump? It's impossible to tell without seeing
>>>>> earlier parts of the log from when weewxd starts up.
>>>>>
>>>>> Hope that gets you started.
>>>>>
>>>>> -tk
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> On Sun, Oct 22, 2023 at 2:46 PM Sylvain M <[email protected]>
>>>>> wrote:
>>>>>
>>>>>> Hello,
>>>>>>
>>>>>> I have just installed weewx under opensuse with the repository
>>>>>> according to the user manual method.
>>>>>> My HTML_ROOT = /srv/www/htdocs/weewx/
>>>>>> My base is mysql.
>>>>>>
>>>>>> I managed to put my translation into French but my web interface does
>>>>>> not have an image in the base Seasons skin to get back to basics.
>>>>>>
>>>>>> I set debug to 1 and my system log gives me lots of errors. Here are
>>>>>> the last 3000 lines: https://pastebin.com/dJKQ53Kw
>>>>>>
>>>>>> Can you help me resolve these errors?
>>>>>> What's not working?
>>>>>>
>>>>>> Thank you for your help.
>>>>>>
>>>>>> --
>>>>>> 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/2c404e14-b1ec-485d-bdaf-99bfa4c76e6fn%40googlegroups.com
>>>>>>
>>>>>> <https://groups.google.com/d/msgid/weewx-user/2c404e14-b1ec-485d-bdaf-99bfa4c76e6fn%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/b9ef6ce2-8874-4d0b-83bd-ac94a2269f90n%40googlegroups.com
>>>>
>>>> <https://groups.google.com/d/msgid/weewx-user/b9ef6ce2-8874-4d0b-83bd-ac94a2269f90n%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/3d319fb6-bc1f-4db5-b2c2-4b3f129d2defn%40googlegroups.com
>>
>> <https://groups.google.com/d/msgid/weewx-user/3d319fb6-bc1f-4db5-b2c2-4b3f129d2defn%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/c40d608e-902a-4bc0-80bc-20efb8ac4b0fn%40googlegroups.com.