Skip to content
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

Error activating Enable translation #11

Open
xuxurlatzeko opened this issue Apr 6, 2023 · 8 comments
Open

Error activating Enable translation #11

xuxurlatzeko opened this issue Apr 6, 2023 · 8 comments

Comments

@xuxurlatzeko
Copy link

Hi:

I want to try this extension but after following the steps it gives me the following error:

"Building translator
Loading generator (this may take few minutes the first time as I need to download the model)
Loading tokenizer
(...)
TypeError: Descriptors cannot not be created directly.
If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.
If you cannot immediately regenerate your protos, some other possible workarounds are:

  1. Downgrade the protobuf package to 3.20.x or lower.
  2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).

More information: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates"

Can you help me? Thank you

@ParisNeo
Copy link
Owner

ParisNeo commented Apr 6, 2023

Ah, which python are you running on?
Generally, reinstalling the webui solves those problems. The other way is simply to downgrade your protobuf to 3.20.x.

@xuxurlatzeko
Copy link
Author

I have python 3.10.6

image

@ParisNeo
Copy link
Owner

ParisNeo commented Apr 6, 2023

mine is 3.10.0.
and protobuf : 3.20.0
It seams that the problem is protobuf. Try to downgrade it using pip install protobuf==3.20.0

Whish you luck.

Sorry I have to sleep, it is late here in France.
Good night.

@xuxurlatzeko
Copy link
Author

Thanks Parisneo.

I'll try it!

Sleep well

@zhanghongyong123456
Copy link

mine is 3.10.0. and protobuf : 3.20.0 It seams that the problem is protobuf. Try to downgrade it using pip install protobuf==3.20.0

Whish you luck.

Sorry I have to sleep, it is late here in France. Good night.

protobuf version should not be set, I found that other mods automatically upgrade because protobuf version is low,Is there any other way

@ParisNeo
Copy link
Owner

Sorry, in general when I have a protobuf problem I downgrade to the good version and it works

@zhanghongyong123456
Copy link

Sorry, in general when I have a protobuf problem I downgrade to the good version and it works

yes,it is work,but when i use dreambooth,protubuf update new version

@ParisNeo
Copy link
Owner

Ah that sucks. I don't see immediate solution i'll think of it later as i am full on the gpt4all-ui project and literally have no time for something else.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants