# Klippy Internal Error on Startup w/ HX71x Config

**URL:** <https://klipper.discourse.group/t/klippy-internal-error-on-startup-w-hx71x-config/18639>\
**Category:** General Discussion\
**Created:** [September 3, 2024, 9:08pm UTC](https://klipper.discourse.group/t/klippy-internal-error-on-startup-w-hx71x-config/18639 "2024-09-03T21:08:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![alch3my](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/alch3my/32/14170_2.png) [@alch3my](https://klipper.discourse.group/u/alch3my)\
**Post date:** [September 3, 2024, 9:08pm UTC](https://klipper.discourse.group/t/klippy-internal-error-on-startup-w-hx71x-config/18639/1 "2024-09-03T21:08:25Z")

</div>

### Basic Information:

Printer Model: None  
 MCU / Printerboard: None (Host) or SKR1.3  
 Host / SBC: Raspberry Pi 3B+  
 [klippy.log](https://klipper.discourse.group/uploads/short-url/8NHgqm2TQKHq4CcGvhrTuqTw9ew.log) (19.1 KB)

As a test bench, I setup a Raspberry Pi as the sole MCU for a non-printer related project. I created a bare-bones config that started up fine, displaying the Pi temperature on the Fluidd frontend.

Defining an HX71x load cell sensor, however, results in the following error on start up (from attached log):

```auto
[load_cell]
sensor_type = hx711
sclk_pin = gpio22
dout_pin = gpio27
sample_rate = 10
=======================
Unhandled exception during connect
Traceback (most recent call last):
  File "/home/hts/klipper/klippy/klippy.py", line 130, in _connect
    self._read_config()
  File "/home/hts/klipper/klippy/klippy.py", line 123, in _read_config
    self.load_object(config, section_config.get_name(), None)
  File "/home/hts/klipper/klippy/klippy.py", line 112, in load_object
    self.objects[section] = init_func(config.getsection(section))
  File "/home/hts/klipper/klippy/extras/load_cell.py", line 27, in load_config
    return LoadCell(config, sensor_class(config))
  File "/home/hts/klipper/klippy/extras/hx71x.py", line 150, in __init__
    super(HX711, self). __init__ (config, "hx711",
TypeError: super() argument 1 must be type, not classobj

```

Defining an `ads1220` sensor type does not through this error, only HX711 and HX717.

I thought it might be an edge case with my bare bones setup, so I added the same `[load_cell]` config section to my long-running printer with a conventional host + MCU setup, and it threw the same error on start up.

Anybody have any ideas? Any help would be appreciated 🙂

---

<div class="post-metadata">

**Author:** ![koconnor](https://avatars.discourse-cdn.com/v4/letter/k/aca169/32.png) [@koconnor](https://klipper.discourse.group/u/koconnor)\
**Post date:** [September 4, 2024, 2:15am UTC](https://klipper.discourse.group/t/klippy-internal-error-on-startup-w-hx71x-config/18639/2 "2024-09-04T02:15:52Z")

</div>

Thanks. Hopefully fixed with [Fix hx71x on python2 by KevinOConnor · Pull Request #6678 · Klipper3d/klipper · GitHub](https://github.com/Klipper3d/klipper/pull/6678)

-Kevin

---

<div class="post-metadata">

**Author:** ![alch3my](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/alch3my/32/14170_2.png) [@alch3my](https://klipper.discourse.group/u/alch3my)\
**Post date:** [September 4, 2024, 3:57am UTC](https://klipper.discourse.group/t/klippy-internal-error-on-startup-w-hx71x-config/18639/3 "2024-09-04T03:57:09Z")

</div>

Thank you, Kevin. I will test the PR on my rigs tomorrow and report back.

Edit: @koconnor it takes the config without issue now. Thanks!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/klipper/original/1X/64419bf2aac6639e6ef5cef200dcd456b0a01ac3.png) [@system](https://klipper.discourse.group/u/system)\
**Post date:** [October 4, 2024, 1:57pm UTC](https://klipper.discourse.group/t/klippy-internal-error-on-startup-w-hx71x-config/18639/4 "2024-10-04T13:57:44Z")

</div>

Closed on October 4, 2024, 1:57pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
