gimli-org / gimli

Geophysical Inversion and Modeling Library :earth_africa:
https://www.pygimli.org
Other
348 stars 131 forks source link

Issue with gimli installation #44

Closed dhhien closed 7 years ago

dhhien commented 7 years ago

Hi there,

I tried to install gimli libraries as instructed from the package. However, the configuration by cmake gave me an error as the follows

-- The C compiler identification is GNU 4.4.7 -- The CXX compiler identification is GNU 4.4.7 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Target is 64 bits -- ThirdParty set to: /share_home/vpi.hien/tmp/gimli/gimli/../thirdParty/ -- External set to: /share_home/vpi.hien/tmp/gimli/thirdParty/dist-GNU-4.4.7-64 -- Found PythonInterp: /share_home/vpi.hien/anaconda3/bin/python (found version "3.5.2") -- Boost version: 1.60.0 -- Found the following Boost libraries: -- system -- thread -- Boost version: 1.60.0 -- Boost is local False -- Boost found -- BOOST_ROOT does not exist: -- BOOST_ROOT, -- Boost_INCLUDE_DIR, /share_home/vpi.hien/anaconda3/include -- Boost version: 1.60.0 -- Found the following Boost libraries: -- system -- thread -- boost include: /share_home/vpi.hien/anaconda3/include -- Looking for C++ include boost/interprocess/managed_shared_memory.hpp -- Looking for C++ include boost/interprocess/managed_shared_memory.hpp - found -- Looking for C++ include boost/bind.hpp -- Looking for C++ include boost/bind.hpp - found -- HAVE_BOOST_INTERPROCESS_MANAGED_SHARED_MEMORY_HPP 1 /share_home/vpi.hien/anaconda3/include -- Checking for package 'TRIANGLE' -- External dir: /share_home/vpi.hien/tmp/gimli/thirdParty/dist-GNU-4.4.7-64 -- Triangle_INCLUDE_DIR = Triangle_INCLUDE_DIR-NOTFOUND -- Triangle_LIBRARIES = Triangle_LIBRARIES-NOTFOUND -- Triangle could not be found. (missing: Triangle_LIBRARIES Triangle_INCLUDE_DIR) -- Triangle is local True -- Found Wget: /usr/bin/wget
-- Found Subversion: /usr/bin/svn (found version "1.6.11") -- Found Git: /usr/bin/git (found version "1.7.1") CMake Error at /share_home/vpi.hien/cmake/share/cmake-3.4/Modules/FindPackageHandleStandardArgs.cmake:148 (message): Could NOT find Hg (missing: HG_EXECUTABLE) Call Stack (most recent call first): /share_home/vpi.hien/cmake/share/cmake-3.4/Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MESSAGE) /share_home/vpi.hien/cmake/share/cmake-3.4/Modules/FindHg.cmake:108 (find_package_handle_standard_args) cmake/GIMLImacros.cmake:152 (find_package) cmake/GIMLImacros.cmake:193 (findBuildTools) cmake/GIMLImacros.cmake:169 (find_or_build_package_check) CMakeLists.txt:202 (find_or_build_package)

-- Configuring incomplete, errors occurred! See also "/share_home/vpi.hien/tmp/gimli/build/CMakeFiles/CMakeOutput.log"

Can you please help to figure this issue.

Kind regards, Hien

carsten-forty2 commented 7 years ago

"Could NOT find Hg (missing: HG_EXECUTABLE)"

