Site feedback

GnterLoch-1894 avatar image
0 Votes"
GnterLoch-1894 Posted ·

Warnings using AML with python 3.8

Hello,
I recently updated to python 3.8 and started to get some warnings when running a script that imports an azureml module/class, like:

 from azureml.core.run import Run

Running the script I get this set of warnings:

/opt/miniconda/envs/run_env/lib/python3.8/site-packages/azureml/_vendor/azure_storage/blob/_upload_chunking.py:402: SyntaxWarning: "is" with a literal. Did you mean "=="?
if n is 0 or self._buffer.closed:
/opt/miniconda/envs/run_env/lib/python3.8/site-packages/azureml/_vendor/azure_storage/blob/baseblobservice.py:1008: SyntaxWarning: "is not" with a literal. Did you mean "!="?
if lease_duration is not -1 and \
/opt/miniconda/envs/run_env/lib/python3.8/site-packages/azureml/_vendor/azure_storage/blob/baseblobservice.py:2607: SyntaxWarning: "is not" with a literal. Did you mean "!="?
if lease_duration is not -1 and \
/opt/miniconda/envs/run_env/lib/python3.8/site-packages/azureml/_vendor/azure_storage/common/_connection.py:81: SyntaxWarning: "is" with a literal. Did you mean "=="?
self.protocol = self.protocol if parsed_url.scheme is '' else parsed_url.scheme
/opt/miniconda/envs/run_env/lib/python3.8/site-packages/azureml/core/compute/computeinstance.py:747: SyntaxWarning: "is" with a literal. Did you mean "=="?
expected_state = "Stopped" if operation is "stop" else "Running"
/opt/miniconda/envs/run_env/lib/python3.8/site-packages/azureml/core/image/image.py:509: SyntaxWarning: "is not" with a literal. Did you mean "!="?
if key is not "_operation_endpoint":
/opt/miniconda/envs/run_env/lib/python3.8/site-packages/azureml/data/dataset_factory.py:273: SyntaxWarning: "is" with a literal. Did you mean "=="?
if header is True or header is 'ALL_FILES_HAVE_SAME_HEADERS':
/opt/miniconda/envs/run_env/lib/python3.8/site-packages/azureml/data/dataset_factory.py:275: SyntaxWarning: "is" with a literal. Did you mean "=="?
elif header is False or header is 'NO_HEADERS':
/opt/miniconda/envs/run_env/lib/python3.8/site-packages/azureml/data/dataset_factory.py:277: SyntaxWarning: "is" with a literal. Did you mean "=="?
elif header is 'ONLY_FIRST_FILE_HAS_HEADERS':
/opt/miniconda/envs/run_env/lib/python3.8/site-packages/azureml/data/dataset_factory.py:279: SyntaxWarning: "is" with a literal. Did you mean "=="?
elif header is 'COMBINE_ALL_FILES_HEADERS':
/opt/miniconda/envs/run_env/lib/python3.8/site-packages/azureml/core/webservice/webservice.py:747: SyntaxWarning: "is not" with a literal. Did you mean "!="?
if key is not "_operation_endpoint":

not-supported
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Solution

DSPatrick avatar image
0 Votes"
DSPatrick Posted ·

Use Ask a question not Site Feedback for these questions






10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Your Opinion Counts

Share your feedback, or help out by voting for other people's feedback.