WeeWx 5.2.0:
I'm trying to convert a database from "US" to "METRICWX", but I'm getting 
this error message:

weectl database reconfigure --config=/etc/weewx/weewx8.conf --dry-run -y

weectl database reconfigure --config=/etc/weewx/weewx8.conf --dry-run -y
Using configuration file /etc/weewx/weewx8.conf
This is a dry run. Nothing will actually be done.
Copying database 'weewx_ecowitt_http_ws6210.sdb' to 
'weewx_ecowitt_http_ws6210.sdb_new'
Units will be converted from the 'US' system to the 'METRICWX' system.
Traceback (most recent call last):
  File "/usr/share/weewx/weectl.py", line 75, in <module>
    main()
  File "/usr/share/weewx/weectl.py", line 67, in main
    namespace.func(namespace)
  File "/usr/share/weewx/weectllib/__init__.py", line 90, in dispatch
    namespace.action_func(config_dict, namespace)
  File "/usr/share/weewx/weectllib/database_cmd.py", line 371, in 
reconfigure_database
    weectllib.database_actions.reconfigure_database(config_dict,
  File "/usr/share/weewx/weectllib/database_actions.py", line 295, in 
reconfigure_database
    weewx.manager.reconfig(manager_dict['database_dict'],
  File "/usr/share/weewx/weewx/manager.py", line 715, in reconfig
    record_generator = 
weewx.units.GenWithConvert(old_archive.genBatchRecords(),
                       ^^^^^
UnboundLocalError: cannot access local variable 'weewx' where it is not 
associated with a value

How can I fix this error?

-- 
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 visit 
https://groups.google.com/d/msgid/weewx-user/871567a8-e4c3-450a-b398-626657751352n%40googlegroups.com.

Reply via email to