bug: numpy won't work?
Duplicate Check
- [x] I have searched the opened issues and there are no duplicates
Describe the bug
Traceback (most recent call last):
File "/Users/runner/work/i18n-agent-action/i18n-agent-action/App/build/site-packages/x86_64/numpy/_core/init.py", line 23, in
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/runner/work/i18n-agent-action/i18n-agent-action/App/build/site-packages/x86_64/numpy/init.py", line 114, in
IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!
Importing the numpy C-extensions failed. This error can happen for many reasons, often due to issues with your setup or how NumPy was installed.
We have compiled some common reasons and troubleshooting tips at:
https://numpy.org/devdocs/user/troubleshooting-importerror.html
Please note and check the following:
- The Python version is: Python3.12 from "/private/var/folders/gc/1zj1qyzj5sl03hvzmccb_bs00000gn/T/AppTranslocation/58591DE2-6AEA-4732-92E1-C2AC97700A79/d/i18n-agent-action.app/Contents/MacOS/i18n-agent-action"
- The NumPy version is: "2.1.1"
and make sure that they are the versions you expect. Please carefully study the documentation linked above for further help.
Original error was: dlopen(/var/folders/gc/1zj1qyzj5sl03hvzmccb_bs00000gn/T/AppTranslocation/58591DE2-6AEA-4732-92E1-C2AC97700A79/d/i18n-agent-action.app/Contents/Frameworks/serious_python_darwin.framework/Resources/python.bundle/Contents/Resources/site-packages/numpy/_core/multiarray_umath.cpython-312-darwin.so, 0x0002): Library not loaded: @loader_path/../.dylibs/libscipy_openblas64.dylib Referenced from: <C20D2190-2BBF-3103-BCC9-A2EC25891E3F> /private/var/folders/gc/1zj1qyzj5sl03hvzmccb_bs00000gn/T/AppTranslocation/58591DE2-6AEA-4732-92E1-C2AC97700A79/d/i18n-agent-action.app/Contents/Frameworks/serious_python_darwin.framework/Resources/python.bundle/Contents/Resources/site-packages/numpy/_core/_multiarray_umath.cpython-312-darwin.so Reason: tried: '/private/var/folders/gc/1zj1qyzj5sl03hvzmccb_bs00000gn/T/AppTranslocation/58591DE2-6AEA-4732-92E1-C2AC97700A79/d/i18n-agent-action.app/Contents/Frameworks/serious_python_darwin.framework/Resources/python.bundle/Contents/Resources/site-packages/numpy/core/../.dylibs/libscipy_openblas64.dylib' (no such file)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "
I have numpy with version as 2.1.1 ref https://flet.dev/docs/reference/binary-packages-android-ios but which won't work.
Code sample
[build-system] requires = ["setuptools>=61.0.0", "wheel"] build-backend = "setuptools.build_meta"
[tool.setuptools] packages = ["Business", "AgentUtils", "App"] # 明确指定包
[project] name = "i18n-agent-action" version = "0.1.0" requires-python = ">=3.12,<4.0" # 更新这一行 description = "An Agent running in GHA for free us from i18n works in documentation repos" authors = [ { name = "SamYuan1990", email = "[email protected]" }, ] dependencies = [ "openai (>=1.100.2,<2.0.0)", "python-defer (>=0.2.1,<0.3.0)", "filelock (>=3.19.1,<4.0.0)", "pyyaml (>=6.0.2,<7.0.0)", "pyttsx3 (>=2.99,<3.0)", "flet[all] (>=0.28.3,<0.29.0)", "cryptography (>=45.0.6,<46.0.0)", "onnxruntime (==1.17.1)", "sherpa-onnx (>=1.12.10,<2.0.0)", "asyncio (>=4.0.0,<5.0.0)", "sounddevice (>=0.5.2,<0.6.0)", "soundfile (>=0.13.1,<0.14.0)", "requests (>=2.32.5,<3.0.0)", "numpy (==2.1.1)", ]
[project.urls] Homepage = "https://github.com/SamYuan1990/i18n-agent-action" Documentation = "https://samyuan1990.github.io/i18n-agent-action/" Repository = "https://github.com/SamYuan1990/i18n-agent-action" Issues = "https://github.com/SamYuan1990/i18n-agent-action/issues"
[project.optional-dependencies] app = [ "flet[all]>=0.27.5,<0.29.0", "pyttsx3 >= 2.99" ]
docs = [ "mkdocs>=1.6.1,<2.0.0", "mkdocs-material>=9.6.17,<10.0.0", "mkdocs-get-deps>=0.2.0,<0.3.0", "mkdocs-git-revision-date-localized-plugin>=1.4.7,<2.0.0", "mkdocs-material-extensions>=1.3.1,<2.0.0", "mkdocs-static-i18n>=1.3.0,<2.0.0" ]
[tool.poetry.group.app.dependencies] flet = {extras = ["all"], version = "^0.28.3"} pyttsx3 = "^2.99" sounddevice = "^0.5.2" cryptography = "^45.0.6" flet-audio = "^0.1.0" soundfile = "^0.13.1"
[tool.poetry.group.docs.dependencies] mkdocs = "^1.6.1" mkdocs-material = "^9.6.17" mkdocs-get-deps = "^0.2.0" mkdocs-git-revision-date-localized-plugin = "^1.4.7" mkdocs-material-extensions = "^1.3.1" mkdocs-static-i18n = "^1.3.0"
[tool.poetry.group.dev.dependencies] pytest = "^8.4.1" pytest-cov = "^6.2.1"
[tool.flit.sdist] include = ["AgentUtils//*","Business//*"]
[tool.flet.macos] entitlement."com.apple.security.cs.disable-library-validation" = true entitlement."com.apple.security.device.audio-input" = true
[tool.flet.compile] app = true # Corresponds to --compile-app packages = true # Corresponds to --compile-packages
To reproduce
https://github.com/SamYuan1990/i18n-agent-action/pull/82
Expected behavior
No response
Screenshots / Videos
Captures
[Upload media here]
Operating System
macOS
Operating system details
15.1.1 (24B91)
Flet version
0.28.3
Regression
No, it isn't
Suggestions
No response
Logs
Logs
[Paste your logs here]
Additional details
No response