Skip to content

nsound does not work with swig3, ubuntu 16 #5

Description

@weegreenblobbie

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:

import Nsound as ns
g = ns.Sine(44100)
#...
AttributeError: type object 'object' has no attribute '__getattr__'

Nsound partially works after installing the swig2.0 package:

sudo apt-get install swig2.0

Running unit tests from the git clone works as expeted:

python -m unittest discover
.....................................
----------------------------------------------------------------------
Ran 37 tests in 2.971s

OK

However trying to run one of the examples hangs in what appears to be an infinite loop:

cd src/examples
python example1.py
# no output, just hangs

Please fix for Ubuntu 16!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions