-
Notifications
You must be signed in to change notification settings - Fork 143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Image loading fails in IJulia notebook #51
Comments
Works for me. I did update the package just this morning, which changed a lot of I/O; which version are you running? |
I was using v0.2.17. After upgrading to v0.2.18, I now get a different error in IJulia (REPL still works fine):
I do have png.la:
but somehow Julia's getting an extra slash in the path. The libMagickWand dependency did fail for me when I updated Images.jl to v0.2.18 (I'm using Arch Linux). To work around this, I manually created a symbolic link at libMagickWand.so, pointing to libMagickWand-6.Q16HDRI.so. Manually building v0.2.18 then seemed to work just fine. Here's what my /usr/lib now looks like:
|
With regards to the latter point, would you be willing to (1) delete your symlink and (2) test the With regards to the more serious issue: I find it strange that a C library might behave differently in IJulia vs the REPL. However, Similar issues: |
Without changing the symlink, "mountainstream" fails in both the REPL and IJulia with
"mandrill" works in the REPL but fails in IJulia. Here's what happens after I delete the symlink:
Building Images fails:
Here's what I get when running
|
That's very useful. Several points:
I'm not certain what the issue is with libMagickWand and PNGs, but from those links I posted above you're clearly not alone in this problem. To me it seems like an ArchLinux problem, but one we might have to cope with. Can you run the command-line |
The error is happening because the |
That's interesting about
I'm happy to try adding pacman to BinDeps; hopefully that will help fix things. |
@StefanKarpinski, agreed one shouldn't get too clever. I suspect that package authors will fairly frequently ask users to test specific new-feature or hotfix branches. Would it be appropriate to add some @jakesnell, the message
means it's still not finding the library without the symlink. Are you on the real Finding the library is a separate issue from enhancing BinDeps; BinDeps only affects what happens when Thanks for sticking with this! |
I'm ok with doing the right thing here, I just don't know what it is. Do you have an example case where I can try checking out a different branch? I'd actually like for |
@StefanKarpinski, you could try the |
Aha! You are 100% right. I wasn't in fact on the real io branch (thanks for bearing with me, I'm still a bit new to the finer points of git). The io branch makes the warning go away but I still get the strange double-slash error. I still have no idea what could be causing that.
|
I'm starting to think this is a straight-up ImageMagick (and maybe also libpng) problem. I'll investigate and get back soon. |
Turns out that I had an old version of libpng on my system and ImageMagick was having a hard time talking to it. I updated libpng and now everything works like a charm as long as I stay on the |
Glad you figured it out. I merged the |
I get the following error when loading an image in the IJulia notebook:
See http://nbviewer.ipython.org/gist/jakesnell/8026978 for the code.
The same snippet works in the REPL:
Not sure if this is a bug in Images.jl or if my IJulia installation is somehow broken. Any ideas?
The text was updated successfully, but these errors were encountered: