endail / hx711-rpi-py

Python bindings for Raspberry Pi HX711 C++ Library
MIT License
11 stars 4 forks source link

Cannot run calibrate.py #11

Closed PeturCh closed 7 months ago

PeturCh commented 7 months ago

When trying to execute the script I got an error for missing HX711 library, after installing it (and RPi.GPIO) it still fails with

python3 calibrate.py 21 20
Traceback (most recent call last):
  File "/home/gambit/HX711_test/hx711_pri_py/calibrate.py", line 12, in <module>
    hx = SimpleHX711(int(sys.argv[1]), int(sys.argv[2]), 1, 0)
         ^^^^^^^^^^^
NameError: name 'SimpleHX711' is not defined

Am I installing something different and can you provide some fix of this?

PeturCh commented 7 months ago

Sorry about that, I had to just install your hx711 and not the one from pip install. Many thanks as I've been strugling to run with the official because of some Statistics erros.