Comments (5)
My fault. I forgot to deploy.
But I think it's better to return an empty App
object in the local package, so that we dont need to change the code every time after debug locally.
from deta-python.
But I think it's better to return an empty App object in the local package, so that we dont need to change the code every time after debug locally.
Yes, I agree. Thank you for the feedback. We also need to update the documentation to let people know about this in general.
from deta-python.
hello, the import only works when the code is deployed on a Deta Micro.
from deta-python.
I got this error from visor:
Traceback (most recent call last):
File "/opt/python/detalib/debugger.py", line 142, in wrap
result = func(event, context)
File "/var/task/_entry.py", line 12, in handler
import main # noqa
File "/var/task/main.py", line 8, in <module>
app = App(FastAPI())
NameError: name 'App' is not defined
from deta-python.
do you get this error even after from deta import App
?
from deta-python.
Related Issues (20)
- TypeError: 'FetchResponse' object is not an iterator HOT 2
- The read operation timed out HOT 1
- AttributeError: module 'orjson' has no attribute 'JSONEncoder' in /opt/python/detalib/helpers.py class CustomJSONEncoder(json.JSONEncoder): HOT 5
- Base needs remove HOT 1
- send_email function in __init__.py HOT 3
- 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.