First of all good job running the above command and including output. That actually looks pretty close. You are running the correct commmands and now with the current release of python3 (v3.13.1).
Now my commands work because I have libusb installed. When I remove it I see the same as you.
Code: Select all
(tonys_python) sklarm@grazie ~ % brew uninstall --ignore-dependencies libusb
Uninstalling /opt/homebrew/Cellar/libusb/1.0.27... (23 files, 620.6KB)
(tonys_python) sklarm@grazie ~ % export BLINKA_FT232H=1
(tonys_python) sklarm@grazie ~ % python3
Python 3.13.0 (main, Oct 7 2024, 05:02:14) [Clang 15.0.0 (clang-1500.1.0.2.5)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import board
Traceback (most recent call last):
File "<python-input-0>", line 1, in <module>
import board
File "/Users/sklarm/tonys_python/lib/python3.13/site-packages/board.py", line 21, in <module>
from adafruit_blinka.agnostic import board_id, detector
File "/Users/sklarm/tonys_python/lib/python3.13/site-packages/adafruit_blinka/agnostic/__init__.py", line 21, in <module>
chip_id = detector.chip.id
^^^^^^^^^^^^^^^^
File "/Users/sklarm/tonys_python/lib/python3.13/site-packages/adafruit_platformdetect/chip.py", line 67, in id
count = len(UsbTools.find_all([(0x0403, 0x6014)]))
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
File "/Users/sklarm/tonys_python/lib/python3.13/site-packages/pyftdi/usbtools.py", line 93, in find_all
devs.update(UsbTools._find_devices(vid, pid, nocache))
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
File "/Users/sklarm/tonys_python/lib/python3.13/site-packages/pyftdi/usbtools.py", line 582, in _find_devices
backend = cls._load_backend()
File "/Users/sklarm/tonys_python/lib/python3.13/site-packages/pyftdi/usbtools.py", line 649, in _load_backend
raise ValueError('No backend available')
ValueError: No backend available
When I install libusb again things are good.
Code: Select all
(tonys_python) sklarm@grazie ~ % brew install libusb
==> Auto-updating Homebrew...
Adjust how often this is run with HOMEBREW_AUTO_UPDATE_SECS or disable with
HOMEBREW_NO_AUTO_UPDATE. Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
==> Downloading https://ghcr.io/v2/homebrew/portable-ruby/portable-ruby/blobs/sha256:d9faa506c014dedc0b034a68103ba75c9a58242f4d6c67b6ca0f649c39602bcf
############################################################################################################################################################################### 100.0%
==> Pouring portable-ruby-3.3.7.arm64_big_sur.bottle.tar.gz
==> Auto-updated Homebrew!
Updated 2 taps (homebrew/core and homebrew/cask).
==> New Formulae
alive2 binocle cargo-hack fish-lsp libcotp pnpm@9 tfocus
asciigen bold cargo-update guile-fibers [email protected] prism-cli tinysparql
azure-storage-blobs-cpp c2patool diary hevi [email protected] rmtrash xtermcontrol
azure-storage-common-cpp cargo-cache dpic html2markdown perl-dbd-mysql shepherd zigup
beanquery cargo-cyclonedx fastbuild json2hcl pkgx superhtml
==> New Casks
amiberry display-pilot font-liter helpwire-operator spectrolite tdr-molotok termora
cpu-info font-42dot-sans font-pixel-code lyric-fever stratoshark@dev tdr-prism windowkeys
You have 83 outdated formulae and 2 outdated casks installed.
==> Downloading https://ghcr.io/v2/homebrew/core/libusb/manifests/1.0.27
############################################################################################################################################################################### 100.0%
==> Fetching libusb
==> Downloading https://ghcr.io/v2/homebrew/core/libusb/blobs/sha256:872182eebb566f32d577fa82b126260c383c6a8f8d02e9fc232eadda9184060b
############################################################################################################################################################################### 100.0%
==> Pouring libusb--1.0.27.arm64_sequoia.bottle.tar.gz
🍺 /opt/homebrew/Cellar/libusb/1.0.27: 23 files, 619.7KB
==> Running `brew cleanup libusb`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
(tonys_python) sklarm@grazie ~ % python3
Python 3.13.0 (main, Oct 7 2024, 05:02:14) [Clang 15.0.0 (clang-1500.1.0.2.5)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import board
>>> dir(board)
['C0', 'C1', 'C2', 'C3', 'C4', 'C5', 'C6', 'C7', 'D4', 'D5', 'D6', 'D7', 'I2C', 'MISO', 'MOSI', 'SCK', 'SCL', 'SCLK', 'SDA', 'SPI', '__blinka__', '__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__repo__', '__spec__', '__version__', 'ap_board', 'board_id', 'detector', 'pin', 'sys']
>>>
Please let me know if libusb resolves this for you. If not, we will work something else out hardware wise.