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 while importing Client #2057

Open
YashIndane opened this issue Nov 11, 2024 · 0 comments
Open

Error while importing Client #2057

YashIndane opened this issue Nov 11, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@YashIndane
Copy link

Try Instagrapi SaaS with a free trial https://hikerapi.com/p/5GBWznd3

Description
Running the very first line -> from instagrapi import Client, gives this error ->

To Reproduce
from instagrapi import Client
Traceback'

Traceback (most recent call last):
File ".\insta.py", line 1, in
from instagrapi import Client
File "C:\Users\YASH\AppData\Local\Programs\Python\Python38\lib\site-packages\instagrapi_init_.py", line 7, in
from instagrapi.mixins.account import AccountMixin
File "C:\Users\YASH\AppData\Local\Programs\Python\Python38\lib\site-packages\instagrapi\mixins\account.py", line 8, in
from instagrapi.extractors import extract_account, extract_user_short
File "C:\Users\YASH\AppData\Local\Programs\Python\Python38\lib\site-packages\instagrapi\extractors.py", line 6, in
from .types import (
File "C:\Users\YASH\AppData\Local\Programs\Python\Python38\lib\site-packages\instagrapi\types.py", line 130, in
class Media(BaseModel):
File "C:\Users\YASH\AppData\Local\Programs\Python\Python38\lib\site-packages\instagrapi\types.py", line 131, in Media
pk: str | int
TypeError: unsupported operand type(s) for |: 'type' and 'type'

Expected behavior
It should work

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Windows 11
  • Python version: 3.8.2
  • instagrapi version: latest
  • moveipy version if used
  • imagemagick version if used

Additional context
Add any other context about the problem here.

@YashIndane YashIndane added the bug Something isn't working label Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant