ledigchr / MALPEM

MALPEM whole-brain segmentation framework
Other
21 stars 10 forks source link

Command in CARE environment Error #4

Closed uanazodo closed 6 years ago

uanazodo commented 6 years ago

Hello Christian,

I used malpem version 1.2 with the Ubuntu 14.04 distribution and now have upgraded my desktop and OS to Ubuntu 16.04. I moved the malpem folder to my home directory and tried to run the code but got an error message even when i tried executing the help See below;

bin/malpem-proot -h STATUS: Using libGL library in: /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1

Command in CARE environment: malpem -h

env: ‘/usr/CARElib/x86_64-linux-gnu/mesa:’: No such file or directory

Any thoughts on how I can fix this. Thanks

ledigchr commented 6 years ago

Can you check your bin/malpem-proot file and compare to the following line from the repo? https://github.com/ledigchr/MALPEM/blob/eb71e980bacbda2304b3386f5017272b20d71c9e/bin/malpem-proot#L17

The script shouldn't be able to find the libraries in your error message.

If the above doesn't solve your problem. A quick fix to your problem should be to delete the above line from the script and instead set myGL = "" This fix will however disable offscreen rendering which is only relevant for the pdf report and should be the only limitation of this fix.

uanazodo commented 6 years ago

Hello Christian,

I had edited line #17 in the malpem-proot to myGL=locate 'libGL.so.1' | egrep '*.so.1$' | egrep ^/usr/lib

So it can locate the libGL.so.1 file.

which produced the error message I reported.

However when I changed it to myGL= " ". I got the following error message

STATUS: Using libGL library in: dirname: missing operand Try 'dirname --help' for more information.

Command in CARE environment: malpem -h

proot info: pid 13749: terminated with signal 11

Udunna

On Tue, May 22, 2018 at 10:18 PM, Christian Ledig notifications@github.com wrote:

Can you check your bin/malpem-proot file and compare to the following line from the repo? https://github.com/ledigchr/MALPEM/blob/eb71e980bacbda2304b3386f501727 2b20d71c9e/bin/malpem-proot#L17

The script shouldn't be able to find the libraries in your error message.

If the above doesn't solve your problem. A quick fix to your problem should be to delete the above line from the script and instead set myGL = "" This fix will however disable offscreen rendering which is only relevant for the pdf report and should be the only limitation of this fix.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ledigchr/MALPEM/issues/4#issuecomment-391198874, or mute the thread https://github.com/notifications/unsubscribe-auth/AltO2z0WkdAcCKtEWHMTBVn5BJR2y835ks5t1MbhgaJpZM4UJdfE .

ledigchr commented 6 years ago

You want this to evaluate to True. https://github.com/ledigchr/MALPEM/blob/eb71e980bacbda2304b3386f5017272b20d71c9e/bin/malpem-proot#L19

It seems you changed myGL=" " (note the space) rather than myGL="".

uanazodo commented 6 years ago

Ah yes. Removed the space and got this error message

WARNING: Didn't find libGL library in /usr/lib/nvid*, offscreen rendering won't work (only relevant for pdf report)

Command in CARE environment: malpem -h

proot info: pid 14033: terminated with signal 11

U

On Wed, May 23, 2018 at 10:00 AM, Christian Ledig notifications@github.com wrote:

You want this to evaluate to True. https://github.com/ledigchr/MALPEM/blob/eb71e980bacbda2304b3386f501727 2b20d71c9e/bin/malpem-proot#L19

It seems you changed myGL=" " (note the space) rather than myGL="".

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ledigchr/MALPEM/issues/4#issuecomment-391357611, or mute the thread https://github.com/notifications/unsubscribe-auth/AltO25xChSwTqW4Dx8jP3pMx3RYkvY7nks5t1WtogaJpZM4UJdfE .

ledigchr commented 6 years ago

This looks related to this issue https://github.com/ledigchr/MALPEM/issues/2

Have you tried adding export PROOT_NO_SECCOMP=1 to bin/malpem-proot

uanazodo commented 6 years ago

Aha!!! It works. Well its running now. I uncommented line 17 in bin/malpem_proot which I modified to find libGL.so.1 as follows myGL=locate 'libGL.so.1' | egrep '*.so.1$' | egrep ^/usr/lib

then added export PROOT_NO_SECCOMP=1

U

uanazodo commented 6 years ago

My appolgoies for the font format in the original question. I copied and pasted an email I sent which bounced to github and it somehow changed the font in some sections.

U

ledigchr commented 6 years ago

no problem, glad it works!