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
315 stars 103 forks source link

[Storage] Error when instanciating Storage class #1378

Closed kikemolina3 closed 2 months ago

kikemolina3 commented 2 months ago

Hello,

When I try to instantiate Storage class, I find that problem. The lithops.monitoring_interval config value is optional, but in last stable version (3.4.1) and also in 3.4.2.dev0, I need to define it or the program fails.

>>> python3
Python 3.10.14 (main, May  6 2024, 19:42:50) [GCC 11.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import lithops
>>> print(lithops.__version__)
3.4.1
>>> from lithops import Storage
>>> Storage()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/manri-urv/miniconda3/envs/dagium/lib/python3.10/site-packages/lithops/storage/storage.py", line 58, in __init__
    self.config = extract_storage_config(storage_config)
  File "/home/manri-urv/miniconda3/envs/dagium/lib/python3.10/site-packages/lithops/config.py", line 229, in extract_storage_config
    s_config['monitoring_interval'] = config['lithops']['monitoring_interval']
KeyError: 'monitoring_interval'

Regards,