alchemyplatform / alchemy-sdk-py

31 stars 9 forks source link

ModuleNotFoundError: No module named 'dataclass_wizard' #7

Open HarryR opened 1 year ago

HarryR commented 1 year ago

idk why this happens, I just installed using python3 -mpip install --user alchemy-sdk, and get this error:

$ python3 blah.py 
Traceback (most recent call last):
  File "blah.py", line 23, in <module>
    from alchemy import Alchemy, Network
  File "~/local/lib/python3.10/site-packages/alchemy/__init__.py", line 1, in <module>
    from alchemy.alchemy import Alchemy
  File "~/.local/lib/python3.10/site-packages/alchemy/alchemy.py", line 11, in <module>
    from alchemy.core import AlchemyCore
  File "~/.local/lib/python3.10/site-packages/alchemy/core/__init__.py", line 1, in <module>
    from .main import AlchemyCore
  File "~/.local/lib/python3.10/site-packages/alchemy/core/main.py", line 9, in <module>
    from alchemy.core.models import (
  File "~/.local/lib/python3.10/site-packages/alchemy/core/models.py", line 6, in <module>
    from dataclass_wizard import JSONSerializable, json_field
ModuleNotFoundError: No module named 'dataclass_wizard'

$ python3 -mpip show alchemy-sdk
Name: alchemy-sdk
Version: 0.1.1
Summary: UNKNOWN
Home-page: https://github.com/alchemyplatform/alchemy-sdk-py
Author: Alchemy
Author-email: 
License: MIT
Location: /home/nomad/.local/lib/python3.10/site-packages
Requires: backoff, requests, typing-extensions, web3
Required-by: 

$ python3 --version
Python 3.10.6

This is fixed after running:

$ python3 -mpip install --user dataclass-wizard