Kardbord / Kard-bot

A Discord bot destined for greatness
GNU Affero General Public License v3.0
1 stars 0 forks source link

linux/arm/v7 docker image #70

Closed Kardbord closed 1 year ago

Kardbord commented 1 year ago

I had a hell of a time getting /dalle-flow working in an arm v7 docker image due to python dependency issues. Just want to document the solution somewhere.

The jina library required by dalle-flow.py has dependencies on the cryptography module. This turned out to be an issue, because there is no precompiled wheel for that module that can be installed for an arm v7 system. At least, not wherever pip is configured to look by default.

The solution ended up being to configure pip to check piwheels.org for wheels, rather than whatever the default was. This was accomplished by writing the following to /etc/pip.conf prior to running the pip install command.

[global]
extra-index-url=https://www.piwheels.org/simple

Solution added in 8585621.

For reference, the issue that led me to the solution was https://github.com/matrix-org/synapse/issues/9403.

See also #69. It is still relevant.