kevinabrandon / AboveTustin

ADS-B Twitter Bot. Uses dump1090-mutability to track airplanes and then tweets whenever an airplane flies overhead.
MIT License
72 stars 21 forks source link

Pillow not found #35

Open gonzalu opened 5 years ago

gonzalu commented 5 years ago

I can't seem to get Cropping to work. ALWAYS returns error that Pillow not found.

Verified and confirmed and even uninstalled/reinstalled Pillow which is a fork of PIL. Should work. I also tried forcing install of PIL but it fails on my Stretch install of Raspberry Pi.

Any help would be greatly appreciated.

BTW... IT TWEETS!!!!!!!!!!!!! :) Love this Bot. Now to fix the remaining issue with Crops

Thank you...

gonzalu commented 5 years ago

https://www.twitter.com/ThrustImages

gonzalu commented 5 years ago

More troubleshooting, now fixed ...

Run Python In the Python3 console type from PIL import Image

if you get an error, it could be that the Libopen is not installed

from PIL import Image Traceback (most recent call last): File "", line 1, in File "/usr/local/lib/python3.5/dist-packages/PIL/Image.py", line 64, in from . import _imaging as core ImportError: libopenjp2.so.7: cannot open shared object file: No such file or directory from PIL import Image Traceback (most recent call last): File "", line 1, in File "/usr/local/lib/python3.5/dist-packages/PIL/Image.py", line 64, in from . import _imaging as core ImportError: libopenjp2.so.7: cannot open shared object file: No such file or directory

So, we install the missing module

`sudo apt-get install libopenjp2-7'

Now when you run the above command, it should return >>>

kevinabrandon commented 5 years ago

Awesome that you got your bot online and tweeting! Just followed you. Was the libopenjp2-7 dependency the only problem?

gonzalu commented 5 years ago

While I am a complete n00b, I am going to say yes, but also did some work before it that may or may not have had an impact... mainly Pillow related shenanigans :) Just basically continued to follow errors until resolved each ... but getting Python and dependencies working was the final trick :)

Now to play with options!!

THANK you so much. This is so awesome!

On Mon, Nov 12, 2018 at 2:02 AM Kevin Brandon notifications@github.com wrote:

Awesome that you got your bot online and tweeting! Just followed you. Was the libopenjp2-7 dependency the only problem?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kevinabrandon/AboveTustin/issues/35#issuecomment-437776103, or mute the thread https://github.com/notifications/unsubscribe-auth/Ae2avoE4DhBoFos9-U5SxeyOimBUf6Oiks5uuRungaJpZM4YYpK_ .

-- Manny Gonzalez

gonzalu commented 5 years ago

https://www.twitter.com/ThrustImages

Changed a few things. Using the Jestre fork:

Changed x updates to 50 for a longer trail past my position. Changed the Tracker script to 300 seconds so it doesn't spam Twitter Changed the highlight overlay to upper left corner as most of my traffic is lower right (JFK, LGA)

Thanks everyone for support.

Now to see how to get it working with VRS. It is failing badly with VRS running under mono in RPi. I assume it is due to how long the darn thing takes to load the main web page. It is definitely a lot slower than on Windows!