I am running polaris from a directory that has a .env file to store other API keys. When I try to do so, the PolarisHubSettings class is trying to read from the .env file and throws the error:
ValidationError: 3 validation errors for PolarisHubSettings
is_local
Extra inputs are not permitted [type=extra_forbidden, input_value='true', input_type=str]
For further information visit https://errors.pydantic.dev/2.9/v/extra_forbidden
wandb_api_key
Extra inputs are not permitted [type=extra_forbidden, input_value='wandb_api_key_obfuscated', input_type=str]
For further information visit https://errors.pydantic.dev/2.9/v/extra_forbidden
model_name
Extra inputs are not permitted [type=extra_forbidden, input_value='model-v0', input_type=str]
For further information visit https://errors.pydantic.dev/2.9/v/extra_forbidden
This is caused by pydantic which by default does not allow extra argument.
I am going around this problem by moving directory or moving the .env file before using Polaris.
Thank you for the help!
Steps to reproduce
Write a .env file with some random stuff/ fake API keys.
Run polaris login from this folder.
Polaris version
0.7.9
Python Version
3.12.5
Operating System
MacOS
Installation
Micromamba
Description
Hello!
I am running polaris from a directory that has a
.env
file to store other API keys. When I try to do so, the PolarisHubSettings class is trying to read from the .env file and throws the error:This is caused by pydantic which by default does not allow extra argument.
I am going around this problem by moving directory or moving the .env file before using Polaris.
Thank you for the help!
Steps to reproduce
Write a
.env
file with some random stuff/ fake API keys. Runpolaris login
from this folder.Additional output