shbisson / OverPutney

An ADS-B twitterbot written in Python for use with Piaware systems with the tar1090 mapping tool.
MIT License
46 stars 7 forks source link

Error with run_tracker.sh #6

Closed ghost closed 4 years ago

ghost commented 4 years ago

./run_tracker.sh: riga 8: py3/bin/activate: File o directory non esistente

(file or directory not existent)

Can you help me solve this issue? Script goes ahead but I always find this error in the beginning. I'm using Raspbian Buster on Raspberry 3B+, thanks a lot.

ghost commented 4 years ago

Also, every flight detail will be posted but... no picture of the same, here's the log (maybe the fault is of the error in the 1st post?):

***** Restarting OverPutney 2020-10-13 21:27:40.055120086+00:00

will crop getting web page http://localhost/tar1090/ waiting for page to load... reset map: zoom in 3 times: <selenium.webdriver.remote.webelement.WebElement (session="eb6a3e1e732f1f7a814db42578fa04d1", element="934e6aae-9dc6-4308-947c-3aa315534e04")> time to create screenshot of <AirCraftData 471F8E/WZZ4KB dist=130.17767250920545 el=3.162340861971428>: number of elements found: 1 clicking on 471F8E! time to tweet!!!!!

WZZ4KB n/a n/a n/a, squawk 1000: 209.5 km away @ 11574.8 m and 3.2° from horizon, heading NE @ 938.4km/h 23:28:14. #AfterHours #WayTheHeckUpThere #FlyingFast #ADSB #dump1090 #flight #planespotting #radar #sdr #grosseto #lirs #adsbexchange

And... no image posted. I'm using package chromium-driver (chrome-driver doesn't exist in Buster).

shbisson commented 4 years ago

Check that you have pillow correctly installed for screenshots to work.

https://pillow.readthedocs.io/en/stable/installation.html

ghost commented 4 years ago

But I've already installed Pillow, I don't see errors on screen, the crop of the image is enabled too...

Here's the output checking version with 'python3 -m pip list | grep Pillow': Pillow 7.2.0

shbisson commented 4 years ago

Hmm. I notice from your log that you don't seem to be cropping and saving the screenshot. This is what I get, I see the same clicking on entry, but then the next two lines don't seem to be printed to the log file; so there's something odd happening in screenshot.py.

clicking on 06A2DF! cropping screenshot success saving screenshot: tweet.png time to tweet!!!!!

ghost commented 4 years ago

Mmmh... maybe for PNG file exists a prerequisite lib for Pillow?

kwbisch commented 4 years ago

Has anyone ever figured this out? I'm having the same trouble. Pillow appears to be installed....

chilledgecko commented 4 years ago

I have the same issue, it's not something I've had the time to look at yet. - It's on the list... I detect and tweet the plane but there is no associated image.

Just checked Pillow 8.0.1 is installed and PIL is not found. Running on Pi4 with Buster

kwbisch commented 4 years ago

I have the same issue, it's not something I've had the time to look at yet. - It's on the list... I detect and tweet the plane but there is no associated image.

Just checked Pillow 8.0.1 is installed and PIL is not found. Running on Pi4 with Buster

Everything the same here, except it's a RasPi 3 B+ running the PiAware image.

hprlange commented 3 years ago

Same probleme here.

chilledgecko commented 3 years ago

The solution is explained in issue #7. It's a tar1090 config issue.

Worked for me 👍