mlflow / mlflow-export-import

Apache License 2.0
139 stars 87 forks source link

Windows Typho #162

Open anogues-danone opened 10 months ago

anogues-danone commented 10 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