Coder Social home page Coder Social logo

conda - hdf5 version issue about gprmax HOT 14 CLOSED

gprmax avatar gprmax commented on May 30, 2024
conda - hdf5 version issue

from gprmax.

Comments (14)

craig-warren avatar craig-warren commented on May 30, 2024

I have fixed the indentation error, but that shouldn't have effected being able to run gprMax. What error did you get when trying to run?

from gprmax.

mzunguman avatar mzunguman commented on May 30, 2024

@craig-warren,

Thanks for the quick reply. Thought as much. The error I get is below. Probably not related to gprMax but to the Miniconda environment and that it can't get the right version of the HDF5 libary, even though the new version is installed. I think it's an issue with the path.

sam_scr_2

from gprmax.

craig-warren avatar craig-warren commented on May 30, 2024

Yeh, I think you probably need to update the gprMax environment. Just run conda update --all with the environment activated.

from gprmax.

mzunguman avatar mzunguman commented on May 30, 2024

@craig-warren,

I did the update and the version in Miniconda is 1.8.16, while the version on our server is 1.8.17. The latter is the one he finds and complains about, even though he should be looking in the Miniconda environment.

from gprmax.

craig-warren avatar craig-warren commented on May 30, 2024

Yeh, that does sound like a path issue. Is the conda environment listed first when you do echo $PATH?

from gprmax.

mzunguman avatar mzunguman commented on May 30, 2024

Yes it is. I want to show you a new error I get. I tried installing it again without the Miniconda environment, as I've always done in the past, but I get this strange error now which I don't understand.

EDIT: I forgot to mention, that this is the installation process and not running an input file. Also I tried to install a 1 week old commit that worked for me ~ 10 days ago.

sam_scr_5

from gprmax.

craig-warren avatar craig-warren commented on May 30, 2024

@obtitus Do you think the SyntaxError in input_cmd_funcs.py is related to Python 3.4?

@mzunguman This is not a problem that should effect you unless you are using Python in your input files and using functions from input_cmd_funcs.py.

from gprmax.

obtitus avatar obtitus commented on May 30, 2024

Sorry about that, the pull request should fix it.

from gprmax.

craig-warren avatar craig-warren commented on May 30, 2024

@obtitus Awesome thanks.

from gprmax.

mzunguman avatar mzunguman commented on May 30, 2024

@craig-warren

Just wanted to make a last remark, in the hopes that it might help others as well. I solved my problem by manually setting the PATH and LD_LIBRARY_PATH variables in my .bashrc file. I don't know enough about administrating linux servers and how these path variables are handled on a multi-user system, but the following step was necessary for me. I would be thankful for suggestions, improvements or explanations for this. By entering the conda environment, a library path to the /miniconda/envs/gprMax/lib has to be set, otherwise he was using the hdf5 version installed on the system. I previously thought the path which is set by miniconda when entering the gprMax environment was sufficient. Below are the two lines I added:

- export PATH="/home/stadler/miniconda3/bin:/home/stadler/miniconda3/envs/gprMax/bin:$PATH"
- export LD_LIBRARY_PATH="/home/stadler/miniconda3/lib:/home/stadler/miniconda3/envs/gprMax/lib:$LD_LIBRARY_PATH"

from gprmax.

craig-warren avatar craig-warren commented on May 30, 2024

I think when you first install Miniconda it gives you the option for it to add the Miniconda bin directory to your path, usually via your .bash_profile

from gprmax.

mzunguman avatar mzunguman commented on May 30, 2024

yeah it does. That's the first portion of the path, and I thought that was enough too. But, for me at least, only after I add the second set of paths does it seem to work.

from gprmax.

craig-warren avatar craig-warren commented on May 30, 2024

Are you sure the environment is being activated correctly? When I activate an environment the following happens:

w5067:~ cwarren$ source activate gprMax
discarding /Users/cwarren/miniconda3/bin from PATH
prepending /Users/cwarren/miniconda3/envs/gprMax/bin to PATH
(gprMax)w5067:~ cwarren$

from gprmax.

mzunguman avatar mzunguman commented on May 30, 2024

In the past as well as now, I got the same message. It must be the new LD_LIBRARY_PATH path I entered that did the trick for me. Don't know why...

from gprmax.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.