-
Notifications
You must be signed in to change notification settings - Fork 1
nsound does not work with swig3, ubuntu 16 #5
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
Comments
Hello, wegreenblobbie. I'm having the same issue in Fedora 24. Is there any solution at this moment besides downgrading swig? |
I haven't looked into this, I could take a look this weekend. |
That would be awesome! |
Partial success. It turns out that swig 3.08 (the packaged version in ubuntu 16.04) is buggy. I manually installed swig 3.0.12, some things are working, unit tests are passing (I don't have much coverage), but some of the examples still hang. |
I searched similar errors online and swig does seem buggy. I think this is useful: |
Yeah, I saw that too, but the |
work in progress ... |
@respinha try out the branch "bugfix/issue5", you will need swig 3.0.12, let me know if it works for you. My long term plan is to completely rewrite Nsound in c++14, the existing code base is very old and difficult to maintain. SWIG is also very painful, I may look into alternatives like cython, boost::python, or pybind11. :) |
@weegreenblobbie I removed the previously generated python files with a 'pip uninstall' and then tried the new branch and still doesn't work when I create a Sine. PS: indeed, swig seems troublesome. |
How did you install? You can check what version is installed by looking at You can also try to see if the unittests run with: |
I installed as you suggest in the INSTALL file, running scons and then PS: yes, my version is 0.9.5.dev1 |
Perhaps there is another issue, can you paste in the error. I'll try to run Fedora 24 in a VM to see if I can duplicate the error you're seeing. |
@weegreenblobbie it's the same error in all tests. Whenever an object of any type is created, it always crashes with this stacktrace:
|
What does |
3.0.8 |
3.0.8 is buggy, can you install the latest? 3.012? |
Updated swig, removed all instances of Nsound and installed 0.9.5.dev1 and it still doesn't work. |
Same error? I guess I'll just have to get fedora 24 and see what's up. Thanks for the testing. |
I really doubt that it's something to do with Fedora but you can always check it out! I am planning to get started on the 'audio programming' world and Nsound really seems an interesting solution. |
@respinha I just built nsound in a docker container using fedora:24, unittests ran fine. I suspect that swig 3.0.8 is somehow still getting used during the build. Here's my Dockerfile:
Here's the output:
|
It seems like I hadn't totally removed swig 3.0.8. It is now working! |
Who hoo! 😎 |
I've published 0.9.5 to pypi: https://pypi.org/project/Nsound/0.9.5/ |
I'm having all kinds of problems on ubuntu 16 out of the box:
Ubuntu 16 default swig package is 3.X, which doesn't seem to work with nsound 0.9.4. After building and installing the python package with swig3, I get strange errors, as simple trying to construct a Sine generator:
Nsound partially works after installing the swig2.0 package:
Running unit tests from the git clone works as expeted:
However trying to run one of the examples hangs in what appears to be an infinite loop:
Please fix for Ubuntu 16!
The text was updated successfully, but these errors were encountered: