Unable to deploy FastHTML Python Projects
Unanswered
Saint Bernard posted this in #help-forum
Saint BernardOP
I know FastHTML is experimental - but I tried deploying FastAPI template, and even that fails!
This Serverless Function has crashed.
Your connection is working correctly.
Vercel is working correctly.
500: INTERNAL_SERVER_ERROR
Code: FUNCTION_INVOCATION_FAILED
ID: sfo1::jdjhg-1723953271706-17ee8153497d
=====
Log
ERROR] ValueError: not enough values to unpack (expected 3, got 0)
Traceback (most recent call last):
File "/var/lang/lib/python3.12/importlib/init.py", line //
vc_spec.loader.exec_module(vc_module)
File "<frozen importlib._bootstrap_external>", line 995, in exec_module
File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
File "/var/task/main.py", line 1, in <module>
from fasthtml.common import *
File "/var/task/fasthtml/init.py", line 2, in <module>
from .core import *
File "/var/task/fasthtml/core.py", line 14, in <module>
from .xtend import *
File "/var/task/fasthtml/xtend.py", line 22, in <module>
picolink = (Link(rel="stylesheet", href=picocss),
File "/var/task/fasthtml/components.py", line 53, in ft_hx
return ft_html(tag, *c, kwargs)
File "/var/task/fasthtml/components.py", line 45, in ft_html
tag,c,kw = ft(tag, *c, kwargs)INIT_REPORT Init Duration: 660.69 ms Phase: invoke Status: error Error Type: Runtime.Unknown
This Serverless Function has crashed.
Your connection is working correctly.
Vercel is working correctly.
500: INTERNAL_SERVER_ERROR
Code: FUNCTION_INVOCATION_FAILED
ID: sfo1::jdjhg-1723953271706-17ee8153497d
=====
Log
ERROR] ValueError: not enough values to unpack (expected 3, got 0)
Traceback (most recent call last):
File "/var/lang/lib/python3.12/importlib/init.py", line //
vc_spec.loader.exec_module(vc_module)
File "<frozen importlib._bootstrap_external>", line 995, in exec_module
File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
File "/var/task/main.py", line 1, in <module>
from fasthtml.common import *
File "/var/task/fasthtml/init.py", line 2, in <module>
from .core import *
File "/var/task/fasthtml/core.py", line 14, in <module>
from .xtend import *
File "/var/task/fasthtml/xtend.py", line 22, in <module>
picolink = (Link(rel="stylesheet", href=picocss),
File "/var/task/fasthtml/components.py", line 53, in ft_hx
return ft_html(tag, *c, kwargs)
File "/var/task/fasthtml/components.py", line 45, in ft_html
tag,c,kw = ft(tag, *c, kwargs)INIT_REPORT Init Duration: 660.69 ms Phase: invoke Status: error Error Type: Runtime.Unknown