Closed bdseal closed 2 years ago
@bdseal
What version of click do you have?
This similar issue is solved by removing type=bool
from the option declaration.
Though from the stack trace it seems like you've tried that.
@rotemtzaban thank you for your prompt response. I have googled and tried that but it didn't work for me. Alternatively, I run the codes using google colab.
@bdseal
Are you simply running the scripts with Google Colab? I haven't tried it but I would expect it to work.
Can you check the version of click you have, say with running pip freeze | grep click
?
Maybe even try to upgrade click to the latest version if possible.
I can also try later to check the notebook myself, If you want to send me a copy I'll try to look over it
Sorry for the misunderstanding. The error occured when I tried to run the codes on our lab server. I successfully run the codes on Google Colab.
The version of Click is 7.0, Python 3.7. I have also tried pytorch 1.7 and 1.10, same error.
@bdseal
Oh OK, Thanks for the clarification, glad to know it works well on Colab.
I've reproduced the issue on my server with click==7.0, and it seems to be fixed by removing all the type=bool
from flag options.
e.g. make sure to remove it from the use_dlib and use_locality_reg flags as well.
Alternatively, upgrading click to 7.1 or higher also seems to work for me
Thanks. Considering that #7 is also caused by the package version, it might be helpful to add a requirements.txt.
Besides, this is a simple Colab notebook I used. Maybe it would be helpful for those who want to try STIS on Colab like me before you released the official one.
Got an error. Anyone knows how to fix this?