elad-bar / DahuaVTO2MQTT

Listens to events from Dahua VTO unit and publishes them via MQTT Message
103 stars 39 forks source link

use on rpi3 #17

Open toroff opened 3 years ago

toroff commented 3 years ago

Can I use on rpi3 without Hassio? When I install on docker I see error standard_init_linux.go:211: exec user process caused "exec format error"

elad-bar commented 3 years ago

Please check again, should work now, Thanks

toroff commented 3 years ago

hi. Install now. I see error standard_init_linux.go:219: exec user process caused: exec format error

toroff commented 3 years ago

can you help me?

elad-bar commented 3 years ago

@toroff, I read about it a bit and apply the fix suggested in few forums, if you are working on the docker version (not hassio addon), please try and let me know if it works for you

thanks

toroff commented 3 years ago

I use on docker. not work

toroff commented 3 years ago

standard_init_linux.go:219: exec user process caused: exec format error

toroff commented 3 years ago

you help me?

elad-bar commented 3 years ago

Still didn't manage to solve it

Pmachat commented 3 years ago

Hello, i've the same problem with my RPI3 with Docker, same error on line 219

wsslfnstr commented 3 years ago

I got the same error too.

Anzic23 commented 2 years ago

just leave it her Dockerfile.zip

docker build -t d2mqtt .
docker run -d --name d2mqtt -t d2mqtt

Linux raspberrypi 5.10.17-v7l+ #1421 SMP Thu May 27 14:00:13 BST 2021 armv7l GNU/Linux

image

matlab22 commented 2 years ago

I am not able to run it on my RP4:

Step 1/15 : FROM python:3.9

 ---> 355c3062baa7

Step 2/15 : WORKDIR /app

 ---> Running in 860fff97df34

Removing intermediate container 860fff97df34

 ---> 4ea6ea9e7975

Step 3/15 : COPY *.py ./

 ---> 831f22d9db74

Step 4/15 : RUN pip install paho-mqtt requests

 ---> Running in 457da1a9d1ee

Fatal Python error: init_interp_main: can't initialize time
Python runtime state: core initialized
PermissionError: [Errno 1] Operation not permitted

Current thread 0xb6f0e010 (most recent call first):
<no Python frame>

The command '/bin/sh -c pip install paho-mqtt requests' returned a non-zero code: 1

is there any way to make it work?