eblot / pyftdi

FTDI device driver written in pure Python
Other
509 stars 212 forks source link

"Error: No backend available" during Mac OS instllation. #370

Open zapta opened 8 months ago

zapta commented 8 months ago

I am trying to install pyftdi on Mac OS but am getting an error "No backend available". Any suggestion what may be the problem?

$ sw_vers 
ProductName:        macOS
ProductVersion:     14.3
BuildVersion:       23D56

$ python --version
Python 3.12.1

$ brew install libusb
Warning: libusb 1.0.27 is already installed and up-to-date.
To reinstall 1.0.27, run:
  brew reinstall libusb

$ pip3 install pyftdi
Requirement already satisfied: pyftdi in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (0.55.0)
Requirement already satisfied: pyusb!=1.2.0,>=1.0.0 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from pyftdi) (1.2.1)
Requirement already satisfied: pyserial>=3.0 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from pyftdi) (3.5)

$ ftdi_urls.py 
Error: No backend available     <<======= error
zapta commented 8 months ago

Ok found this answer and it works. https://stackoverflow.com/questions/70729330/python-on-m1-mbp-trying-to-connect-to-usb-devices-nobackenderror-no-backend-a

Leaving this issue open with the request to add it to the installation notes, or a better solution, if one available.

export DYLD_LIBRARY_PATH="/opt/homebrew/lib:$DYLD_LIBRARY_PATH"