help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: IMREAD does not recognize image path


From: Byron Harding
Subject: Re: IMREAD does not recognize image path
Date: Sun, 19 Jul 2015 20:19:51 -0700



On Sun, Jul 19, 2015 at 6:45 PM, Dmitri A. Sergatskov <address@hidden> wrote:
On Sun, Jul 19, 2015 at 7:45 PM, Ben Abbott <address@hidden> wrote:
 
>> > The only time I get a different error is when I try: I = imread("OSUHat.jpg") when the director is /home/exps5. In that case, I get:
>> >
>> > error: imread: invalid image file: /usr/lib/x84-64-linux-gnu/octave/3.8.2/oct/x86_64-pc-linux-gnu/__magick_read__.oct: failed to load: /usr/lib/x86_64-linux-gnu/octave/3.8.2/oct/x86_64-pc-linux-gnu/__magick_read__.oct: undefined symbol: _ZN6Magick5ColorC1Ehhh



​This error seems to suggest that your installation of octave-image is corrupted. It looks to me that you either do not have libGraphicsMagick++
installed, or your octave-image was compiled against different and incompatible version of one.

Do

ldd /usr/lib/x84-64-linux-gnu/octave/3.8.2/oct/x86_64-pc-linux-gnu/__magick_read__.oct

(from the shell prompt)
and see if you have all dependencies resolved.

Dmitri.
--


 ​


Hello,

I would like to apologize to the Octave GNU team for posting incorrectly and also not emailing help list. I am new to such lists, I use gmail, and I just replied to the latest email. This time, I scrolled down and posted at bottom.

I am still having the same difficulties even after I removed Octave GNU and reinstalled from https://launchpad.net/~octave. I have sent "Mike Miller" an e-mail as well because I would like to resolve this issue.

Here is my latest diary, and I hope it also cleans up my post a bit because the diary reflects the same error that I was having with the old install which was the original topic of this thread.

octave:18> pwd
ans = /home/exps5
octave:19> ls
absolute   Downloads         foo.pdf           OSUHat.jpg  Surname.jpg    Videos
Desktop    examples.desktop  Hello           Pictures    Surname.png
diary       first         Music           play       Surname.tif
Documents  foo.eps         octave-workspace  Public       Templates
octave:20> ls *.jpg
OSUHat.jpg  Surname.jpg
octave:21> I = imread('OSUHat.jpg');
error: imread: invalid image file: /usr/lib/x86_64-linux-gnu/octave/3.8.2/oct/x86_64-pc-linux-gnu/__magick_read__.oct: failed to load: /usr/lib/x86_64-linux-gnu/octave/3.8.2/oct/x86_64-pc-linux-gnu/__magick_read__.oct: undefined symbol: _ZN6Magick5ColorC1Ehhh
error: called from:
error:   /usr/share/octave/3.8.2/m/image/private/__imread__.m at line 181, column 7
error:   /usr/share/octave/3.8.2/m/image/private/imageIO.m at line 66, column 26
error:   /usr/share/octave/3.8.2/m/image/imread.m at line 107, column 30
octave:21> I = imread("OSUHat.jpg");
error: imread: invalid image file: /usr/lib/x86_64-linux-gnu/octave/3.8.2/oct/x86_64-pc-linux-gnu/__magick_read__.oct: failed to load: /usr/lib/x86_64-linux-gnu/octave/3.8.2/oct/x86_64-pc-linux-gnu/__magick_read__.oct: undefined symbol: _ZN6Magick5ColorC1Ehhh
error: called from:
error:   /usr/share/octave/3.8.2/m/image/private/__imread__.m at line 181, column 7
error:   /usr/share/octave/3.8.2/m/image/private/imageIO.m at line 66, column 26
error:   /usr/share/octave/3.8.2/m/image/imread.m at line 107, column 30
octave:21> ls *.tif
Surname.tif
octave:22> I = imread("Surname.tif");
error: imread: invalid image file: /usr/lib/x86_64-linux-gnu/octave/3.8.2/oct/x86_64-pc-linux-gnu/__magick_read__.oct: failed to load: /usr/lib/x86_64-linux-gnu/octave/3.8.2/oct/x86_64-pc-linux-gnu/__magick_read__.oct: undefined symbol: _ZN6Magick5ColorC1Ehhh
error: called from:
error:   /usr/share/octave/3.8.2/m/image/private/__imread__.m at line 181, column 7
error:   /usr/share/octave/3.8.2/m/image/private/imageIO.m at line 66, column 26
error:   /usr/share/octave/3.8.2/m/image/imread.m at line 107, column 30
octave:22> ver
----------------------------------------------------------------------
GNU Octave Version 3.8.2
GNU Octave License: GNU General Public License
Operating System: Linux 3.19.0-22-generic #22-Ubuntu SMP Tue Jun 16 17:15:15 UTC 2015 x86_64
----------------------------------------------------------------------
no packages installed.
octave:23> pwd
ans = /home/exps5
octave:24> diary off

