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.
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?
I got the device to register properly, but I’m still getting an error I believe is related to the de2120_barcode_scanner package not properly being installed. It throws this when I try to run the first example script:
File "/home/username/Documents/GitHub/DE2120_Py/venv/lib/python3.11/site-packages/de2120_barcode_scanner.py", line 226, in is_connected if ord(incoming) == 0x06: # ACK ^^^^^^^^^^^^^ TypeError: ord() expected a character, but string of length 0 found
I’m still following the installation guide on github, since the package on the setup page that you linked has a different name and throws an error when I try to install with pip3 install sparkfun-de2120. I’m still getting the same error when I try to run the install command:
I tried on my laptop and had the same error. This is for my capstone project at school and was ordered through the university, so a return might be a process.
Is there any hope the repo could be updated any time soon? If not I might look for some kind of workaround or another option.