ul-gh / PiPyADC

Python classes for interfacing Texas Instruments analog-to-digital converters with the Raspberry Pi
GNU Lesser General Public License v2.1
69 stars 27 forks source link

not running in docker #29

Open badsmoke opened 3 years ago

badsmoke commented 3 years ago

hello everyone,

I would like to use this library in a docker container. spi works, you can access it in the container, the "example.py" starts without problems and also delivers values...but unfortunately only 0.0.

So I have no clue what the problem could be.

In the internet is often described a problem with wiringpi, that wiriginpi is deprecated anyway. Would it make sense to build the library on another standard, is there already a solution?

ul-gh commented 2 years ago

please have a look at the new version 2.0.1 if this is still relevant for you.

The new version uses pgpio instead of wiringpi, please look at the - updated - install instructions.

pigpio should be more compatible with Docker, as the Python implementation does not require root access any more.

Please write if this works for you.