Coder Social home page Coder Social logo

openbufo / influxdb-odata-server Goto Github PK

View Code? Open in Web Editor NEW
5.0 3.0 5.0 57 KB

Odata provider to expose Influxdb data using odata services. Supports Influxdb 1.x and 2.x Connects InfluxDB with BI apps including Excel, PowerBI and Tableau.

License: MIT License

Python 100.00%
influxdb odata-server odatav2

influxdb-odata-server's People

Contributors

openbufo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

influxdb-odata-server's Issues

errors in metadata.xml

I have a pretty large telegraf bucket with a lot of measurements. I was able to generate the metadata file, but when i start the server again, there are parsing errors.

this is the first one:

Traceback (most recent call last):
  File "startServer.py", line 169, in <module>
    doc = load_metadata(c)
  File "startServer.py", line 141, in load_metadata
    doc.read_from_stream(f)
  File "/usr/local/lib/python3.7/site-packages/pyslet/xml/structures.py", line 829, in read_from_stream
    self.read_from_entity(e)
  File "/usr/local/lib/python3.7/site-packages/pyslet/xml/structures.py", line 842, in read_from_entity
    parser.parse_document(self)
  File "/usr/local/lib/python3.7/site-packages/pyslet/xml/parser.py", line 1167, in parse_document
    self.parse_element()
  File "/usr/local/lib/python3.7/site-packages/pyslet/xml/parser.py", line 2206, in parse_element
    while self.parse_content():
  File "/usr/local/lib/python3.7/site-packages/pyslet/xml/parser.py", line 2660, in parse_content
    if not self.parse_element():
  File "/usr/local/lib/python3.7/site-packages/pyslet/xml/parser.py", line 2206, in parse_element
    while self.parse_content():
  File "/usr/local/lib/python3.7/site-packages/pyslet/xml/parser.py", line 2660, in parse_content
    if not self.parse_element():
  File "/usr/local/lib/python3.7/site-packages/pyslet/xml/parser.py", line 2206, in parse_element
    while self.parse_content():
  File "/usr/local/lib/python3.7/site-packages/pyslet/xml/parser.py", line 2660, in parse_content
    if not self.parse_element():
  File "/usr/local/lib/python3.7/site-packages/pyslet/xml/parser.py", line 2248, in parse_element
    self.element.content_changed()
  File "/usr/local/lib/python3.7/site-packages/pyslet/odata2/csdl.py", line 4097, in content_changed
    super(EntityType, self).content_changed()
  File "/usr/local/lib/python3.7/site-packages/pyslet/odata2/csdl.py", line 4050, in content_changed
    self.declare(p)
  File "/usr/local/lib/python3.7/site-packages/pyslet/odata2/csdl.py", line 519, in declare
    (value.name, key, self.name))
pyslet.odata2.csdl.IncompatibleNames: Can't declare com.docker.compose.project.config_files; com.docker.compose.project already declared in scope telegraf__docker_container_blkio

but fixing that, i see the following errors:
pyslet.xml.parser.XMLWellFormedError: Line 290.0: Element Type Mismatch: found </EntityType>, expected <Schema/>
pyslet.odata2.csdl.IncompatibleNames: Can't declare com.docker.compose.project.config_files; com.docker.compose.project already declared in scope telegraf__docker_container_cpu
pyslet.odata2.csdl.IncompatibleNames: Can't declare com.docker.compose.project.config_files; com.docker.compose.project already declared in scope telegraf__docker_container_mem
pyslet.odata2.csdl.DuplicateName: ip_dscp already declared in scope telegraf__sflow
pyslet.odata2.csdl.DuplicateName: ip_ecn already declared in scope telegraf__sflow
pyslet.odata2.csdl.IncompatibleNames: Can't declare 0.001; 0 already declared in scope telegraf__tele_prom_metrics
pyslet.odata2.csdl.DuplicateName: tsunami already declared in scope telegraf__usgs

Here's the metadata.xml file that was generated:
metadata.xml.zip

AssertionError: applications must write bytes

Awesome project! I'm seeing this with every request to the app. might be harmless.

➜  influxdb-odata-server git:(master) ✗ python startServer.py
Advertising service at http://localhost:8080/data
Starting HTTP server on: interface: 0.0.0.0, port: 8080...
 * Running on http://0.0.0.0:8080/ (Press CTRL+C to quit)
Generating OData metadata xml file from InfluxDB metadata
127.0.0.1 - - [16/Apr/2020 11:00:19] "GET /configure/createmetadata/telegraf HTTP/1.1" 200 -
127.0.0.1 - - [16/Apr/2020 11:00:20] "GET /favicon.ico HTTP/1.1" 404 -
Error on request:
Traceback (most recent call last):
  File "/Users/rsavage/Library/Python/3.7/lib/python/site-packages/werkzeug/serving.py", line 304, in run_wsgi
    execute(self.server.app)
  File "/Users/rsavage/Library/Python/3.7/lib/python/site-packages/werkzeug/serving.py", line 295, in execute
    write(data)
  File "/Users/rsavage/Library/Python/3.7/lib/python/site-packages/werkzeug/serving.py", line 275, in write
    assert isinstance(data, bytes), "applications must write bytes"
AssertionError: applications must write bytes

Issue with installation - conflicting requirements

ERROR: Cannot install -r requirements.txt (line 4) and docutils==0.16 because these package versions have conflicting dependencies.

The conflict is caused by:
The user requested docutils==0.16
botocore 1.14.9 depends on docutils<0.16 and >=0.10

To fix this you could try to:

  1. loosen the range of package versions you've specified
  2. remove package versions to allow pip attempt to solve the dependency conflict

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.