Closed bva99 closed 2 years ago
Can you try creating a new environment with just conda-forge channel? We don't support mixing defaults and conda-forge channel.
Not sure if relevant, but I had to conda clean --all
before doing the following:
Create a yaml file called gmshEnv.yml
for a minimum working conda environment with "nodefaults" option:
name: gmshEnv
channels:
- conda-forge
- nodefaults
dependencies:
- python=3.9
- nomkl
- gmsh
- python-gmsh
Installed the environment with conda create env -f gmshEnv.yml
and activated it. gmsh
now works!
(gmshEnv) C:\Users\admin>python
Python 3.9.13 | packaged by conda-forge | (main, May 27 2022, 16:50:36) [MSC v.1929 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import gmsh
>>> gmsh.initialize()
>>> gmsh.fltk.run() # close window to continue
>>> gmsh.finalize()
>>> quit()
(gmshEnv) C:\Users\admin>
No errors
I guess there were conflicts with the default packages? In any case, I believe I should start making a yaml file per environment.
Thank you @isuruf !
Solution to issue cannot be found in the documentation.
Issue
When importing
gmsh
in a python code, I get a FileNotFoundError, saying that 'C:\Users\admin\anaconda3\envs\gmshEnv\Library\bin\gmsh.dll' (or one of its dependencies) could not be found, where "gmshEnv" is the name of my minimum example environment.Using Windows 10 x64.
conda
is uptodate. Using Python 3.9.When opening
C:\Users\admin\anaconda3\envs\gmshEnv\Library\bin
, gmsh.dll can be found there.I have configured the default anaconda, conda-forge and intel channels as sources.
Simple steps for reproducing the issue:
Installed packages
Environment info