fireblocks / fireblocks-sdk-py

Official Python SDK for Fireblocks API
http://docs.fireblocks.com/api/swagger-ui/
MIT License
51 stars 40 forks source link

cannot import name 'StrEnum' from 'enum' #164

Closed juliocepar closed 6 months ago

juliocepar commented 6 months ago

Describe the bug In Python 3.9 and fireblocks_sdk 2.5.0, I can't run any code importing anything from fireblocks_sdk.

To Reproduce Steps to reproduce the behavior:

Run the following snippet:

from fireblocks_sdk import FireblocksSDK

with open('FIREBLOCKS_SECRET_KEY_PATH', 'r') as file:
    fireblocks = FireblocksSDK(
        private_key=file.read(),
        api_key='FIREBLOCKS_API_KEY',
        api_base_url='https://api.fireblocks.io'
    )

Expected behavior The code runs with no exceptions.

Screenshots

image

Versions (please complete the following information):

Additional context This snippet was run in Windows 11

Workaround I downgraded fireblocks_sdk to 2.4.0 and the code runs with no exceptions.

YoavBZ commented 6 months ago

Thanks @juliocepar for raising this! A fix has been released in version 2.5.1