Issue upgrading from 5.1.0 to 5.2.0

95 views
Skip to first unread message

Gérard P

unread,
Oct 14, 2025, 5:39:29 AM (2 days ago) Oct 14
to weewx-user
Hi everyone,

I'm running weewx 5.1.0 with Debian 12 (bookworm) and upgrading to 5.2.0 failed with the following error: link to log 

Intuitively, I guess it somehow related to this part in my configuration:
[DataBindings]
   
    [[wx_binding]]
        # The database must match one of the sections in [Databases].
        # This is likely to be the only option you would want to change.
        database = archive_sqlite
        # The name of the table within the database.
        table_name = archive
        # The manager handles aggregation of data for historical summaries.
        manager = weewx.manager.DaySummaryManager
        # The schema defines the structure of the database.
        # It is *only* used when the database is created.
        # schema = schemas.wview_extended.schema
        schema = user.modifications.schema_avec_modifications
    [[forecast_binding]]
        database = forecast_sqlite
        manager = weewx.manager.Manager
        table_name = archive
        schema = user.forecast.schema


Regards,
Gerard

michael.k...@gmx.at

unread,
Oct 14, 2025, 6:41:16 AM (2 days ago) Oct 14
to weewx-user
I didn't know it's out yet.

I guess it's our schema(s), see

Tom Keffer

unread,
Oct 14, 2025, 7:13:25 AM (2 days ago) Oct 14
to weewx...@googlegroups.com
Looks like you have some sort of customization file that is attempting to import the schema. Look in file /etc/weewx/bin/user/modifications.py. It appears to have a line

import schemas.wview

Change it to say

import weewx.schemas.wview

More details in the Upgrade Guide.

See if that helps.

-tk

--
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 visit https://groups.google.com/d/msgid/weewx-user/40c7e466-4360-4b31-a100-ecc14843787dn%40googlegroups.com.

Gérard P

unread,
Oct 14, 2025, 4:32:44 PM (2 days ago) Oct 14
to weewx-user
Well, my bad!
I should have read the upgrade guide before asking...
Everything is OK now.

Thanks for your help!
Gerard
Reply all
Reply to author
Forward
0 new messages