octave:5> ver
----------------------------------------------------------------------
GNU Octave Version 3.8.2
GNU Octave License: GNU General Public License
Operating System: Linux 3.19.0-22-generic #22-Ubuntu SMP Tue Jun 16 17:15:15 UTC 2015 x86_64
----------------------------------------------------------------------
no packages installed.
octave:6> pwd
ans = /home/exps5
octave:7> ls
absolute   examples.desktop  Music           Public        Templates
Desktop    first         octave-workspace  Shell.txt    Videos
diary       foo.eps         OSUHat.jpg        Surname.jpg
Documents  foo.pdf         Pictures           Surname.png
Downloads  Hello         play           Surname.tif
octave:8> ls *.jpg
OSUHat.jpg  Surname.jpg
octave:9> I = imread('OSUHat.jpg');
error: imread: invalid image file: /usr/lib/x86_64-linux-gnu/octave/3.8.2/oct/x86_64-pc-linux-gnu/__magick_read__.oct: failed to load: /usr/lib/x86_64-linux-gnu/octave/3.8.2/oct/x86_64-pc-linux-gnu/__magick_read__.oct: undefined symbol: _ZN6Magick5ColorC1Ehhh
error: called from:
error:   /usr/share/octave/3.8.2/m/image/private/__imread__.m at line 181, column 7
error:   /usr/share/octave/3.8.2/m/image/private/imageIO.m at line 66, column 26
error:   /usr/share/octave/3.8.2/m/image/imread.m at line 107, column 30
octave:9> ls *.tif
Surname.tif
octave:10> I = imread('Surname.tif');
error: imread: invalid image file: /usr/lib/x86_64-linux-gnu/octave/3.8.2/oct/x86_64-pc-linux-gnu/__magick_read__.oct: failed to load: /usr/lib/x86_64-linux-gnu/octave/3.8.2/oct/x86_64-pc-linux-gnu/__magick_read__.oct: undefined symbol: _ZN6Magick5ColorC1Ehhh
error: called from:
error:   /usr/share/octave/3.8.2/m/image/private/__imread__.m at line 181, column 7
error:   /usr/share/octave/3.8.2/m/image/private/imageIO.m at line 66, column 26
error:   /usr/share/octave/3.8.2/m/image/imread.m at line 107, column 30
octave:10> ver
----------------------------------------------------------------------
GNU Octave Version 3.8.2
GNU Octave License: GNU General Public License
Operating System: Linux 3.19.0-22-generic #22-Ubuntu SMP Tue Jun 16 17:15:15 UTC 2015 x86_64
----------------------------------------------------------------------
no packages installed.
octave:11> ls
absolute   examples.desktop  Music           Public        Templates
Desktop    first         octave-workspace  Shell.txt    Videos
diary       foo.eps         OSUHat.jpg        Surname.jpg
Documents  foo.pdf         Pictures           Surname.png
Downloads  Hello         play           Surname.tif
octave:12> pwd
ans = /home/exps5
octave:13> diary off



--
Byron Harding


reply via email to

[Prev in Thread] Current Thread [Next in Thread]