0

I am trying to use mllfow library to log the variables. The code is very simple and basic. After running my script, I am receiving an error like cannot import name 'BaseSSLError' from 'urllib3.connection'. Please refer below code.

import mlflow

def calculate_nthpower(x, n):
  return x**n

if __name__ == '__main__':

  # context manager
  with mlflow.start_run():
    x, n = 2, 5
    y = calculate_nthpower(x, n)
    mlflow.log_param('x', x)
    mlflow.log_param('n', n)
    mlflow.log_metric("y", y)
Matin Zivdar
  • 593
  • 5
  • 20
  • It's not about `mlflow`, I recommend you to read this QA. https://stackoverflow.com/questions/52698283/python-urllib3-error-importerror-cannot-import-name-unrewindablebodyerror – Matin Zivdar Nov 14 '22 at 20:41

0 Answers0