2D Barcode Scanner Build Error

I’ve been trying to get the DE2120 2D Barcode Scanner to work with the demo scripts in the github:

I have been through the installation instructions, but I am unable to install the package file. I keep getting this error:

I am using a Raspberry Pi with Python 3.11.2. I have installed and upgraded serial, pyserial, wheels, setuptools, numpy, and m2r2. I’ve followed a couple general troubleshooting guides but I’ve been unable to get this installed.

Any help would be greatly appreciated!

This page has some more info about the error Remove support for installed `.egg` packages when using the `importlib.metadata` backend · Issue #12330 · pypa/pip · GitHub - you can try a re-install with pip3, or you can just download the package directly here 2D Barcode Scanner Breakout Hookup Guide - SparkFun Learn

I tried reinstalling the package and still couldn’t get it to work. Do you think the .egg file warning is the problem?

I also tried downloading the package directly from that page but I couldn’t run the script. I kept getting this error:

I tried to install the pip package again, which weirdly has a different name than the one linked in that hookup guide, but I couldn’t even in a venv

I’m also realizing that my cables might not be compatible with the Raspberry Pi4. I’m finding I can use the device with Terra Term and a USB C-USB C cord on my laptop, but it doesn’t register with a USB C-USB A. The Raspberry Pi4 doesn’t have C ports, so would an adapter be sufficient?

As long as the adapter and cable have all 4 lines on them (some are power-only and only have 2 lines)