New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
app.language has no attribute languages #262
Comments
I tried this one and when i execute the python main.py nothing is happening. i change the line 58 and 68 on init.py file |
Has there been any progress on this? I am having the same error did the same thing and it did not work... |
This issue seems to still be here (unless anyone has found another fix?), neither of the attempted solutions above work for me. |
I have the same error message however the api works correctly.
|
Do you mean that even with the error, it still processes requests? Does it translate even with that or is it just that the api server boots up? |
The api works fully even with this error on my side, the message must be irrelevant but I'll look into detail when I have time. |
I'm also receiving this error, any progress on it? Web UI works but I receive the error when trying to translate : If I dismiss the error I get the following: |
I can't seem to reproduce it on my machine:
|
I suspect these issues have been fixed since I can't reproduce them with the latest version. If the issues persist, feel free to re-open this? 🙏 |
Hi!
I'm launching the app with these options:
--load-only es,en,fr --disable-web-ui
but the models don't update: I get the following message:As the message says,
app.language
has no attributelanguages
, but still it is accessed ininit.py
, lines 58 and 68.I haven't found any other place where
app.language.languages
is used, viagrep -nr "app.language.languages"
andgrep -nr "from app.language"
so I guessed that maybe those lines were meant to accessapp.language.__languages
. However changing those lines to useapp.language.__languages
only changes the error to:I understand that this happens because the line 58, that would assign
app.language.__languages
a value, is never executed and line 68 tries to iterate through its default value:None
.Some solutions I came up with:
app.language.__languages
instead ofapp.language.languages
and set the default value ofapp.language.__languages
to[]
instead ofNone
. I don't think this is a good idea, though.app.language.languages
variable with default value[]
. Short solution, not sure if the best.What do you think? I'm missing something? If you tell me one of those is OK I'll open a PR.
Thank you
The text was updated successfully, but these errors were encountered: