Open suminss opened 6 years ago
Hey - sorry for not getting back to you sooner.. Did you have dispatch_scada as a string (as in, "dispatch_scada")?
Cheers, Dylan
from nemweb import nemweb_current
nemweb_current.update_datasets(['dispatch_scada'])
As per @dylanjmcconnell above.
Though it may still be blocked at https://github.com/opennem/nemweb/issues/14
Thanks, sorry for late reply I tried to input as string but am still getting error - 'no such table'
---------------------------------------------------------------------------OperationalError Traceback (most recent call last)~/anaconda3/lib/python3.6/site-packages/nemweb/nemweb_sqlite.py in start_from(table_name, db_name, timestamp_col, start_date) 50 date = table_latest_record(---> 51 table_name, db_name=db_name, timestamp_col=timestamp_col 52 ) ~/anaconda3/lib/python3.6/site-packages/nemweb/nemweb_sqlite.py in table_latest_record(table_name, db_name, timestamp_col) 31 result = conn.execute(---> 32 "SELECT MAX({0}) FROM {1}".format(timestamp_col, table_name) 33 ) OperationalError: no such table: DISPATCH_UNIT_SCADA
During handling of the above exception, another exception occurred:
TypeError Traceback (most recent call
last)
[YYYYMMDD]: ".format(msg[1])) 58 # date = datetime.datetime.strptime(date_str, "%Y%m%d")---> 59 date = datetime.datetime.strptime(start_date, "%Y%m%d") 60 61 return date TypeError: strptime() argument 1 must be str, not None
On Tue, 8 Jan 2019 at 14:29, Joel Courtney notifications@github.com wrote:
from nemweb import nemweb_current
nemweb_current.update_datasets(['dispatch_scada'])
As per @dylanjmcconnell https://github.com/dylanjmcconnell above
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/opennem/nemweb/issues/6#issuecomment-452163094, or mute the thread https://github.com/notifications/unsubscribe-auth/AcaQ8tkW896Z0Y4YXYiAWjOw6ztQ9-f2ks5vBBClgaJpZM4Yx1zq .
For the record I was seeing this in a docker container where we didn’t have SQLite installed.
Edit: got rid of the email crap. Sorry
Hey @suminss - just looking at the traceback, looks like @jufemaiz was also right right re: #14 .. I've had
go at fixing that in the dev
branch (If you checkout the dev
branch the and run the setup script it should hopefully be fixed - if you do try, let me know how you go).
(...and perhaps make sure sqlite3 is installed, as per @jufemaiz last comment).
Hi,
I've installed the nemweb package as per directions and am trying to run the suggested quickstart code in jupyter.
Am getting the following error:
from nemweb import nemweb_current nemweb_current.update_datasets([dispatch_scada])
NameError Traceback (most recent call last)