-
|
Whenever I run I always get this error: The original import statement looks like this This is my requirments.txt currently: So how do I fix this? Thank you |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
|
I tried and it works fine. It says that the module does not exist. Did you do the deta deploy? check the micro detail if the package exists and consequently installed. |
Beta Was this translation helpful? Give feedback.
-
|
Managed to fix the issue. Part of it was due to their server being down. But in regards to requirements.txt, I had to get rid of sqlite3 as that is already apart of python and I didn't have to specify it. Then I ran deta deploy again and fortunately it was successful :) |
Beta Was this translation helpful? Give feedback.
-
|
Similar to #658. |
Beta Was this translation helpful? Give feedback.
-
|
I am having the same problem now. I have been waiting since morning but the problem didn't solve #658 $ deta run
Running micro...
Response:
{
"errorMessage": "No module named 'fastapi'",
"errorType": "ModuleNotFoundError",
"requestId": "21d9f63a-3997-4610-aaca-31c26fe77453",
"stackTrace": [
" File \"/opt/python/detalib/debugger.py\", line 131, in wrap\n return func(event, context)\n",
" File \"/var/task/_entry.py\", line 12, in handler\n import main # noqa\n",
" File \"/var/task/main.py\", line 1, in \u003cmodule\u003e\n from fastapi import FastAPI\n"
]
} |
Beta Was this translation helpful? Give feedback.
Managed to fix the issue. Part of it was due to their server being down. But in regards to requirements.txt, I had to get rid of sqlite3 as that is already apart of python and I didn't have to specify it. Then I ran deta deploy again and fortunately it was successful :)