@eddiee
This code works for me. I can give you ideas on what to try.
Update the qnt library or reinstall.
If it doesn't help, clone the repository
https://github.com/quantiacs/toolbox
git clone https://github.com/quantiacs/toolbox.git
run
qnt/examples/005-01-optimizer.py
and other examples.
You may need to specify API_KEY
You might be able to see exactly where the error occurs in the code.
And you can modify the library code by adding logging for optimize_strategy