Looks like it's an incompatibility with mysqlclient 2.1 and MySQL.
Technically, a compatibility change/workaround that was removed. We'll be
making a change in Review Board 4.0.5 to the dependency to cap it, but for
now, both of you can try:

    pip3 install "mysqlclient~=2.0"

(Use pip3 or pip3.9 or whatever is appropriate for your setup.)

Restart your web server, and things should work again.

Christian

On Tue, Dec 28, 2021 at 8:35 AM Franco Sabini <[email protected]>
wrote:

> Hello,
> apparently the issue was that we have mysql 8 installed on our host.
> Is there any way to have reviewboard working with that version ?
>
> thanks
> Franco
>
>
> Il giorno martedì 28 dicembre 2021 alle 16:02:00 UTC+1 Franco Sabini ha
> scritto:
>
>> Hello,
>> I'm on RHEL 8.5 too and getting the same error.
>>
>> pip3.8 list|grep -i mysql
>> mysqlclient             2.1.0
>>
>> thanks
>> Franco
>>
>> Il giorno mercoledì 15 dicembre 2021 alle 11:42:50 UTC+1 Christian
>> Hammond ha scritto:
>>
>>> Looks like it's trying to access something from the MySQLdb module that
>>> isn't available on your install.
>>>
>>> Can you run the following and show the results:
>>>
>>>     pip3.9 list | grep -i mysql
>>>
>>> Christian
>>>
>>> On Tue, Dec 14, 2021 at 11:26 AM Shubha Ramani <[email protected]>
>>> wrote:
>>>
>>>> I am using RHEL 8 (8.5)
>>>> Unfortunately a very old mysql db server 5.7.18 MySQL Community Server
>>>> Had to change the /etc/openssl.conf to handle TLS version 1.0
>>>> ReviewBoard-4.0.4-venv/bin/rb-site install succeeded.
>>>>
>>>> I'm getting:
>>>> Something broke! (Error 500)
>>>>
>>>> It appears something broke when you tried to go to here. This is either
>>>> a bug in Review Board or a server configuration error. Please report this
>>>> to your administrator.
>>>> However
>>>>  ReviewBoard-4.0.4-venv/bin/rb-site /webapp/reviewboard/site_prod/
>>>> list-siteconfig
>>>> produces:
>>>>   File
>>>> "/webapp/PYTHON_VENVS/ReviewBoard-4.0.4-venv/lib/python3.9/site-packages/django/db/models/sql/compiler.py",
>>>> line 887, in execute_sql
>>>>     cursor = self.connection.cursor()
>>>>   File
>>>> "/webapp/PYTHON_VENVS/ReviewBoard-4.0.4-venv/lib/python3.9/site-packages/django/db/backends/base/base.py",
>>>> line 254, in cursor
>>>>     return self._cursor()
>>>>   File
>>>> "/webapp/PYTHON_VENVS/ReviewBoard-4.0.4-venv/lib/python3.9/site-packages/django/db/backends/base/base.py",
>>>> line 229, in _cursor
>>>>     self.ensure_connection()
>>>>   File
>>>> "/webapp/PYTHON_VENVS/ReviewBoard-4.0.4-venv/lib/python3.9/site-packages/django/db/backends/base/base.py",
>>>> line 213, in ensure_connection
>>>>     self.connect()
>>>>   File
>>>> "/webapp/PYTHON_VENVS/ReviewBoard-4.0.4-venv/lib/python3.9/site-packages/django/db/backends/base/base.py",
>>>> line 189, in connect
>>>>     self.connection = self.get_new_connection(conn_params)
>>>>   File
>>>> "/webapp/PYTHON_VENVS/ReviewBoard-4.0.4-venv/lib/python3.9/site-packages/django/db/backends/mysql/base.py",
>>>> line 276, in get_new_connection
>>>>     conn.encoders[SafeBytes] = conn.encoders[bytes]
>>>> KeyError: <class 'bytes'>
>>>>
>>>> --
>>>> Supercharge your Review Board with Power Pack:
>>>> https://www.reviewboard.org/powerpack/
>>>> Want us to host Review Board for you? Check out RBCommons:
>>>> https://rbcommons.com/
>>>> Happy user? Let us know! https://www.reviewboard.org/users/
>>>> ---
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Review Board Community" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to [email protected].
>>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/reviewboard/7029df4f-6442-41c6-88ef-24ddf28c83een%40googlegroups.com
>>>> <https://groups.google.com/d/msgid/reviewboard/7029df4f-6442-41c6-88ef-24ddf28c83een%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>>
>>>
>>> --
>>> Christian Hammond
>>> President/CEO of Beanbag <https://www.beanbaginc.com/>
>>> Makers of Review Board <https://www.reviewboard.org/>
>>>
>> --
> Supercharge your Review Board with Power Pack:
> https://www.reviewboard.org/powerpack/
> Want us to host Review Board for you? Check out RBCommons:
> https://rbcommons.com/
> Happy user? Let us know! https://www.reviewboard.org/users/
> ---
> You received this message because you are subscribed to the Google Groups
> "Review Board Community" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/reviewboard/3cb7a8b6-8501-4c18-847e-36b0eb6f3f1fn%40googlegroups.com
> <https://groups.google.com/d/msgid/reviewboard/3cb7a8b6-8501-4c18-847e-36b0eb6f3f1fn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Christian Hammond
President/CEO of Beanbag <https://www.beanbaginc.com/>
Makers of Review Board <https://www.reviewboard.org/>

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"Review Board Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/reviewboard/CAE7Vndn8hf0z8Tg0Whf-DYGv_FWrcrVx4m57%2BQvURqjARoRKvg%40mail.gmail.com.

Reply via email to