Comments (5)
so, my requirements.txt is empty, but I receive this problem again...
I deleted my deta app and created again. this solved my problem.
Can I close this lssue?
from deta-python.
hi sorry this is due an bug with orjson
and our internal library. You can remove orjson
in the requirements.txt
, deploy again and it should resolve the issue.
If you must use orjson
unfortunately, we would have to push a fix before you can use it.
from deta-python.
Hi, I updated my requirements.txt (Yes, I delete all useless libs):
fastapi[all]
But I get this error again:
[2021-09-30T16:11:57+03:00] [ERROR] AttributeError: module 'orjson' has no attribute 'JSONEncoder'
Traceback (most recent call last):
File "/var/lang/lib/python3.9/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 850, in exec_module
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
File "/var/task/_entry.py", line 1, in <module>
from detalib.handler import handle
File "/opt/python/detalib/handler.py", line 3, in <module>
from . import handlers
File "/opt/python/detalib/handlers.py", line 1, in <module>
from .event import parse_event
File "/opt/python/detalib/event.py", line 1, in <module>
from .helpers import json
File "/opt/python/detalib/helpers.py", line 16, in <module>
class CustomJSONEncoder(json.JSONEncoder):
from deta-python.
hi fastapi[all]
also installs orjson
(https://github.com/tiangolo/fastapi/blob/master/pyproject.toml#L84-#L98) hence the issue.
from deta-python.
hi @DaniinXorchenabo , thanks for the report. I'm will close this issue here as it is an issue with our internal lib for micros and not the sdk.
from deta-python.
Related Issues (20)
- TypeError: 'FetchResponse' object is not an iterator HOT 2
- The read operation timed out HOT 1
- Base needs remove HOT 1
- send_email function in __init__.py HOT 3
- cron job App is not defined HOT 5
- Async Base TimeoutError HOT 1
- Deta is storing the wrong int HOT 1
- Questions: Does Deta supports npm? HOT 1
- Don't raise with the Exception class HOT 2
- Keyword argument expire_at for base.put() method not found (Python) HOT 3
- Wrong information in CONTRIBUTING.md HOT 1
- Deta Command Not Found HOT 1
- ✋ Use Discussions to get help: https://github.com/orgs/deta/discussions
- Empty keys not allowed HOT 1
- Add type hints strictly and provide
- Micro erroring due to detalib HOT 4
- The update() method seems to have a problem HOT 1
- ssl.SSLEOFError: EOF occurred in violation of protocol (_ssl.c:2426) when trying to upload file to Deta drive HOT 2
- broken app HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deta-python.