Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error for import Client #432

Open
colcyber opened this issue Jan 9, 2024 · 0 comments
Open

Error for import Client #432

colcyber opened this issue Jan 9, 2024 · 0 comments

Comments

@colcyber
Copy link

colcyber commented Jan 9, 2024

  • Zwift Mobile API client version: 0.2.0
  • Python version: 3.11.1
  • Operating System: windows 11

Description

hi, sorry, my newbie,
a take this error at start of program:

cannot import name 'Client' from partially initialized module 'zwift' (most likely due to a circular import) (...\zwift.py)

thanks

What I Did

from zwift import Client
username = '****'
password = '****'
#player_id = your-player-id
client = Client(username, password)

profile = client.get_profile()
profile.profile  # fetch your profile data
profile.followers
profile.followees
profile.get_activities()  # metadata of your activities
profile.latest_activity  # metadata of your latest activity
pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant