-
Notifications
You must be signed in to change notification settings - Fork 149
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
ModuleNotFoundError: No module named '_sounddevice' (--record doesn't record it) #116
Comments
This might be a packaging issue, please report this to the package maintainer. |
Sorry, forgot to mention: I am trying to create a FreeBSD port. When the package is built by the FreeBSD ports framework, the resulting package has this problem. Such things virtually never happen. Packages normally work as intended. |
Ah, OK, thanks for the additional information. I have no idea how FreeBSD ports are created ... Are you (or some helper function) at some point running something like Or are you using wheels?
I assume this will happen with every module using CFFI in "out-of-line" mode, which all create a separate "hidden" module. |
Yes, this is what is called. |
OK, that's good. Are there any error messages? You'll have to make sure that the generated file |
|
I can't reproduce this. When I try it (on Linux), I get a Can you provide the exact command? Probably this is a CFFI bug on FreeBSD? If you run |
The command line:
creates the file |
Thanks, now I can reproduce it (on Linux). Both on Python 2 and Python 3. I've reduced the command line to:
I guess the problem happens for all modules that use CFFI in out-of-line ABI mode (like I've asked at the CFFI mailing list: https://groups.google.com/forum/?hl=en#!topic/python-cffi/oX2T_Y5m99I |
There was an answer on the mailing list and the problem was fixed in https://bitbucket.org/cffi/cffi/commits/e59662b013b4b00b410d2df645837d9cf3ad5b52 |
CFFI 1.11.5 was just released, which should contain the fix. @yurivict Can you please try if it works for you? |
@mgeier This is still a problem with cffi-1.11.5. |
Thanks @yurivict, I've asked again on the CFFI mailing list: https://groups.google.com/forum/?hl=en#!topic/python-cffi/oX2T_Y5m99I. |
@yurivict Armin responded to my question on the mailing list, but he doesn't know how to fix this. Do you have any ideas? |
The error I'm getting:
For this reason, the FreeBSD port has to add these 3 items to plist by hand. |
- Update COMMENT, match upstream setup.py:description - Update USES=python, now only supports Python 3.x - Switch to autoplist (using --record), update pkg-plist to add missing files until resolved upstream [1][2][3][4] Changelog: https://github.com/Kozea/cairocffi/blob/v1.0.2/NEWS.rst [1] Kozea/cairocffi#108 [2] spatialaudio/python-sounddevice#116 [3] tych0/xcffib#92 [4] See Also: https://groups.google.com/forum/#!topic/python-cffi/oX2T_Y5m99I PR: 237884 Reviewed by: mat, dch (maintainer) Approved by: dch (maintainer) Differential Revision: D20352 git-svn-id: svn+ssh://svn.freebsd.org/ports/head@502792 35697150-7ecd-e111-bb59-0022644237b5
- Update COMMENT, match upstream setup.py:description - Update USES=python, now only supports Python 3.x - Switch to autoplist (using --record), update pkg-plist to add missing files until resolved upstream [1][2][3][4] Changelog: https://github.com/Kozea/cairocffi/blob/v1.0.2/NEWS.rst [1] Kozea/cairocffi#108 [2] spatialaudio/python-sounddevice#116 [3] tych0/xcffib#92 [4] See Also: https://groups.google.com/forum/#!topic/python-cffi/oX2T_Y5m99I PR: 237884 Reviewed by: mat, dch (maintainer) Approved by: dch (maintainer) Differential Revision: D20352
- Update COMMENT, match upstream setup.py:description - Update USES=python, now only supports Python 3.x - Switch to autoplist (using --record), update pkg-plist to add missing files until resolved upstream [1][2][3][4] Changelog: https://github.com/Kozea/cairocffi/blob/v1.0.2/NEWS.rst [1] Kozea/cairocffi#108 [2] spatialaudio/python-sounddevice#116 [3] tych0/xcffib#92 [4] See Also: https://groups.google.com/forum/#!topic/python-cffi/oX2T_Y5m99I PR: 237884 Reviewed by: mat, dch (maintainer) Approved by: dch (maintainer) Differential Revision: D20352 git-svn-id: svn+ssh://svn.freebsd.org/ports/head@502792 35697150-7ecd-e111-bb59-0022644237b5
- Update COMMENT, match upstream setup.py:description - Update USES=python, now only supports Python 3.x - Switch to autoplist (using --record), update pkg-plist to add missing files until resolved upstream [1][2][3][4] Changelog: https://github.com/Kozea/cairocffi/blob/v1.0.2/NEWS.rst [1] Kozea/cairocffi#108 [2] spatialaudio/python-sounddevice#116 [3] tych0/xcffib#92 [4] See Also: https://groups.google.com/forum/#!topic/python-cffi/oX2T_Y5m99I PR: 237884 Reviewed by: mat, dch (maintainer) Approved by: dch (maintainer) Differential Revision: D20352 git-svn-id: svn+ssh://svn.freebsd.org/ports/head@502792 35697150-7ecd-e111-bb59-0022644237b5
- Update COMMENT, match upstream setup.py:description - Update USES=python, now only supports Python 3.x - Switch to autoplist (using --record), update pkg-plist to add missing files until resolved upstream [1][2][3][4] Changelog: https://github.com/Kozea/cairocffi/blob/v1.0.2/NEWS.rst [1] Kozea/cairocffi#108 [2] spatialaudio/python-sounddevice#116 [3] tych0/xcffib#92 [4] See Also: https://groups.google.com/forum/#!topic/python-cffi/oX2T_Y5m99I PR: 237884 Reviewed by: mat, dch (maintainer) Approved by: dch (maintainer) Differential Revision: D20352
import sounddevice as sd
fails with this message.Installed as a FreeBSD port using version
0.3.10
.The text was updated successfully, but these errors were encountered: