Skip to content

pycapnpn v 2.0.0 breaks to work - downgrade to 1.3.0 is okay

The file pyfabapi/fabapi/connect.py has issues at line 38

39     client = capnp.TwoPartyClient()
 Traceback (most recent call last):
  File "/opt/prometheus/fabaccess-exporter/main.py", line 53, in <module>
    loop.run_until_complete(main())
  File "/usr/lib/python3.11/asyncio/base_events.py", line 653, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "/opt/prometheus/fabaccess-exporter/main.py", line 36, in main
    session = await pyfabapi.fabapi.connect(bffh_host, bffh_port, bffh_user, bffh_password)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/prometheus/fabaccess-exporter/pyfabapi/fabapi/connect.py", line 39, in connect
    client = capnp.TwoPartyClient()
             ^^^^^^^^^^^^^^^^^^^^^^
  File "capnp/lib/capnp.pyx", line 2302, in capnp.lib.capnp.TwoPartyClient.__init__
  File "capnp/lib/capnp.pyx", line 1951, in capnp.lib.capnp.C_DEFAULT_EVENT_LOOP_GETTER
RuntimeError: The KJ event-loop is not running (on this thread). Please start it through 'capnp.kj_loop()'

Downgrade to 1.3.0 works!

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information