Closed ddelange closed 8 months ago
cc @mpenkov this error was raised when importing smart_open on a smart_open[azure]
container.
hmm, now we're getting
smart_open/transport.py:22: in <module>
_REGISTRY = {NO_SCHEME: smart_open.local_file}
E AttributeError: partially initialized module 'smart_open' has no attribute 'local_file' (most likely due to a circular import)
What would be the proper fix?
edit: 252430c
is there a point in time where we can test import smart_open
before any optional deps are installed? to catch this case?
edit: 947bbe0
Fixes #804
Thank you @ddelange !
Title
Raise a proper S3 import exception (leftover from #785).
Motivation
Leftover from #785, not raising the proper Exception anymore:
Tests
Work in progress
Checklist
Before you create the PR, please make sure you have:
Workflow