Metaclass error import asyncpraw
Runisco opened this issue · 5 comments
Been having this issue for a while, it just showed up and it tirggers on the import itself.
Ive tried uninstalling and reinstalling but nothing.
File "discordbot.py", line 4, in <module>
import asyncpraw
File "/usr/local/lib/python3.8/site-packages/asyncpraw/init.py", line 14, in <module>
from .reddit import Reddit # NOQA
File "/usr/local/lib/python3.8/site-packages/asyncpraw/reddit.py", line 22, in <module>
from asyncprawcore import (
File "/usr/local/lib/python3.8/site-packages/asyncprawcore/init.py", line 4, in <module>
from .auth import ( # noqa
File "/usr/local/lib/python3.8/site-packages/asyncprawcore/auth.py", line 5, in <module>
import aiohttp
File "/usr/local/lib/python3.8/site-packages/aiohttp/init.py", line 6, in <module>
from .client import (
File "/usr/local/lib/python3.8/site-packages/aiohttp/client.py", line 35, in <module>
from . import hdrs, http, payload
File "/usr/local/lib/python3.8/site-packages/aiohttp/http.py", line 7, in <module>
from .http_parser import (
File "/usr/local/lib/python3.8/site-packages/aiohttp/http_parser.py", line 15, in <module>
from .helpers import NO_EXTENSIONS, BaseTimerContext
File "/usr/local/lib/python3.8/site-packages/aiohttp/helpers.py", line 48, in <module>
from typing_extensions import Protocol
File "/usr/local/lib/python3.8/site-packages/typing_extensions.py", line 962, in <module>
class OrderedDict(collections.OrderedDict, typing.MutableMapping[KT, VT],
TypeError: metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases```
This doesn't appear to be an issue with Async PRAW but with aiohttp and typing_extensions instead. Not sure how we can fix this.
Then I am at a loss. From all I can see, the same modules that work on the development desktop are installed on the server. Yet the desktop runs it perfectly, but the server gets the above metaclass error. Ive searched, but I cannot find anyone else having the same issues I am
@bboe do you have any thoughts on this?
This issue is stale because it has been open for 20 days with no activity. Remove the Stale label or comment or this will be closed in 10 days.
This issue was closed because it has been stale for 10 days with no activity.