Skip to content

Commit 950731d

Browse files
author
Martin Durant
committed
fix when no version
1 parent 1b9ef92 commit 950731d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fsspec/spec.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import logging
33
import os
44
import warnings
5-
from distutils.version import LooseVersion
65
from errno import ESPIPE
76
from hashlib import sha256
87
from glob import has_magic
@@ -12,6 +11,7 @@
1211
from .utils import (
1312
read_block,
1413
tokenize,
14+
loose_version,
1515
stringify_path,
1616
other_paths,
1717
get_package_version_without_import,
@@ -79,7 +79,7 @@ def __call__(cls, *args, **kwargs):
7979

8080

8181
pa_version = get_package_version_without_import("pyarrow")
82-
if LooseVersion(pa_version) < LooseVersion("2.0"):
82+
if pa_version and loose_version(pa_version) < loose_version("2.0"):
8383
import pyarrow as pa
8484

8585
up = pa.filesystem.DaskFileSystem

0 commit comments

Comments
 (0)