You need to install the 'mercurial' package for some third party dependencies. (http://www.pygimli.org/installation.html)

Kind regards, Carsten

Quoting dhhien notifications@github.com:

Hi there,

I tried to install gimli libraries as instructed from the package.
However, the configuration by cmake gave me an error as the follows

-- The C compiler identification is GNU 4.4.7 -- The CXX compiler identification is GNU 4.4.7 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Target is 64 bits -- ThirdParty set to: /share_home/vpi.hien/tmp/gimli/gimli/../thirdParty/ -- External set to:
/share_home/vpi.hien/tmp/gimli/thirdParty/dist-GNU-4.4.7-64 -- Found PythonInterp: /share_home/vpi.hien/anaconda3/bin/python
(found version "3.5.2") -- Boost version: 1.60.0 -- Found the following Boost libraries: -- system -- thread -- Boost version: 1.60.0 -- Boost is local False -- Boost found -- BOOST_ROOT does not exist: -- BOOST_ROOT, -- Boost_INCLUDE_DIR, /share_home/vpi.hien/anaconda3/include -- Boost version: 1.60.0 -- Found the following Boost libraries: -- system -- thread -- boost include: /share_home/vpi.hien/anaconda3/include -- Looking for C++ include boost/interprocess/managed_shared_memory.hpp -- Looking for C++ include
boost/interprocess/managed_shared_memory.hpp - found -- Looking for C++ include boost/bind.hpp -- Looking for C++ include boost/bind.hpp - found -- HAVE_BOOST_INTERPROCESS_MANAGED_SHARED_MEMORY_HPP 1
/share_home/vpi.hien/anaconda3/include -- Checking for package 'TRIANGLE' -- External dir: /share_home/vpi.hien/tmp/gimli/thirdParty/dist-GNU-4.4.7-64 -- Triangle_INCLUDE_DIR = Triangle_INCLUDE_DIR-NOTFOUND -- Triangle_LIBRARIES = Triangle_LIBRARIES-NOTFOUND -- Triangle could not be found. (missing: Triangle_LIBRARIES
Triangle_INCLUDE_DIR) -- Triangle is local True -- Found Wget: /usr/bin/wget -- Found Subversion: /usr/bin/svn (found version "1.6.11") -- Found Git: /usr/bin/git (found version "1.7.1") CMake Error at
/share_home/vpi.hien/cmake/share/cmake-3.4/Modules/FindPackageHandleStandardArgs.cmake:148
(message): Could NOT find Hg (missing: HG_EXECUTABLE) Call Stack (most recent call first):

/share_home/vpi.hien/cmake/share/cmake-3.4/Modules/FindPackageHandleStandardArgs.cmake:388
(_FPHSA_FAILURE_MESSAGE)

/share_home/vpi.hien/cmake/share/cmake-3.4/Modules/FindHg.cmake:108
(find_package_handle_standard_args) cmake/GIMLImacros.cmake:152 (find_package) cmake/GIMLImacros.cmake:193 (findBuildTools) cmake/GIMLImacros.cmake:169 (find_or_build_package_check) CMakeLists.txt:202 (find_or_build_package)

-- Configuring incomplete, errors occurred! See also "/share_home/vpi.hien/tmp/gimli/build/CMakeFiles/CMakeOutput.log"

Can you please help to figure this issue.

Kind regards, Hien

You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/gimli-org/gimli/issues/44

TW999 commented 7 years ago

I am having trouble installing pygimli on my machine. I am running Ubuntu 14.04 with python3.4 and am following the example Ubuntu installation.

Pygimli appears to install fine but when I import pygimli using python3.4 idle I get the error:

File "/home/wilsonthom3/.local/lib/python3.4/site-packages/pygimli-1.0rc-py3.4.egg/pygimli/core/init.py", line 33, in

I have double checked and appear to have all of the dependencies and correct python paths. Can you please help me.

kind regards, Tom

florian-wagner commented 7 years ago

Hi Tom, although the error message is not complete, it looks like the bindings for the C++ code were not probably built or not copied to your site-packages path. Did you call python setup.py --install at the beginning or did you follow the other steps on www.pygimli.org/installation.html first?

Using the Anaconda (or Miniconda) might also be an option for you. Then you just need to type conda install -c gimli pygimli.

TW999 commented 7 years ago

Hi Florian,

I followed the installation steps on http://www.pygimli.org/installation.html before calling python setup.py --install. Do you think this is my issue? I download anaconda and try installing pygimli with that.

Thank you for your help.

On Thu, Sep 8, 2016 at 7:19 PM, Florian Wagner notifications@github.com wrote:

Hi Tom, although the error message is not complete, it looks like the bindings for the C++ code were not probably built or not copied to your site-packages path. Did you call python setup.py --install at the beginning or did you follow the other steps on www.pygimli.org/installation.html first?

Using the Anaconda (or Miniconda) might also be an option for you. Then you just need to type conda install -c gimli pygimli.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/gimli-org/gimli/issues/44#issuecomment-245514462, or mute the thread https://github.com/notifications/unsubscribe-auth/ARc0d9zRhqjPNZX3w8KQUbk99Z-zgSRfks5qn7cdgaJpZM4JoFvR .

carsten-forty2 commented 7 years ago

We need the complete output from your run to find the issue.

You can try Anaconda .. or you can try the curl script.

Did you tried without installation by only setting PYTHONPATH appropriate?

Quoting WilstheLazerKiwi notifications@github.com:

Hi Florian,

I followed the installation steps on http://www.pygimli.org/installation.html before calling python setup.py --install. Do you think this is my issue? I download anaconda and try installing pygimli with that.

Thank you for your help.

On Thu, Sep 8, 2016 at 7:19 PM, Florian Wagner notifications@github.com wrote:

Hi Tom, although the error message is not complete, it looks like the bindings for the C++ code were not probably built or not copied to your site-packages path. Did you call python setup.py --install at the beginning or did you follow the other steps on www.pygimli.org/installation.html first?

Using the Anaconda (or Miniconda) might also be an option for you. Then you just need to type conda install -c gimli pygimli.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/gimli-org/gimli/issues/44#issuecomment-245514462, or
mute the thread https://github.com/notifications/unsubscribe-auth/ARc0d9zRhqjPNZX3w8KQUbk99Z-zgSRfks5qn7cdgaJpZM4JoFvR .

You are receiving this because you commented. Reply to this email directly or view it on GitHub: https://github.com/gimli-org/gimli/issues/44#issuecomment-245730656

TW999 commented 7 years ago

See attached for the full error report. I am currently installing miniconda and trying the curl script. I am not sure I understand your last question, could you please elaborate?

On Fri, Sep 9, 2016 at 9:02 AM, carsten-forty2 notifications@github.com wrote:

We need the complete output from your run to find the issue.

You can try Anaconda .. or you can try the curl script.

Did you tried without installation by only setting PYTHONPATH appropriate?

Quoting WilstheLazerKiwi notifications@github.com:

Hi Florian,

I followed the installation steps on http://www.pygimli.org/installation.html before calling python setup.py --install. Do you think this is my issue? I download anaconda and try installing pygimli with that.

Thank you for your help.

On Thu, Sep 8, 2016 at 7:19 PM, Florian Wagner <notifications@github.com

wrote:

Hi Tom, although the error message is not complete, it looks like the bindings for the C++ code were not probably built or not copied to your site-packages path. Did you call python setup.py --install at the beginning or did you follow the other steps on www.pygimli.org/installation.html first?

Using the Anaconda (or Miniconda) might also be an option for you. Then you just need to type conda install -c gimli pygimli.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/gimli-org/gimli/issues/44#issuecomment-245514462, or mute the thread https://github.com/notifications/unsubscribe-auth/ ARc0d9zRhqjPNZX3w8KQUbk99Z-zgSRfks5qn7cdgaJpZM4JoFvR .

You are receiving this because you commented. Reply to this email directly or view it on GitHub: https://github.com/gimli-org/gimli/issues/44#issuecomment-245730656

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/gimli-org/gimli/issues/44#issuecomment-245739899, or mute the thread https://github.com/notifications/unsubscribe-auth/ARc0d81dw23vdLsTftsiFlOtXydNTBcEks5qoHfpgaJpZM4JoFvR .

TW999 commented 7 years ago

Also, I have installed pygimli via the curl script and get the same error.

On Fri, Sep 9, 2016 at 9:09 AM, Thomas Wilson td.wilson3@gmail.com wrote:

See attached for the full error report. I am currently installing miniconda and trying the curl script. I am not sure I understand your last question, could you please elaborate?

On Fri, Sep 9, 2016 at 9:02 AM, carsten-forty2 notifications@github.com wrote:

We need the complete output from your run to find the issue.

You can try Anaconda .. or you can try the curl script.

Did you tried without installation by only setting PYTHONPATH appropriate?

Quoting WilstheLazerKiwi notifications@github.com:

Hi Florian,

I followed the installation steps on http://www.pygimli.org/installation.html before calling python setup.py --install. Do you think this is my issue? I download anaconda and try installing pygimli with that.

Thank you for your help.

On Thu, Sep 8, 2016 at 7:19 PM, Florian Wagner < notifications@github.com> wrote:

Hi Tom, although the error message is not complete, it looks like the bindings for the C++ code were not probably built or not copied to your site-packages path. Did you call python setup.py --install at the beginning or did you follow the other steps on www.pygimli.org/installation.html first?

Using the Anaconda (or Miniconda) might also be an option for you. Then you just need to type conda install -c gimli pygimli.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/gimli-org/gimli/issues/44#issuecomment-245514462, or mute the thread https://github.com/notifications/unsubscribe-auth/ARc0d9zRh qjPNZX3w8KQUbk99Z-zgSRfks5qn7cdgaJpZM4JoFvR .

You are receiving this because you commented. Reply to this email directly or view it on GitHub: https://github.com/gimli-org/gimli/issues/44#issuecomment-245730656

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/gimli-org/gimli/issues/44#issuecomment-245739899, or mute the thread https://github.com/notifications/unsubscribe-auth/ARc0d81dw23vdLsTftsiFlOtXydNTBcEks5qoHfpgaJpZM4JoFvR .

carsten-forty2 commented 7 years ago

miniconda and the curl script are two different approaches.

I meant that you can simple set the following environmental variables
to run pygimli.

export PYTHONPATH=$PYTHONPATH:$HOME/src/gimli/gimli/python export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/src/gimli/build/lib export PATH=$PATH:$HOME/src/gimli/build/bin

p.s. there is no attached file

Quoting WilstheLazerKiwi notifications@github.com:

See attached for the full error report. I am currently installing miniconda and trying the curl script. I am not sure I understand your last question, could you please elaborate?

On Fri, Sep 9, 2016 at 9:02 AM, carsten-forty2 notifications@github.com wrote:

We need the complete output from your run to find the issue.

You can try Anaconda .. or you can try the curl script.

Did you tried without installation by only setting PYTHONPATH appropriate?

Quoting WilstheLazerKiwi notifications@github.com:

Hi Florian,

I followed the installation steps on http://www.pygimli.org/installation.html before calling python setup.py --install. Do you think this is my issue? I download anaconda and try installing pygimli with that.

Thank you for your help.

On Thu, Sep 8, 2016 at 7:19 PM, Florian Wagner <notifications@github.com

wrote:

Hi Tom, although the error message is not complete, it looks like the bindings for the C++ code were not probably built or not copied to your site-packages path. Did you call python setup.py --install at the beginning or did you follow the other steps on www.pygimli.org/installation.html first?

Using the Anaconda (or Miniconda) might also be an option for you. Then you just need to type conda install -c gimli pygimli.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/gimli-org/gimli/issues/44#issuecomment-245514462, or mute the thread https://github.com/notifications/unsubscribe-auth/ ARc0d9zRhqjPNZX3w8KQUbk99Z-zgSRfks5qn7cdgaJpZM4JoFvR .

You are receiving this because you commented. Reply to this email directly or view it on GitHub: https://github.com/gimli-org/gimli/issues/44#issuecomment-245730656

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/gimli-org/gimli/issues/44#issuecomment-245739899, or
mute the thread https://github.com/notifications/unsubscribe-auth/ARc0d81dw23vdLsTftsiFlOtXydNTBcEks5qoHfpgaJpZM4JoFvR .

You are receiving this because you commented. Reply to this email directly or view it on GitHub: https://github.com/gimli-org/gimli/issues/44#issuecomment-245741884

TW999 commented 7 years ago

That's odd It appears attached from my end. Did it come through this time?

On Fri, Sep 9, 2016 at 9:24 AM, carsten-forty2 notifications@github.com wrote:

miniconda and the curl script are two different approaches.

I meant that you can simple set the following environmental variables to run pygimli.

export PYTHONPATH=$PYTHONPATH:$HOME/src/gimli/gimli/python export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/src/gimli/build/lib export PATH=$PATH:$HOME/src/gimli/build/bin

p.s. there is no attached file

Quoting WilstheLazerKiwi notifications@github.com:

See attached for the full error report. I am currently installing miniconda and trying the curl script. I am not sure I understand your last question, could you please elaborate?

On Fri, Sep 9, 2016 at 9:02 AM, carsten-forty2 <notifications@github.com

wrote:

We need the complete output from your run to find the issue.

You can try Anaconda .. or you can try the curl script.

Did you tried without installation by only setting PYTHONPATH appropriate?

Quoting WilstheLazerKiwi notifications@github.com:

Hi Florian,

I followed the installation steps on http://www.pygimli.org/installation.html before calling python setup.py --install. Do you think this is my issue? I download anaconda and try installing pygimli with that.

Thank you for your help.

On Thu, Sep 8, 2016 at 7:19 PM, Florian Wagner < notifications@github.com

wrote:

Hi Tom, although the error message is not complete, it looks like the bindings for the C++ code were not probably built or not copied to your site-packages path. Did you call python setup.py --install at the beginning or did you follow the other steps on www.pygimli.org/installation.html first?

Using the Anaconda (or Miniconda) might also be an option for you. Then you just need to type conda install -c gimli pygimli.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub <https://github.com/gimli-org/gimli/issues/44#issuecomment-245514462 , or mute the thread https://github.com/notifications/unsubscribe-auth/ ARc0d9zRhqjPNZX3w8KQUbk99Z-zgSRfks5qn7cdgaJpZM4JoFvR .

You are receiving this because you commented. Reply to this email directly or view it on GitHub: https://github.com/gimli-org/gimli/issues/44#issuecomment-245730656

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/gimli-org/gimli/issues/44#issuecomment-245739899, or mute the thread https://github.com/notifications/unsubscribe-auth/ ARc0d81dw23vdLsTftsiFlOtXydNTBcEks5qoHfpgaJpZM4JoFvR .

You are receiving this because you commented. Reply to this email directly or view it on GitHub: https://github.com/gimli-org/gimli/issues/44#issuecomment-245741884

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/gimli-org/gimli/issues/44#issuecomment-245745993, or mute the thread https://github.com/notifications/unsubscribe-auth/ARc0d8ZnEPJPmWpGQIYFZ5wf0vAEecFSks5qoHz2gaJpZM4JoFvR .

TW999 commented 7 years ago

Yes I added:

export PYTHONPATH=$PYTHONPATH:$HOME/src/gimli/gimli/python export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/src/gimli/build/lib export PATH=$PATH:$HOME/src/gimli/build/bin

To my .bashrc then saved the file and restarted my computer before trying: 'import pygimli'

On Fri, Sep 9, 2016 at 9:47 AM, Thomas Wilson td.wilson3@gmail.com wrote:

That's odd It appears attached from my end. Did it come through this time?

On Fri, Sep 9, 2016 at 9:24 AM, carsten-forty2 notifications@github.com wrote:

miniconda and the curl script are two different approaches.

I meant that you can simple set the following environmental variables to run pygimli.

export PYTHONPATH=$PYTHONPATH:$HOME/src/gimli/gimli/python export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/src/gimli/build/lib export PATH=$PATH:$HOME/src/gimli/build/bin

p.s. there is no attached file

Quoting WilstheLazerKiwi notifications@github.com:

See attached for the full error report. I am currently installing miniconda and trying the curl script. I am not sure I understand your last question, could you please elaborate?

On Fri, Sep 9, 2016 at 9:02 AM, carsten-forty2 < notifications@github.com> wrote:

We need the complete output from your run to find the issue.

You can try Anaconda .. or you can try the curl script.

Did you tried without installation by only setting PYTHONPATH appropriate?

Quoting WilstheLazerKiwi notifications@github.com:

Hi Florian,

I followed the installation steps on http://www.pygimli.org/installation.html before calling python setup.py --install. Do you think this is my issue? I download anaconda and try installing pygimli with that.

Thank you for your help.

On Thu, Sep 8, 2016 at 7:19 PM, Florian Wagner < notifications@github.com

wrote:

Hi Tom, although the error message is not complete, it looks like the bindings for the C++ code were not probably built or not copied to your site-packages path. Did you call python setup.py --install at the beginning or did you follow the other steps on www.pygimli.org/installation.html first?

Using the Anaconda (or Miniconda) might also be an option for you. Then you just need to type conda install -c gimli pygimli.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/gimli-org/gimli/issues/44#issuecomment-2 45514462, or mute the thread https://github.com/notifications/unsubscribe-auth/ ARc0d9zRhqjPNZX3w8KQUbk99Z-zgSRfks5qn7cdgaJpZM4JoFvR .

You are receiving this because you commented. Reply to this email directly or view it on GitHub: https://github.com/gimli-org/gimli/issues/44#issuecomment-245730656

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/gimli-org/gimli/issues/44#issuecomment-245739899, or mute the thread https://github.com/notifications/unsubscribe-auth/ARc0d81dw 23vdLsTftsiFlOtXydNTBcEks5qoHfpgaJpZM4JoFvR .

You are receiving this because you commented. Reply to this email directly or view it on GitHub: https://github.com/gimli-org/gimli/issues/44#issuecomment-245741884

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/gimli-org/gimli/issues/44#issuecomment-245745993, or mute the thread https://github.com/notifications/unsubscribe-auth/ARc0d8ZnEPJPmWpGQIYFZ5wf0vAEecFSks5qoHz2gaJpZM4JoFvR .

florian-wagner commented 7 years ago

I think attaching files to the mail does not work. But you can make attachments in the GitHub issue.

In your case I would recommend to prepend the paths, i.e.:

export PYTHONPATH=$HOME/src/gimli/gimli/python:$PYTHONPATH
export LD_LIBRARY_PATH=$HOME/src/gimli/build/lib:$LD_LIBRARY_PATH
export PATH=$HOME/src/gimli/build/bin:$PATH

otherwise it will use the pygimli version in /home/wilsonthom3/.local/lib/python3.4/site-packages/ that you already copied there by calling python setup.py --install. The latter is not wrong (it circumvents the need for setting the paths manually), but I guess it was too early, i.e. something went wrong during the building process before.

TW999 commented 7 years ago

Hi Florian,

Here is the full error report:

In [1]: import pygimli No module named pygimli Traceback (most recent call last): File "/home/wilsonthom3/build/gimli/gimli/python/pygimli/core/init.py", line 33, in from . pygimli import * ImportError: No module named pygimli

ERROR: cannot import the library 'pygimli'.

AttributeError Traceback (most recent call last)

in () ----> 1 import pygimli /home/wilsonthom3/build/gimli/gimli/python/pygimli/**init**.py in () 13 import os 14 ---> 15 from . import core 16 from ._version import get_versions 17 from .core import * /home/wilsonthom3/build/gimli/gimli/python/pygimli/core/**init**.py in () 41 ########################### 42 ---> 43 _pygimli_.load = None 44 45 from pygimli.io import load AttributeError: 'NoneType' object has no attribute 'load' I hope this is useful to you. cheers, Tom On Fri, Sep 9, 2016 at 7:32 PM, Florian Wagner notifications@github.com wrote: > I think attaching files to the mail does not work. But you can make > attachments in the GitHub issue > https://github.com/gimli-org/gimli/issues/44. > > In your case I would recommend to prepend the paths, i.e.: > > export PYTHONPATH=$HOME/src/gimli/gimli/python:$PYTHONPATHexport LD_LIBRARY_PATH=$HOME/src/gimli/build/lib:$LD_LIBRARY_PATHexport PATH=$HOME/src/gimli/build/bin:$PATH > > otherwise it will use the pygimli version in /home/wilsonthom3/.local/lib/ > python3.4/site-packages/ that you already copied there by calling python > setup.py --install. The latter is not wrong (it circumvents the need for > setting the paths manually), but I guess it was too early, i.e. something > went wrong during the building process before. > > — > You are receiving this because you commented. > Reply to this email directly, view it on GitHub > https://github.com/gimli-org/gimli/issues/44#issuecomment-245840859, or mute > the thread > https://github.com/notifications/unsubscribe-auth/ARc0d1YEn9-pR51TM27pKkfCxDfOb9spks5qoQt7gaJpZM4JoFvR > .
carsten-forty2 commented 7 years ago

is there the following file?

/home/wilsonthom3/build/gimli/gimli/python/pygimli/core/pygimli.so

If not, I assume your pygimli compilation went wrong.

Can you in case please provide the full output from:

make pygimli

Quoting WilstheLazerKiwi notifications@github.com:

Hi Florian,

Here is the full error report:

In [1]: import pygimli No module named pygimli Traceback (most recent call last): File "/home/wilsonthom3/build/gimli/gimli/python/pygimli/core/init.py", line 33, in from . pygimli import * ImportError: No module named pygimli

ERROR: cannot import the library 'pygimli'.

AttributeError Traceback (most recent call last)

in () ----> 1 import pygimli /home/wilsonthom3/build/gimli/gimli/python/pygimli/**init**.py in () 13 import os 14 ---> 15 from . import core 16 from ._version import get_versions 17 from .core import * /home/wilsonthom3/build/gimli/gimli/python/pygimli/core/**init**.py in () 41 ########################### 42 ---> 43 _pygimli_.load = None 44 45 from pygimli.io import load AttributeError: 'NoneType' object has no attribute 'load' I hope this is useful to you. cheers, Tom On Fri, Sep 9, 2016 at 7:32 PM, Florian Wagner notifications@github.com wrote: > I think attaching files to the mail does not work. But you can make > attachments in the GitHub issue > https://github.com/gimli-org/gimli/issues/44. > > In your case I would recommend to prepend the paths, i.e.: > > export PYTHONPATH=$HOME/src/gimli/gimli/python:$PYTHONPATHexport > LD_LIBRARY_PATH=$HOME/src/gimli/build/lib:$LD_LIBRARY_PATHexport > PATH=$HOME/src/gimli/build/bin:$PATH > > otherwise it will use the pygimli version in /home/wilsonthom3/.local/lib/ > python3.4/site-packages/ that you already copied there by calling python > setup.py --install. The latter is not wrong (it circumvents the need for > setting the paths manually), but I guess it was too early, i.e. something > went wrong during the building process before. > > — > You are receiving this because you commented. > Reply to this email directly, view it on GitHub > https://github.com/gimli-org/gimli/issues/44#issuecomment-245840859, or > mute > the thread > https://github.com/notifications/unsubscribe-auth/ARc0d1YEn9-pR51TM27pKkfCxDfOb9spks5qoQt7gaJpZM4JoFvR > . ## You are receiving this because you commented. Reply to this email directly or view it on GitHub: https://github.com/gimli-org/gimli/issues/44#issuecomment-246204371
florian-wagner commented 7 years ago

@dhhien In your situation the install picks up an old system-wide gcc compiler together with newer packages from anaconda. Have you tried to install the conda package directly? (conda install -c gimli pygimli)

florian-wagner commented 7 years ago

@WilstheLazerKiwi Same for holds for you. If you use the anaconda distribution anyways, I would recommend to install pygimli as a conda package, too.