hello! I just updated my viktor-cli from v0.10.0 to v0.23.2, and used viktor-cli configure
next. The following error popped up when I used viktor-cli check-system
: Exciting because of an error: toml: type mismatch for cmd.userConfiguration: expected table but found int64
. I guess the .env file has been replaced by single configuration file, so maybe this might cause my problem? Thanks for you help!
Hi Merijn, welcome to the community!
You are right, the .env
file has been replaced by a configuration
file. Could you please inspect the configuration
file located in C:\Users\<USER>\.viktor\configuration
and show us the structure of the file?
Please remove the value of viktor_token
(and others if you wish) before sharing!
It should look something like this:
version = 1
active = "default"
[accounts]
[accounts.default]
isolation_mode = ...
python_path = ...
viktor_env = ...
viktor_dev = ...
viktor_token = ...
Kevin
Hi Kevin,
It indeed exactly looks like that:
version = 1
active = "default"
[accounts]
[accounts.default]
isolation_mode = "venv"
python_path = "C:\\Python39"
viktor_env = "boskalis.viktor.ai"
also a viktor_dev
(my e-mail) and viktor_token
are defined
also a credentials file is in the same folder
Do you also still see a credentials
file in the same directory?
yes, I do? Should I delete it?
You can safely delete it (it contains the values which are now present in configuration
), the upgrade did somehow not manage to delete it.
yes, that solved the issue! Thanks a lot!