Git Product home page Git Product logo

Comments (4)

Dahlia7 avatar Dahlia7 commented on August 28, 2024

error

from curve.

Dahlia7 avatar Dahlia7 commented on August 28, 2024

==> api/log/curve.log <==
ERROR: 2019-12-09 12:35:33.130071: line:189 * zero-size array to reduction operation minimum which has no identity

==> api/log/uwsgi.log <==
ERROR: 2019-12-09 12:35:33.130169: line:189 * zero-size array to reduction operation minimum which has no identity
[2019-12-09 12:35:33,130] ERROR in app: Exception on /v1/data/test_2 [POST]
Traceback (most recent call last):
File "../venv/lib/python2.7/site-packages/flask/app.py", line 1949, in full_dispatch_request
rv = self.dispatch_request()
File "../venv/lib/python2.7/site-packages/flask/app.py", line 1935, in dispatch_request
return self.view_functionsrule.endpoint
File "../venv/lib/python2.7/site-packages/flask_restful/init.py", line 458, in wrapper
resp = resource(*args, **kwargs)
File "../venv/lib/python2.7/site-packages/flask/views.py", line 89, in view
return self.dispatch_request(*args, **kwargs)
File "../venv/lib/python2.7/site-packages/flask_restful/init.py", line 573, in dispatch_request
resp = meth(*args, **kwargs)
File "/Users/xili/Documents/python_workspace/Outlier_Label/Curve/api/curve/v1/validators.py", line 115, in wrapper
resp = view(*args, **kwargs)
File "/Users/xili/Documents/python_workspace/Outlier_Label/Curve/api/curve/v1/validators.py", line 106, in wrapper
return view(*args, **kwargs)
File "/Users/xili/Documents/python_workspace/Outlier_Label/Curve/api/curve/v1/api/data_dataName.py", line 109, in post
_, (axis_min, axis_max) = plugin('y_axis', data_raw_list) # cal y_axis for data
TypeError: 'NoneType' object is not iterable

==> api/log/curve.log <==
ERROR: 2019-12-09 12:35:33.133433: line:1891 * Exception on /v1/data/test_2 [POST]
Traceback (most recent call last):
File "../venv/lib/python2.7/site-packages/flask/app.py", line 1949, in full_dispatch_request
rv = self.dispatch_request()
File "../venv/lib/python2.7/site-packages/flask/app.py", line 1935, in dispatch_request
return self.view_functionsrule.endpoint
File "../venv/lib/python2.7/site-packages/flask_restful/init.py", line 458, in wrapper
resp = resource(*args, **kwargs)
File "../venv/lib/python2.7/site-packages/flask/views.py", line 89, in view
return self.dispatch_request(*args, **kwargs)
File "../venv/lib/python2.7/site-packages/flask_restful/init.py", line 573, in dispatch_request
resp = meth(*args, **kwargs)
File "/Users/xili/Documents/python_workspace/Outlier_Label/Curve/api/curve/v1/validators.py", line 115, in wrapper
resp = view(*args, **kwargs)
File "/Users/xili/Documents/python_workspace/Outlier_Label/Curve/api/curve/v1/validators.py", line 106, in wrapper
return view(*args, **kwargs)
File "/Users/xili/Documents/python_workspace/Outlier_Label/Curve/api/curve/v1/api/data_dataName.py", line 109, in post
_, (axis_min, axis_max) = plugin('y_axis', data_raw_list) # cal y_axis for data
TypeError: 'NoneType' object is not iterable

==> api/log/uwsgi.log <==
ERROR: 2019-12-09 12:35:33.133540: line:1891 * Exception on /v1/data/test_2 [POST]
Traceback (most recent call last):
File "../venv/lib/python2.7/site-packages/flask/app.py", line 1949, in full_dispatch_request
rv = self.dispatch_request()
File "../venv/lib/python2.7/site-packages/flask/app.py", line 1935, in dispatch_request
return self.view_functionsrule.endpoint
File "../venv/lib/python2.7/site-packages/flask_restful/init.py", line 458, in wrapper
resp = resource(*args, **kwargs)
File "../venv/lib/python2.7/site-packages/flask/views.py", line 89, in view
return self.dispatch_request(*args, **kwargs)
File "../venv/lib/python2.7/site-packages/flask_restful/init.py", line 573, in dispatch_request
resp = meth(*args, **kwargs)
File "/Users/xili/Documents/python_workspace/Outlier_Label/Curve/api/curve/v1/validators.py", line 115, in wrapper
resp = view(*args, **kwargs)
File "/Users/xili/Documents/python_workspace/Outlier_Label/Curve/api/curve/v1/validators.py", line 106, in wrapper
return view(*args, **kwargs)
File "/Users/xili/Documents/python_workspace/Outlier_Label/Curve/api/curve/v1/api/data_dataName.py", line 109, in post
_, (axis_min, axis_max) = plugin('y_axis', data_raw_list) # cal y_axis for data
TypeError: 'NoneType' object is not iterable
[pid: 39394|app: 0|req: 5/8] 127.0.0.1 () {52 vars in 1150 bytes} [Mon Dec 9 12:35:33 2019] POST /v1/data/test_2 => generated 37 bytes in 36 msecs (HTTP/1.1 500) 4 headers in 156 bytes (2 switches on core 1)

from curve.

songdo avatar songdo commented on August 28, 2024

i got it
this tool only support hourly data

from curve.

david-waterworth avatar david-waterworth commented on August 28, 2024

There's a log file in /api/log/curve.log

For me the error message implies a python 2.7 / python 3.x issue - it's using string operations on a byte array. I suspect in order to get this working properly you need to create a venv with the correct package versions (i.e. looking at api/requirements.txt the minimum required versions are quite old and installing the latest probably causes issues)

from curve.

Related Issues (20)

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.