I installed IDJC 0.8.16_development from GIT on a new Linux Mint 17.2 "Rafaela" + Cinnamon system on Nov 9, 2015—worked without a glitch.
So today (Nov 22, 2015) I decided to update (git pull) my IDJC 0.8.15 on my main machine (Ubuntu Studio 14.04.3+XFCE, Kernel 3.19.0-33-lowlatency) to the same version, which fails:
Upon starting the newly built version, I get a desktop notification »IDJC Failed to open /usr/lib/idjc/idjc.so—Cannot continue«. Starting IDJC from a terminal gives the following:
$ idjc Traceback (most recent call last): File "/usr/lib/idjc/site-packages/idjc/irc.py", line 37, in <module> from irc import client ImportError: No module named irc No IRC support jack client ID: idjc_default something bad happened $
Further investigation using ldd
shows:
$ ldd -r /usr/lib/idjc/idjc.so linux-vdso.so.1 => (0x00007ffff35d6000) libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007f639398f000) libavcodec.so.54 => /usr/lib/x86_64-linux-gnu/libavcodec.so.54 (0x00007f6392c39000) libavformat.so.54 => /usr/lib/x86_64-linux-gnu/libavformat.so.54 (0x00007f6392917000) libavutil.so.52 => /usr/lib/x86_64-linux-gnu/libavutil.so.52 (0x00007f63926f2000) libFLAC.so.8 => /usr/lib/x86_64-linux-gnu/libFLAC.so.8 (0x00007f63924c1000) libjack.so.0 => /usr/lib/x86_64-linux-gnu/libjack.so.0 (0x00007f6392268000) libmpg123.so.0 => /usr/lib/x86_64-linux-gnu/libmpg123.so.0 (0x00007f6392011000) libmp3lame.so.0 => /usr/lib/x86_64-linux-gnu/libmp3lame.so.0 (0x00007f6391d84000) libsamplerate.so.0 => /usr/lib/x86_64-linux-gnu/libsamplerate.so.0 (0x00007f6391a18000) libshout-idjc.so.3 => /usr/lib/x86_64-linux-gnu/libshout-idjc.so.3 (0x00007f6391807000) libsndfile.so.1 => /usr/lib/x86_64-linux-gnu/libsndfile.so.1 (0x00007f639159f000) libspeex.so.1 => /usr/lib/x86_64-linux-gnu/libspeex.so.1 (0x00007f6391386000) libvorbisenc.so.2 => /usr/lib/x86_64-linux-gnu/libvorbisenc.so.2 (0x00007f6390eb7000) libvorbis.so.0 => /usr/lib/x86_64-linux-gnu/libvorbis.so.0 (0x00007f6390c8a000) libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f6390984000) libogg.so.0 => /usr/lib/x86_64-linux-gnu/libogg.so.0 (0x00007f639077b000) libtwolame.so.0 => /usr/lib/libtwolame.so.0 (0x00007f6390558000) libopus.so.0 => /usr/lib/x86_64-linux-gnu/libopus.so.0 (0x00007f6390310000) libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f63900f2000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f638fd2d000) libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007f638faef000) libxvidcore.so.4 => /usr/lib/x86_64-linux-gnu/libxvidcore.so.4 (0x00007f638f7b1000) libx264.so.142 => /usr/lib/x86_64-linux-gnu/libx264.so.142 (0x00007f638f41b000) libvpx.so.1 => /usr/lib/x86_64-linux-gnu/libvpx.so.1 (0x00007f638f03c000) libvo-amrwbenc.so.0 => /usr/lib/x86_64-linux-gnu/libvo-amrwbenc.so.0 (0x00007f638ee22000) libvo-aacenc.so.0 => /usr/lib/x86_64-linux-gnu/libvo-aacenc.so.0 (0x00007f638ec05000) libtheoraenc.so.1 => /usr/lib/x86_64-linux-gnu/libtheoraenc.so.1 (0x00007f638e9c5000) libtheoradec.so.1 => /usr/lib/x86_64-linux-gnu/libtheoradec.so.1 (0x00007f638e7ac000) libschroedinger-1.0.so.0 => /usr/lib/x86_64-linux-gnu/libschroedinger-1.0.so.0 (0x00007f638e4e8000) libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f638e2cf000) libopenjpeg.so.2 => /usr/lib/x86_64-linux-gnu/libopenjpeg.so.2 (0x00007f638e0ad000) libopencore-amrwb.so.0 => /usr/lib/x86_64-linux-gnu/libopencore-amrwb.so.0 (0x00007f638de99000) libopencore-amrnb.so.0 => /usr/lib/x86_64-linux-gnu/libopencore-amrnb.so.0 (0x00007f638dc6f000) libgsm.so.1 => /usr/lib/x86_64-linux-gnu/libgsm.so.1 (0x00007f638da61000) libva.so.1 => /usr/lib/x86_64-linux-gnu/libva.so.1 (0x00007f638d84b000) librtmp.so.0 => /usr/lib/x86_64-linux-gnu/librtmp.so.0 (0x00007f638d631000) libgnutls.so.26 => /usr/lib/x86_64-linux-gnu/libgnutls.so.26 (0x00007f638d373000) libbz2.so.1.0 => /lib/x86_64-linux-gnu/libbz2.so.1.0 (0x00007f638d163000) librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f638cf5b000) libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f638cd57000) libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f638ca53000) libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f638c83d000) /lib64/ld-linux-x86-64.so.2 (0x00007f6393ed6000) liborc-0.4.so.0 => /usr/lib/x86_64-linux-gnu/liborc-0.4.so.0 (0x00007f638c5bb000) libgcrypt.so.11 => /lib/x86_64-linux-gnu/libgcrypt.so.11 (0x00007f638c33b000) libtasn1.so.6 => /usr/lib/x86_64-linux-gnu/libtasn1.so.6 (0x00007f638c127000) libp11-kit.so.0 => /usr/lib/x86_64-linux-gnu/libp11-kit.so.0 (0x00007f638bee5000) libgpg-error.so.0 => /lib/x86_64-linux-gnu/libgpg-error.so.0 (0x00007f638bce0000) libffi.so.6 => /usr/lib/x86_64-linux-gnu/libffi.so.6 (0x00007f638bad8000) undefined symbol: av_frame_unref (/usr/lib/idjc/idjc.so) undefined symbol: av_frame_alloc (/usr/lib/idjc/idjc.so) $
This is the machine where I built and installed all previous versions of IDJC on. The only change since the April 12, 2015 version if IDJC was installed is that I had to upgrade to a newer kernel, in order to facilitate USB3+UAS.
Any idea on how to further diagnose and/or what might be the problem? Your help is much appreciated since I normally use IDJC from this system.
If it helps, here’s the
ldd
output from the Linux Mint 17.2 + Cinnamon machine which worked:Further info:
On the very same machine (my main Ubuntu Studio one), if I do a
to revert to the April 12, 2015 version, it builds and runs correctly.
Last edit: Moonbase 2015-11-22
Two functions were renamed and moved to libavutil and the old function calls marked as deprecated. I have pushed a fix that will use the original function calls as necessary. Please test it for me.
I hadn't reported it yet, but I also saw this problem on Friday. I just pulled the new version, and that fixes the problem for me on Mint 17.2. Odd that the OP did not have the problem on 17.2, but I did.
Brian: Maybe that’s because I tested on a system (newly-built playout station for a radio announcer) that has LM 17.2/Cinnamon as a base + (almost) all Ubuntu Studio Packages + complete JACK support. I reckon the Ubuntu Studio stuff introduced something that helped it work …
Stephen: Thanks, will test it today on my Ubuntu Studio 14.04.3+XFCE system today and come back with results.
Last edit: Moonbase 2015-11-23
Great work, commit 6b3907d got me up and running again! Thanks!
For some reason, it didn’t keep all my settings: I had to rewire a few connections using Patchage, but no problem of course. (I’m not that perfect using GIT, so maybe my command to revert back to HEAD using
git pull origin master
was wrong?)Is it possible that something changed regarding microphone required headroom? My setting before needed 20dB headroom but with this version it sounds like the music gets much lower in volume than before whenever I open the mic.
Maybe its just me (I didn’t yet really check measurements against an older version)?
Last edit: Moonbase 2015-11-23
Hi,
I have the same Problem under Arch Linux Pur and Manjaro 15.12.
What can Ido ? i installed it with yaourt -S idjc libshout-idjc
failed to open /usr/lib/idjc/idjc.so
Thanx``
Last edit: zoschel 2016-03-02
Zoschel, the version of idjc packaged is not compatible with their version of ffmpeg. The only fix is to build idjc from source.
Thanx Stephen,
i build it under Arch from source, libshout is installed by yaourt -S libshout-idjc, ok, so
i clone it from git,
,/bootstrap
./configure CFLAGS="-O2" --prefix=/usr
end, aported.
How can i make under arch to build it from source? same as under Ubuntu?
Thanx
git version under arch by yaourt is defekt
https://aur.archlinux.org/packages/libshout-idjc-git/
Last edit: zoschel 2016-03-02
Ok,
git clone git://git.code.sf.net/p/idjc/code idjc-code
cd idjc-code
cd libshout-idjc
./configure CFLAGS="-O2" --prefix=/usr
make
make install
ldconfig
no error, great
cd ..
./bootstrap
./configure CFLAGS="-O2" --prefix=/usr
make
sudo make install
exit
no error, great
$idjc
File "/usr/bin/idjc", line 30
print "failed to import the idjc package"
^
SyntaxError: Missing parentheses in call to 'print'
idjc is not startet :(
Last edit: zoschel 2016-03-02
Sytanx Error is not the problem ---> print ("failed to import the idjc package") and its done,
sys.path.insert(0, """/usr/lib/idjc/site-packages""") ?
That error indicates Python 3 is running. Try this:
Then do the rest of the IDJC build.
Great, it works, Thanx Stephen!!!!!!!
I'm trying to prepare updates to libshout-idjc and idjc aur packages.
I need to come up with a way that when installing libshout-idjc there are some conflicting files with original libshout e.g. /usr/share/aclocal/shout.m4 . Can I just move these files somewhere else?
After a long time, I today had some spare time to try compiling IDJC on my Ubuntu Studio machine again (Ubuntu 14.04.5 LTS, kernel 4.4.0-36-lowlatency). It compiles fine, but upon starting I still get the "IDJC Failed to open /usr/lib/idjc/idjc.so" message.
ldd -r /usr/lib/idjc/idjc.so doesn’t complain about the undefined symbols "avcodec_alloc_frame" and "avcodec_get_frame_defaults" anymore. but there is a new one:
I’m on "origin/master" at commit 7e4ff89963b91d387c84311d4f18c9596df563df.
As always, thanks for checking! Also, I promise to look here more often the next weeks ;-)
Your libshout-idjc is out of date. Build from this git version and make sure the old version is gone.
git clone git://git.code.sf.net/p/idjc/libshoutidjc/code idjc-libshoutidjc-code. You will most likely need to run "autoreconf -ifs" before doing the usual build sequence.
Or get the lastest release.
https://sourceforge.net/projects/idjc/files/libshout-idjc/libshout-idjc-2.4.1.tar.gz/download
Hm. I tried
Here’s the output:
No go. So, just for fun, I went to my current IDJC folder and did
which brought me from ff8c983 to 7e4ff89 again.
So I tried
For whatever odd reason, it seems to run. Build info shows
Hint: It’d be great to also show the libshout-idjc version here!
My 4 stream server’s connection data was gone but on re-entering I could see the new fields for the newer shoutcast servers. So it seems to work.
Nevertheless, I wonder how to easily find the version of libshout-idjc installed.
When checking in /usr/lib, I get
Does that look about correct? Just wondering about the "3.2.0" …
I found some problem with the new libshout, but I’ll open another ticket for that …
Last edit: Moonbase 2016-09-24