I suspect you are using weewx v3.9 code to run a V4.0 configuration file. A
new version of WeeWX can run old configuration files, but not the other way
around.

You are running wee_import without qualifying which version you want. The
system found your old version, and is attempting to use that. Try again,
but this time with the fully qualified path to wee_import. Something like:

*/home/weewx/bin/wee_import --dry-run --config=/home/weewx/weewx.conf
--import-config=/home/test/weewx-4.0.0b12/util/import/wu.conf
--date=2019-01-01 --verbose*

-tk

On Thu, Feb 20, 2020 at 2:44 AM Nicolas CUVILLIER <[email protected]>
wrote:

> Hello,
>
> I have a running weewx (3.9.2) connected to a VP2, working perfectly.
> This weewx is sending data to wunderground (stationID = IRIVIRED4)
>
> This system is running since a month and is part of a local network of
> weather stations in south Indian Ocean.
> I prefer to stay on the same configuration than the other people in the
> network.
>
> I would like to import my historical data from wunderground (3 years)
>
> As with the new API from WU, I need to use wee_import v4, my idea is to
> setup a second system,
> to get the historical data in mySql, then transfer the missing records to
> the running system, as the
> structure of the archive table did not change.
>
> I setuped a test weewx 4.0.b12 on a PI4, running with the simulator with
> mySql,
> no errors in the log, data is well simulated...
>
> I  put the information for wunderground in weewx.conf (probably not needed
> for the wee_import)
> (station, password, api_key) I used the same parameters as the one used in
> the working 3.9.2
>   (BTW is wee_import use WU parameter from weewx.conf ???)
>
> I put station_id and api_key in the util/import/wu-example.conf
> Other parameters are with their default value
>
> Is it needed to have weewx deamon running when you are using wee_import ?
> (I tried with and without...., same result)
>
> I ran the command:
> wee_import --dry-run --config=/home/weewx/weewx.conf
> --import-config=/home/test/weewx-4.0.0b12/util/import/wu.conf
> --date=2019-01-01 --verbose
>
> and I got the error:
>
>> Starting wee_import...
>> Traceback (most recent call last):
>>   File "/usr/bin/wee_import", line 834, in <module>
>>     main()
>>   File "/usr/bin/wee_import", line 783, in main wlog)
>>   File "/usr/share/weewx/weeimport/weeimport.py", line 320, in
>> sourceFactory log)
>>   File "/usr/share/weewx/weeimport/wuimport.py", line 82, in __init__ log)
>>   File "/usr/share/weewx/weeimport/weeimport.py", line 155, in __init__
>> 'schema': 'schemas.wview.schema'})
>>   File "/usr/share/weewx/weewx/manager.py", line 1031, in
>> open_manager_with_config default_binding_dict=default_binding_dict)
>>   File "/usr/share/weewx/weewx/manager.py", line 1002, in
>> get_manager_dict_from_config manager_dict['schema'] =
>> weeutil.weeutil._get_object(schema_name)
>>   File "/usr/share/weewx/weeutil/weeutil.py", line 1107, in _get_object
>>     mod = __import__(module)
>> ImportError: No module named wview_extended
>
>
> What did I make wrong ?
> Thanks
> Nicolas - Mauritius
>
> --
> 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/34f8818b-a7b6-44d3-9fc1-bdd22318135e%40googlegroups.com
> <https://groups.google.com/d/msgid/weewx-user/34f8818b-a7b6-44d3-9fc1-bdd22318135e%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/CAPq0zEDc-CMtzROazUn8V57HWnz-6sEPM5e73RdpgrSZpt%3DDZw%40mail.gmail.com.

Reply via email to