Skip to content

ImportError: cannot import name 'main' from 'huami_token' #75

@marph91

Description

@marph91

Hi, thanks for developing this tool! I'm getting the following exception when trying to use it:

$ pip install huami-token
$ huami_token --help
Traceback (most recent call last):
  File "/home/user/anaconda/envs/py313/bin/huami_token", line 3, in <module>
    from huami_token import main
ImportError: cannot import name 'main' from 'huami_token' (/home/user/anaconda/envs/py313/lib/python3.13/site-packages/huami_token/__init__.py)
  • Python 3.13 and 3.14 (anaconda)
  • Ubuntu 24.04
  • huami-token 0.7.0

Is there a workaround/fix?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions