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

TypeError: issubclass() arg 1 must be a class #10

Open
Shurik244 opened this issue Aug 30, 2021 · 1 comment
Open

TypeError: issubclass() arg 1 must be a class #10

Shurik244 opened this issue Aug 30, 2021 · 1 comment

Comments

@Shurik244
Copy link

Traceback (most recent call last):
File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/root/API/YTScraper/scraper/api.py", line 135, in
app = App(routes=routes)
File "/root/.local/share/virtualenvs/YTScraper-6Z8BojAV/lib/python3.8/site-packages/apistar/server/app.py", line 54, in init
routes = routes + self.include_extra_routes(schema_url, docs_url, static_url)
File "/root/.local/share/virtualenvs/YTScraper-6Z8BojAV/lib/python3.8/site-packages/apistar/server/app.py", line 82, in include_extra_routes
Route(
File "/root/.local/share/virtualenvs/YTScraper-6Z8BojAV/lib/python3.8/site-packages/apistar/server/core.py", line 17, in init
self.link = self.generate_link(url, method, handler, self.name)
File "/root/.local/share/virtualenvs/YTScraper-6Z8BojAV/lib/python3.8/site-packages/apistar/server/core.py", line 20, in generate_link
fields = self.generate_fields(url, method, handler)
File "/root/.local/share/virtualenvs/YTScraper-6Z8BojAV/lib/python3.8/site-packages/apistar/server/core.py", line 70, in generate_fields
elif issubclass(param.annotation, types.Type):
File "/usr/lib/python3.8/abc.py", line 102, in subclasscheck
return _abc_subclasscheck(cls, subclass)
TypeError: issubclass() arg 1 must be a class

Idk how to fix that

@faheel
Copy link
Owner

faheel commented Aug 31, 2021

This is most likely due to incompatible Python versions. You can check if it works with Python versions before 3.8.

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

2 participants