fluencelabs / dev-rewards

Apache License 2.0
554 stars 368 forks source link

Fix Error for Python #34

Closed 51bitquant closed 4 months ago

51bitquant commented 4 months ago

When running this program, there is an error as follows:

Traceback (most recent call last):
  File "python/proof.py", line 11, in <module>
    from helpers.common import Metadata
  File "/Users/wanglin/Downloads/dev-rewards-main/python/helpers/common.py", line 6, in <module>
    @dataclass
  File "/Users/wanglin/Downloads/dev-rewards-main/python/helpers/common.py", line 9, in Metadata
    addresses: list[str]
TypeError: 'type' object is not subscriptable

Also the dependencies for eth-account==0.11.0 is not available.

CLAassistant commented 4 months ago

CLA assistant check
All committers have signed the CLA.

akim-bow commented 4 months ago

WDYM by

Also the dependencies for eth-account==0.11.0 is not available.

What dependencies are unavailable and why?

akim-bow commented 4 months ago

Updating python to 3.9 (or even 3.8) version and onward should help according to this page, we don't plan to support older python version.