build: Reverted python-magic-bin back to python-magic.

Added special note for macOS users in README.
This commit is contained in:
Terry Geng 2022-01-16 09:23:52 -05:00
parent 6afdc78360
commit b0542b955e
2 changed files with 14 additions and 3 deletions

View File

@ -225,12 +225,23 @@ Exception: Could not find opus library. Make sure it is installed.
```
You need to install the opus codec (not embedded in all system): `apt install libopus0`
3. If you have a large amount of music files (>1000), it may take some time for the bot to boot, since
3. MacOS Users may encounter the following error:
```
ImportError: failed to find libmagic. Check your installation
```
This is caused by missing `libmagic` binaries and can be solved by
```bash
brew install libmagic
```
One may also install `python-magic-bin` instead of `python-magic`.
5. If you have a large amount of music files (>1000), it may take some time for the bot to boot, since
it will build up the cache for the music library on booting. You may want to disable this auto-scanning by
setting ``refresh_cache_on_startup=False`` in `[bot]` section and control the scanning manually by
``!rescan`` command and the *Rescan Files* button on the web interface.
4. Alpine Linux requires some extra dependencies during the installation (in order to compile Pillow):
6. Alpine Linux requires some extra dependencies during the installation (in order to compile Pillow):
```
python3-dev musl-lib libmagic jpeg-dev zlib-dev gcc
```

View File

@ -1,6 +1,6 @@
flask
yt-dlp
python-magic-bin
python-magic
Pillow
mutagen
requests