eblot / pyftdi

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

Error coming while trying to import board #296

Closed thedim-witted closed 2 years ago

thedim-witted commented 2 years ago

Hi,

I went through the installation process and was able to detect the ft232h board using the ftdi library.

>>> from pyftdi.ftdi import Ftdi
>>> Ftdi().open_from_url('ftdi:///?')
Available interfaces:
  ftdi://ftdi:232h:1/1   (￿￿￿￿￿￿)

However, it throws an error when I try to do a 'import board' The error says:

import board Traceback (most recent call last): File "", line 1, in File "/home/devop1/.local/lib/python3.6/site-packages/board.py", line 39, in import adafruit_platformdetect.constants.boards as ap_board File "/home/devop1/.local/lib/python3.6/site-packages/adafruit_platformdetect/init.py", line 10, in from .board import Board File "/home/devop1/.local/lib/python3.6/site-packages/adafruit_platformdetect/board.py", line 24 from future import annotations ^ SyntaxError: future feature annotations is not defined

eblot commented 2 years ago

This code is not part of PyFtdi. Please reach out the original project (Adafruit ?)