Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

macos package build fail when project include pyaudio library. #4516

Open
1 task done
nyer opened this issue Dec 7, 2024 · 0 comments
Open
1 task done

macos package build fail when project include pyaudio library. #4516

nyer opened this issue Dec 7, 2024 · 0 comments
Labels
bug Something isn't working packaging Related to app packaging

Comments

@nyer
Copy link

nyer commented Dec 7, 2024

Duplicate Check

Describe the bug

mac os app build failed when the project including a pyaudio dependency.

Code sample

no

To reproduce

create a project with pyaudio dependency, then build macos app.

Expected behavior

can successfully build a mac os app package.

Screenshots / Videos

no

Operating System

macOS

Operating system details

14.5 (23F79)

Flet version

0.24.1

Regression

No, it isn't

Suggestions

i seems that it failed to build wheel of pyaudio,but i run the wheel building command in console, it succeed.

Logs

✓ Successfully generated launcher icons
[17:06:54] Generated app icons ✅
Run subprocess: ['/opt/homebrew/bin/dart', 'run', 'serious_python:main', 'package', '/Users/leiting/projects/ml/voices/realtime-speech-recognizer-flet',
'--dep-mappings', 'flet=flet-embed', '--req-deps', 'flet-embed', '--exclude', 'build']
( ● ) Packaging Python app ⏳...
Built serious_python:main.
( ● ) Packaging Python app ⏳... Running package command
Creating asset directory: /private/var/folders/vp/5ygs58ld4qg33yph5r3_z6lc0000gn/T/flet_flutter_build_1knEXgAQXH/app
Copying Python app from /Users/leiting/projects/ml/voices/realtime-speech-recognizer-flet to /var/folders/vp/5ygs58ld4qg33yph5r3_z6lc0000gn/T/serious_python_tempS6KPHy
( ● ) Packaging Python app ⏳... Installing dependencies [annotated-types==0.7.0, anyio==4.7.0, arrow==1.3.0, binaryornot==0.4.4, certifi==2024.8.30, chardet==5.2.0, charset-normalizer==3.4.0, click==8.1.7, cookiecutter==2.6.0, fastapi==0.115.6, flet-embed==0.24.1, flet-core==0.24.1, flet-embed==0.24.1, flet-runtime==0.24.1, h11==0.14.0, httpcore==1.0.7, httptools==0.6.4, httpx==0.28.1, idna==3.10, Jinja2==3.1.4, markdown-it-py==3.0.0, MarkupSafe==3.0.2, mdurl==0.1.2, oauthlib==3.2.2, packaging==23.2, PyAudio==0.2.14, pydantic==2.10.3, pydantic_core==2.27.1, Pygments==2.18.0, pypng==0.20220715.0, python-dateutil==2.9.0.post0, python-dotenv==1.0.1, python-slugify==8.0.4, PyYAML==6.0.2, qrcode==7.4.2, repath==0.9.0, requests==2.32.3, rich==13.9.4, six==1.17.0, sniffio==1.3.1, starlette==0.41.3, text-unidecode==1.3, types-python-dateutil==2.9.0.20241206, typing_extensions==4.12.2, urllib3==2.2.3, uvicorn==0.32.1, uvloop==0.21.0, watchdog==4.0.2, watchfiles==1.0.0, websockets==14.1] with pip command to /var/folders/vp/5ygs58ld4qg33yph5r3_z6lc0000gn/T/serious_python_tempS6KPHy/pypackages
Extracting Python distributive from /var/folders/vp/5ygs58ld4qg33yph5r3_z6lc0000gn/T/cpython-3.11.6+20231002-aarch64-apple-darwin-install_only.tar.gz to /var/folders/vp/5ygs58ld4qg33yph5r3_z6lc0000gn/T/hostpython3.11_iUdCXc
( ● ) Packaging Python app ⏳... error: subprocess-exited-with-error

× Building wheel for PyAudio (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [10 lines of output]
running bdist_wheel
running build
running build_py
creating build/lib.macosx-11.0-arm64-cpython-311/pyaudio
copying src/pyaudio/init.py -> build/lib.macosx-11.0-arm64-cpython-311/pyaudio
running build_ext
building 'pyaudio._portaudio' extension
creating build/temp.macosx-11.0-arm64-cpython-311/src/pyaudio
/bin/false -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -mmacosx-version-min=11.0 -Wno-nullability-completeness -Wno-expansion-to-defined -Wno-undef-prefix -fPIC -I/var/folders/c8/z52g4gc5679gygt8z0dx0jqm0000gn/T/tmpli8ssce8/tools/deps/include -I/var/folders/c8/z52g4gc5679gygt8z0dx0jqm0000gn/T/tmpli8ssce8/tools/deps/include/ncursesw -I/var/folders/c8/z52g4gc5679gygt8z0dx0jqm0000gn/T/tmpli8ssce8/tools/deps/include/uuid -Werror=unguarded-availability-new -I/opt/homebrew/opt/ruby/include -DMACOS=1 -I/usr/local/include -I/usr/include -I/opt/homebrew/include -I/var/folders/vp/5ygs58ld4qg33yph5r3_z6lc0000gn/T/hostpython3.11_iUdCXc/python/include/python3.11 -c src/pyaudio/device_api.c -o build/temp.macosx-11.0-arm64-cpython-311/src/pyaudio/device_api.o
error: command '/bin/false' failed: No such file or directory
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for PyAudio
ERROR: Could not build wheels for PyAudio, which is required to install pyproject.toml-based projects

Additional details

no

@ndonkoHenri ndonkoHenri added bug Something isn't working packaging Related to app packaging labels Dec 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working packaging Related to app packaging
Projects
None yet
Development

No branches or pull requests

2 participants