azureml-examples icon indicating copy to clipboard operation
azureml-examples copied to clipboard

AttributeError: module 'dateutil' has no attribute 'parser'

Open krisbock opened this issue 3 years ago • 0 comments

Which example? Describe the issue

example: submitting example R job through the single-step R accidents sample. Job reports failure in AzureML. description: Looks like an update to azureml-mlflow package has changed. Pinning azureml-mlflow==1.33.0 resolves. Similar to #1501

Additional context

Loading required package: tcltk

Attaching package: ‘tcltk2’

The following object is masked from ‘package:httr’:

config

Warning message: no DISPLAY variable so Tk is not available [1] "/mnt/azureml/cr/j/1cf40fee236d4564b9f315f8266e3548/cap/data-capability/wd/INPUT_training_data" dead dvcat seatbelt frontal sex
alive:25036 1-9km/h: 686 belted:18572 notfrontal: 9351 f:12248
dead : 1180 10-24 :12847 none : 7644 frontal :16865 m:13968
25-39 : 8214
40-54 : 2977
55+ : 1492

ageOFocc        yearVeh        airbag        occRole     

Min. :16.00 Min. :1953 airbag:14418 driver:20600
1st Qu.:22.00 1st Qu.:1989 none :11798 pass : 5616
Median :33.00 Median :1994
Mean :37.21 Mean :1993
3rd Qu.:48.00 3rd Qu.:1997
Max. :97.00 Max. :2003
[1] "Training the model" [1] "Logging model" /usr/local/bin/mlflow:5: FutureWarning: MLflow support for Python 3.6 is deprecated and will be dropped in an upcoming release. At that point, existing Python 3.6 workflows that use MLflow will continue to work without modification, but Python 3.6 users will no longer get access to the latest MLflow features and bugfixes. We recommend that you upgrade to Python 3.7 or newer. from mlflow.cli import cli /usr/local/lib/python3.6/dist-packages/jwt/utils.py:7: CryptographyDeprecationWarning: Python 3.6 is no longer supported by the Python core team. Therefore, support for it is deprecated in cryptography and will be removed in a future release. from cryptography.hazmat.primitives.asymmetric.ec import EllipticCurve Traceback (most recent call last): File "/usr/local/bin/mlflow", line 8, in sys.exit(cli()) File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 1128, in call return self.main(*args, **kwargs) File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 1053, in main rv = self.invoke(ctx) File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 1659, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 1659, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 1395, in invoke return ctx.invoke(self.callback, **ctx.params) File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 754, in invoke return __callback(*args, **kwargs) File "/usr/local/lib/python3.6/dist-packages/mlflow/store/artifact/cli.py", line 64, in log_artifacts store = _get_store() File "/usr/local/lib/python3.6/dist-packages/mlflow/tracking/_tracking_service/utils.py", line 155, in _get_store return _tracking_store_registry.get_store(store_uri, artifact_uri) File "/usr/local/lib/python3.6/dist-packages/mlflow/tracking/_tracking_service/registry.py", line 39, in get_store return self._get_store_with_resolved_uri(resolved_store_uri, artifact_uri) File "/usr/local/lib/python3.6/dist-packages/mlflow/tracking/_tracking_service/registry.py", line 49, in _get_store_with_resolved_uri return builder(store_uri=resolved_store_uri, artifact_uri=artifact_uri) File "/usr/local/lib/python3.6/dist-packages/azureml/mlflow/entry_point_loaders.py", line 37, in azureml_store_builder service_context = _AzureMLServiceContextLoader.load_service_context(store_uri) File "/usr/local/lib/python3.6/dist-packages/azureml/mlflow/_internal/service_context_loader.py", line 68, in load_service_context service_context = get_service_context_from_tracking_url_mlflow_env_vars(parsed_url) File "/usr/local/lib/python3.6/dist-packages/azureml/mlflow/_internal/utils.py", line 290, in get_service_context_from_tracking_url_mlflow_env_vars run_id=run_id) File "/usr/local/lib/python3.6/dist-packages/azureml/mlflow/_common/_authentication/azureml_token_authentication.py", line 205, in create resource_group_name, workspace_name, experiment_name, run_id, user_email, experiment_id) File "/usr/local/lib/python3.6/dist-packages/azureml/mlflow/_common/_authentication/azureml_token_authentication.py", line 125, in init self._aml_access_token) if expiry_time is None else expiry_time File "/usr/local/lib/python3.6/dist-packages/azureml/mlflow/_common/_authentication/azureml_token_authentication.py", line 212, in _parse_expiry_time_from_token return AzureMLTokenAuthentication._convert_to_datetime(decode_json['exp']) File "/usr/local/lib/python3.6/dist-packages/azureml/mlflow/_common/_authentication/azureml_token_authentication.py", line 219, in _convert_to_datetime date = dateutil.parser.parse(expiry_time) AttributeError: module 'dateutil' has no attribute 'parser' System command 'mlflow' failed, exit status: 1, stdout & stderr were printedWarning messages: 1: The packages ellipsis (>= 0.3.2) and vctrs (>= 0.3.8) are required as of rlang 1.0.0. 2: replacing previous import ‘lifecycle::last_warnings’ by ‘rlang::last_warnings’ when loading ‘tibble’ 3: replacing previous import ‘ellipsis::check_dots_unnamed’ by ‘rlang::check_dots_unnamed’ when loading ‘tibble’ 4: replacing previous import ‘ellipsis::check_dots_used’ by ‘rlang::check_dots_used’ when loading ‘tibble’ 5: replacing previous import ‘ellipsis::check_dots_empty’ by ‘rlang::check_dots_empty’ when loading ‘tibble’

krisbock avatar Aug 17 '22 05:08 krisbock