Synergetic-Engineering / odata-influxdb

An OData compliant API for accessing data stored in influxdb
MIT License
31 stars 16 forks source link

Methods renamed in pyslet.odata2.client and influxdb.client #22

Open OzymandiasII opened 6 years ago

OzymandiasII commented 6 years ago

Hello,

I was trying to run python server.py --makeSampleConfig and received the following error message:

Traceback (most recent call last): File "server.py", line 16, in <module> from influxdbds import InfluxDBEntityContainer File "/test/odata-influxdb/influxdbds.py", line 9, in <module> from pyslet.odata2.core import EntityCollection, CommonExpression, PropertyExpression, BinaryExpression, \ ImportError: cannot import name FormatExpand

It turns out that FormatExpand and FormatSelect were renamed in pyslet.odata2.client to format_expand and format_select, respectively.

So, I changed the import on line 10 of influxdbds.py and the corresponding calls on line 389 and line 392. Then, running python server.py --makeSampleConfig successfully created the sample.conf file.

Likewise, the FormatSysQueryOptions method was renamed in pyslet.odata2.client to format_sys_query_options. So, I updated the call on line 405 of influxdbds.py.

Additionally, from_DSN was renamed in influxdb.client to from_dsn. So, updated the respective calls in influxdbmeta.py (line 57) and influxdbds.py (line 50).

Jocoleqy commented 5 years ago

Yeah, I did the same thing. It works now but I don't know if those modifcations are correct. Waiting for the author's response.