diff --git a/poetry/puzzle/provider.py b/poetry/puzzle/provider.py index 73f8284bef0..a0046dce2f0 100755 --- a/poetry/puzzle/provider.py +++ b/poetry/puzzle/provider.py @@ -324,7 +324,7 @@ def get_package_from_url(cls, url): # type: (str) -> Package with temporary_directory() as temp_dir: temp_dir = Path(temp_dir) file_name = os.path.basename(urlparse.urlparse(url).path) - download_file(url, temp_dir / file_name) + download_file(url, str(temp_dir / file_name)) package = cls.get_package_from_file(temp_dir / file_name)