Jump to content
  • 0

Python version to run pydwf-examples


George M

Question

Hi all,

I have to use an Analog Discovery 2 to be connected via USB to a Mercury+ PE1 Base Board. Basically there is a ZYNQ XC7Z015 running Linux (PYNQ version 2.5 (Glasgow) Linux, based on Ubuntu 18.04, GNU/Linux 4.19.0-xilinx-v2019.1 armv7l) and Python3.6.5 on it. I tried to install pydwf on it, but when I try to run pydwf-examples or simply to recognize the Analog Discovery 2 device, an error occurs:

Traceback (most recent call last):
  File "/usr/lib/python3.6/runpy.py", line 183, in _run_module_as_main
    mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
  File "/usr/lib/python3.6/runpy.py", line 142, in _get_module_details
    return _get_module_details(pkg_main_name, error)
  File "/usr/lib/python3.6/runpy.py", line 109, in _get_module_details
    __import__(pkg_name)
  File "/home/xilinx/prova_Giorgio/pydwf/__init__.py", line 7, in <module>
    from pydwf.core.dwf_library import DwfLibrary
  File "/home/xilinx/prova_Giorgio/pydwf/core/dwf_library.py", line 11, in <module>
    from pydwf.core.api.device_enumeration import DeviceEnumeration
  File "/home/xilinx/prova_Giorgio/pydwf/core/api/device_enumeration.py", line 6, in <module>
    from pydwf.core.dwf_library_subapi import AbstractDwfLibrarySubApi
  File "/home/xilinx/prova_Giorgio/pydwf/core/dwf_library_subapi.py", line 3
    from __future__ import annotations
    ^
SyntaxError: future feature annotations is not defined

How can I solve this problem? Is it a problem of the Python version currently installed?

 

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...