Closed Gamerns10s closed 1 month ago
Hi. You do not have FreeType2 support setup for Pillow, on what I believe is your Android device.
How did you install Pillow? I suggest running apt-get install libfreetype6-dev
and then installing Pillow again. If that doesn't work, could you copy and paste the command and output when you are installing Pillow?
Pillow was installed automatically because it was mentioned in the requirement file . Now before running the mentioned command I uninstalled pillow and then run the command you told but it gives me this error
Ah. Ok, try apt-get install freetype-dev
instead.
Next attempt.
apt-get update
apt-get install freetype-dev
python -m pip install Pillow
I just uninstalled termux and then reinstalled and cloned the bot once again but still it's the same Mere
Hmm, I think the error message is actually right. Try this?
apt-get install freetype
python -m pip install Pillow
Freetype was installed but pillow gave another error
apt-get install libjpeg-turbo zlib
It was installed successfully what should I do next
Maybe everything related to pillow is fixed now but got another one which I think is of the main code
That looks like an error in your own code, not Pillow.
It looks like fortnite-api.com isn't returning the data that the script expects.
If you would like to try and just make this work, you could change line 94 of bot.py to
if i.get('newDisplayAsset') != None:
However, there might be a bigger underlying problem that causes other issues as well. I suggest you update your question at https://github.com/FortniteFevers/Fortnite-Shop-Bot/issues/6
This above command didn't worked instead in the line 94 their was an extra space before the last bracket I removed it and that error got fixed but another one came stating about image development π
The key part of your error is
image file could not be identified because WEBP support not installed
Install webp, and then install Pillow again.
python -m pip uninstall Pillow
apt-get install webp
python -m pip install Pillow
Oh, sorry, libwebp
python -m pip uninstall Pillow
apt-get install libwebp
python -m pip install Pillow
It's already installed
When I tried doing pip install webp
I don't think pip install webp
is going to help. Instead, I have three ideas.
Try installing Pillow without the cache - python -m pip install Pillow --no-cache-dir
. Clearing the cache worked for someone else at https://github.com/termux/termux-packages/issues/11212
If libwebp is installed, then webp/encode.h
and libwebp.so
or webp.so
should exist on your device, it's just that Pillow can't find them. Can you find them?
If you can find webp/encode.h
at /opt/local/include
for example,
and libwebp.so
at /opt/local/lib
for example,
then you can run
CFLAGS="-L/opt/local/lib -I/opt/local/include" python -m pip install Pillow
apt-get install python-pillow
Thank you so much bro I did the first and the third step you stated and everything is working now Thank you so much brother ππ
What did you do?
Running a bit to post images to twitter
What did you expect to happen?
It should have made images by receiving data from api
What actually happened?
It's receiving data but can't make images
What are your OS, Python and Pillow versions?
Termux with every module at its latest version
Error ππ Orignal codeππ