Re: [weewx-user] Converting from wview to weewx failed

2016-12-01 Thread Thomas Keffer
​Hello, Oscar

When running wee_database you need to (optionally) include the path to
the *configuration
file*​, not the database. But, because the path is optional, you can leave
it out completely:

*wee_database --string-check*

See if that works for you.

-tk



On Thu, Dec 1, 2016 at 3:57 PM, Oscar  wrote:

> Hi,
>
> I'm converting from wview to weewx.  I have a pi 2 running debian jessie
> and installed weewx version 3.6.2.
> There is 11 years of data in the wview_archive database. weewxd ran over
> 50 minutes
> and processed over 988,000 records before it failed with the error below.
> I ran wee_database --string-check
> and it failed as well.  Below are the errors.  Any suggestions?
>
> Thanks,
> Oscar
>
> root@zk30:/var/lib/weewx# weewxd /etc/weewx/weewx.conf
> Traceback (most recent call last):te: 2015-06-01 01:10:00 MDT (1433142600)
>   File "/usr/bin/weewxd", line 64, in 
> weewx.engine.main(options, args)
>   File "/usr/share/weewx/weewx/engine.py", line 841, in main
> engine = engine_class(config_dict)
>   File "/usr/share/weewx/weewx/engine.py", line 76, in __init__
> self.loadServices(config_dict)
>   File "/usr/share/weewx/weewx/engine.py", line 140, in loadServices
> self.service_obj.append(weeutil.weeutil._get_object(svc)(self,
> config_dict))
>   File "/usr/share/weewx/weewx/engine.py", line 486, in __init__
> self.setup_database(config_dict)
>   File "/usr/share/weewx/weewx/engine.py", line 588, in setup_database
> _nrecs, _ndays = dbmanager.backfill_day_summary() # @UnusedVariable
>   File "/usr/share/weewx/weewx/manager.py", line 1374, in
> backfill_day_summary
> _day_accum.addRecord(_rec)
>   File "/usr/share/weewx/weewx/accum.py", line 240, in addRecord
> func(self, record, obs_type, add_hilo)
>   File "/usr/share/weewx/weewx/accum.py", line 310, in add_value
> self[obs_type].addSum(val)
>   File "/usr/share/weewx/weewx/accum.py", line 87, in addSum
> self.sum += val
> TypeError: unsupported operand type(s) for +=: 'float' and 'unicode'
>
>
> root@zk30:/var/lib/weewx# wee_database --string-check weewx.sdb
> Traceback (most recent call last):
>   File "/usr/bin/wee_database", line 453, in 
> main()
>   File "/usr/bin/wee_database", line 148, in main
> config_path, config_dict = weecfg.read_config(options.config_path,
> args)
>   File "/usr/share/weewx/weecfg/__init__.py", line 223, in read_config
> config_dict = configobj.ConfigObj(config_path, file_error=True)
>   File "/usr/lib/python2.7/dist-packages/configobj.py", line 1229, in
> __init__
> self._load(infile, configspec)
>   File "/usr/lib/python2.7/dist-packages/configobj.py", line 1318, in
> _load
> raise error
> configobj.ConfigObjError: Parsing failed with several errors.
> First error at line 1.
>
> --
> 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.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Converting from wview to weewx failed

2016-12-01 Thread Oscar
Hi,

I'm converting from wview to weewx.  I have a pi 2 running debian jessie 
and installed weewx version 3.6.2.
There is 11 years of data in the wview_archive database. weewxd ran over 50 
minutes 
and processed over 988,000 records before it failed with the error below.  
I ran wee_database --string-check
and it failed as well.  Below are the errors.  Any suggestions?

Thanks,
Oscar

root@zk30:/var/lib/weewx# weewxd /etc/weewx/weewx.conf
Traceback (most recent call last):te: 2015-06-01 01:10:00 MDT (1433142600)
  File "/usr/bin/weewxd", line 64, in 
weewx.engine.main(options, args)
  File "/usr/share/weewx/weewx/engine.py", line 841, in main
engine = engine_class(config_dict)
  File "/usr/share/weewx/weewx/engine.py", line 76, in __init__
self.loadServices(config_dict)
  File "/usr/share/weewx/weewx/engine.py", line 140, in loadServices
self.service_obj.append(weeutil.weeutil._get_object(svc)(self, 
config_dict))
  File "/usr/share/weewx/weewx/engine.py", line 486, in __init__
self.setup_database(config_dict)
  File "/usr/share/weewx/weewx/engine.py", line 588, in setup_database
_nrecs, _ndays = dbmanager.backfill_day_summary() # @UnusedVariable
  File "/usr/share/weewx/weewx/manager.py", line 1374, in 
backfill_day_summary
_day_accum.addRecord(_rec)
  File "/usr/share/weewx/weewx/accum.py", line 240, in addRecord
func(self, record, obs_type, add_hilo)
  File "/usr/share/weewx/weewx/accum.py", line 310, in add_value
self[obs_type].addSum(val)
  File "/usr/share/weewx/weewx/accum.py", line 87, in addSum
self.sum += val
TypeError: unsupported operand type(s) for +=: 'float' and 'unicode'


root@zk30:/var/lib/weewx# wee_database --string-check weewx.sdb
Traceback (most recent call last):
  File "/usr/bin/wee_database", line 453, in 
main()
  File "/usr/bin/wee_database", line 148, in main
config_path, config_dict = weecfg.read_config(options.config_path, args)
  File "/usr/share/weewx/weecfg/__init__.py", line 223, in read_config
config_dict = configobj.ConfigObj(config_path, file_error=True)
  File "/usr/lib/python2.7/dist-packages/configobj.py", line 1229, in 
__init__
self._load(infile, configspec)
  File "/usr/lib/python2.7/dist-packages/configobj.py", line 1318, in _load
raise error
configobj.ConfigObjError: Parsing failed with several errors.
First error at line 1.

-- 
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.
For more options, visit https://groups.google.com/d/optout.