Cir0X / PiCamBot

Telegram Raspberry Pi Camera Bot
2 stars 0 forks source link

Execution failed for task ':run'. #1

Closed wojciecholszewski closed 7 years ago

wojciecholszewski commented 7 years ago

BUILD FAILED

Cir0X commented 7 years ago

Hi, thanks for reporting the issue. Could you provide some additional information?

As a workaround I've just made a release with a jar.
You can pull it with:

wget https://github.com/Cir0X/PiCamBot/releases/download/1.0-SNAPSHOT/PiCamBot-1.0-SNAPSHOT-all.jar

and then execute it with:

java -jar PiCamBot-1.0-SNAPSHOT-all.jar
wojciecholszewski commented 7 years ago

Hi!

Q: Did you use the gradle wrapper to run the project or your locally installed gradle version? A: I followed your instruction.

Q: Which Pi Version do you use? A: 3B

Q: Which camera version do you use? A: USB camera for PS3. Works great with Motion

Q: Which linux distribution are you using? A: Raspbian GNU/Linux 8 (jessie)

What's the output of uname -a A: Linux raspberrypi 4.4.21-v7+ #911 SMP Thu Sep 15 14:22:38 BST 2016 armv7l GNU/Linux

I tried use your jar:

pi@raspberrypi:~ $ java -jar PiCamBot-1.0-SNAPSHOT-all.jar PiCamBot for Telegram Exception in thread "main" org.telegram.telegrambots.exceptions.TelegramApiRequestException: Error removing old webhook: [404] Not Found at org.telegram.telegrambots.bots.TelegramLongPollingBot.clearWebhook(TelegramLongPollingBot.java:50) at org.telegram.telegrambots.TelegramBotsApi.registerBot(TelegramBotsApi.java:120) at MainKt.main(Main.kt:8)

Cir0X commented 7 years ago

Hi, as mentioned in the readme the PiCamBot takes photos with the Pi Camera Module V2 (v1 probably works too), but USB Cameras are currently not supported.