0

I'm trying to install a Python module, called PySndObj. I extracted the sources. It uses scons , so I tried to install it with it:

alex@alex-laptop:~/Desktop/SndObj$ scons pythonmodule=true ALSA=true
scons: Reading SConscript files ...
Building the Sound Object Library
Checking for Realtime IO support...
OS is Linux...
Checking for C header file alsa/asoundlib.h... (cached) yes
Checking for C header file soundcard.h... (cached) no
Checking for C header file jack/jack.h... (cached) yes
The library realtime IO (class SndRTIO) will be configured for ALSA
The library will include support for Jack (Class SndJackIO)
Host is little endian
swig doesn't exist
Python version is 2.5
Checking for C header file m_pd.h... (cached) yes
Checking for C header file ladspa.h... (cached) yes
scons: done reading SConscript files.
scons: Building targets ...
scons: `.' is up to date.
scons: done building targets.
alex@alex-laptop:~/Desktop/SndObj$ sudo scons install
scons: Reading SConscript files ...
Building the Sound Object Library
Checking for Realtime IO support...
OS is Linux...
Checking for C header file alsa/asoundlib.h... (cached) yes
Checking for C header file soundcard.h... (cached) no
Checking for C header file jack/jack.h... (cached) yes
The library realtime IO (class SndRTIO) will be configured for ALSA
The library will include support for Jack (Class SndJackIO)
Host is little endian
swig doesn't exist
Python version is 2.5
Checking for C header file m_pd.h... (cached) yes
Checking for C header file ladspa.h... (cached) yes
scons: done reading SConscript files.
scons: Building targets ...
scons: `install' is up to date.
scons: done building targets.

And then tried to find it:

alex@alex-laptop:~/Desktop/SndObj$ whereis sndobj
sndobj:

It doesn't exist. It hasn't been installed properly. Even in Python:

alex@alex-laptop:~/Desktop/SndObj$ python
Python 2.5.1 (r251:54863, Mar  7 2008, 04:10:12) 
[GCC 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sndobj
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named sndobj
>>>

Can someone help me, please?

3
Contributors
6
Replies
7
Views
9 Years
Discussion Span
Last Post by cigotete
0

I've never installed PySndObj before, nor have I used SCons, but judging by the last 3 lines of output from your build you need to run scons install .

0

Read the last part of the first code tag. I did run it:

alex@alex-laptop:~/Desktop/SndObj$ sudo scons install
scons: Reading SConscript files ...
Building the Sound Object Library
Checking for Realtime IO support...
OS is Linux...
Checking for C header file alsa/asoundlib.h... (cached) yes
Checking for C header file soundcard.h... (cached) no
Checking for C header file jack/jack.h... (cached) yes
The library realtime IO (class SndRTIO) will be configured for ALSA
The library will include support for Jack (Class SndJackIO)
Host is little endian
swig doesn't exist
Python version is 2.5
Checking for C header file m_pd.h... (cached) yes
Checking for C header file ladspa.h... (cached) yes
scons: done reading SConscript files.
scons: Building targets ...
scons: `install' is up to date.
scons: done building targets.
0

Sorry, I missed that part. I'd suggest reading up on SCons documentation (and perhaps take a peek at the install script) if no one can help you here.

0

hi, now i have the same problem. you find the solution? (sorry for my english)

Read the last part of the first code tag. I did run it:

alex@alex-laptop:~/Desktop/SndObj$ sudo scons install
scons: Reading SConscript files ...
Building the Sound Object Library
Checking for Realtime IO support...
OS is Linux...
Checking for C header file alsa/asoundlib.h... (cached) yes
Checking for C header file soundcard.h... (cached) no
Checking for C header file jack/jack.h... (cached) yes
The library realtime IO (class SndRTIO) will be configured for ALSA
The library will include support for Jack (Class SndJackIO)
Host is little endian
swig doesn't exist
Python version is 2.5
Checking for C header file m_pd.h... (cached) yes
Checking for C header file ladspa.h... (cached) yes
scons: done reading SConscript files.
scons: Building targets ...
scons: `install' is up to date.
scons: done building targets.
0

No, I haven't found a solution yet. It isn't that important to me yet, so I'll read up on SCons when I have to.

0

hi, in the email list of sndobj they tell me that the problem is with swig.
i try with swig but the output bring me lots of errors...

go to the list if you need.

thanks.

No, I haven't found a solution yet. It isn't that important to me yet, so I'll read up on SCons when I have to.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.