Commit fae1e78
committed
Auto-install imageio-ffmpeg when missing (fixes existing-venv users)
v0.12.6 added imageio-ffmpeg to ML_COMPONENTS.core, but users with venvs
created before v0.12.6 won't get it until they reinstall the ML
environment. They saw the very error message my own code prints:
"ffmpeg not found. Install ffmpeg (e.g. brew install ffmpeg ...)
or pip install imageio-ffmpeg for a bundled fallback"
Fix: have _resolve_ffmpeg() pip-install imageio-ffmpeg on demand the
first time it's needed. ~30 MB platform-specific wheel; cached for all
future runs. Same path serves any user (mac/win/linux) on a stale venv,
not just macOS.
Also extended env:check to include imageio_ffmpeg in the import probe so
a stale venv now triggers the setup wizard on app launch.1 parent 3a2c2e7 commit fae1e78
3 files changed
Lines changed: 32 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
901 | 901 | | |
902 | 902 | | |
903 | 903 | | |
904 | | - | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
905 | 908 | | |
906 | 909 | | |
907 | 910 | | |
908 | 911 | | |
909 | 912 | | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
910 | 930 | | |
911 | | - | |
912 | | - | |
913 | | - | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
914 | 938 | | |
915 | 939 | | |
| 940 | + | |
| 941 | + | |
916 | 942 | | |
917 | 943 | | |
918 | 944 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
996 | 996 | | |
997 | 997 | | |
998 | 998 | | |
999 | | - | |
| 999 | + | |
1000 | 1000 | | |
1001 | 1001 | | |
1002 | 1002 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
0 commit comments