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?

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 .

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.

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.

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.

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.

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.