Skip to content
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

h2o import file error #25

Open
shantanuo opened this issue Sep 20, 2019 · 0 comments
Open

h2o import file error #25

shantanuo opened this issue Sep 20, 2019 · 0 comments

Comments

@shantanuo
Copy link

I am not able to run this line...

higgs = h2o.import_file('higgs_boston_train.csv')

Getting this error:


H2OResponseError Traceback (most recent call last)
in
----> 1 higgs = h2o.import_file('higgs_boston_train.csv')

/opt/conda/lib/python3.7/site-packages/h2o/h2o.py in import_file(path, destination_frame, parse, header, sep, col_names, col_types, na_strings, pattern, skipped_columns, custom_non_data_line_markers)
434 else:
435 return H2OFrame()._import_parse(path, pattern, destination_frame, header, sep, col_names, col_types, na_strings,
--> 436 skipped_columns, custom_non_data_line_markers)
437
438

/opt/conda/lib/python3.7/site-packages/h2o/frame.py in _import_parse(self, path, pattern, destination_frame, header, separator, column_names, column_types, na_strings, skipped_columns, custom_non_data_line_markers)
334 if H2OFrame.LOCAL_EXPANSION_ON_SINGLE_IMPORT and is_type(path, str) and "://" not in path: # fixme: delete those 2 lines, cf. PUBDEV-5717
335 path = os.path.abspath(path)
--> 336 rawkey = h2o.lazy_import(path, pattern)
337 self._parse(rawkey, destination_frame, header, separator, column_names, column_types, na_strings,
338 skipped_columns, custom_non_data_line_markers)

/opt/conda/lib/python3.7/site-packages/h2o/h2o.py in lazy_import(path, pattern)
296 assert_is_type(pattern, str, None)
297 paths = [path] if is_type(path, str) else path
--> 298 return _import_multi(paths, pattern)
299
300

/opt/conda/lib/python3.7/site-packages/h2o/h2o.py in _import_multi(paths, pattern)
302 assert_is_type(paths, [str])
303 assert_is_type(pattern, str, None)
--> 304 j = api("POST /3/ImportFilesMulti", {"paths": paths, "pattern": pattern})
305 if j["fails"]: raise ValueError("ImportFiles of '" + ".".join(paths) + "' failed on " + str(j["fails"]))
306 return j["destination_frames"]

/opt/conda/lib/python3.7/site-packages/h2o/h2o.py in api(endpoint, data, json, filename, save_to)
102 # type checks are performed in H2OConnection class
103 _check_connection()
--> 104 return h2oconn.request(endpoint, data=data, json=json, filename=filename, save_to=save_to)
105
106

/opt/conda/lib/python3.7/site-packages/h2o/backend/connection.py in request(self, endpoint, data, json, filename, save_to)
405 auth=self._auth, verify=self._verify_ssl_cert, proxies=self._proxies)
406 self._log_end_transaction(start_time, resp)
--> 407 return self._process_response(resp, save_to)
408
409 except (requests.exceptions.ConnectionError, requests.exceptions.HTTPError) as e:

/opt/conda/lib/python3.7/site-packages/h2o/backend/connection.py in _process_response(response, save_to)
741 # Client errors (400 = "Bad Request", 404 = "Not Found", 412 = "Precondition Failed")
742 if status_code in {400, 404, 412} and isinstance(data, (H2OErrorV3, H2OModelBuilderErrorV3)):
--> 743 raise H2OResponseError(data)
744
745 # Server errors (notably 500 = "Server Error")

H2OResponseError: Server error water.exceptions.H2ONotFoundArgumentException:
Error: File /tmp/Machine-Learning-with-Python/higgs_boston_train.csv does not exist
Request: POST /3/ImportFilesMulti
data: {'paths': '[/tmp/Machine-Learning-with-Python/higgs_boston_train.csv]'}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant