Uploaded complete moirai_forecast_app contents
Browse files
README.md
CHANGED
|
@@ -5,6 +5,7 @@ colorFrom: blue
|
|
| 5 |
colorTo: indigo
|
| 6 |
sdk: gradio
|
| 7 |
sdk_version: "4.44.0"
|
|
|
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
license: cc-by-nc-4.0
|
|
@@ -99,6 +100,28 @@ needed `io.StringIO` on the sandbox's pandas 3.0.2) — left in this
|
|
| 99 |
history deliberately, since "we ran it and fixed what broke" is the
|
| 100 |
whole point of section 6 (real execution validation vs. static checks).
|
| 101 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 102 |
## Architecture
|
| 103 |
|
| 104 |
```
|
|
|
|
| 5 |
colorTo: indigo
|
| 6 |
sdk: gradio
|
| 7 |
sdk_version: "4.44.0"
|
| 8 |
+
python_version: "3.11"
|
| 9 |
app_file: app.py
|
| 10 |
pinned: false
|
| 11 |
license: cc-by-nc-4.0
|
|
|
|
| 100 |
history deliberately, since "we ran it and fixed what broke" is the
|
| 101 |
whole point of section 6 (real execution validation vs. static checks).
|
| 102 |
|
| 103 |
+
## Real deployment history (from an actual HF Spaces build)
|
| 104 |
+
|
| 105 |
+
Two real build failures happened after this was first deployed, both
|
| 106 |
+
worth recording because the diagnosis process matters as much as the fix:
|
| 107 |
+
|
| 108 |
+
1. **First failure**: `scipy` failed `metadata-generation-failed` while
|
| 109 |
+
building from source. I initially (and wrongly) assumed my own
|
| 110 |
+
`numpy<2.0` pin was the cause and removed it — that didn't fix it.
|
| 111 |
+
2. **Real cause, found from the actual build log**: `uni2ts`'s own
|
| 112 |
+
`pyproject.toml` pins `scipy~=1.11.3` — a 2023-era release with no
|
| 113 |
+
prebuilt wheel for Python 3.13 (which is what the Space was actually
|
| 114 |
+
running, per `/usr/local/lib/python3.13/site-packages` in the log).
|
| 115 |
+
pip fell back to compiling `scipy-1.11.4.tar.gz` from source, and that
|
| 116 |
+
specific old release's build system doesn't work with the Space's
|
| 117 |
+
modern Cython/meson toolchain (`ERROR: Compiler cython cannot compile
|
| 118 |
+
programs`) — not a missing system package, a real incompatibility.
|
| 119 |
+
3. **Fix**: pin `python_version: "3.11"` in this README's frontmatter
|
| 120 |
+
(a documented HF Spaces config key) so scipy 1.11.x resolves to a
|
| 121 |
+
prebuilt wheel instead of a source build. No requirements.txt change
|
| 122 |
+
was actually needed — my earlier "fix" there was chasing the wrong
|
| 123 |
+
variable, corrected here for the record rather than quietly erased.
|
| 124 |
+
|
| 125 |
## Architecture
|
| 126 |
|
| 127 |
```
|