Closed
Description
Hello friends, I am using the FT232H and I am following the example that is shown here but when I am trying to import board
I get the following error:
~ python3
Python 3.8.5 (default, Jul 23 2020, 00:47:04)
[GCC 10.1.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import board
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3.8/site-packages/board.py", line 32, in <module>
from adafruit_blinka.agnostic import board_id, detector
File "/usr/lib/python3.8/site-packages/adafruit_blinka/agnostic/__init__.py", line 18, in <module>
chip_id = detector.chip.id
File "/usr/lib/python3.8/site-packages/adafruit_platformdetect/chip.py", line 243, in __getattr__
if self.id == attr:
File "/usr/lib/python3.8/site-packages/adafruit_platformdetect/chip.py", line 243, in __getattr__
if self.id == attr:
File "/usr/lib/python3.8/site-packages/adafruit_platformdetect/chip.py", line 243, in __getattr__
if self.id == attr:
[Previous line repeated 973 more times]
File "/usr/lib/python3.8/site-packages/adafruit_platformdetect/chip.py", line 104, in id
return self._linux_id()
File "/usr/lib/python3.8/site-packages/adafruit_platformdetect/chip.py", line 137, in _linux_id
hardware = self.detector.get_cpuinfo_field("Hardware")
File "/usr/lib/python3.8/site-packages/adafruit_platformdetect/__init__.py", line 54, in get_cpuinfo_field
return match.group(1)
RecursionError: maximum recursion depth exceeded while calling a Python object
>>>
I don't know if it's related with this error:
>>> from pyftdi.ftdi import Ftdi
>>> Ftdi().open_from_url('ftdi:///?')
Available interfaces:
ftdi://ftdi:232h:1/1 (������)
Please specify the USB device
✘ ~
But anyway, this works:
>>> from pyftdi.ftdi import Ftdi
>>> Ftdi.show_devices()
Available interfaces:
ftdi://ftdi:232h:1/1 (������)
>>>
I followed the steps with udev rules and reloading, I re-connected the FT232H but nothing. Important note: I installed Blinka, Platform-Detect, pyftdi and the rest with Portage on Gentoo Linux and not with pip3
.
Also pyusb
is installed along with pyftdi
and the following packages:
dev-python/Adafruit-Blinka:0
dev-python/adafruit-circuitpython-mcp230xx:0
dev-python/Adafruit-PlatformDetect:0
dev-python/Adafruit-PureIO:0
Any ideas what I could be missing here? Thank you in advance.
Metadata
Metadata
Assignees
Labels
No labels