Verify Email at Signup, error at installation (email-validator is installed)
After running pip3 install email-validator always returns an error at install.
Verify email at signup
Describe the bug
All other modules are installing. This one however, after running pip3 install email-validator always returns an error at install.
All other modules are installing. This one however, after running pip3 install email-validator always returns an error at install.
To Reproduce
Server-Auth installed
Steps to reproduce the behavior: Update Modules List
Expected behavior Expect it to install, or the error to state clearly the issue:
Additional context Debian. Use PIP3. Have been running system for 3 years.
Full Odoo Error is the following: `Error: Odoo Server Error
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_http.py", line 237, in _dispatch
result = request.dispatch()
File "/usr/lib/python3/dist-packages/odoo/http.py", line 684, in dispatch
result = self._call_function(**self.params)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 360, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/usr/lib/python3/dist-packages/odoo/service/model.py", line 94, in wrapper
return f(dbname, *args, **kwargs)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 348, in checked_call
result = self.endpoint(*a, **kw)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 913, in call
return self.method(*args, **kw)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 532, in response_wrap
response = f(*args, **kw)
File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 1393, in call_button
action = self._call_kw(model, method, args, kwargs)
File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 1381, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/usr/lib/python3/dist-packages/odoo/api.py", line 396, in call_kw
result = _call_kw_multi(method, model, args, kwargs)
File "/usr/lib/python3/dist-packages/odoo/api.py", line 383, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "/usr/lib/python3/dist-packages/odoo/http.py", line 640, in _handle_exception return super(JsonRequest, self)._handle_exception(exception) File "/usr/lib/python3/dist-packages/odoo/http.py", line 316, in _handle_exception raise exception.with_traceback(None) from new_cause File "/usr/local/lib/python3.7/dist-packages/email_validator/validate_email.py", line 10 /, # prior arguments are positional-only ^ SyntaxError: invalid syntax`
I believe this is related to the email-validator package (pip3) as I had the same error also trying to install Email Format Checker which also requires the email-validator package.
Perhaps Odoo on my server has a specific set of python PIP3 packages that are different than those installed generically into Debian, particularly from a "top level" folder, ie /
I am running Python 3.7 on the server and I see in this history on that line that the commit "before" the current one says:
# /, # not supported in Python 3.6, 3.7
(line 8 at the time)
The line in the current PIP is (line 10 in the current)
/, # prior arguments are positional-only
It looks like I need to take out the current email-validator and install the earlier one. Somewhat of a new exploration for me, but I will find how to install that one (that or perhaps try a simple # before line 10, but I think there would be more issues left.
Yes, the current version installed by pip3 is specifically for Python 3.8 only. Says so in the first line on Github.
April 23, 2023 looks that it is the 3.7 python version. Looking (in my untrained way) it seems these recent versions might be available but I need to tie them out to the dates next. 2.1.0 is not working. Earlier ones in the 1.x range also.
2.0.0.dev1, 2.0.0.dev2, 2.0.0.dev3, 2.0.0.dev4, 2.0.0, 2.0.0.post1, 2.0.0.post2, 2.1.0)
ran first: pip3 unistall email-validator then ran pip3 install email-validator==2.0.0
Got past the error at install to "Verify Email at Signup". I will test tommorrow. I will close once I get a simple test run.
There hasn't been any activity on this issue in the past 6 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. If you want this issue to never become stale, please ask a PSC member to apply the "no stale" label.