Skip to content
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

Install using Conda and pip - pymoab is not included #55

Open
msavtchouk-pf opened this issue Feb 7, 2024 · 3 comments
Open

Install using Conda and pip - pymoab is not included #55

msavtchouk-pf opened this issue Feb 7, 2024 · 3 comments

Comments

@msavtchouk-pf
Copy link

Hi all!
I am trying to follow the installation instructions here:
https://pypi.org/project/cad-to-dagmc/

Install using Conda and pip
However, when I run a simple script

import cad_to_dagmc

I have the following error:

Traceback (most recent call last):
File "/home/marija/main.py", line 1, in
import cad_to_dagmc
File "/usr/local/bin/conda/envs/env_d/lib/python3.10/site-packages/cad_to_dagmc/init.py", line 16, in
from .core import *
File "/usr/local/bin/conda/envs/env_d/lib/python3.10/site-packages/cad_to_dagmc/core.py", line 10, in
from pymoab import core, types
ModuleNotFoundError: No module named 'pymoab'

Have anyone seen it before? Are there extra installation steps needed?

@shimwell
Copy link
Member

shimwell commented Feb 7, 2024

That is strange the pymoab package should arrive when moab is installed.

Did you run this part of the install instructions

mamba install -c cadquery -c conda-forge moab gmsh python-gmsh cadquery=master -y

@shimwell
Copy link
Member

shimwell commented Feb 7, 2024

I've just updated the instructions as cadquery 2.4.0 is now on conda forge, so the above install line can now be shortened to

mamba install -c conda-forge moab gmsh python-gmsh cadquery -y

@msavtchouk-pf
Copy link
Author

msavtchouk-pf commented Feb 7, 2024

I did run the command to install the dependencies (although with conda, not mamba)

The import worked when specific versions of packages were installed:

conda create -n envname python=3.10 -y
conda activate envname
pip install cad_to_dagmc==0.5.1 cadquery==2.4.0
mamba install openmc=0.14.0
mamba install gmsh=4.12.2
mamba install python-gmsh=4.12.2

Here it seems that pymob was installed with openmc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants