You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 2, 2024. It is now read-only.
An error is raised when trying to load a Config TOML file that 'should be working'. It comes from the fact that no storage type has been written in the Config file for Data Nodes. No issue is raised when storage_type = "pickle" are added to the Config for Data Nodes.
This is the error:
Traceback (most recent call last):
File "C:\Users\jacta\AppData\Local\R-MINI~1\envs\tp_2_1\Lib\site-packages\taipy\core\data\_data_manager.py", line 78, in __create
return cls.__DATA_NODE_CLASS_MAP[data_node_config.storage_type]( # type: ignore
~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
KeyError: None
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\Users\jacta\Desktop\Stage\Avaiga\Code\taipy-getting-started-core-git\taipy-getting-started-core\src\step_01_toml.py", line 20, in <module>
scenario = tp.create_scenario(scenario_cfg)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\jacta\AppData\Local\R-MINI~1\envs\tp_2_1\Lib\site-packages\taipy\core\taipy.py", line 437, in create_scenario
return _ScenarioManagerFactory._build_manager()._create(config, creation_date, name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\jacta\AppData\Local\R-MINI~1\envs\tp_2_1\Lib\site-packages\taipy\core\scenario\_scenario_manager.py", line 103, in _create
pipelines = [
^
File "C:\Users\jacta\AppData\Local\R-MINI~1\envs\tp_2_1\Lib\site-packages\taipy\core\scenario\_scenario_manager.py", line 104, in <listcomp>
_PipelineManagerFactory._build_manager()._get_or_create(p_config, cycle.id if cycle else None, scenario_id)
File "C:\Users\jacta\AppData\Local\R-MINI~1\envs\tp_2_1\Lib\site-packages\taipy\core\pipeline\_pipeline_manager.py", line 86, in _get_or_create
tasks = task_manager._bulk_get_or_create(pipeline_config.task_configs, cycle_id, scenario_id, pipeline_id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\jacta\AppData\Local\R-MINI~1\envs\tp_2_1\Lib\site-packages\taipy\core\task\_task_manager.py", line 57, in _bulk_get_or_create
data_nodes = _DataManagerFactory._build_manager()._bulk_get_or_create(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\jacta\AppData\Local\R-MINI~1\envs\tp_2_1\Lib\site-packages\taipy\core\data\_data_manager.py", line 57, in _bulk_get_or_create
return {
^
File "C:\Users\jacta\AppData\Local\R-MINI~1\envs\tp_2_1\Lib\site-packages\taipy\core\data\_data_manager.py", line 58, in <dictcomp>
dn_config: data_nodes.get((dn_config, owner_id)) or cls._create_and_set(dn_config, owner_id, None)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\jacta\AppData\Local\R-MINI~1\envs\tp_2_1\Lib\site-packages\taipy\core\data\_data_manager.py", line 66, in _create_and_set
data_node = cls.__create(data_node_config, owner_id, parent_ids)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\jacta\AppData\Local\R-MINI~1\envs\tp_2_1\Lib\site-packages\taipy\core\data\_data_manager.py", line 88, in __create
raise InvalidDataNodeType(data_node_config.storage_type)
taipy.core.exceptions.exceptions.InvalidDataNodeType: None
fromtaipyimportConfigimporttaipyastp# Normal function used by Taipydefdouble(nb):
returnnb*2Config.load('config.toml')
if__name__=='__main__':
# my_scenario is the id of the scenario configuredscenario_cfg=Config.scenarios['my_scenario']
# Run of the Coretp.Core().run()
# Creation of the scenario and executionscenario=tp.create_scenario(scenario_cfg)
tp.submit(scenario)
print("Value at the end of task", scenario.output.read())
Expected behavior
No error should be expected. The scenario should be created and run.
Runtime environment
Taipy Core & Config: 2.1
The text was updated successfully, but these errors were encountered:
Description
An error is raised when trying to load a Config TOML file that 'should be working'. It comes from the fact that no storage type has been written in the Config file for Data Nodes. No issue is raised when
storage_type = "pickle"
are added to the Config for Data Nodes.This is the error:
How to reproduce
config.toml file:
main.py file:
Expected behavior
No error should be expected. The scenario should be created and run.
Runtime environment
Taipy Core & Config: 2.1
The text was updated successfully, but these errors were encountered: