[Storage] Error when instanciating Storage class
kikemolina3 opened this issue · 0 comments
kikemolina3 commented
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,