this is deta
deta / space-cli Goto Github PK
View Code? Open in Web Editor NEWDeta Space CLI
Home Page: https://deta.space
License: MIT License
Deta Space CLI
Home Page: https://deta.space
License: MIT License
space push
fails with
Validating your Spacefile...
Your Spacefile looks good, proceeding with your push!
✓ Successfully started your build!
✓ Successfully pushed your Spacefile!
~ Pushing your code (27 files) & running build process...
2023/11/23 10:45:15 internal server error
2023/11/23 10:45:15 error: internal error
! Error: failed to push code and create a revision, please try again
while like this finishes fine:
space push --dir `realpath .`
Hi.
Trying to install this tool using go install github.com/deta/[email protected]
gives an error:
github.com/deta/[email protected]: parsing go.mod:
module declares its path as: github.com/deta/space
but was required as: github.com/deta/space-cli
I think that using go to install is better than using space version upgrade
as the former installs the binary in a common place, i.e. $GOPATH/bin
instead of $HOME/.detaspace/bin
which is not standard.
The solution is to change the package name to space-cli
or the repository to space
.
Thanks
Hello 👋
I run a security community that finds and fixes vulnerabilities in OSS. A researcher (@sancho1952007) has found a potential issue, which I would be eager to share with you.
Could you add a SECURITY.md
file with an e-mail address for me to send further details to? GitHub recommends a security policy to ensure issues are responsibly disclosed, and it would help direct researchers in the future.
Looking forward to hearing from you 👍
(cc @huntr-helper)
My post on Discord: https://discord.com/channels/827546555200438332/1183542727661600889/1183542727661600889
When I tried to publish my app to space with space push
, this error was happened:
! Error: failed to update your Builder instance, please try again
How to fix it?
$ uname -vorm
6.5.0-14-generic #14-Ubuntu SMP PREEMPT_DYNAMIC Tue Nov 14 14:59:49 UTC 2023 x86_64 GNU/Linux
$ space version
0.4.2 amd64-linux
$ space push
Validating your Spacefile...
Your Spacefile looks good, proceeding with your push!
✓ Successfully started your build!
✓ Successfully pushed your Spacefile!
~ Pushing your code (29 files) & running build process...
2023/12/11 07:45:35
2023/12/11 07:45:35 Parsing Spacefile...
2023/12/11 07:45:35 Scanned micros:
2023/12/11 07:45:35 └ fastapi
2023/12/11 07:45:35
2023/12/11 07:45:35 Building micro fastapi...
2023/12/11 07:45:35 [fastapi] Installing dependencies with pip
2023/12/11 07:45:35 [fastapi]
2023/12/11 07:45:35
2023/12/11 07:45:39 [fastapi] Collecting heartbeat-status==0.0.2 (from -r requirements.txt (line 4))
2023/12/11 07:45:39 [fastapi] Obtaining dependency information for heartbeat-status==0.0.2 from https://files.pythonhosted.org/packages/ad/24/cdaa1d93b84dc3a205d6e3a32bb13594d7893f0c3e993f967415f302a533/heartbeat_status-0.0.2-py3-none-any.whl.metadata
2023/12/11 07:45:39 [fastapi] Downloading heartbeat_status-0.0.2-py3-none-any.whl.metadata (1.4 kB)
2023/12/11 07:45:39 [fastapi] Collecting deta<2.0.0,>=1.2.0 (from heartbeat-status==0.0.2->-r requirements.txt (line 4))
2023/12/11 07:45:39 [fastapi] Obtaining dependency information for deta<2.0.0,>=1.2.0 from https://files.pythonhosted.org/packages/fa/70/e742f03eaf8bd782c897fc115379341a94d53b9616f1fa9d1345ab14b1da/deta-1.2.0-py3-none-any.whl.metadata
2023/12/11 07:45:39 [fastapi] Downloading deta-1.2.0-py3-none-any.whl.metadata (444 bytes)
2023/12/11 07:45:39 [fastapi] Collecting fastapi<0.105.0,>=0.104.1 (from heartbeat-status==0.0.2->-r requirements.txt (line 4))
2023/12/11 07:45:39 [fastapi] Obtaining dependency information for fastapi<0.105.0,>=0.104.1 from https://files.pythonhosted.org/packages/f3/4f/0ce34195b63240b6693086496c9bab4ef23999112184399a3e88854c7674/fastapi-0.104.1-py3-none-any.whl.metadata
2023/12/11 07:45:39 [fastapi] Downloading fastapi-0.104.1-py3-none-any.whl.metadata (24 kB)
2023/12/11 07:45:39 [fastapi] Collecting jinja2<4.0.0,>=3.1.2 (from heartbeat-status==0.0.2->-r requirements.txt (line 4))
2023/12/11 07:45:39 [fastapi] Downloading Jinja2-3.1.2-py3-none-any.whl (133 kB)
2023/12/11 07:45:39 [fastapi] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 133.1/133.1 kB 28.4 MB/s eta 0:00:00
2023/12/11 07:45:39 [fastapi] Collecting pandas<3.0.0,>=2.1.4 (from heartbeat-status==0.0.2->-r requirements.txt (line 4))
2023/12/11 07:45:39 [fastapi] Obtaining dependency information for pandas<3.0.0,>=2.1.4 from https://files.pythonhosted.org/packages/bc/f8/2aa75ae200bdb9dc6967712f26628a06bf45d3ad94cbbf6fb4962ada15a3/pandas-2.1.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata
2023/12/11 07:45:39 [fastapi] Downloading pandas-2.1.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (18 kB)
2023/12/11 07:45:39 [fastapi] Collecting pandas-stubs<3.0.0.0,>=2.1.1.230928 (from heartbeat-status==0.0.2->-r requirements.txt (line 4))
2023/12/11 07:45:39 [fastapi] Obtaining dependency information for pandas-stubs<3.0.0.0,>=2.1.1.230928 from https://files.pythonhosted.org/packages/ad/22/ef8d68f5506b4dad7b9597de0d6370c0103a7ec4cd2c258750ddc16597cd/pandas_stubs-2.1.1.230928-py3-none-any.whl.metadata
2023/12/11 07:45:39 [fastapi] Downloading pandas_stubs-2.1.1.230928-py3-none-any.whl.metadata (9.6 kB)
2023/12/11 07:45:39 [fastapi] Collecting plotly<6.0.0,>=5.18.0 (from heartbeat-status==0.0.2->-r requirements.txt (line 4))
2023/12/11 07:45:39 [fastapi] Obtaining dependency information for plotly<6.0.0,>=5.18.0 from https://files.pythonhosted.org/packages/a8/07/72953cf70e3bd3a24cbc3e743e6f8539abe6e3e6d83c3c0c83426eaffd39/plotly-5.18.0-py3-none-any.whl.metadata
2023/12/11 07:45:39 [fastapi] Downloading plotly-5.18.0-py3-none-any.whl.metadata (7.0 kB)
2023/12/11 07:45:39 [fastapi] Collecting pydantic<3.0.0,>=2.5.2 (from heartbeat-status==0.0.2->-r requirements.txt (line 4))
2023/12/11 07:45:39 [fastapi] Obtaining dependency information for pydantic<3.0.0,>=2.5.2 from https://files.pythonhosted.org/packages/0a/2b/64066de1c4cf3d4ed623beeb3bbf3f8d0cc26661f1e7d180ec5eb66b75a5/pydantic-2.5.2-py3-none-any.whl.metadata
2023/12/11 07:45:39 [fastapi] Downloading pydantic-2.5.2-py3-none-any.whl.metadata (65 kB)
2023/12/11 07:45:39
2023/12/11 07:45:40 [fastapi] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 65.2/65.2 kB 19.1 MB/s eta 0:00:00
2023/12/11 07:45:40 [fastapi] Collecting python-dotenv<2.0.0,>=1.0.0 (from heartbeat-status==0.0.2->-r requirements.txt (line 4))
2023/12/11 07:45:40 [fastapi] Downloading python_dotenv-1.0.0-py3-none-any.whl (19 kB)
2023/12/11 07:45:40 [fastapi] Collecting requests<3.0.0,>=2.31.0 (from heartbeat-status==0.0.2->-r requirements.txt (line 4))
2023/12/11 07:45:40 [fastapi] Obtaining dependency information for requests<3.0.0,>=2.31.0 from https://files.pythonhosted.org/packages/70/8e/0e2d847013cb52cd35b38c009bb167a1a26b2ce6cd6965bf26b47bc0bf44/requests-2.31.0-py3-none-any.whl.metadata
2023/12/11 07:45:40 [fastapi] Downloading requests-2.31.0-py3-none-any.whl.metadata (4.6 kB)
2023/12/11 07:45:40 [fastapi] Collecting starlette==0.27.0 (from heartbeat-status==0.0.2->-r requirements.txt (line 4))
2023/12/11 07:45:40 [fastapi] Obtaining dependency information for starlette==0.27.0 from https://files.pythonhosted.org/packages/58/f8/e2cca22387965584a409795913b774235752be4176d276714e15e1a58884/starlette-0.27.0-py3-none-any.whl.metadata
2023/12/11 07:45:40 [fastapi] Downloading starlette-0.27.0-py3-none-any.whl.metadata (5.8 kB)
2023/12/11 07:45:40 [fastapi] Collecting uvicorn<0.25.0,>=0.24.0.post1 (from heartbeat-status==0.0.2->-r requirements.txt (line 4))
2023/12/11 07:45:40 [fastapi] Obtaining dependency information for uvicorn<0.25.0,>=0.24.0.post1 from https://files.pythonhosted.org/packages/7e/17/4b7a76fffa7babf397481040d8aef2725b2b81ae19f1a31b5ca0c17d49e6/uvicorn-0.24.0.post1-py3-none-any.whl.metadata
2023/12/11 07:45:40 [fastapi] Downloading uvicorn-0.24.0.post1-py3-none-any.whl.metadata (6.4 kB)
2023/12/11 07:45:40 [fastapi] Collecting anyio<5,>=3.4.0 (from starlette==0.27.0->heartbeat-status==0.0.2->-r requirements.txt (line 4))
2023/12/11 07:45:40 [fastapi] Obtaining dependency information for anyio<5,>=3.4.0 from https://files.pythonhosted.org/packages/85/4f/d010eca6914703d8e6be222165d02c3e708ed909cdb2b7af3743667f302e/anyio-4.1.0-py3-none-any.whl.metadata
2023/12/11 07:45:40 [fastapi] Downloading anyio-4.1.0-py3-none-any.whl.metadata (4.5 kB)
2023/12/11 07:45:40 [fastapi] Collecting typing-extensions>=3.10.0 (from starlette==0.27.0->heartbeat-status==0.0.2->-r requirements.txt (line 4))
2023/12/11 07:45:40 [fastapi] Obtaining dependency information for typing-extensions>=3.10.0 from https://files.pythonhosted.org/packages/b7/f4/6a90020cd2d93349b442bfcb657d0dc91eee65491600b2cb1d388bc98e6b/typing_extensions-4.9.0-py3-none-any.whl.metadata
2023/12/11 07:45:40 [fastapi] Downloading typing_extensions-4.9.0-py3-none-any.whl.metadata (3.0 kB)
2023/12/11 07:45:40 [fastapi] Collecting anyio<5,>=3.4.0 (from starlette==0.27.0->heartbeat-status==0.0.2->-r requirements.txt (line 4))
2023/12/11 07:45:40 [fastapi] Obtaining dependency information for anyio<5,>=3.4.0 from https://files.pythonhosted.org/packages/19/24/44299477fe7dcc9cb58d0a57d5a7588d6af2ff403fdd2d47a246c91a3246/anyio-3.7.1-py3-none-any.whl.metadata
2023/12/11 07:45:40 [fastapi] Downloading anyio-3.7.1-py3-none-any.whl.metadata (4.7 kB)
2023/12/11 07:45:40 [fastapi] Collecting MarkupSafe>=2.0 (from jinja2<4.0.0,>=3.1.2->heartbeat-status==0.0.2->-r requirements.txt (line 4))
2023/12/11 07:45:40 [fastapi] Obtaining dependency information for MarkupSafe>=2.0 from https://files.pythonhosted.org/packages/de/63/cb7e71984e9159ec5f45b5e81e896c8bdd0e45fe3fc6ce02ab497f0d790e/MarkupSafe-2.1.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata
2023/12/11 07:45:40 [fastapi] Downloading MarkupSafe-2.1.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (3.0 kB)
2023/12/11 07:45:40 [fastapi] Collecting numpy<2,>=1.22.4 (from pandas<3.0.0,>=2.1.4->heartbeat-status==0.0.2->-r requirements.txt (line 4))
2023/12/11 07:45:40 [fastapi] Obtaining dependency information for numpy<2,>=1.22.4 from https://files.pythonhosted.org/packages/2f/75/f007cc0e6a373207818bef17f463d3305e9dd380a70db0e523e7660bf21f/numpy-1.26.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata
2023/12/11 07:45:40 [fastapi] Downloading numpy-1.26.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (61 kB)
2023/12/11 07:45:40 [fastapi] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.2/61.2 kB 24.9 MB/s eta 0:00:00
2023/12/11 07:45:40 [fastapi] Collecting python-dateutil>=2.8.2 (from pandas<3.0.0,>=2.1.4->heartbeat-status==0.0.2->-r requirements.txt (line 4))
2023/12/11 07:45:40 [fastapi] Downloading python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
2023/12/11 07:45:40 [fastapi] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 247.7/247.7 kB 47.5 MB/s eta 0:00:00
2023/12/11 07:45:40 [fastapi] Collecting pytz>=2020.1 (from pandas<3.0.0,>=2.1.4->heartbeat-status==0.0.2->-r requirements.txt (line 4))
2023/12/11 07:45:40 [fastapi] Obtaining dependency information for pytz>=2020.1 from https://files.pythonhosted.org/packages/32/4d/aaf7eff5deb402fd9a24a1449a8119f00d74ae9c2efa79f8ef9994261fc2/pytz-2023.3.post1-py2.py3-none-any.whl.metadata
2023/12/11 07:45:40 [fastapi] Downloading pytz-2023.3.post1-py2.py3-none-any.whl.metadata (22 kB)
2023/12/11 07:45:40 [fastapi] Collecting tzdata>=2022.1 (from pandas<3.0.0,>=2.1.4->heartbeat-status==0.0.2->-r requirements.txt (line 4))
2023/12/11 07:45:40 [fastapi] Downloading tzdata-2023.3-py2.py3-none-any.whl (341 kB)
2023/12/11 07:45:40 [fastapi] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 341.8/341.8 kB 40.9 MB/s eta 0:00:00
2023/12/11 07:45:40 [fastapi] Collecting types-pytz>=2022.1.1 (from pandas-stubs<3.0.0.0,>=2.1.1.230928->heartbeat-status==0.0.2->-r requirements.txt (line 4))
2023/12/11 07:45:40 [fastapi] Obtaining dependency information for types-pytz>=2022.1.1 from https://files.pythonhosted.org/packages/79/4f/58c28f50233612d9890cc2b068aee977ef3f7d6434ef4debf98162e34152/types_pytz-2023.3.1.1-py3-none-any.whl.metadata
2023/12/11 07:45:40 [fastapi] Downloading types_pytz-2023.3.1.1-py3-none-any.whl.metadata (1.3 kB)
2023/12/11 07:45:40
2023/12/11 07:45:41 [fastapi] Collecting tenacity>=6.2.0 (from plotly<6.0.0,>=5.18.0->heartbeat-status==0.0.2->-r requirements.txt (line 4))
2023/12/11 07:45:41 [fastapi] Obtaining dependency information for tenacity>=6.2.0 from https://files.pythonhosted.org/packages/f4/f1/990741d5bb2487d529d20a433210ffa136a367751e454214013b441c4575/tenacity-8.2.3-py3-none-any.whl.metadata
2023/12/11 07:45:41 [fastapi] Downloading tenacity-8.2.3-py3-none-any.whl.metadata (1.0 kB)
2023/12/11 07:45:41 [fastapi] Collecting packaging (from plotly<6.0.0,>=5.18.0->heartbeat-status==0.0.2->-r requirements.txt (line 4))
2023/12/11 07:45:41 [fastapi] Obtaining dependency information for packaging from https://files.pythonhosted.org/packages/ec/1a/610693ac4ee14fcdf2d9bf3c493370e4f2ef7ae2e19217d7a237ff42367d/packaging-23.2-py3-none-any.whl.metadata
2023/12/11 07:45:41 [fastapi] Downloading packaging-23.2-py3-none-any.whl.metadata (3.2 kB)
2023/12/11 07:45:41 [fastapi] Collecting annotated-types>=0.4.0 (from pydantic<3.0.0,>=2.5.2->heartbeat-status==0.0.2->-r requirements.txt (line 4))
2023/12/11 07:45:41 [fastapi] Obtaining dependency information for annotated-types>=0.4.0 from https://files.pythonhosted.org/packages/28/78/d31230046e58c207284c6b2c4e8d96e6d3cb4e52354721b944d3e1ee4aa5/annotated_types-0.6.0-py3-none-any.whl.metadata
2023/12/11 07:45:41 [fastapi] Downloading annotated_types-0.6.0-py3-none-any.whl.metadata (12 kB)
2023/12/11 07:45:41
2023/12/11 07:45:42 [fastapi] Collecting pydantic-core==2.14.5 (from pydantic<3.0.0,>=2.5.2->heartbeat-status==0.0.2->-r requirements.txt (line 4))
2023/12/11 07:45:42 [fastapi] Obtaining dependency information for pydantic-core==2.14.5 from https://files.pythonhosted.org/packages/2a/b7/f85e5fd4504fae0df3eadd4bf9e0c495ecbdb804dc9be65653119454571e/pydantic_core-2.14.5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata
2023/12/11 07:45:42 [fastapi] Downloading pydantic_core-2.14.5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (6.5 kB)
2023/12/11 07:45:42 [fastapi] Collecting charset-normalizer<4,>=2 (from requests<3.0.0,>=2.31.0->heartbeat-status==0.0.2->-r requirements.txt (line 4))
2023/12/11 07:45:42 [fastapi] Obtaining dependency information for charset-normalizer<4,>=2 from https://files.pythonhosted.org/packages/98/69/5d8751b4b670d623aa7a47bef061d69c279e9f922f6705147983aa76c3ce/charset_normalizer-3.3.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata
2023/12/11 07:45:42 [fastapi] Downloading charset_normalizer-3.3.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (33 kB)
2023/12/11 07:45:42 [fastapi] Collecting idna<4,>=2.5 (from requests<3.0.0,>=2.31.0->heartbeat-status==0.0.2->-r requirements.txt (line 4))
2023/12/11 07:45:42 [fastapi] Obtaining dependency information for idna<4,>=2.5 from https://files.pythonhosted.org/packages/c2/e7/a82b05cf63a603df6e68d59ae6a68bf5064484a0718ea5033660af4b54a9/idna-3.6-py3-none-any.whl.metadata
2023/12/11 07:45:42 [fastapi] Downloading idna-3.6-py3-none-any.whl.metadata (9.9 kB)
2023/12/11 07:45:42 [fastapi] Collecting urllib3<3,>=1.21.1 (from requests<3.0.0,>=2.31.0->heartbeat-status==0.0.2->-r requirements.txt (line 4))
2023/12/11 07:45:42 [fastapi] Obtaining dependency information for urllib3<3,>=1.21.1 from https://files.pythonhosted.org/packages/96/94/c31f58c7a7f470d5665935262ebd7455c7e4c7782eb525658d3dbf4b9403/urllib3-2.1.0-py3-none-any.whl.metadata
2023/12/11 07:45:42 [fastapi] Downloading urllib3-2.1.0-py3-none-any.whl.metadata (6.4 kB)
2023/12/11 07:45:42 [fastapi] Collecting certifi>=2017.4.17 (from requests<3.0.0,>=2.31.0->heartbeat-status==0.0.2->-r requirements.txt (line 4))
2023/12/11 07:45:42 [fastapi] Obtaining dependency information for certifi>=2017.4.17 from https://files.pythonhosted.org/packages/64/62/428ef076be88fa93716b576e4a01f919d25968913e817077a386fcbe4f42/certifi-2023.11.17-py3-none-any.whl.metadata
2023/12/11 07:45:42 [fastapi] Downloading certifi-2023.11.17-py3-none-any.whl.metadata (2.2 kB)
2023/12/11 07:45:42 [fastapi] Collecting click>=7.0 (from uvicorn<0.25.0,>=0.24.0.post1->heartbeat-status==0.0.2->-r requirements.txt (line 4))
2023/12/11 07:45:42 [fastapi] Obtaining dependency information for click>=7.0 from https://files.pythonhosted.org/packages/00/2e/d53fa4befbf2cfa713304affc7ca780ce4fc1fd8710527771b58311a3229/click-8.1.7-py3-none-any.whl.metadata
2023/12/11 07:45:42 [fastapi] Downloading click-8.1.7-py3-none-any.whl.metadata (3.0 kB)
2023/12/11 07:45:42 [fastapi] Collecting h11>=0.8 (from uvicorn<0.25.0,>=0.24.0.post1->heartbeat-status==0.0.2->-r requirements.txt (line 4))
2023/12/11 07:45:42 [fastapi] Downloading h11-0.14.0-py3-none-any.whl (58 kB)
2023/12/11 07:45:42 [fastapi] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 58.3/58.3 kB 22.8 MB/s eta 0:00:00
2023/12/11 07:45:42 [fastapi] Collecting sniffio>=1.1 (from anyio<5,>=3.4.0->starlette==0.27.0->heartbeat-status==0.0.2->-r requirements.txt (line 4))
2023/12/11 07:45:42 [fastapi] Downloading sniffio-1.3.0-py3-none-any.whl (10 kB)
2023/12/11 07:45:42 [fastapi] Collecting exceptiongroup (from anyio<5,>=3.4.0->starlette==0.27.0->heartbeat-status==0.0.2->-r requirements.txt (line 4))
2023/12/11 07:45:42 [fastapi] Obtaining dependency information for exceptiongroup from https://files.pythonhosted.org/packages/b8/9a/5028fd52db10e600f1c4674441b968cf2ea4959085bfb5b99fb1250e5f68/exceptiongroup-1.2.0-py3-none-any.whl.metadata
2023/12/11 07:45:42 [fastapi] Downloading exceptiongroup-1.2.0-py3-none-any.whl.metadata (6.6 kB)
2023/12/11 07:45:42 [fastapi] Collecting six>=1.5 (from python-dateutil>=2.8.2->pandas<3.0.0,>=2.1.4->heartbeat-status==0.0.2->-r requirements.txt (line 4))
2023/12/11 07:45:42 [fastapi] Downloading six-1.16.0-py2.py3-none-any.whl (11 kB)
2023/12/11 07:45:42 [fastapi] Downloading heartbeat_status-0.0.2-py3-none-any.whl (91 kB)
2023/12/11 07:45:42 [fastapi] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 91.3/91.3 kB 31.0 MB/s eta 0:00:00
2023/12/11 07:45:42 [fastapi] Downloading starlette-0.27.0-py3-none-any.whl (66 kB)
2023/12/11 07:45:42 [fastapi] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 67.0/67.0 kB 29.1 MB/s eta 0:00:00
2023/12/11 07:45:42 [fastapi] Downloading deta-1.2.0-py3-none-any.whl (10 kB)
2023/12/11 07:45:42 [fastapi] Downloading fastapi-0.104.1-py3-none-any.whl (92 kB)
2023/12/11 07:45:42 [fastapi] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 92.9/92.9 kB 40.3 MB/s eta 0:00:00
2023/12/11 07:45:42 [fastapi] Downloading pandas-2.1.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.3 MB)
2023/12/11 07:45:42
2023/12/11 07:45:43 [fastapi] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 12.3/12.3 MB 20.5 MB/s eta 0:00:00
2023/12/11 07:45:43 [fastapi] Downloading pandas_stubs-2.1.1.230928-py3-none-any.whl (153 kB)
2023/12/11 07:45:43 [fastapi] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 153.5/153.5 kB 63.1 MB/s eta 0:00:00
2023/12/11 07:45:43 [fastapi] Downloading plotly-5.18.0-py3-none-any.whl (15.6 MB)
2023/12/11 07:45:43 [fastapi] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 15.6/15.6 MB 22.4 MB/s eta 0:00:00
2023/12/11 07:45:43 [fastapi] Downloading pydantic-2.5.2-py3-none-any.whl (381 kB)
2023/12/11 07:45:43 [fastapi] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 381.9/381.9 kB 93.1 MB/s eta 0:00:00
2023/12/11 07:45:43 [fastapi] Downloading pydantic_core-2.14.5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.1 MB)
2023/12/11 07:45:43 [fastapi] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.1/2.1 MB 84.6 MB/s eta 0:00:00
2023/12/11 07:45:43 [fastapi] Downloading requests-2.31.0-py3-none-any.whl (62 kB)
2023/12/11 07:45:43 [fastapi] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 62.6/62.6 kB 27.2 MB/s eta 0:00:00
2023/12/11 07:45:43 [fastapi] Downloading uvicorn-0.24.0.post1-py3-none-any.whl (59 kB)
2023/12/11 07:45:43 [fastapi] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 59.7/59.7 kB 26.7 MB/s eta 0:00:00
2023/12/11 07:45:43 [fastapi] Downloading annotated_types-0.6.0-py3-none-any.whl (12 kB)
2023/12/11 07:45:43 [fastapi] Downloading anyio-3.7.1-py3-none-any.whl (80 kB)
2023/12/11 07:45:43 [fastapi] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 80.9/80.9 kB 39.9 MB/s eta 0:00:00
2023/12/11 07:45:43 [fastapi] Downloading certifi-2023.11.17-py3-none-any.whl (162 kB)
2023/12/11 07:45:43 [fastapi] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 162.5/162.5 kB 66.5 MB/s eta 0:00:00
2023/12/11 07:45:43 [fastapi] Downloading charset_normalizer-3.3.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (142 kB)
2023/12/11 07:45:43 [fastapi] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 142.3/142.3 kB 58.3 MB/s eta 0:00:00
2023/12/11 07:45:43 [fastapi] Downloading click-8.1.7-py3-none-any.whl (97 kB)
2023/12/11 07:45:43 [fastapi] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 97.9/97.9 kB 47.0 MB/s eta 0:00:00
2023/12/11 07:45:43 [fastapi] Downloading idna-3.6-py3-none-any.whl (61 kB)
2023/12/11 07:45:43 [fastapi] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.6/61.6 kB 28.5 MB/s eta 0:00:00
2023/12/11 07:45:43 [fastapi] Downloading MarkupSafe-2.1.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (25 kB)
2023/12/11 07:45:43 [fastapi] Downloading numpy-1.26.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (18.2 MB)
2023/12/11 07:45:43
2023/12/11 07:45:44 [fastapi] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 18.2/18.2 MB 17.0 MB/s eta 0:00:00
2023/12/11 07:45:44 [fastapi] Downloading pytz-2023.3.post1-py2.py3-none-any.whl (502 kB)
2023/12/11 07:45:44 [fastapi] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 502.5/502.5 kB 46.0 MB/s eta 0:00:00
2023/12/11 07:45:44 [fastapi] Downloading tenacity-8.2.3-py3-none-any.whl (24 kB)
2023/12/11 07:45:44 [fastapi] Downloading types_pytz-2023.3.1.1-py3-none-any.whl (4.9 kB)
2023/12/11 07:45:44 [fastapi] Downloading typing_extensions-4.9.0-py3-none-any.whl (32 kB)
2023/12/11 07:45:44 [fastapi] Downloading urllib3-2.1.0-py3-none-any.whl (104 kB)
2023/12/11 07:45:44 [fastapi] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 104.6/104.6 kB 53.3 MB/s eta 0:00:00
2023/12/11 07:45:44 [fastapi] Downloading packaging-23.2-py3-none-any.whl (53 kB)
2023/12/11 07:45:44 [fastapi] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 53.0/53.0 kB 27.4 MB/s eta 0:00:00
2023/12/11 07:45:44 [fastapi] Downloading exceptiongroup-1.2.0-py3-none-any.whl (16 kB)
2023/12/11 07:45:44
2023/12/11 07:45:45 [fastapi] Installing collected packages: types-pytz, pytz, deta, urllib3, tzdata, typing-extensions, tenacity, sniffio, six, python-dotenv, packaging, numpy, MarkupSafe, idna, h11, exceptiongroup, click, charset-normalizer, certifi, annotated-types, uvicorn, requests, python-dateutil, pydantic-core, plotly, pandas-stubs, jinja2, anyio, starlette, pydantic, pandas, fastapi, heartbeat-status
2023/12/11 07:45:45
2023/12/11 07:46:02 [fastapi] Successfully installed MarkupSafe-2.1.3 annotated-types-0.6.0 anyio-3.7.1 certifi-2023.11.17 charset-normalizer-3.3.2 click-8.1.7 deta-1.2.0 exceptiongroup-1.2.0 fastapi-0.104.1 h11-0.14.0 heartbeat-status-0.0.2 idna-3.6 jinja2-3.1.2 numpy-1.26.2 packaging-23.2 pandas-2.1.4 pandas-stubs-2.1.1.230928 plotly-5.18.0 pydantic-2.5.2 pydantic-core-2.14.5 python-dateutil-2.8.2 python-dotenv-1.0.0 pytz-2023.3.post1 requests-2.31.0 six-1.16.0 sniffio-1.3.0 starlette-0.27.0 tenacity-8.2.3 types-pytz-2023.3.1.1 typing-extensions-4.9.0 tzdata-2023.3 urllib3-2.1.0 uvicorn-0.24.0.post1
2023/12/11 07:46:02 [fastapi] WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
2023/12/11 07:46:02
2023/12/11 07:46:03 [fastapi]
2023/12/11 07:46:03 [fastapi] [notice] A new release of pip is available: 23.2.1 -> 23.3.1
2023/12/11 07:46:03 [fastapi] [notice] To update, run: pip install --upgrade pip
2023/12/11 07:46:03 [fastapi]
2023/12/11 07:46:03
2023/12/11 07:46:13 [fastapi] Zipping code
2023/12/11 07:46:13
2023/12/11 07:46:13 All micros built successfully
2023/12/11 07:46:13
2023/12/11 07:46:20 build complete...
2023/12/11 07:46:20 created revision: man-cjz8
i Updating your Builder instance with the new revision...
! Error: failed to update your Builder instance, please try again
$ space push
Validating your Spacefile...
Your Spacefile looks good, proceeding with your push!
✓ Successfully started your build!
✓ Successfully pushed your Spacefile!
~ Pushing your code (29 files) & running build process...
2023/12/26 02:32:43
2023/12/26 02:32:43 Parsing Spacefile...
2023/12/26 02:32:43 Scanned micros:
2023/12/26 02:32:43 └ fastapi
2023/12/26 02:32:43
2023/12/26 02:32:43 Building micro fastapi...
2023/12/26 02:32:43 [fastapi] Installing dependencies with pip
2023/12/26 02:32:43 [fastapi]
2023/12/26 02:32:43
2023/12/26 02:32:48 [fastapi] Collecting heartbeat-status==0.0.2 (from -r requirements.txt (line 4))
2023/12/26 02:32:48 [fastapi] Obtaining dependency information for heartbeat-status==0.0.2 from https://files.pythonhosted.org/packa
ges/ad/24/cdaa1d93b84dc3a205d6e3a32bb13594d7893f0c3e993f967415f302a533/heartbeat_status-0.0.2-py3-none-any.whl.metadata
2023/12/26 02:32:48 [fastapi] Downloading heartbeat_status-0.0.2-py3-none-any.whl.metadata (1.4 kB)
2023/12/26 02:32:48 [fastapi] Collecting deta<2.0.0,>=1.2.0 (from heartbeat-status==0.0.2->-r requirements.txt (line 4))
2023/12/26 02:32:48 [fastapi] Obtaining dependency information for deta<2.0.0,>=1.2.0 from https://files.pythonhosted.org/packages/f
a/70/e742f03eaf8bd782c897fc115379341a94d53b9616f1fa9d1345ab14b1da/deta-1.2.0-py3-none-any.whl.metadata
2023/12/26 02:32:48 [fastapi] Downloading deta-1.2.0-py3-none-any.whl.metadata (444 bytes)
2023/12/26 02:32:48 [fastapi] Collecting fastapi<0.105.0,>=0.104.1 (from heartbeat-status==0.0.2->-r requirements.txt (line 4))
2023/12/26 02:32:48 [fastapi] Obtaining dependency information for fastapi<0.105.0,>=0.104.1 from https://files.pythonhosted.org/pac
kages/f3/4f/0ce34195b63240b6693086496c9bab4ef23999112184399a3e88854c7674/fastapi-0.104.1-py3-none-any.whl.metadata
2023/12/26 02:32:48 [fastapi] Downloading fastapi-0.104.1-py3-none-any.whl.metadata (24 kB)
2023/12/26 02:32:48 [fastapi] Collecting jinja2<4.0.0,>=3.1.2 (from heartbeat-status==0.0.2->-r requirements.txt (line 4))
2023/12/26 02:32:48 [fastapi] Downloading Jinja2-3.1.2-py3-none-any.whl (133 kB)
2023/12/26 02:32:48 [fastapi] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 133.1/133.1 kB 24.7 MB/s eta 0:00:00
2023/12/26 02:32:48
2023/12/26 02:32:49 [fastapi] Collecting pandas<3.0.0,>=2.1.4 (from heartbeat-status==0.0.2->-r requirements.txt (line 4))
2023/12/26 02:32:49 [fastapi] Obtaining dependency information for pandas<3.0.0,>=2.1.4 from https://files.pythonhosted.org/packages
/bc/f8/2aa75ae200bdb9dc6967712f26628a06bf45d3ad94cbbf6fb4962ada15a3/pandas-2.1.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.
whl.metadata
2023/12/26 02:32:49 [fastapi] Downloading pandas-2.1.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (18 kB)
2023/12/26 02:32:49 [fastapi] Collecting pandas-stubs<3.0.0.0,>=2.1.1.230928 (from heartbeat-status==0.0.2->-r requirements.txt (line
4))
2023/12/26 02:32:49 [fastapi] Obtaining dependency information for pandas-stubs<3.0.0.0,>=2.1.1.230928 from https://files.pythonhost
ed.org/packages/f9/f8/793e985b559ad697afe4c922644dd559c00ad0e93594ea2affb95c5e6569/pandas_stubs-2.1.4.231218-py3-none-any.whl.metadata
2023/12/26 02:32:49 [fastapi] Downloading pandas_stubs-2.1.4.231218-py3-none-any.whl.metadata (9.6 kB)
2023/12/26 02:32:49 [fastapi] Collecting plotly<6.0.0,>=5.18.0 (from heartbeat-status==0.0.2->-r requirements.txt (line 4))
2023/12/26 02:32:49 [fastapi] Obtaining dependency information for plotly<6.0.0,>=5.18.0 from https://files.pythonhosted.org/package
s/a8/07/72953cf70e3bd3a24cbc3e743e6f8539abe6e3e6d83c3c0c83426eaffd39/plotly-5.18.0-py3-none-any.whl.metadata
2023/12/26 02:32:49 [fastapi] Downloading plotly-5.18.0-py3-none-any.whl.metadata (7.0 kB)
2023/12/26 02:32:49 [fastapi] Collecting pydantic<3.0.0,>=2.5.2 (from heartbeat-status==0.0.2->-r requirements.txt (line 4))
2023/12/26 02:32:49 [fastapi] Obtaining dependency information for pydantic<3.0.0,>=2.5.2 from https://files.pythonhosted.org/packag
es/dd/b7/9aea7ee6c01fe3f3c03b8ca3c7797c866df5fecece9d6cb27caa138db2e2/pydantic-2.5.3-py3-none-any.whl.metadata
2023/12/26 02:32:49 [fastapi] Downloading pydantic-2.5.3-py3-none-any.whl.metadata (65 kB)
2023/12/26 02:32:49 [fastapi] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 65.6/65.6 kB 24.2 MB/s eta 0:00:00
2023/12/26 02:32:49 [fastapi] Collecting python-dotenv<2.0.0,>=1.0.0 (from heartbeat-status==0.0.2->-r requirements.txt (line 4))
2023/12/26 02:32:49 [fastapi] Downloading python_dotenv-1.0.0-py3-none-any.whl (19 kB)
2023/12/26 02:32:49 [fastapi] Collecting requests<3.0.0,>=2.31.0 (from heartbeat-status==0.0.2->-r requirements.txt (line 4))
2023/12/26 02:32:49 [fastapi] Obtaining dependency information for requests<3.0.0,>=2.31.0 from https://files.pythonhosted.org/packa
ges/70/8e/0e2d847013cb52cd35b38c009bb167a1a26b2ce6cd6965bf26b47bc0bf44/requests-2.31.0-py3-none-any.whl.metadata
2023/12/26 02:32:49 [fastapi] Downloading requests-2.31.0-py3-none-any.whl.metadata (4.6 kB)
2023/12/26 02:32:49 [fastapi] Collecting starlette==0.27.0 (from heartbeat-status==0.0.2->-r requirements.txt (line 4))
2023/12/26 02:32:49 [fastapi] Obtaining dependency information for starlette==0.27.0 from https://files.pythonhosted.org/packages/58
/f8/e2cca22387965584a409795913b774235752be4176d276714e15e1a58884/starlette-0.27.0-py3-none-any.whl.metadata
2023/12/26 02:32:49 [fastapi] Downloading starlette-0.27.0-py3-none-any.whl.metadata (5.8 kB)
2023/12/26 02:32:49 [fastapi] Collecting uvicorn<0.25.0,>=0.24.0.post1 (from heartbeat-status==0.0.2->-r requirements.txt (line 4))
2023/12/26 02:32:49 [fastapi] Obtaining dependency information for uvicorn<0.25.0,>=0.24.0.post1 from https://files.pythonhosted.org
/packages/7e/17/4b7a76fffa7babf397481040d8aef2725b2b81ae19f1a31b5ca0c17d49e6/uvicorn-0.24.0.post1-py3-none-any.whl.metadata
2023/12/26 02:32:49 [fastapi] Downloading uvicorn-0.24.0.post1-py3-none-any.whl.metadata (6.4 kB)
2023/12/26 02:32:49 [fastapi] Collecting anyio<5,>=3.4.0 (from starlette==0.27.0->heartbeat-status==0.0.2->-r requirements.txt (line 4
))
2023/12/26 02:32:49 [fastapi] Obtaining dependency information for anyio<5,>=3.4.0 from https://files.pythonhosted.org/packages/bf/c
d/d6d9bb1dadf73e7af02d18225cbd2c93f8552e13130484f1c8dcfece292b/anyio-4.2.0-py3-none-any.whl.metadata
2023/12/26 02:32:49 [fastapi] Downloading anyio-4.2.0-py3-none-any.whl.metadata (4.6 kB)
2023/12/26 02:32:49 [fastapi] Collecting typing-extensions>=3.10.0 (from starlette==0.27.0->heartbeat-status==0.0.2->-r requirements.t
xt (line 4))
2023/12/26 02:32:49 [fastapi] Obtaining dependency information for typing-extensions>=3.10.0 from https://files.pythonhosted.org/pac
kages/b7/f4/6a90020cd2d93349b442bfcb657d0dc91eee65491600b2cb1d388bc98e6b/typing_extensions-4.9.0-py3-none-any.whl.metadata
2023/12/26 02:32:49 [fastapi] Downloading typing_extensions-4.9.0-py3-none-any.whl.metadata (3.0 kB)
2023/12/26 02:32:49 [fastapi] Collecting anyio<5,>=3.4.0 (from starlette==0.27.0->heartbeat-status==0.0.2->-r requirements.txt (line 4
))
2023/12/26 02:32:49 [fastapi] Obtaining dependency information for anyio<5,>=3.4.0 from https://files.pythonhosted.org/packages/19/2
4/44299477fe7dcc9cb58d0a57d5a7588d6af2ff403fdd2d47a246c91a3246/anyio-3.7.1-py3-none-any.whl.metadata
2023/12/26 02:32:49 [fastapi] Downloading anyio-3.7.1-py3-none-any.whl.metadata (4.7 kB)
2023/12/26 02:32:49 [fastapi] Collecting MarkupSafe>=2.0 (from jinja2<4.0.0,>=3.1.2->heartbeat-status==0.0.2->-r requirements.txt (lin
e 4))
2023/12/26 02:32:49 [fastapi] Obtaining dependency information for MarkupSafe>=2.0 from https://files.pythonhosted.org/packages/de/6
3/cb7e71984e9159ec5f45b5e81e896c8bdd0e45fe3fc6ce02ab497f0d790e/MarkupSafe-2.1.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.w
hl.metadata
2023/12/26 02:32:49 [fastapi] Downloading MarkupSafe-2.1.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (3.0 kB
)
2023/12/26 02:32:49
2023/12/26 02:32:50 [fastapi] Collecting numpy<2,>=1.22.4 (from pandas<3.0.0,>=2.1.4->heartbeat-status==0.0.2->-r requirements.txt (li
ne 4))
2023/12/26 02:32:50 [fastapi] Obtaining dependency information for numpy<2,>=1.22.4 from https://files.pythonhosted.org/packages/2f/
75/f007cc0e6a373207818bef17f463d3305e9dd380a70db0e523e7660bf21f/numpy-1.26.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
metadata
2023/12/26 02:32:50 [fastapi] Downloading numpy-1.26.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (61 kB)
2023/12/26 02:32:50 [fastapi] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.2/61.2 kB 25.3 MB/s eta 0:00:00
2023/12/26 02:32:50 [fastapi] Collecting python-dateutil>=2.8.2 (from pandas<3.0.0,>=2.1.4->heartbeat-status==0.0.2->-r requirements.t
xt (line 4))
2023/12/26 02:32:50 [fastapi] Downloading python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
2023/12/26 02:32:50 [fastapi] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 247.7/247.7 kB 65.7 MB/s eta 0:00:00
2023/12/26 02:32:50 [fastapi] Collecting pytz>=2020.1 (from pandas<3.0.0,>=2.1.4->heartbeat-status==0.0.2->-r requirements.txt (line 4
))
2023/12/26 02:32:50 [fastapi] Obtaining dependency information for pytz>=2020.1 from https://files.pythonhosted.org/packages/32/4d/a
af7eff5deb402fd9a24a1449a8119f00d74ae9c2efa79f8ef9994261fc2/pytz-2023.3.post1-py2.py3-none-any.whl.metadata
2023/12/26 02:32:50 [fastapi] Downloading pytz-2023.3.post1-py2.py3-none-any.whl.metadata (22 kB)
2023/12/26 02:32:50 [fastapi] Collecting tzdata>=2022.1 (from pandas<3.0.0,>=2.1.4->heartbeat-status==0.0.2->-r requirements.txt (line
4))
2023/12/26 02:32:50 [fastapi] Downloading tzdata-2023.3-py2.py3-none-any.whl (341 kB)
2023/12/26 02:32:50 [fastapi] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 341.8/341.8 kB 35.6 MB/s eta 0:00:00
2023/12/26 02:32:50 [fastapi] Collecting types-pytz>=2022.1.1 (from pandas-stubs<3.0.0.0,>=2.1.1.230928->heartbeat-status==0.0.2->-r r
equirements.txt (line 4))
2023/12/26 02:32:50 [fastapi] Obtaining dependency information for types-pytz>=2022.1.1 from https://files.pythonhosted.org/packages
/79/4f/58c28f50233612d9890cc2b068aee977ef3f7d6434ef4debf98162e34152/types_pytz-2023.3.1.1-py3-none-any.whl.metadata
2023/12/26 02:32:50 [fastapi] Downloading types_pytz-2023.3.1.1-py3-none-any.whl.metadata (1.3 kB)
2023/12/26 02:32:50 [fastapi] Collecting tenacity>=6.2.0 (from plotly<6.0.0,>=5.18.0->heartbeat-status==0.0.2->-r requirements.txt (li
ne 4))
2023/12/26 02:32:50 [fastapi] Obtaining dependency information for tenacity>=6.2.0 from https://files.pythonhosted.org/packages/f4/f
1/990741d5bb2487d529d20a433210ffa136a367751e454214013b441c4575/tenacity-8.2.3-py3-none-any.whl.metadata
2023/12/26 02:32:50 [fastapi] Downloading tenacity-8.2.3-py3-none-any.whl.metadata (1.0 kB)
2023/12/26 02:32:50 [fastapi] Collecting packaging (from plotly<6.0.0,>=5.18.0->heartbeat-status==0.0.2->-r requirements.txt (line 4))
2023/12/26 02:32:50 [fastapi] Obtaining dependency information for packaging from https://files.pythonhosted.org/packages/ec/1a/6106
93ac4ee14fcdf2d9bf3c493370e4f2ef7ae2e19217d7a237ff42367d/packaging-23.2-py3-none-any.whl.metadata
2023/12/26 02:32:50 [fastapi] Downloading packaging-23.2-py3-none-any.whl.metadata (3.2 kB)
2023/12/26 02:32:50 [fastapi] Collecting annotated-types>=0.4.0 (from pydantic<3.0.0,>=2.5.2->heartbeat-status==0.0.2->-r requirements
.txt (line 4))
2023/12/26 02:32:50 [fastapi] Obtaining dependency information for annotated-types>=0.4.0 from https://files.pythonhosted.org/packag
es/28/78/d31230046e58c207284c6b2c4e8d96e6d3cb4e52354721b944d3e1ee4aa5/annotated_types-0.6.0-py3-none-any.whl.metadata
2023/12/26 02:32:50 [fastapi] Downloading annotated_types-0.6.0-py3-none-any.whl.metadata (12 kB)
2023/12/26 02:32:50
2023/12/26 02:32:51 [fastapi] Collecting pydantic-core==2.14.6 (from pydantic<3.0.0,>=2.5.2->heartbeat-status==0.0.2->-r requirements.
txt (line 4))
2023/12/26 02:32:51 [fastapi] Obtaining dependency information for pydantic-core==2.14.6 from https://files.pythonhosted.org/package
s/55/0f/45626f8bf7f7973320531bb384ac302eb9b05a70885b9db2bf1db4cf447b/pydantic_core-2.14.6-cp39-cp39-manylinux_2_17_x86_64.manylinux201
4_x86_64.whl.metadata
2023/12/26 02:32:51 [fastapi] Downloading pydantic_core-2.14.6-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (6.
5 kB)
2023/12/26 02:32:51 [fastapi] Collecting charset-normalizer<4,>=2 (from requests<3.0.0,>=2.31.0->heartbeat-status==0.0.2->-r requireme
nts.txt (line 4))
2023/12/26 02:32:51 [fastapi] Obtaining dependency information for charset-normalizer<4,>=2 from https://files.pythonhosted.org/pack
ages/98/69/5d8751b4b670d623aa7a47bef061d69c279e9f922f6705147983aa76c3ce/charset_normalizer-3.3.2-cp39-cp39-manylinux_2_17_x86_64.manyl
inux2014_x86_64.whl.metadata
2023/12/26 02:32:51 [fastapi] Downloading charset_normalizer-3.3.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata
(33 kB)
2023/12/26 02:32:51 [fastapi] Collecting idna<4,>=2.5 (from requests<3.0.0,>=2.31.0->heartbeat-status==0.0.2->-r requirements.txt (lin
e 4))
2023/12/26 02:32:51 [fastapi] Obtaining dependency information for idna<4,>=2.5 from https://files.pythonhosted.org/packages/c2/e7/a
82b05cf63a603df6e68d59ae6a68bf5064484a0718ea5033660af4b54a9/idna-3.6-py3-none-any.whl.metadata
2023/12/26 02:32:51 [fastapi] Downloading idna-3.6-py3-none-any.whl.metadata (9.9 kB)
2023/12/26 02:32:51 [fastapi] Collecting urllib3<3,>=1.21.1 (from requests<3.0.0,>=2.31.0->heartbeat-status==0.0.2->-r requirements.tx
t (line 4))
2023/12/26 02:32:51 [fastapi] Obtaining dependency information for urllib3<3,>=1.21.1 from https://files.pythonhosted.org/packages/9
6/94/c31f58c7a7f470d5665935262ebd7455c7e4c7782eb525658d3dbf4b9403/urllib3-2.1.0-py3-none-any.whl.metadata
2023/12/26 02:32:51 [fastapi] Downloading urllib3-2.1.0-py3-none-any.whl.metadata (6.4 kB)
2023/12/26 02:32:51 [fastapi] Collecting certifi>=2017.4.17 (from requests<3.0.0,>=2.31.0->heartbeat-status==0.0.2->-r requirements.tx
t (line 4))
2023/12/26 02:32:51 [fastapi] Obtaining dependency information for certifi>=2017.4.17 from https://files.pythonhosted.org/packages/6
4/62/428ef076be88fa93716b576e4a01f919d25968913e817077a386fcbe4f42/certifi-2023.11.17-py3-none-any.whl.metadata
2023/12/26 02:32:51 [fastapi] Downloading certifi-2023.11.17-py3-none-any.whl.metadata (2.2 kB)
2023/12/26 02:32:51
2023/12/26 02:32:52 [fastapi] Collecting click>=7.0 (from uvicorn<0.25.0,>=0.24.0.post1->heartbeat-status==0.0.2->-r requirements.txt
(line 4))
2023/12/26 02:32:52 [fastapi] Obtaining dependency information for click>=7.0 from https://files.pythonhosted.org/packages/00/2e/d53
fa4befbf2cfa713304affc7ca780ce4fc1fd8710527771b58311a3229/click-8.1.7-py3-none-any.whl.metadata
2023/12/26 02:32:52 [fastapi] Downloading click-8.1.7-py3-none-any.whl.metadata (3.0 kB)
2023/12/26 02:32:52 [fastapi] Collecting h11>=0.8 (from uvicorn<0.25.0,>=0.24.0.post1->heartbeat-status==0.0.2->-r requirements.txt (l
ine 4))
2023/12/26 02:32:52 [fastapi] Downloading h11-0.14.0-py3-none-any.whl (58 kB)
2023/12/26 02:32:52 [fastapi] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 58.3/58.3 kB 22.5 MB/s eta 0:00:00
2023/12/26 02:32:52 [fastapi] Collecting sniffio>=1.1 (from anyio<5,>=3.4.0->starlette==0.27.0->heartbeat-status==0.0.2->-r requiremen
ts.txt (line 4))
2023/12/26 02:32:52 [fastapi] Downloading sniffio-1.3.0-py3-none-any.whl (10 kB)
2023/12/26 02:32:52 [fastapi] Collecting exceptiongroup (from anyio<5,>=3.4.0->starlette==0.27.0->heartbeat-status==0.0.2->-r requirem
ents.txt (line 4))
2023/12/26 02:32:52 [fastapi] Obtaining dependency information for exceptiongroup from https://files.pythonhosted.org/packages/b8/9a
/5028fd52db10e600f1c4674441b968cf2ea4959085bfb5b99fb1250e5f68/exceptiongroup-1.2.0-py3-none-any.whl.metadata
2023/12/26 02:32:52 [fastapi] Downloading exceptiongroup-1.2.0-py3-none-any.whl.metadata (6.6 kB)
2023/12/26 02:32:52 [fastapi] Collecting six>=1.5 (from python-dateutil>=2.8.2->pandas<3.0.0,>=2.1.4->heartbeat-status==0.0.2->-r requ
irements.txt (line 4))
2023/12/26 02:32:52 [fastapi] Downloading six-1.16.0-py2.py3-none-any.whl (11 kB)
2023/12/26 02:32:52 [fastapi] Downloading heartbeat_status-0.0.2-py3-none-any.whl (91 kB)
2023/12/26 02:32:52 [fastapi] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 91.3/91.3 kB 31.8 MB/s eta 0:00:00
2023/12/26 02:32:52 [fastapi] Downloading starlette-0.27.0-py3-none-any.whl (66 kB)
2023/12/26 02:32:52 [fastapi] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 67.0/67.0 kB 26.1 MB/s eta 0:00:00
2023/12/26 02:32:52 [fastapi] Downloading deta-1.2.0-py3-none-any.whl (10 kB)
2023/12/26 02:32:52 [fastapi] Downloading fastapi-0.104.1-py3-none-any.whl (92 kB)
2023/12/26 02:32:52 [fastapi] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 92.9/92.9 kB 25.1 MB/s eta 0:00:00
2023/12/26 02:32:52 [fastapi] Downloading pandas-2.1.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.3 MB)
2023/12/26 02:32:52 [fastapi] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 12.3/12.3 MB 23.1 MB/s eta 0:00:00
2023/12/26 02:32:52 [fastapi] Downloading pandas_stubs-2.1.4.231218-py3-none-any.whl (153 kB)
2023/12/26 02:32:52 [fastapi] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 153.4/153.4 kB 62.0 MB/s eta 0:00:00
2023/12/26 02:32:52 [fastapi] Downloading plotly-5.18.0-py3-none-any.whl (15.6 MB)
2023/12/26 02:32:52
2023/12/26 02:32:53 [fastapi] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 15.6/15.6 MB 24.7 MB/s eta 0:00:00
2023/12/26 02:32:53 [fastapi] Downloading pydantic-2.5.3-py3-none-any.whl (381 kB)
2023/12/26 02:32:53 [fastapi] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 381.9/381.9 kB 93.3 MB/s eta 0:00:00
2023/12/26 02:32:53 [fastapi] Downloading pydantic_core-2.14.6-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.1 MB)
2023/12/26 02:32:53 [fastapi] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.1/2.1 MB 109.9 MB/s eta 0:00:00
2023/12/26 02:32:53 [fastapi] Downloading requests-2.31.0-py3-none-any.whl (62 kB)
2023/12/26 02:32:53 [fastapi] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 62.6/62.6 kB 28.4 MB/s eta 0:00:00
2023/12/26 02:32:53 [fastapi] Downloading uvicorn-0.24.0.post1-py3-none-any.whl (59 kB)
2023/12/26 02:32:53 [fastapi] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 59.7/59.7 kB 27.6 MB/s eta 0:00:00
2023/12/26 02:32:53 [fastapi] Downloading annotated_types-0.6.0-py3-none-any.whl (12 kB)
2023/12/26 02:32:53 [fastapi] Downloading anyio-3.7.1-py3-none-any.whl (80 kB)
2023/12/26 02:32:53 [fastapi] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 80.9/80.9 kB 38.9 MB/s eta 0:00:00
2023/12/26 02:32:53 [fastapi] Downloading certifi-2023.11.17-py3-none-any.whl (162 kB)
2023/12/26 02:32:53 [fastapi] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 162.5/162.5 kB 62.5 MB/s eta 0:00:00
2023/12/26 02:32:53 [fastapi] Downloading charset_normalizer-3.3.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (142 kB)
2023/12/26 02:32:53 [fastapi] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 142.3/142.3 kB 63.8 MB/s eta 0:00:00
2023/12/26 02:32:53 [fastapi] Downloading click-8.1.7-py3-none-any.whl (97 kB)
2023/12/26 02:32:53 [fastapi] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 97.9/97.9 kB 42.6 MB/s eta 0:00:00
2023/12/26 02:32:53 [fastapi] Downloading idna-3.6-py3-none-any.whl (61 kB)
2023/12/26 02:32:53 [fastapi] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.6/61.6 kB 31.2 MB/s eta 0:00:00
2023/12/26 02:32:53 [fastapi] Downloading MarkupSafe-2.1.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (25 kB)
2023/12/26 02:32:53 [fastapi] Downloading numpy-1.26.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (18.2 MB)
2023/12/26 02:32:53
2023/12/26 02:32:54 [fastapi] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 18.2/18.2 MB 21.0 MB/s eta 0:00:00
2023/12/26 02:32:54 [fastapi] Downloading pytz-2023.3.post1-py2.py3-none-any.whl (502 kB)
2023/12/26 02:32:54 [fastapi] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 502.5/502.5 kB 56.9 MB/s eta 0:00:00
2023/12/26 02:32:54 [fastapi] Downloading tenacity-8.2.3-py3-none-any.whl (24 kB)
2023/12/26 02:32:54 [fastapi] Downloading types_pytz-2023.3.1.1-py3-none-any.whl (4.9 kB)
2023/12/26 02:32:54 [fastapi] Downloading typing_extensions-4.9.0-py3-none-any.whl (32 kB)
2023/12/26 02:32:54 [fastapi] Downloading urllib3-2.1.0-py3-none-any.whl (104 kB)
2023/12/26 02:32:54 [fastapi] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 104.6/104.6 kB 35.1 MB/s eta 0:00:00
2023/12/26 02:32:54 [fastapi] Downloading packaging-23.2-py3-none-any.whl (53 kB)
2023/12/26 02:32:54 [fastapi] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 53.0/53.0 kB 26.8 MB/s eta 0:00:00
2023/12/26 02:32:54 [fastapi] Downloading exceptiongroup-1.2.0-py3-none-any.whl (16 kB)
2023/12/26 02:32:54 [fastapi] Installing collected packages: types-pytz, pytz, deta, urllib3, tzdata, typing-extensions, tenacity, sniffio, six, python-dotenv, packaging, numpy, MarkupSafe, idna, h11, exceptiongroup, click, charset-normalizer, certifi, annotated-types, uvicorn, requests, python-dateutil, pydantic-core, plotly, pandas-stubs, jinja2, anyio, starlette, pydantic, pandas, fastapi, heartbeat-status
2023/12/26 02:32:54
2023/12/26 02:33:11 [fastapi] Successfully installed MarkupSafe-2.1.3 annotated-types-0.6.0 anyio-3.7.1 certifi-2023.11.17 charset-normalizer-3.3.2 click-8.1.7 deta-1.2.0 exceptiongroup-1.2.0 fastapi-0.104.1 h11-0.14.0 heartbeat-status-0.0.2 idna-3.6 jinja2-3.1.2 numpy-1.26.2 packaging-23.2 pandas-2.1.4 pandas-stubs-2.1.4.231218 plotly-5.18.0 pydantic-2.5.3 pydantic-core-2.14.6 python-dateutil-2.8.2 python-dotenv-1.0.0 pytz-2023.3.post1 requests-2.31.0 six-1.16.0 sniffio-1.3.0 starlette-0.27.0 tenacity-8.2.3 types-pytz-2023.3.1.1 typing-extensions-4.9.0 tzdata-2023.3 urllib3-2.1.0 uvicorn-0.24.0.post1
2023/12/26 02:33:11 [fastapi] WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
2023/12/26 02:33:11
2023/12/26 02:33:12 [fastapi]
2023/12/26 02:33:12 [fastapi] [notice] A new release of pip is available: 23.2.1 -> 23.3.2
2023/12/26 02:33:12 [fastapi] [notice] To update, run: pip install --upgrade pip
2023/12/26 02:33:12 [fastapi]
2023/12/26 02:33:12
2023/12/26 02:33:22 [fastapi] Zipping code
2023/12/26 02:33:22
2023/12/26 02:33:22 All micros built successfully
2023/12/26 02:33:22
2023/12/26 02:33:29 build complete...
2023/12/26 02:33:29 created revision: seasnail-fznc
i Updating your Builder instance with the new revision...
! Error: failed to update your Builder instance, please try again
I ran the "space new" command after installing the CLI but I ran into this error.
I have been looking around the documentation and the website but I can't find a way to enable the "developer mode". Does anyone know how to enable this?
I have three files app.py, requirements.txt, SpaceFile
1 . app.py
from h2o_wave import main, app, Q, ui
@app('/')
async def serve(q: Q):
if q.args.info_card:
q.page['example'] = ui.form_card(box='1 1 2 4', items=[
ui.button(name='back', label='Go back', primary=True),
])
else:
q.page['example'] = ui.tall_info_card(
box='1 1 2 5',
name='info_card',
title='Info Card',
caption='Lorem ipsum dolor sit amet consectetur adipisicing elit.',
category='Category',
label='Click me',
image='https://images.pexels.com/photos/3225517/pexels-photo-3225517.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260',
)
await q.page.save()
h2o-wave==0.26.0
# Spacefile Docs: https://go.deta.dev/docs/spacefile/v0
v: 0
micros:
- name: SpaceApp
src: ./
engine: python3.9
primary: true
dev: venv/bin/wave run app
space dev
is running fine.
when I run space push
, pushed successfully.
output.log
✓ Successfully pushed your code and updated your Builder instance!
But If i open the url https://llmappstudio-1-g3961636.deta.app, It gives this error
Error Type:
ModuleNotFoundError
Error Message:
No module named 'main'
Logs:
time="2023-08-13T08:28:10Z" level=info msg="serving logs listener on sandbox.localdomain:1234" agent=logsApiAgent
TELEMETRY Name: telemetry-extension State: Subscribed Types: [Function]
Stack Trace:
File "/opt/python/detalib/debugger.py", line 131, in wrap
return func(event, context)
File "/var/task/_entry.py", line 12, in handler
import main # noqa
Could you please help with this?
When I was releasing ghcr-badge v0.3.0-0 with this script, I've got Error: failed to store discovery data: bad request
and release has been published to Discovery without my Discovery.md content.
$ uname -vorm
5.19.0-50-generic #50-Ubuntu SMP PREEMPT_DYNAMIC Mon Jul 10 18:24:29 UTC 2023 x86_64 GNU/Linux
$ space version
0.3.14 amd64-linux
$ ./publish.sh 0.3.0-0
~ Validating Spacefile...
i No app icon specified.
✓ Spacefile looks good!
Validating your Spacefile...
Your Spacefile looks good, proceeding with your push!
✓ Successfully started your build!
✓ Successfully pushed your Spacefile!
~ Pushing your code (726 files) & running build process...
2023/07/31 02:12:15
2023/07/31 02:12:15 Parsing Spacefile...
2023/07/31 02:12:16 Scanned micros:
2023/07/31 02:12:16 └ ghcr-badge
2023/07/31 02:12:16
2023/07/31 02:12:16 Building micro ghcr-badge...
2023/07/31 02:12:17 [ghcr-badge] Installing dependencies with pip
2023/07/31 02:12:17 [ghcr-badge]
2023/07/31 02:12:20 [ghcr-badge] Collecting ghcr-badge==0.3.0 (from -r requirements.txt (line 1))
2023/07/31 02:12:20 [ghcr-badge] Obtaining dependency information for ghcr-badge==0.3.0 from https://files.pythonho
sted.org/packages/fa/1b/e122180663a44d1a6d12bce9afc69e976ac957586280285c6067bde09038/ghcr_badge-0.3.0-py3-none-any.wh
l.metadata
2023/07/31 02:12:20 [ghcr-badge] Downloading ghcr_badge-0.3.0-py3-none-any.whl.metadata (5.0 kB)
2023/07/31 02:12:20 [ghcr-badge] Collecting anybadge<2.0.0,>=1.9.0 (from ghcr-badge==0.3.0->-r requirements.txt (line
1))
2023/07/31 02:12:20 [ghcr-badge] Downloading anybadge-1.14.0-py3-none-any.whl (27 kB)
2023/07/31 02:12:21 [ghcr-badge] Collecting flask<3.0.0,>=2.1.2 (from ghcr-badge==0.3.0->-r requirements.txt (line 1)
)
2023/07/31 02:12:21 [ghcr-badge] Downloading Flask-2.3.2-py3-none-any.whl (96 kB)
2023/07/31 02:12:21 [ghcr-badge] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 96.9/96.9 kB 11.7 MB/s eta 0:00:00
2023/07/31 02:12:21 [ghcr-badge] Collecting gunicorn<22.0,>=20.1 (from ghcr-badge==0.3.0->-r requirements.txt (line 1
))
2023/07/31 02:12:21 [ghcr-badge] Obtaining dependency information for gunicorn<22.0,>=20.1 from https://files.pytho
nhosted.org/packages/0e/2a/c3a878eccb100ccddf45c50b6b8db8cf3301a6adede6e31d48e8531cab13/gunicorn-21.2.0-py3-none-any.
whl.metadata
2023/07/31 02:12:21 [ghcr-badge] Downloading gunicorn-21.2.0-py3-none-any.whl.metadata (4.1 kB)
2023/07/31 02:12:21 [ghcr-badge] Collecting humanfriendly<11.0,>=10.0 (from ghcr-badge==0.3.0->-r requirements.txt (l
ine 1))
2023/07/31 02:12:21 [ghcr-badge] Downloading humanfriendly-10.0-py2.py3-none-any.whl (86 kB)
2023/07/31 02:12:21 [ghcr-badge] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 86.8/86.8 kB 22.9 MB/s eta 0:00:00
2023/07/31 02:12:21 [ghcr-badge] Collecting requests<3.0.0,>=2.28.0 (from ghcr-badge==0.3.0->-r requirements.txt (lin
e 1))
2023/07/31 02:12:21 [ghcr-badge] Obtaining dependency information for requests<3.0.0,>=2.28.0 from https://files.py
thonhosted.org/packages/70/8e/0e2d847013cb52cd35b38c009bb167a1a26b2ce6cd6965bf26b47bc0bf44/requests-2.31.0-py3-none-a
ny.whl.metadata
2023/07/31 02:12:21 [ghcr-badge] Downloading requests-2.31.0-py3-none-any.whl.metadata (4.6 kB)
2023/07/31 02:12:21 [ghcr-badge] Collecting types-humanfriendly<11.0,>=10.0 (from ghcr-badge==0.3.0->-r requirements.
txt (line 1))
2023/07/31 02:12:21 [ghcr-badge] Downloading types_humanfriendly-10.0.1.9-py3-none-any.whl (9.5 kB)
2023/07/31 02:12:21 [ghcr-badge] Collecting types-requests<3.0.0,>=2.28.0 (from ghcr-badge==0.3.0->-r requirements.tx
t (line 1))
2023/07/31 02:12:21 [ghcr-badge] Obtaining dependency information for types-requests<3.0.0,>=2.28.0 from https://fi
les.pythonhosted.org/packages/06/9b/04bb62f11a6824df5d4568439cf0715118c265d0ffbebeb7cf4b8c9caa15/types_requests-2.31.
0.2-py3-none-any.whl.metadata
2023/07/31 02:12:21 [ghcr-badge] Downloading types_requests-2.31.0.2-py3-none-any.whl.metadata (1.4 kB)
2023/07/31 02:12:21 [ghcr-badge] Collecting typing-extensions<5.0.0,>=4.5.0 (from ghcr-badge==0.3.0->-r requirements.
txt (line 1))
2023/07/31 02:12:21 [ghcr-badge] Obtaining dependency information for typing-extensions<5.0.0,>=4.5.0 from https://
files.pythonhosted.org/packages/ec/6b/63cc3df74987c36fe26157ee12e09e8f9db4de771e0f3404263117e75b95/typing_extensions-4.7.1-py3-none-any.whl.metadata
2023/07/31 02:12:21 [ghcr-badge] Downloading typing_extensions-4.7.1-py3-none-any.whl.metadata (3.1 kB)
2023/07/31 02:12:21 [ghcr-badge] Collecting packaging (from anybadge<2.0.0,>=1.9.0->ghcr-badge==0.3.0->-r requirement
s.txt (line 1))
2023/07/31 02:12:21 [ghcr-badge] Downloading packaging-23.1-py3-none-any.whl (48 kB)
2023/07/31 02:12:21 [ghcr-badge] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 48.9/48.9 kB 11.3 MB/s eta 0:00:00
2023/07/31 02:12:21 [ghcr-badge] Collecting Werkzeug>=2.3.3 (from flask<3.0.0,>=2.1.2->ghcr-badge==0.3.0->-r requirem
ents.txt (line 1))
2023/07/31 02:12:21 [ghcr-badge] Obtaining dependency information for Werkzeug>=2.3.3 from https://files.pythonhost
ed.org/packages/ba/d6/8040faecaba2feb84e1647af174b3243c9b90c163c7ea407820839931efe/Werkzeug-2.3.6-py3-none-any.whl.me
tadata
2023/07/31 02:12:21 [ghcr-badge] Downloading Werkzeug-2.3.6-py3-none-any.whl.metadata (4.1 kB)
2023/07/31 02:12:21 [ghcr-badge] Collecting Jinja2>=3.1.2 (from flask<3.0.0,>=2.1.2->ghcr-badge==0.3.0->-r requiremen
ts.txt (line 1))
2023/07/31 02:12:21 [ghcr-badge] Downloading Jinja2-3.1.2-py3-none-any.whl (133 kB)
2023/07/31 02:12:21 [ghcr-badge] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 133.1/133.1 kB 30.6 MB/s eta 0:00:00
2023/07/31 02:12:21 [ghcr-badge] Collecting itsdangerous>=2.1.2 (from flask<3.0.0,>=2.1.2->ghcr-badge==0.3.0->-r requ
irements.txt (line 1))
2023/07/31 02:12:21 [ghcr-badge] Downloading itsdangerous-2.1.2-py3-none-any.whl (15 kB)
2023/07/31 02:12:21 [ghcr-badge] Collecting click>=8.1.3 (from flask<3.0.0,>=2.1.2->ghcr-badge==0.3.0->-r requirement
s.txt (line 1))
2023/07/31 02:12:21 [ghcr-badge] Obtaining dependency information for click>=8.1.3 from https://files.pythonhosted.
org/packages/1a/70/e63223f8116931d365993d4a6b7ef653a4d920b41d03de7c59499962821f/click-8.1.6-py3-none-any.whl.metadata
2023/07/31 02:12:21 [ghcr-badge] Downloading click-8.1.6-py3-none-any.whl.metadata (3.0 kB)
2023/07/31 02:12:21 [ghcr-badge] Collecting blinker>=1.6.2 (from flask<3.0.0,>=2.1.2->ghcr-badge==0.3.0->-r requireme
nts.txt (line 1))
2023/07/31 02:12:21 [ghcr-badge] Downloading blinker-1.6.2-py3-none-any.whl (13 kB)
2023/07/31 02:12:21 [ghcr-badge] Collecting importlib-metadata>=3.6.0 (from flask<3.0.0,>=2.1.2->ghcr-badge==0.3.0->-
r requirements.txt (line 1))
2023/07/31 02:12:21 [ghcr-badge] Obtaining dependency information for importlib-metadata>=3.6.0 from https://files.
pythonhosted.org/packages/cc/37/db7ba97e676af155f5fcb1a35466f446eadc9104e25b83366e8088c9c926/importlib_metadata-6.8.0
-py3-none-any.whl.metadata
2023/07/31 02:12:21 [ghcr-badge] Downloading importlib_metadata-6.8.0-py3-none-any.whl.metadata (5.1 kB)
2023/07/31 02:12:22 [ghcr-badge] Collecting charset-normalizer<4,>=2 (from requests<3.0.0,>=2.28.0->ghcr-badge==0.3.0
->-r requirements.txt (line 1))
2023/07/31 02:12:22 [ghcr-badge] Obtaining dependency information for charset-normalizer<4,>=2 from https://files.p
ythonhosted.org/packages/f9/0d/514be8597d7a96243e5467a37d337b9399cec117a513fcf9328405d911c0/charset_normalizer-3.2.0-
cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata
2023/07/31 02:12:22 [ghcr-badge] Downloading charset_normalizer-3.2.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014
_x86_64.whl.metadata (31 kB)
2023/07/31 02:12:22 [ghcr-badge] Collecting idna<4,>=2.5 (from requests<3.0.0,>=2.28.0->ghcr-badge==0.3.0->-r require
ments.txt (line 1))
2023/07/31 02:12:22 [ghcr-badge] Downloading idna-3.4-py3-none-any.whl (61 kB)
2023/07/31 02:12:22 [ghcr-badge] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.5/61.5 kB 9.2 MB/s eta 0:00:00
2023/07/31 02:12:22 [ghcr-badge] Collecting urllib3<3,>=1.21.1 (from requests<3.0.0,>=2.28.0->ghcr-badge==0.3.0->-r r
equirements.txt (line 1))
2023/07/31 02:12:22 [ghcr-badge] Obtaining dependency information for urllib3<3,>=1.21.1 from https://files.pythonh
osted.org/packages/9b/81/62fd61001fa4b9d0df6e31d47ff49cfa9de4af03adecf339c7bc30656b37/urllib3-2.0.4-py3-none-any.whl.
metadata
2023/07/31 02:12:22 [ghcr-badge] Downloading urllib3-2.0.4-py3-none-any.whl.metadata (6.6 kB)
2023/07/31 02:12:22 [ghcr-badge] Collecting certifi>=2017.4.17 (from requests<3.0.0,>=2.28.0->ghcr-badge==0.3.0->-r r
equirements.txt (line 1))
2023/07/31 02:12:22 [ghcr-badge] Obtaining dependency information for certifi>=2017.4.17 from https://files.pythonh
osted.org/packages/4c/dd/2234eab22353ffc7d94e8d13177aaa050113286e93e7b40eae01fbf7c3d9/certifi-2023.7.22-py3-none-any.
whl.metadata
2023/07/31 02:12:22 [ghcr-badge] Downloading certifi-2023.7.22-py3-none-any.whl.metadata (2.2 kB)
2023/07/31 02:12:22 [ghcr-badge] Collecting types-urllib3 (from types-requests<3.0.0,>=2.28.0->ghcr-badge==0.3.0->-r
requirements.txt (line 1))
2023/07/31 02:12:22 [ghcr-badge] Obtaining dependency information for types-urllib3 from https://files.pythonhosted
.org/packages/11/7b/3fc711b2efea5e85a7a0bbfe269ea944aa767bbba5ec52f9ee45d362ccf3/types_urllib3-1.26.25.14-py3-none-an
y.whl.metadata
2023/07/31 02:12:22 [ghcr-badge] Downloading types_urllib3-1.26.25.14-py3-none-any.whl.metadata (1.7 kB)
2023/07/31 02:12:22 [ghcr-badge] Collecting zipp>=0.5 (from importlib-metadata>=3.6.0->flask<3.0.0,>=2.1.2->ghcr-badg
e==0.3.0->-r requirements.txt (line 1))
2023/07/31 02:12:22 [ghcr-badge] Obtaining dependency information for MarkupSafe>=2.0 from https://files.pythonhost
ed.org/packages/de/63/cb7e71984e9159ec5f45b5e81e896c8bdd0e45fe3fc6ce02ab497f0d790e/MarkupSafe-2.1.3-cp39-cp39-manylin
ux_2_17_x86_64.manylinux2014_x86_64.whl.metadata
2023/07/31 02:12:22 [ghcr-badge] Downloading MarkupSafe-2.1.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.
whl.metadata (3.0 kB)
2023/07/31 02:12:22 [ghcr-badge] Downloading requests-2.31.0-py3-none-any.whl (62 kB)
2023/07/31 02:12:22 [ghcr-badge] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 62.6/62.6 kB 11.0 MB/s eta 0:00:00
2023/07/31 02:12:22 [ghcr-badge] Downloading types_requests-2.31.0.2-py3-none-any.whl (14 kB)
2023/07/31 02:12:22 [ghcr-badge] Downloading typing_extensions-4.7.1-py3-none-any.whl (33 kB)
2023/07/31 02:12:22 [ghcr-badge] Downloading certifi-2023.7.22-py3-none-any.whl (158 kB)
2023/07/31 02:12:22 [ghcr-badge] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 158.3/158.3 kB 19.3 MB/s eta 0:00:00
2023/07/31 02:12:22 [ghcr-badge] Downloading charset_normalizer-3.2.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (202 kB)
2023/07/31 02:12:22 [ghcr-badge] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 202.1/202.1 kB 22.5 MB/s eta 0:00:00
2023/07/31 02:12:22 [ghcr-badge] Downloading click-8.1.6-py3-none-any.whl (97 kB)
2023/07/31 02:12:22 [ghcr-badge] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 97.9/97.9 kB 20.4 MB/s eta 0:00:00
2023/07/31 02:12:22 [ghcr-badge] Downloading importlib_metadata-6.8.0-py3-none-any.whl (22 kB)
2023/07/31 02:12:22 [ghcr-badge] Downloading urllib3-2.0.4-py3-none-any.whl (123 kB)
2023/07/31 02:12:22 [ghcr-badge] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 123.9/123.9 kB 16.3 MB/s eta 0:00:00
2023/07/31 02:12:22 [ghcr-badge] Downloading Werkzeug-2.3.6-py3-none-any.whl (242 kB)
2023/07/31 02:12:22 [ghcr-badge] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 242.5/242.5 kB 22.0 MB/s eta 0:00:00
2023/07/31 02:12:22 [ghcr-badge] Downloading types_urllib3-1.26.25.14-py3-none-any.whl (15 kB)
2023/07/31 02:12:22 [ghcr-badge] Downloading MarkupSafe-2.1.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (25 kB)
2023/07/31 02:12:22 [ghcr-badge] Downloading zipp-3.16.2-py3-none-any.whl (7.2 kB)
2023/07/31 02:12:23 [ghcr-badge] Installing collected packages: types-urllib3, types-humanfriendly, zipp, urllib3, typing-extensions, types-requests, packaging, MarkupSafe, itsdangerous, idna, humanfriendly, click, charset-normalizer, certifi, blinker, Werkzeug, requests, Jinja2, importlib-metadata, gunicorn, anybadge, flask, ghcr-badge
2023/07/31 02:12:24 [ghcr-badge] Successfully installed Jinja2-3.1.2 MarkupSafe-2.1.3 Werkzeug-2.3.6 anybadge-1.14.0 blinker-1.6.2 certifi-2023.7.22 charset-normalizer-3.2.0 click-8.1.6 flask-2.3.2 ghcr-badge-0.3.0 gunicorn-21.2.0 humanfriendly-10.0 idna-3.4 importlib-metadata-6.8.0 itsdangerous-2.1.2 packaging-23.1 requests-2.31.0 types-humanfriendly-10.0.1.9 types-requests-2.31.0.2 types-urllib3-1.26.25.14 typing-extensions-4.7.1 urllib3-2.0.4 zipp-3.16.2
2023/07/31 02:12:24 [ghcr-badge] WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
2023/07/31 02:12:25 [ghcr-badge]
2023/07/31 02:12:25 [ghcr-badge] [notice] A new release of pip is available: 23.2 -> 23.2.1
2023/07/31 02:12:25 [ghcr-badge] [notice] To update, run: pip install --upgrade pip
2023/07/31 02:12:25 [ghcr-badge]
2023/07/31 02:12:26 [ghcr-badge] Zipping code
2023/07/31 02:12:26
2023/07/31 02:12:26 All micros built successfully
2023/07/31 02:12:33 build complete...
2023/07/31 02:12:33 created revision: mouse-sdqj
i Updating your Builder instance with the new revision...
2023/07/31 02:12:41 starting update...
2023/07/31 02:12:41 fetching release configuration...
2023/07/31 02:12:41 allocating resources..
2023/07/31 02:12:41 configuring resource 1 out of 1...
2023/07/31 02:13:00 waiting for function to be ready...
2023/07/31 02:13:01 completed...
✓ Successfully pushed your code and updated your Builder instance!
Builder instance: https://ghcrbadge-1-s2654633.deta.app
No app name found in Discovery file. Using the app name from your Spacefile:
Using the app name from your Spacefile is deprecated and will be removed in a future version.
? Do you want to use the latest revision? y
Selected revision: mouse-sdqj
~ Creating a listed release with the latest revision ...
! Error: failed to store discovery data: bad request
Error: failed to store discovery data: bad request
I'm following this tutorial , but after space push
I get the error below even though it works fine locally (via uvicorn main:app --reload
) and deploys without errors.
https://fastapitutorial-1-j0837537.deta.app/
Error Type:
Runtime.ExitError
Error Message:
RequestId: c937c6ec-3304-4dad-8561-73e8116addfe Error: Runtime exited with error: exit status 1
Logs:
time='2023-07-25T23:00:52Z' level=info msg='serving logs listener on sandbox.localdomain:1234' agent=logsApiAgent
TELEMETRY Name: telemetry-extension State: Already subscribed Types: [Function]
Traceback (most recent call last):
File '/opt/python/bin/uvicorn', line 5, in
from uvicorn.main import main
File '/opt/python/uvicorn/__init__.py', line 1, in
from uvicorn.config import Config
File '/opt/python/uvicorn/config.py', line 1, in
import asyncio
File '/var/lang/lib/python3.9/asyncio/__init__.py', line 8, in
from .base_events import *
File '/var/lang/lib/python3.9/asyncio/base_events.py', line 45, in
from . import staggered
File '/var/lang/lib/python3.9/asyncio/staggered.py', line 6, in
import typing
File '/opt/python/typing.py', line 1359, in
class Callable(extra=collections_abc.Callable, metaclass=CallableMeta):
File '/opt/python/typing.py', line 1007, in __new__
self._abc_registry = extra._abc_registry
AttributeError: type object 'Callable' has no attribute '_abc_registry'
main.py
from typing import Annotated
from fastapi import FastAPI, Query
from pydantic import BaseModel
class Item(BaseModel):
name: str
price: Annotated[float, Query(gt=0)]
app = FastAPI()
@app.get('/')
def get_root():
return { 'message': 'Hello World' }
@app.post('/items/')
def create_item(item: Item) -> Item:
return item
requirements.txt
fastapi
pydantic
typing
uvicorn[standard]
Spacefile
# Spacefile Docs: https://go.deta.dev/docs/spacefile/v0
v: 0
micros:
- name: fastapi-tutorial
src: ./
engine: python3.9
primary: true
run: uvicorn main:app
dev: uvicorn main:app --reload
public_routes:
- '/*'
Hi! Trying to do space release --version "version" --confirm
with filled Discovery.md
prompts for release notes. I guess that
func IsOutputInteractive() bool {
return isatty.IsTerminal(os.Stdout.Fd())
}
from cmd/utils/messages.go return true
even in github runner environment.
Maybe important: I'm using Termux because I'm in India for a couple of days
When running space login
, an error is thrown after providing the token:
$ space login
To authenticate the Space CLI with your Space account, generate a new access token in your Space settings and paste it below:
? Enter access token (41 chars) > **********************
! Failed to validate access token: failed to compute timestamp shift: failed to fetch timestamp: Get "https://deta.space/api/v0/time": dial tcp: lookup deta.space on [::1]:53: read udp [::1]:37766->[::1]:53: read: connection refused
! Failed to login: failed to validate access token: failed to compute timestamp shift: failed to fetch timestamp: Get "https://deta.space/api/v0/time": dial tcp: lookup deta.space on [::1]:53: read udp [::1]:37766->[::1]:53: read: connection refused
Error: failed to validate access token: failed to compute timestamp shift: failed to fetch timestamp: Get "https://deta.space/api/v0/time": dial tcp: lookup deta.space on [::1]:53: read udp [::1]:37766->[::1]:53: read: connection refused
$
I asked about this on the Discord server, and someone on the team asked me if I could access https://deta.space/api/v0/time via my browser. I can access it via the browser. curl https://deta.space/api/v0/time
prints the current UNIX timestamp, which is what I see in the browser.
I will try again on my laptop and desktop when I get back home and edit this issue with the results.
Hi!
Can anybody help me with compiling deta space cli targeting windows 7 (32 bit)?
I've tried to cross-compile on ubuntu 22.04 using both standard and mingw toolchains. Unfortunately, binaries fail in space new
with "can not switch console to raw mode" error. Also space version
works fine.
p.s.
Am i missing non-interactive space cli mode?
Issue
I am currently encountering a problem with the Space CLI, where I am unable to delete or unlisted my application from the Discovery feature.
Steps to Reproduce
space release --listed
It would be useful in some cases to have a generate
command which generates a Spacefile, similar to new
but without having to create a new project. If the file exists, it should prompt to overwrite if a command line flag was not provided to overwrite.
My Python API hosted on Deta Space wasn't working when I followed the FastAPI tutorial, and I found out it was because Space doesn't support Python 3.10 at the moment.
Are there plans to add support for Python 3.10? If yes, what's the best way for me to be informed when the support is added?
Hi, I don't know if this is the right place to report this, but my app
https://deta.space/discovery/@brain/tasker
is not loading correctly, here some components keep blinking like they are loading. I don't know why.
I just got a prompt to update the Space CLI, but following the instructions didn't work:
i New Space CLI version available, upgrade with space version upgrade
$ space version upgrade
Upgrading Space CLI to version 0.4.0...
Space was installed successfully to C:\Users\<username>\.detaspace\bin\space.exe
Run 'space --help' to get started
$ space --version
space version 0.3.14
I keep getting
Running Command: cp -r .next/static .next/standalone/.next/static
and then at the second line
cp: cannot create directory 'next/standalone/.next/static': No such file or directory
I don't know why i am getting this error.
PowerShell 7.3.4
$ space version upgrade
Upgrading Space CLI to version 0.3.3...
iex : Ausnahme beim Aufrufen von "ExtractToDirectory" mit 2 Argument(en): "Die Datei
"C:\Users\Rychart.detaspace\bin\LICENSE" ist bereits vorhanden."
In Zeile:1 Zeichen:65
- $v="0.3.3"; iwr https://deta.space/assets/space-cli.ps1 -useb | iex
~~~
- CategoryInfo : NotSpecified: (:) [Invoke-Expression], MethodInvocationException
- FullyQualifiedErrorId : IOException,Microsoft.PowerShell.Commands.InvokeExpressionCommand
❌ Upgrade failed. Please try again.
$ space
space: The term 'space' is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
2023/05/13 15:06:20 http: proxy error: dial tcp [::1]:4201: connectex: No connection could be made because the target machine actively refused it.
I keep getting this error whenever I use space dev
to emulate features locally. I'm using version 0.3.5.
My space file looks like this.
v: 0
micros:
- name: backend
src: .
engine: python3.9
dev: python main.py --local
primary: true
public_routes:
- "/api/*"
- "/test/coffee"
(plus some preset environment variables)
Could it be something to do with the fact that the error includes the port number 4201 when it's actually running on 4200
push error
When running space dev
there is a segfault
👀 Checking for running micros...
💻 Starting 1 micro servers...
Micro backend (primary)
L url: http://localhost:4200/
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0xa0 pc=0x10047059c]
goroutine 24 [running]:
os/exec.(*Cmd).Start(0x0?)
/Users/runner/hostedtoolcache/go/1.21.1/x64/src/os/exec/exec.go:628 +0x2c
os/exec.(*Cmd).Run(0x10034f980?)
/Users/runner/hostedtoolcache/go/1.21.1/x64/src/os/exec/exec.go:587 +0x20
github.com/deta/space/cmd.dev.func1(0x0)
/Users/runner/work/space-cli/space-cli/cmd/dev.go:191 +0x5c
created by github.com/deta/space/cmd.dev in goroutine 1
/Users/runner/work/space-cli/space-cli/cmd/dev.go:189 +0xd68
to not commit any folder to git, just add .gitignore
file contains *
to folder
Ex. line105 ioutil.WriteFile(filepath.Join(m.spacePath, ".gitignore"), []byte("*\n"), filePermMode)
space-cli/internal/runtime/manager.go
Line 105 in aa93f14
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.