AssemblyAI-Community/MinImagen

Error when changing dependencies

jacobastern opened this issue · 0 comments

I was downgrading the numpy version to 1.21.6 to be compatible with Python 3.8, so that I could run this on Google Colab, and got this error when trying to install this package with the updated dependencies:

Looking in indexes: https://pypi.org/simple, https://us-python.pkg.dev/colab-wheels/public/simple/
Obtaining file:///content/minimagen
WARNING: Discarding file:///content/minimagen. Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

The problem is in this line of setup.py.

with open('requirements.txt', "r", encoding="utf-16") as f:

Most programs save text files in utf-8 format, resulting in an install error when requirements.txt is updated and saved in utf-8 format. The solution is to change the existing utf-16 requirements.txt to utf-8 format, and change the setup.py line to:

with open('requirements.txt', "r", encoding="utf-8") as f: