You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: