mlflow / mlflow-export-import

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Windows Typho

anogues-danone opened this issue · comments

It all works wekk except import

mlflow_export_import.common.MlflowExportImportException: HTTP status code: 404. Reason: Not Found. URI: https://xxxxxxxx.azuredatabricks.net\api/2.0/workspace/mkdirs. Params: {"path": "/Users/anoguesxxxxxxxx"}.

There is a backlash added which makes this crash in linux. this should be a slash / not \

This is because your file uses os.path.join

    rsp = requests.post(uri.replace("\\","/"), headers=self._mk_headers(), data=data)

http_client.py file I had to replace backlash by normal slash. I don't think you should be using the self.api_uri = os.path.join(host, api_name) in line 23