pitrou commented on a change in pull request #8149:
URL: https://github.com/apache/arrow/pull/8149#discussion_r501068821
##########
File path: python/pyarrow/filesystem.py
##########
@@ -431,7 +447,18 @@ def _ensure_filesystem(fs):
# In case its a simple LocalFileSystem (e.g. dask) use native arrow
# FS
elif mro.__name__ == 'LocalFileSystem':
- return LocalFileSystem.get_instance()
+ return LocalFileSystem._get_instance()
+
+ try:
+ import fsspec
Review comment:
`fsspec` seems to take some time to import, we should probably lookup
directly in `sys.modules` instead.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]