Hi there,
I downloaded the code for the SBTI finance tool from GitHub and also downloaded the scripts from Google Collab. I tried to run the second script "2_quick_temp_score_calculation" and I get the following error:
Traceback (most recent call last):
File "C:\Users\lukas.schiele\Desktop\SBTi-finance-tool-main\2_quick_temp_score_calculation.py", line 79, in
companies = SBTi.utils.dataframe_to_portfolio(df_portfolio)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\lukas.schiele\Desktop\SBTi-finance-tool-main\SBTi\utils.py", line 196, in dataframe_to_portfolio
return [
^
File "C:\Users\lukas.schiele\Desktop\SBTi-finance-tool-main\SBTi\utils.py", line 197, in
PortfolioCompany.model_validate(company)
File "C:\Users\lukas.schiele\Desktop\pythonprojects\SBTi-finance-tool-main\Lib\site-packages\pydantic\main.py", line 496, in model_validate
return cls.pydantic_validator.validate_python(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
pydantic_core._pydantic_core.ValidationError: 1 validation error for PortfolioCompany
user_fields
Field required [type=missing, input_value={'company_name': 'Company...ngagement_target': True}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.1/v/missing
Process finished with exit code 1
What do I need to do to resolve this error?
Hi there,
I downloaded the code for the SBTI finance tool from GitHub and also downloaded the scripts from Google Collab. I tried to run the second script "2_quick_temp_score_calculation" and I get the following error:
Traceback (most recent call last):
File "C:\Users\lukas.schiele\Desktop\SBTi-finance-tool-main\2_quick_temp_score_calculation.py", line 79, in
companies = SBTi.utils.dataframe_to_portfolio(df_portfolio)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\lukas.schiele\Desktop\SBTi-finance-tool-main\SBTi\utils.py", line 196, in dataframe_to_portfolio
return [
^
File "C:\Users\lukas.schiele\Desktop\SBTi-finance-tool-main\SBTi\utils.py", line 197, in
PortfolioCompany.model_validate(company)
File "C:\Users\lukas.schiele\Desktop\pythonprojects\SBTi-finance-tool-main\Lib\site-packages\pydantic\main.py", line 496, in model_validate
return cls.pydantic_validator.validate_python(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
pydantic_core._pydantic_core.ValidationError: 1 validation error for PortfolioCompany
user_fields
Field required [type=missing, input_value={'company_name': 'Company...ngagement_target': True}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.1/v/missing
Process finished with exit code 1
What do I need to do to resolve this error?