lithops-cloud / lithops

A multi-cloud framework for big data analytics and embarrassingly parallel jobs, that provides an universal API for building parallel applications in the cloud ☁️🚀
http://lithops.cloud
Apache License 2.0
317 stars 105 forks source link

[BUG][master] 'LocalhostStorageBackend' object has no attribute 'create_bucket' #1073

Closed bystepii closed 1 year ago

bystepii commented 1 year ago

Unable to create LocalhostExecutor() using master branch:

>>> import lithops
>>> f = lithops.LocalhostExecutor()
2023-02-28 16:47:37,855 [INFO] config.py:141 -- Lithops v2.9.1.dev0
2023-02-28 16:47:37,859 [INFO] localhost.py:39 -- Localhost storage client created
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "[...]/lithops/lithops/executors.py", line 730, in __init__
    super().__init__(
  File "[...]/lithops/lithops/executors.py", line 134, in __init__
    self.internal_storage = InternalStorage(storage_config)
  File "[...]/lithops/lithops/storage/storage.py", line 309, in __init__
    self.storage.create_bucket(self.bucket)
  File "[...]/lithops/lithops/storage/storage.py", line 94, in create_bucket
    return self.storage_handler.create_bucket(bucket)
AttributeError: 'LocalhostStorageBackend' object has no attribute 'create_bucket'

See e9417b1c line 94.