[BUG] TypeError: cannot create 'cython_function_or_method' instances
See original GitHub issueDescribe the bug
tests/test_server.py:10: in <module>
from j2db.server import Server
j2db/server.py:1: in <module>
from fastapi import FastAPI
/opt/hostedtoolcache/Python/3.7.4/x64/lib/python3.7/site-packages/fastapi/__init__.py:7: in <module>
from .applications import FastAPI
/opt/hostedtoolcache/Python/3.7.4/x64/lib/python3.7/site-packages/fastapi/applications.py:3: in <module>
from fastapi import routing
/opt/hostedtoolcache/Python/3.7.4/x64/lib/python3.7/site-packages/fastapi/routing.py:6: in <module>
from fastapi import params
/opt/hostedtoolcache/Python/3.7.4/x64/lib/python3.7/site-packages/fastapi/params.py:14: in <module>
class Param(Schema):
E TypeError: cannot create 'cython_function_or_method' instances
To Reproduce
hmm … i don’t know why. It suddenly happened in github actions and did not happen before.
Environment:
- Linux
- fastapi-0.42.0
- python 3.7.4
Additional context Add any other context about the problem here.
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
tiangolo/fastapi - Gitter
This is the error ... I foun the error when i put "str" in "Schema". ... TypeError: cannot create 'cython_function_or_method' instances. Pouchain Rémy....
Read more >How do I make a class inherit from lxml.objectify.Element?
As the error says: objectify.Element is not a class, it's a cyfunction (a function coded in Cython cython.org), so you cannot inherit from...
Read more >1792990 – python-fpylll fails to build with Python 3.9: TypeError
Bug 1792990 - python-fpylll fails to build with Python 3.9: TypeError: type() takes 1 or 3 arguments. Summary: python-fpylll fails to build ......
Read more >TypeError: Shared Cython type cython_function_or_method ...
Solved: TypeError: Shared Cython type cython_function_or_method has the wrong size, try recompiling - Intel Communities.
Read more >cannot import name 'fastapi' from partially initialized module ...
tiangolo/fastapi[BUG] TypeError: cannot create 'cython_function_or_method' instances#648. Created about 3 years ago. 8. Describe the bug.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
pydantic 1.0.0 has been released, with breaking changes. In particular, Field and Schema are now functions rather than classes & cannot be subclassed.
Still happening for me…
My requirements.txt:
My documentation: