mlflow / mlflow-export-import

Apache License 2.0
110 stars 70 forks source link

Windows Typho #162

Open anogues-danone opened 6 months ago

anogues-danone commented 6 months ago

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