Skip to content

Instantly share code, notes, and snippets.

@bilke
Last active October 27, 2022 11:31
Show Gist options
  • Save bilke/62b902fd6103b23f2c7cf1d976da616e to your computer and use it in GitHub Desktop.
Save bilke/62b902fd6103b23f2c7cf1d976da616e to your computer and use it in GitHub Desktop.
name: ogs-workshop
dependencies:
- python>=3.8, <=3.10
- pip
- pip:
  - jupyterlab==3.4.8
  - git+https://github.com/joergbuchwald/ogs6py@0f9e738e2ee469c8bde4204b2151238973417694#egg=ogs6py
  - git+https://github.com/joergbuchwald/VTUinterface@003e172a2f08f6f0acc15855b33a256d063c9804#egg=vtuinterface
  - gmsh==4.10.5
  - git+https://github.com/dominik-kern/msh2vtu@29b5f5ebe8cf98f0f99fae68720bf19cac02e582#egg=msh2vtu
  - matplotlib==3.5.1
  - pyvista==0.36.1
  - snakemake==7.16.1
  - --extra-index-url https://test.pypi.org/simple/
  - ogs==6.4.3.post1.dev217
@bilke
Copy link
Author

bilke commented Oct 26, 2022

You can setup the same environment also without Conda but with a Python virtual environment:

# Create the environment
python3 -m venv .venv

# Activate it
source .venv/bin/activate

# Install everything you need
pip install jupyterlab==3.4.8
pip install --extra-index-url https://test.pypi.org/simple/ ogs==6.4.3.post1.dev217
...

# Then ogs is in the path
ogs --version

# Start Jupyter Lab
jupyter lab

@renchao-lu
Copy link

Hi Lars,

I type the below command in the terminal to install ogs as you suggested

pip install --extra-index-url https://test.pypi.org/simple/ ogs==6.4.3.post1.dev217

Then I type the command to check if ogs is successfully installed.

ogs --version

But the following error is returned

image

Do you have any idea of how to resolve this issue?

@bilke
Copy link
Author

bilke commented Oct 27, 2022

How did you installed it? Via conda? Looks like some missing dll. I tested on two different Windows systems and for me so far it worked.

@bilke
Copy link
Author

bilke commented Oct 27, 2022

@renchao-lu Maybe you can try to install the Visual Studio Redistributable: https://aka.ms/vs/17/release/vc_redist.x64.exe

@renchao-lu
Copy link

renchao-lu commented Oct 27, 2022

How did you installed it? Via conda? Looks like some missing dll. I tested on two different Windows systems and for me so far it worked.

I installed those via anaconda under virtual environment.

@renchao-lu
Copy link

@renchao-lu Maybe you can try to install the Visual Studio Redistributable: https://aka.ms/vs/17/release/vc_redist.x64.exe

Alright. Thank you for your suggestion. let me have another try

@renchao-lu
Copy link

renchao-lu commented Oct 27, 2022

@chleh @bilke Thank you both for the help. Now it works~

Note for myself:
Other ogs-dev can be found in https://test.pypi.org/project/ogs/#history

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment