Skip to content

python version 3.12 produces error on first run, not mentioned on pypi #50

@basRet

Description

@basRet

It seems like python 3.12 is not fully compatible with this rep, even though this is not mentioned on pip. If I do the same thing but replace the venv with 3.10 and then afterwards try to run with 3.12 it will work just fine. However, running this with python 3.12 for the first time will produce errors with some libraries that this rep needs. This makes it difficult for new people to join, since this is not mentioned on the pypi version requirements or in the documentation.

How to reproduce:

  1. start a new venv with python 3.12.3
  2. install hyperliquid-python-sdk (version 0.6.0) with pip
  3. create open_order.py with text from the example
  4. create example_utils.py with text from example
  5. create config.json with appropriate info
  6. run open_order.py
error: Traceback (most recent call last):
  File "pythonProject\trial.py", line 4, in <module>
    import example_utils
  File "pythonProject\example_utils.py", line 1, in <module>
    import eth_account
  File "pythonProject\.venv\Lib\site-packages\eth_account\__init__.py", line 1, in <module>
    from eth_account.account import (
  File "pythonProject\.venv\Lib\site-packages\eth_account\account.py", line 18, in <module>
    from eth_keyfile import (
  File "pythonProject\.venv\Lib\site-packages\eth_keyfile\__init__.py", line 3, in <module>
    import pkg_resources
ModuleNotFoundError: No module named 'pkg_resources'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions