Bug 1764797

Summary: ERROR: error compiling cfunction_: could not load library "libjulia"
Product: [Fedora] Fedora Reporter: Alex <apattyn>
Component: juliaAssignee: Milan Bouchet-Valat <nalimilan>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 31CC: chris, nalimilan
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: julia-1.2.0-3.1.fc31 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-11-17 01:30:00 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Error output. Rather long and seems to be repeated. none

Description Alex 2019-10-23 18:15:13 UTC
Created attachment 1628584 [details]
Error output. Rather long and seems to be repeated.

Description of problem:

When using Images.jl and ImageView.jl, there seems to be an issue viewing images with imshow(...). I am using this with toolbox on Fedora 31 silverblue. 

Basically the GUI window pops up, but no image. I do have Plots.jl working so I don't think its a QT or GTK issue. 

Version-Release number of selected component (if applicable):

Version 1.2.0 (2019-08-20)
Fedora 31 build

How reproducible:
easy

Steps to Reproduce:
Assuming you are in the Julia REPL
1. ]
2. add Images ImageView
3. using Images
4. using ImageView
5. **Read some image with im = load(...) or make a 2D array e.g. im = rand(128,128)**
6. imshow(im)
7. See error...

Actual results:
See attachment for full error, but in short ERROR: error compiling cfunction_: could not load library "libjulia"
libjulia.so: cannot open shared object file: No such file or directory


Expected results:

A window with the image. See: https://juliaimages.org/latest/imagesegmentation/

Additional info:

N/A

Comment 1 Alex 2019-10-23 18:26:43 UTC
Tested using pre-built binaries from https://julialang.org/downloads/ and everything seems good.

Reproduce (Starting in the REPL): 

1. using ImageView
2. img = ones(128,128)
3. imshow(img)
4. See window with image.

So it seems that libjulia.so needs to be linked to for the fedora build?

Comment 2 Fedora Update System 2019-11-07 08:50:17 UTC
FEDORA-2019-da5c53481b has been submitted as an update to Fedora 31. https://bodhi.fedoraproject.org/updates/FEDORA-2019-da5c53481b

Comment 3 Milan Bouchet-Valat 2019-11-07 08:51:18 UTC
Good catch. That's because libjulia.so is only included in the julia-devel package. I've pushed a fix, please confirm that it works for you.

Comment 4 Fedora Update System 2019-11-09 23:20:12 UTC
julia-1.2.0-3.1.fc31 has been pushed to the Fedora 31 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-da5c53481b

Comment 5 Fedora Update System 2019-11-17 01:30:00 UTC
julia-1.2.0-3.1.fc31 has been pushed to the Fedora 31 stable repository. If problems still persist, please make note of it in this bug report.