-
Notifications
You must be signed in to change notification settings - Fork 3
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
Problem installing laminar_python #11
Comments
Hi Matteo, you might want to consider instead of laminar_python to use Nighres, which has the same and more functionalities and is being actively developed (in contrast to laminar_python). Both packages, however, are not tried and tested for Mac yet. For Nighres you might circumvent the problem using the Docker image. That said, if you want to try and make your installation work, the reason for your error is that original code has been compiled against a Java installation that is different from yours. I can give you instructions how it can sometimes be fixed on Linux systems, but I know little about Mac, so I am not sure how that would translate:
This can be run within the current terminal for a single session, or made permanent by adding the export statement to your terminal execution script (i.e., .bashrc on most linux systems).
Hope this helps, let me know! |
Hi Julia,
I installed Nighres as you suggest and everything works correctly. I have some questions for you:
- Which atlas is used by default in the brain segmentation?
- Can we use our own atlas for brain tissue labeling, and if yes how to proceed?
Thank you very much
Matteo Moro
… Il 2 aprile 2018 alle 16.48 Julia Huntenburg ***@***.***> ha scritto:
Hi Matteo,
you might want to consider instead of laminar_python to use Nighres http://nighres.readthedocs.io/en/latest/index.html , which has the same and more functionalities and is being actively developed (in contrast to laminar_python). Both packages, however, are not tried and tested for Mac yet. For Nighres you might circumvent the problem using the Docker image http://nighres.readthedocs.io/en/latest/installation.html#docker .
That said, if you want to try and make your installation work, the reason for your error is that original code has been compiled against a Java installation that is different from yours. I can give you instructions how it can sometimes be fixed on Linux systems, but I know little about Mac, so I am not sure how that would translate:
1. Find your libjvm.so location
find / -type f -name libjvm.so
2. Add it to the library path. Depending on you Java installation it will be something similar to one of these
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/server/
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/jvm/java-8-openjdk-amd64/lib/amd64/server/
This can be run within the current terminal for a single session, or made permanent by adding the export statement to your terminal execution script (i.e., .bashrc on most linux systems).
1. If that doesn't do the trick you can try running::
sudo R CMD javareconf
Hope this helps, let me know!
Julia
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub #11 (comment) , or mute the thread https://github.com/notifications/unsubscribe-auth/AkLenwp3BPV1ZV6e-1S9XYhsfIgTq--3ks5tkjpPgaJpZM4TB4R8 .
|
Hi Julia,
I installed Nighres as you suggest and everything works correctly. I have some questions for you:
- Which atlas is used by default in the brain segmentation function in Nighres?
- Can we use our own atlas for brain tissue labeling, and if yes how to proceed?
Thank you very much!
Bests
Matteo Moro
… Il 2 aprile 2018 alle 16.48 Julia Huntenburg ***@***.***> ha scritto:
Hi Matteo,
you might want to consider instead of laminar_python to use Nighres http://nighres.readthedocs.io/en/latest/index.html , which has the same and more functionalities and is being actively developed (in contrast to laminar_python). Both packages, however, are not tried and tested for Mac yet. For Nighres you might circumvent the problem using the Docker image http://nighres.readthedocs.io/en/latest/installation.html#docker .
That said, if you want to try and make your installation work, the reason for your error is that original code has been compiled against a Java installation that is different from yours. I can give you instructions how it can sometimes be fixed on Linux systems, but I know little about Mac, so I am not sure how that would translate:
1. Find your libjvm.so location
find / -type f -name libjvm.so
2. Add it to the library path. Depending on you Java installation it will be something similar to one of these
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/server/
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/jvm/java-8-openjdk-amd64/lib/amd64/server/
This can be run within the current terminal for a single session, or made permanent by adding the export statement to your terminal execution script (i.e., .bashrc on most linux systems).
1. If that doesn't do the trick you can try running::
sudo R CMD javareconf
Hope this helps, let me know!
Julia
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub #11 (comment) , or mute the thread https://github.com/notifications/unsubscribe-auth/AkLenwp3BPV1ZV6e-1S9XYhsfIgTq--3ks5tkjpPgaJpZM4TB4R8 .
|
Hi Matteo, sorry for the late reply, could you post this on the Nighres issue tracker? Thanks! |
Hi!
I tried to install laminar_python in my computer and I did all the steps. I install it in usr/bin and I set the PYTHONPATH. But when I try to do
import laminar_python
in Python, I have this error:
Traceback (most recent call last):
File "", line 1, in
File "laminar_python/init.py", line 3, in
from .volumetric_layering import create_levelsets, layering,
File "laminar_python/volumetric_layering.py", line 5, in
import cbstoolsjcc
File "laminar_python/cbstoolsjcc/init.py", line 2, in
import os, _cbstoolsjcc
ImportError: libjvm.so: cannot open shared object file: No such file or directory
I set also the path for the file libjvm.so but nothing changed.
Any suggestions to solve this problem?
Thank you
Matteo
The text was updated successfully, but these errors were encountered: