mariadb do not do this

This commit is contained in:
Philip Sargent
2022-06-25 16:41:53 +03:00
parent 9398ba0bf0
commit 4012b251d4

View File

@@ -446,20 +446,23 @@ DATABASE = {
</pre>
<h4>But it still does not work</h4>
<p>That is because we need to install the python tools that talk to mariadb.
<p>That is because we need to install the python tools that talk to mariadb. And while it 'will just work' for python3.9, the standard installed on the distro, with python3.10 it is a bit more work.
but note that there is a problem with using python 3.10 in that some bits of pip are not correct and you will get a
<var>ImportError: cannot import name 'html5lib'</var> error.
[Currently under investigation, June 2022] TEMPORARILY use this hack from bootstrap:
<var>ImportError: cannot import name 'html5lib'</var> error.
TEMPORARILY use this hack from bootstrap:
<pre>
curl -sS https://bootstrap.pypa.io/get-pip.py | python3.10
pip install mysql-connector-python
</pre>
installs the correct pip for python3.10 on Ubuntu. Which works, then
<pre>
sudo apt-get install python3.10-dev
sudo apt install libmariadbclient-dev
pip install mariadb
</pre>
which still fails. Hmph.
wwhich now has installed mariadb python stuff, but seems to have trashed my django installattion. Hmph. And pip.
<hr />
Go on to: <a href="trogarch.html">Troggle architecture</a><br />