-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update puppet5 + python3 #3287
Comments
The above root@webserver-web:/var/machine-learning# cat /var/log/webserver/flask.log
[2018-10-08 21:00:43,794] {/usr/local/lib/python3.5/dist-packages/flask/app.py:1761} ERROR - Exception on /retrieve-prediction-titles [POST]
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/flask/app.py", line 2292, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python3.5/dist-packages/flask/app.py", line 1815, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python3.5/dist-packages/flask/app.py", line 1718, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/lib/python3.5/dist-packages/flask/_compat.py", line 35, in reraise
raise value
File "/usr/local/lib/python3.5/dist-packages/flask/app.py", line 1813, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python3.5/dist-packages/flask/app.py", line 1799, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/var/machine-learning/interface/views_web.py", line 408, in retrieve_prediction_titles
response = prediction.get_all_titles(model_type)
File "/var/machine-learning/brain/database/prediction.py", line 143, in get_all_titles
response = self.sql.execute('select', sql_statement, args)
File "/var/machine-learning/brain/database/query.py", line 281, in execute
self.cursor.execute(statement, sql_args)
File "/usr/local/lib/python3.5/dist-packages/MySQLdb/cursors.py", line 234, in execute
args = tuple(map(db.literal, args))
TypeError: 'int' object is not iterable
[2018-10-08 21:02:39,331] {/usr/local/lib/python3.5/dist-packages/flask/app.py:1761} ERROR - Exception on /load-data [POST]
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/flask/app.py", line 2292, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python3.5/dist-packages/flask/app.py", line 1815, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python3.5/dist-packages/flask/app.py", line 1718, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/lib/python3.5/dist-packages/flask/_compat.py", line 35, in reraise
raise value
File "/usr/local/lib/python3.5/dist-packages/flask/app.py", line 1813, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python3.5/dist-packages/flask/app.py", line 1799, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/var/machine-learning/interface/views_web.py", line 94, in load_data
response = loader.load_data_new()
File "/var/machine-learning/brain/load_data.py", line 74, in load_data_new
session.validate_premodel_settings()
File "/var/machine-learning/brain/session/base.py", line 69, in validate_premodel_settings
self.session_type
File "/var/machine-learning/brain/validator/settings.py", line 53, in validate_settings
Required('collection'): All(unicode, Length(min=1)),
NameError: name 'unicode' is not defined Note: we supplied the |
We now have the following database error in our root@webserver-web:/var/machine-learning# cat /var/log/webserver/flask.log
[2018-10-09 19:33:54,674] {/usr/local/lib/python3.5/dist-packages/flask/app.py:1761} ERROR - Exception on /retrieve-prediction-titles [POST]
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/flask/app.py", line 2292, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python3.5/dist-packages/flask/app.py", line 1815, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python3.5/dist-packages/flask/app.py", line 1718, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/lib/python3.5/dist-packages/flask/_compat.py", line 35, in reraise
raise value
File "/usr/local/lib/python3.5/dist-packages/flask/app.py", line 1813, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python3.5/dist-packages/flask/app.py", line 1799, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/var/machine-learning/interface/views_web.py", line 408, in retrieve_prediction_titles
response = prediction.get_all_titles(model_type)
File "/var/machine-learning/brain/database/prediction.py", line 143, in get_all_titles
response = self.sql.execute('select', sql_statement, args)
File "/var/machine-learning/brain/database/query.py", line 281, in execute
self.cursor.execute(statement, sql_args)
File "/usr/local/lib/python3.5/dist-packages/MySQLdb/cursors.py", line 234, in execute
args = tuple(map(db.literal, args))
TypeError: 'int' object is not iterable
[2018-10-09 19:34:08,008] {/usr/local/lib/python3.5/dist-packages/flask/app.py:1761} ERROR - Exception on /load-data [POST]
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/flask/app.py", line 2292, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python3.5/dist-packages/flask/app.py", line 1815, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python3.5/dist-packages/flask/app.py", line 1718, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/lib/python3.5/dist-packages/flask/_compat.py", line 35, in reraise
raise value
File "/usr/local/lib/python3.5/dist-packages/flask/app.py", line 1813, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python3.5/dist-packages/flask/app.py", line 1799, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/var/machine-learning/interface/views_web.py", line 94, in load_data
response = loader.load_data_new()
File "/var/machine-learning/brain/load_data.py", line 76, in load_data_new
session.save_premodel_dataset()
File "/var/machine-learning/brain/session/base_data.py", line 91, in save_premodel_dataset
collection_count = entity.get_collection_count(self.uid)
File "/var/machine-learning/brain/database/entity.py", line 170, in get_collection_count
response = self.sql.execute('select', sql_statement, args)
File "/var/machine-learning/brain/database/query.py", line 281, in execute
self.cursor.execute(statement, sql_args)
File "/usr/local/lib/python3.5/dist-packages/MySQLdb/cursors.py", line 234, in execute
args = tuple(map(db.literal, args))
TypeError: 'int' object is not iterable |
Our root@webserver-web:/var/machine-learning# cat /var/log/webserver/flask.log
[2018-10-10 20:05:08,356] {/usr/local/lib/python3.5/dist-packages/flask/app.py:1761} ERROR - Exception on /load-data [POST]
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/flask/app.py", line 2292, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python3.5/dist-packages/flask/app.py", line 1815, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python3.5/dist-packages/flask/app.py", line 1718, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/lib/python3.5/dist-packages/flask/_compat.py", line 35, in reraise
raise value
File "/usr/local/lib/python3.5/dist-packages/flask/app.py", line 1813, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python3.5/dist-packages/flask/app.py", line 1799, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/var/machine-learning/interface/views_web.py", line 94, in load_data
response = loader.load_data_new()
File "/var/machine-learning/brain/load_data.py", line 94, in load_data_new
return json.dumps(response)
File "/usr/lib/python3.5/json/__init__.py", line 230, in dumps
return _default_encoder.encode(obj)
File "/usr/lib/python3.5/json/encoder.py", line 198, in encode
chunks = self.iterencode(o, _one_shot=True)
File "/usr/lib/python3.5/json/encoder.py", line 256, in iterencode
return _iterencode(o, 0)
File "/usr/lib/python3.5/json/encoder.py", line 179, in default
raise TypeError(repr(o) + " is not JSON serializable")
TypeError: ProgrammingError(1146, "Table 'db_machine_learning.tbl_dataset_entity' doesn't exist") is not JSON serializable |
Upon [
{
"error": {
"validation": [
{
"location": "data_new",
"message": [
"expected a tuple for dictionary value @ data['collection']. Got 'collection-100'",
"expected a tuple for dictionary value @ data['session_name']. Got 'session-100'"
]
}
]
}
},
{
"validation": [
{
"location": "svm-1.xml",
"message": [
"expected a tuple for dictionary value @ data['dependent-variable']. Got 'dep-variable-1'",
"extra keys not allowed @ data['error']. Got None",
"extra keys not allowed @ data['independent-variables'][0]['indep-variable-1']. Got '23.45'",
"extra keys not allowed @ data['independent-variables'][0]['indep-variable-2']. Got '98.01'",
"extra keys not allowed @ data['independent-variables'][0]['indep-variable-3']. Got '0.432'",
"extra keys not allowed @ data['independent-variables'][0]['indep-variable-4']. Got '325'",
"extra keys not allowed @ data['independent-variables'][0]['indep-variable-5']. Got '56.64'",
"extra keys not allowed @ data['independent-variables'][0]['indep-variable-6']. Got '0.002'",
"extra keys not allowed @ data['independent-variables'][0]['indep-variable-7']. Got '23'",
"required key not provided @ data['independent-variables'][0][All((<class 'str'>,), Length(min=1, max=None), msg=None)]. Got None",
"expected a tuple for dictionary value @ data['dependent-variable']. Got 'dep-variable-4'",
"extra keys not allowed @ data['error']. Got None",
"extra keys not allowed @ data['independent-variables'][0]['indep-variable-1']. Got '22.1'",
"extra keys not allowed @ data['independent-variables'][0]['indep-variable-2']. Got '95.96'",
"extra keys not allowed @ data['independent-variables'][0]['indep-variable-3']. Got '0.743'",
"extra keys not allowed @ data['independent-variables'][0]['indep-variable-4']. Got '342'",
"extra keys not allowed @ data['independent-variables'][0]['indep-variable-5']. Got '66.67'",
"extra keys not allowed @ data['independent-variables'][0]['indep-variable-6']. Got '0.001'",
"extra keys not allowed @ data['independent-variables'][0]['indep-variable-7']. Got '32'",
"required key not provided @ data['independent-variables'][0][All((<class 'str'>,), Length(min=1, max=None), msg=None)]. Got None",
"expected a tuple for dictionary value @ data['dependent-variable']. Got 'dep-variable-5'",
"extra keys not allowed @ data['error']. Got None",
"extra keys not allowed @ data['independent-variables'][0]['indep-variable-1']. Got '23.27'",
"extra keys not allowed @ data['independent-variables'][0]['indep-variable-2']. Got '95.03'",
"extra keys not allowed @ data['independent-variables'][0]['indep-variable-3']. Got '0.488'",
"extra keys not allowed @ data['independent-variables'][0]['indep-variable-4']. Got '295'",
"extra keys not allowed @ data['independent-variables'][0]['indep-variable-5']. Got '55.83'",
"extra keys not allowed @ data['independent-variables'][0]['indep-variable-6']. Got '0.001'",
"extra keys not allowed @ data['independent-variables'][0]['indep-variable-7']. Got '27'",
"required key not provided @ data['independent-variables'][0][All((<class 'str'>,), Length(min=1, max=None), msg=None)]. Got None",
"expected a tuple for dictionary value @ data['dependent-variable']. Got 'dep-variable-3'",
"extra keys not allowed @ data['error']. Got None",
"extra keys not allowed @ data['independent-variables'][0]['indep-variable-1']. Got '22.67'",
"extra keys not allowed @ data['independent-variables'][0]['indep-variable-2']. Got '101.21'",
"extra keys not allowed @ data['independent-variables'][0]['indep-variable-3']. Got '0.832'",
"extra keys not allowed @ data['independent-variables'][0]['indep-variable-4']. Got '427'",
"extra keys not allowed @ data['independent-variables'][0]['indep-variable-5']. Got '75.45'",
"extra keys not allowed @ data['independent-variables'][0]['indep-variable-6']. Got '0.002'",
"extra keys not allowed @ data['independent-variables'][0]['indep-variable-7']. Got '26'",
"required key not provided @ data['independent-variables'][0][All((<class 'str'>,), Length(min=1, max=None), msg=None)]. Got None",
"expected a tuple for dictionary value @ data['dependent-variable']. Got 'dep-variable-5'",
"extra keys not allowed @ data['error']. Got None",
"extra keys not allowed @ data['independent-variables'][0]['indep-variable-1']. Got '19.99'",
"extra keys not allowed @ data['independent-variables'][0]['indep-variable-2']. Got '97.78'",
"extra keys not allowed @ data['independent-variables'][0]['indep-variable-3']. Got '0.638'",
"extra keys not allowed @ data['independent-variables'][0]['indep-variable-4']. Got '303'",
"extra keys not allowed @ data['independent-variables'][0]['indep-variable-5']. Got '58.88'",
"extra keys not allowed @ data['independent-variables'][0]['indep-variable-6']. Got '0.001'",
"extra keys not allowed @ data['independent-variables'][0]['indep-variable-7']. Got '29'",
"required key not provided @ data['independent-variables'][0][All((<class 'str'>,), Length(min=1, max=None), msg=None)]. Got None",
"expected a tuple for dictionary value @ data['dependent-variable']. Got 'dep-variable-1'",
"extra keys not allowed @ data['error']. Got None",
"extra keys not allowed @ data['independent-variables'][0]['indep-variable-1']. Got '23.27'",
"extra keys not allowed @ data['independent-variables'][0]['indep-variable-2']. Got '95.03'",
"extra keys not allowed @ data['independent-variables'][0]['indep-variable-3']. Got '0.488'",
"extra keys not allowed @ data['independent-variables'][0]['indep-variable-4']. Got '295'",
"extra keys not allowed @ data['independent-variables'][0]['indep-variable-5']. Got '55.83'",
"extra keys not allowed @ data['independent-variables'][0]['indep-variable-6']. Got '0.001'",
"extra keys not allowed @ data['independent-variables'][0]['indep-variable-7']. Got '27'",
"required key not provided @ data['independent-variables'][0][All((<class 'str'>,), Length(min=1, max=None), msg=None)]. Got None",
"expected a tuple for dictionary value @ data['dependent-variable']. Got 'dep-variable-1'",
"extra keys not allowed @ data['error']. Got None",
"extra keys not allowed @ data['independent-variables'][0]['indep-variable-1']. Got '20.71'",
"extra keys not allowed @ data['independent-variables'][0]['indep-variable-2']. Got '99.33'",
"extra keys not allowed @ data['independent-variables'][0]['indep-variable-3']. Got '0.648'",
"extra keys not allowed @ data['independent-variables'][0]['indep-variable-4']. Got '342'",
"extra keys not allowed @ data['independent-variables'][0]['indep-variable-5']. Got '75.67'",
"extra keys not allowed @ data['independent-variables'][0]['indep-variable-6']. Got '0.001'",
"extra keys not allowed @ data['independent-variables'][0]['indep-variable-7']. Got '30'",
"required key not provided @ data['independent-variables'][0][All((<class 'str'>,), Length(min=1, max=None), msg=None)]. Got None"
]
}
]
}
] Note: there are some reactjs issues, when the browser is fullscreen (or significantly wide). |
Upon [
{
"validation": [
{
"location": "svm-1.xml",
"message": [
"expected int for dictionary value @ data['independent-variables'][0]['indep-variable-1']. Got '23.45'",
"expected int for dictionary value @ data['independent-variables'][0]['indep-variable-2']. Got '98.01'",
"expected int for dictionary value @ data['independent-variables'][0]['indep-variable-3']. Got '0.432'",
"expected int for dictionary value @ data['independent-variables'][0]['indep-variable-4']. Got '325'",
"expected int for dictionary value @ data['independent-variables'][0]['indep-variable-5']. Got '56.64'",
"expected int for dictionary value @ data['independent-variables'][0]['indep-variable-6']. Got '0.002'",
"expected int for dictionary value @ data['independent-variables'][0]['indep-variable-7']. Got '23'",
"extra keys not allowed @ data['error']. Got None",
"expected int for dictionary value @ data['independent-variables'][0]['indep-variable-1']. Got '22.1'",
"expected int for dictionary value @ data['independent-variables'][0]['indep-variable-2']. Got '95.96'",
"expected int for dictionary value @ data['independent-variables'][0]['indep-variable-3']. Got '0.743'",
"expected int for dictionary value @ data['independent-variables'][0]['indep-variable-4']. Got '342'",
"expected int for dictionary value @ data['independent-variables'][0]['indep-variable-5']. Got '66.67'",
"expected int for dictionary value @ data['independent-variables'][0]['indep-variable-6']. Got '0.001'",
"expected int for dictionary value @ data['independent-variables'][0]['indep-variable-7']. Got '32'",
"extra keys not allowed @ data['error']. Got None",
"expected int for dictionary value @ data['independent-variables'][0]['indep-variable-1']. Got '23.27'",
"expected int for dictionary value @ data['independent-variables'][0]['indep-variable-2']. Got '95.03'",
"expected int for dictionary value @ data['independent-variables'][0]['indep-variable-3']. Got '0.488'",
"expected int for dictionary value @ data['independent-variables'][0]['indep-variable-4']. Got '295'",
"expected int for dictionary value @ data['independent-variables'][0]['indep-variable-5']. Got '55.83'",
"expected int for dictionary value @ data['independent-variables'][0]['indep-variable-6']. Got '0.001'",
"expected int for dictionary value @ data['independent-variables'][0]['indep-variable-7']. Got '27'",
"extra keys not allowed @ data['error']. Got None",
"expected int for dictionary value @ data['independent-variables'][0]['indep-variable-1']. Got '22.67'",
"expected int for dictionary value @ data['independent-variables'][0]['indep-variable-2']. Got '101.21'",
"expected int for dictionary value @ data['independent-variables'][0]['indep-variable-3']. Got '0.832'",
"expected int for dictionary value @ data['independent-variables'][0]['indep-variable-4']. Got '427'",
"expected int for dictionary value @ data['independent-variables'][0]['indep-variable-5']. Got '75.45'",
"expected int for dictionary value @ data['independent-variables'][0]['indep-variable-6']. Got '0.002'",
"expected int for dictionary value @ data['independent-variables'][0]['indep-variable-7']. Got '26'",
"extra keys not allowed @ data['error']. Got None",
"expected int for dictionary value @ data['independent-variables'][0]['indep-variable-1']. Got '19.99'",
"expected int for dictionary value @ data['independent-variables'][0]['indep-variable-2']. Got '97.78'",
"expected int for dictionary value @ data['independent-variables'][0]['indep-variable-3']. Got '0.638'",
"expected int for dictionary value @ data['independent-variables'][0]['indep-variable-4']. Got '303'",
"expected int for dictionary value @ data['independent-variables'][0]['indep-variable-5']. Got '58.88'",
"expected int for dictionary value @ data['independent-variables'][0]['indep-variable-6']. Got '0.001'",
"expected int for dictionary value @ data['independent-variables'][0]['indep-variable-7']. Got '29'",
"extra keys not allowed @ data['error']. Got None",
"expected int for dictionary value @ data['independent-variables'][0]['indep-variable-1']. Got '23.27'",
"expected int for dictionary value @ data['independent-variables'][0]['indep-variable-2']. Got '95.03'",
"expected int for dictionary value @ data['independent-variables'][0]['indep-variable-3']. Got '0.488'",
"expected int for dictionary value @ data['independent-variables'][0]['indep-variable-4']. Got '295'",
"expected int for dictionary value @ data['independent-variables'][0]['indep-variable-5']. Got '55.83'",
"expected int for dictionary value @ data['independent-variables'][0]['indep-variable-6']. Got '0.001'",
"expected int for dictionary value @ data['independent-variables'][0]['indep-variable-7']. Got '27'",
"extra keys not allowed @ data['error']. Got None",
"expected int for dictionary value @ data['independent-variables'][0]['indep-variable-1']. Got '20.71'",
"expected int for dictionary value @ data['independent-variables'][0]['indep-variable-2']. Got '99.33'",
"expected int for dictionary value @ data['independent-variables'][0]['indep-variable-3']. Got '0.648'",
"expected int for dictionary value @ data['independent-variables'][0]['indep-variable-4']. Got '342'",
"expected int for dictionary value @ data['independent-variables'][0]['indep-variable-5']. Got '75.67'",
"expected int for dictionary value @ data['independent-variables'][0]['indep-variable-6']. Got '0.001'",
"expected int for dictionary value @ data['independent-variables'][0]['indep-variable-7']. Got '30'",
"extra keys not allowed @ data['error']. Got None"
]
}
]
}
] |
Our root@mariadb:/# mysql -u root -p db_machine_learning
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 14
Server version: 10.0.36-MariaDB-0ubuntu0.16.04.1 Ubuntu 16.04
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [db_machine_learning]> show tables;
Empty set (0.00 sec) This means our corresponding mariadb puppet module did not create necessary database tables. So, we'll need to make some puppet adjustments, before recreating the respective docker image. |
The following errors need to be mitigated during build of the mariadb image: 10/11/2018 10:20:46 PMTraceback (most recent call last):
10/11/2018 10:20:46 PM File "setup_tables.py", line 34, in <module>
10/11/2018 10:20:46 PM import MySQLdb as DB
10/11/2018 10:20:46 PMImportError: No module named 'MySQLdb'
10/11/2018 10:20:50 PM181011 22:20:50 [Note] mysqld (mysqld 10.0.36-MariaDB-0ubuntu0.16.04.1) starting as process 328 ... Note: the |
Our 10/12/2018 11:28:26 PM[2018-10-12 23:28:26,386] ERROR in app: Exception on /load-data [POST]
10/12/2018 11:28:26 PMTraceback (most recent call last):
10/12/2018 11:28:26 PM File "/usr/local/lib/python3.5/dist-packages/flask/app.py", line 2292, in wsgi_app
10/12/2018 11:28:26 PM response = self.full_dispatch_request()
10/12/2018 11:28:26 PM File "/usr/local/lib/python3.5/dist-packages/flask/app.py", line 1815, in full_dispatch_request
10/12/2018 11:28:26 PM rv = self.handle_user_exception(e)
10/12/2018 11:28:26 PM File "/usr/local/lib/python3.5/dist-packages/flask/app.py", line 1718, in handle_user_exception
10/12/2018 11:28:26 PM reraise(exc_type, exc_value, tb)
10/12/2018 11:28:26 PM File "/usr/local/lib/python3.5/dist-packages/flask/_compat.py", line 35, in reraise
10/12/2018 11:28:26 PM raise value
10/12/2018 11:28:26 PM File "/usr/local/lib/python3.5/dist-packages/flask/app.py", line 1813, in full_dispatch_request
10/12/2018 11:28:26 PM rv = self.dispatch_request()
10/12/2018 11:28:26 PM File "/usr/local/lib/python3.5/dist-packages/flask/app.py", line 1799, in dispatch_request
10/12/2018 11:28:26 PM return self.view_functions[rule.endpoint](**req.view_args)
10/12/2018 11:28:26 PM File "/var/machine-learning/interface/views_web.py", line 98, in load_data
10/12/2018 11:28:26 PM response = loader.load_model_generate()
10/12/2018 11:28:26 PM File "/var/machine-learning/brain/load_data.py", line 151, in load_model_generate
10/12/2018 11:28:26 PM session.generate_model()
10/12/2018 11:28:26 PM File "/var/machine-learning/brain/session/model_generate.py", line 81, in generate_model
10/12/2018 11:28:26 PM self.list_error
10/12/2018 11:28:26 PM File "/var/machine-learning/brain/session/model/sv.py", line 93, in generate
10/12/2018 11:28:26 PM clf.fit(grouped_features, encoded_labels)
10/12/2018 11:28:26 PM File "/usr/local/lib/python3.5/dist-packages/sklearn/svm/base.py", line 149, in fit
10/12/2018 11:28:26 PM accept_large_sparse=False)
10/12/2018 11:28:26 PM File "/usr/local/lib/python3.5/dist-packages/sklearn/utils/validation.py", line 747, in check_X_y
10/12/2018 11:28:26 PM estimator=estimator)
10/12/2018 11:28:26 PM File "/usr/local/lib/python3.5/dist-packages/sklearn/utils/validation.py", line 547, in check_array
10/12/2018 11:28:26 PM "if it contains a single sample.".format(array))
10/12/2018 11:28:26 PMValueError: Expected 2D array, got 1D array instead:
10/12/2018 11:28:26 PMarray=[].
10/12/2018 11:28:26 PMReshape your data either using array.reshape(-1, 1) if your data has a single feature or array.reshape(1, -1) if it contains a single sample. |
We added the following temporary ...
raise Exception('instance: {}, converted: {}, error: {}'.format(
repr(instance),
repr(converted),
repr(error)
))
# return results
if list_error:
return {
'dataset': converted,
'settings': settings,
'error': {
'validation': list_error
}
}
else:
return {
'dataset': converted,
'settings': settings,
'error': None,
}
10/14/2018 8:44:24 PM[2018-10-14 20:44:24 -0400] [8] [INFO] Starting gunicorn 19.9.0
10/14/2018 8:44:24 PM[2018-10-14 20:44:24 -0400] [8] [INFO] Listening at: http://0.0.0.0:5001 (8)
10/14/2018 8:44:24 PM[2018-10-14 20:44:24 -0400] [8] [INFO] Using worker: sync
10/14/2018 8:44:24 PM[2018-10-14 20:44:24 -0400] [11] [INFO] Booting worker with pid: 11
10/14/2018 8:44:25 PM[2018-10-14 20:44:25 -0400] [12] [INFO] Booting worker with pid: 12
10/14/2018 8:44:25 PM[2018-10-14 20:44:25 -0400] [13] [INFO] Booting worker with pid: 13
10/14/2018 8:44:25 PM[2018-10-14 20:44:25 -0400] [14] [INFO] Booting worker with pid: 14
10/14/2018 8:44:25 PM[2018-10-14 20:44:25 -0400] [15] [INFO] Booting worker with pid: 15
10/14/2018 8:44:25 PM[2018-10-14 20:44:25 -0400] [16] [INFO] Booting worker with pid: 16
10/14/2018 8:51:38 PM[2018-10-14 20:51:38,660] ERROR in app: Exception on /load-data [POST]
10/14/2018 8:51:38 PMTraceback (most recent call last):
10/14/2018 8:51:38 PM File "/usr/local/lib/python3.5/dist-packages/flask/app.py", line 2292, in wsgi_app
10/14/2018 8:51:38 PM response = self.full_dispatch_request()
10/14/2018 8:51:38 PM File "/usr/local/lib/python3.5/dist-packages/flask/app.py", line 1815, in full_dispatch_request
10/14/2018 8:51:38 PM rv = self.handle_user_exception(e)
10/14/2018 8:51:38 PM File "/usr/local/lib/python3.5/dist-packages/flask/app.py", line 1718, in handle_user_exception
10/14/2018 8:51:38 PM reraise(exc_type, exc_value, tb)
10/14/2018 8:51:38 PM File "/usr/local/lib/python3.5/dist-packages/flask/_compat.py", line 35, in reraise
10/14/2018 8:51:38 PM raise value
10/14/2018 8:51:38 PM File "/usr/local/lib/python3.5/dist-packages/flask/app.py", line 1813, in full_dispatch_request
10/14/2018 8:51:38 PM rv = self.dispatch_request()
10/14/2018 8:51:38 PM File "/usr/local/lib/python3.5/dist-packages/flask/app.py", line 1799, in dispatch_request
10/14/2018 8:51:38 PM return self.view_functions[rule.endpoint](**req.view_args)
10/14/2018 8:51:38 PM File "/var/machine-learning/interface/views_web.py", line 94, in load_data
10/14/2018 8:51:38 PM response = loader.load_data_new()
10/14/2018 8:51:38 PM File "/var/machine-learning/brain/load_data.py", line 75, in load_data_new
10/14/2018 8:51:38 PM session.convert_dataset()
10/14/2018 8:51:38 PM File "/var/machine-learning/brain/session/base_data.py", line 171, in convert_dataset
10/14/2018 8:51:38 PM response = dataset2dict(self.model_type, self.premodel_data)
10/14/2018 8:51:38 PM File "/var/machine-learning/brain/session/data/dataset.py", line 124, in dataset2dict
10/14/2018 8:51:38 PM repr(error)
10/14/2018 8:51:38 PMException: instance: <FileStorage: 'svm-1.json' ('application/json')>, converted: [], error: False |
We can add |
We'll remove the rancher implementation to speed up local builds, before resuming debugging this issue. |
We need to take advantage of the ubuntu 16.04
base
container, by implementing puppet5x, and python3x.The text was updated successfully, but these errors were encountered: