Hi guys,
So there are plenty of issues, some I have already resolved by reinstalling conda all together but essentially the issue right now is that intel-openmp is not seen at all from the jupyter notebook kernel (“missing metadata files”) even though it’s installed. I am assuming there are some weird kernel issues with jupyter, will try redoing jupyter installation and removing local install.
So if any of you could give me a list of requirements for python and version of such that I could recreate the environment that would be greatly appreciated. I am stumped at the moment as to what else I could do.
to add onto the topic the usual
import ngsolve
does nothing but hangs in python
Okay, finally got it without any errors but
import ngsolve
and example notebooks are still just hanging.
anyone know what this might be? Here is my conda env:
# Name Version Build Channel
_libgcc_mutex 0.1 conda_forge conda-forge
_openmp_mutex 4.5 2_gnu conda-forge
aiofiles 22.1.0 py310h06a4308_0
aiosqlite 0.18.0 py310h06a4308_0
anyio 3.7.1 pyhd8ed1ab_0 conda-forge
argon2-cffi 23.1.0 pyhd8ed1ab_0 conda-forge
argon2-cffi-bindings 21.2.0 py310h2372a71_4 conda-forge
asttokens 2.4.1 pyhd8ed1ab_0 conda-forge
attrs 23.2.0 pyh71513ae_0 conda-forge
babel 2.11.0 py310h06a4308_0
beautifulsoup4 4.12.3 pyha770c72_0 conda-forge
bleach 6.1.0 pyhd8ed1ab_0 conda-forge
brotli-python 1.0.9 py310h6a678d5_7
bzip2 1.0.8 h5eee18b_5
ca-certificates 2024.2.2 hbcca054_0 conda-forge
certifi 2024.2.2 py310h06a4308_0
cffi 1.16.0 py310h2fee648_0 conda-forge
charset-normalizer 2.0.4 pyhd3eb1b0_0
comm 0.2.2 pyhd8ed1ab_0 conda-forge
cyrus-sasl 2.1.28 h52b45da_1
dbus 1.13.18 hb2f20db_0
debugpy 1.6.0 py310hd8f1fbe_0 conda-forge
decorator 5.1.1 pyhd8ed1ab_0 conda-forge
defusedxml 0.7.1 pyhd8ed1ab_0 conda-forge
entrypoints 0.4 pyhd8ed1ab_0 conda-forge
exceptiongroup 1.2.0 pyhd8ed1ab_2 conda-forge
executing 2.0.1 pyhd8ed1ab_0 conda-forge
expat 2.5.0 h6a678d5_0
fontconfig 2.14.1 h4c34cd2_2
freetype 2.12.1 h4a9f257_0
glib 2.78.4 h6a678d5_0
glib-tools 2.78.4 h6a678d5_0
gst-plugins-base 1.14.1 h6a678d5_1
gstreamer 1.14.1 h5eee18b_1
icu 73.1 h6a678d5_0
idna 3.6 pyhd8ed1ab_0 conda-forge
importlib_resources 6.3.0 pyhd8ed1ab_0 conda-forge
intel-openmp 2024.0.2 pypi_0 pypi
ipykernel 6.20.2 pyh210e3f2_0 conda-forge
ipython 8.22.2 pyh707e725_0 conda-forge
ipython_genutils 0.2.0 py_1 conda-forge
ipywidgets 8.1.2 py310h06a4308_0
jedi 0.19.1 pyhd8ed1ab_0 conda-forge
jinja2 3.1.3 pyhd8ed1ab_0 conda-forge
jpeg 9e h5eee18b_1
json5 0.9.6 pyhd3eb1b0_0
jsonschema 4.21.1 pyhd8ed1ab_0 conda-forge
jsonschema-specifications 2023.12.1 pyhd8ed1ab_0 conda-forge
jupyter 1.0.0 py310h06a4308_9
jupyter_client 7.4.9 pyhd8ed1ab_0 conda-forge
jupyter_console 6.6.3 py310h06a4308_0
jupyter_contrib_core 0.4.0 pyhd8ed1ab_0 conda-forge
jupyter_contrib_nbextensions 0.7.0 pyhd8ed1ab_0 conda-forge
jupyter_core 5.7.2 py310hff52083_0 conda-forge
jupyter_events 0.8.0 py310h06a4308_0
jupyter_highlight_selected_word 0.2.0 pyhd8ed1ab_1006 conda-forge
jupyter_latex_envs 1.4.6 pyhd8ed1ab_1002 conda-forge
jupyter_nbextensions_configurator 0.6.1 pyhd8ed1ab_0 conda-forge
jupyter_server 1.24.0 pyhd8ed1ab_0 conda-forge
jupyter_server_fileid 0.9.0 py310h06a4308_0
jupyter_server_ydoc 0.8.0 py310h06a4308_1
jupyter_ydoc 0.2.4 py310h06a4308_0
jupyterlab 3.6.7 py310h06a4308_0
jupyterlab_pygments 0.2.2 py310h06a4308_0
jupyterlab_server 2.25.1 py310h06a4308_0
jupyterlab_widgets 3.0.10 py310h06a4308_0
krb5 1.20.1 h143b758_1
ld_impl_linux-64 2.38 h1181459_1
libclang 14.0.6 default_hc6dbbc7_1
libclang13 14.0.6 default_he11475f_1
libcups 2.4.2 h2d74bed_1
libedit 3.1.20230828 h5eee18b_0
libffi 3.4.4 h6a678d5_0
libgcc-ng 13.2.0 h807b86a_5 conda-forge
libglib 2.78.4 hdc74915_0
libgomp 13.2.0 h807b86a_5 conda-forge
libiconv 1.17 hd590300_2 conda-forge
libllvm14 14.0.6 hdb19cb5_3
libpng 1.6.39 h5eee18b_0
libpq 12.17 hdbd6064_0
libsodium 1.0.18 h36c2ea0_1 conda-forge
libstdcxx-ng 11.2.0 h1234567_1
libuuid 1.41.5 h5eee18b_0
libxcb 1.15 h7f8727e_0
libxkbcommon 1.0.1 h5eee18b_1
libxml2 2.10.4 hf1b16e4_1
libxslt 1.1.37 h5eee18b_1
lxml 4.8.0 py310h5764c6d_3 conda-forge
lz4-c 1.9.4 h6a678d5_0
markupsafe 2.1.5 py310h2372a71_0 conda-forge
matplotlib-inline 0.1.6 pyhd8ed1ab_0 conda-forge
mistune 3.0.2 pyhd8ed1ab_0 conda-forge
mkl 2024.0.0 pypi_0 pypi
mysql 5.7.24 h721c034_2
nbclassic 1.0.0 pyhb4ecaf3_1 conda-forge
nbclient 0.10.0 pyhd8ed1ab_0 conda-forge
nbconvert 7.16.2 pyhd8ed1ab_0 conda-forge
nbconvert-core 7.16.2 pyhd8ed1ab_0 conda-forge
nbconvert-pandoc 7.16.2 pyhd8ed1ab_0 conda-forge
nbformat 5.10.3 pyhd8ed1ab_0 conda-forge
ncurses 6.4 h6a678d5_0
nest-asyncio 1.6.0 pyhd8ed1ab_0 conda-forge
notebook 6.5.6 pyha770c72_0 conda-forge
notebook-shim 0.2.4 pyhd8ed1ab_0 conda-forge
openssl 3.2.1 hd590300_0 conda-forge
packaging 24.0 pyhd8ed1ab_0 conda-forge
pandoc 3.1.12.2 ha770c72_0 conda-forge
pandocfilters 1.5.0 pyhd8ed1ab_0 conda-forge
parso 0.8.3 pyhd8ed1ab_0 conda-forge
pcre2 10.42 hebb0a14_0
pexpect 4.9.0 pyhd8ed1ab_0 conda-forge
pickleshare 0.7.5 py_1003 conda-forge
pip 23.3.1 py310h06a4308_0
pkgutil-resolve-name 1.3.10 pyhd8ed1ab_1 conda-forge
platformdirs 4.2.0 pyhd8ed1ab_0 conda-forge
ply 3.11 py310h06a4308_0
prometheus_client 0.20.0 pyhd8ed1ab_0 conda-forge
prompt-toolkit 3.0.43 py310h06a4308_0
prompt_toolkit 3.0.43 hd3eb1b0_0
psutil 5.9.8 py310h2372a71_0 conda-forge
ptyprocess 0.7.0 pyhd3deb0d_0 conda-forge
pure_eval 0.2.2 pyhd8ed1ab_0 conda-forge
pycparser 2.21 pyhd8ed1ab_0 conda-forge
pygments 2.17.2 pyhd8ed1ab_0 conda-forge
pyqt 5.15.10 py310h6a678d5_0
pyqt5-sip 12.13.0 py310h5eee18b_0
pysocks 1.7.1 py310h06a4308_0
python 3.10.13 h955ad1f_0
python-dateutil 2.9.0 pyhd8ed1ab_0 conda-forge
python-fastjsonschema 2.19.1 pyhd8ed1ab_0 conda-forge
python-json-logger 2.0.7 py310h06a4308_0
python_abi 3.10 2_cp310 conda-forge
pytz 2023.3.post1 py310h06a4308_0
pyyaml 6.0.1 py310h2372a71_1 conda-forge
pyzmq 23.0.0 py310h330234f_0 conda-forge
qt-main 5.15.2 h53bd1ea_10
qtconsole 5.5.1 py310h06a4308_0
qtpy 2.4.1 py310h06a4308_0
readline 8.2 h5eee18b_0
referencing 0.33.0 pyhd8ed1ab_0 conda-forge
requests 2.31.0 py310h06a4308_1
rfc3339-validator 0.1.4 py310h06a4308_0
rfc3986-validator 0.1.1 py310h06a4308_0
rpds-py 0.18.0 py310hcb5633a_0 conda-forge
send2trash 1.8.2 pyh41d4057_0 conda-forge
setuptools 68.2.2 py310h06a4308_0
sip 6.7.12 py310h6a678d5_0
six 1.16.0 pyh6c4a22f_0 conda-forge
sniffio 1.3.1 pyhd8ed1ab_0 conda-forge
soupsieve 2.5 pyhd8ed1ab_1 conda-forge
sqlite 3.41.2 h5eee18b_0
stack_data 0.6.2 pyhd8ed1ab_0 conda-forge
terminado 0.18.1 pyh0d859eb_0 conda-forge
tinycss2 1.2.1 pyhd8ed1ab_0 conda-forge
tk 8.6.12 h1ccaba5_0
tomli 2.0.1 py310h06a4308_0
tornado 6.4 py310h2372a71_0 conda-forge
traitlets 5.14.2 pyhd8ed1ab_0 conda-forge
typing-extensions 4.10.0 hd8ed1ab_0 conda-forge
typing_extensions 4.10.0 pyha770c72_0 conda-forge
tzdata 2024a h04d1e81_0
urllib3 2.1.0 py310h06a4308_1
wcwidth 0.2.13 pyhd8ed1ab_0 conda-forge
webencodings 0.5.1 pyhd8ed1ab_2 conda-forge
websocket-client 1.7.0 pyhd8ed1ab_0 conda-forge
wheel 0.41.2 py310h06a4308_0
widgetsnbextension 4.0.10 py310h06a4308_0
xz 5.4.6 h5eee18b_0
y-py 0.5.9 py310h52d8a92_0
yaml 0.2.5 h7f98852_2 conda-forge
ypy-websocket 0.8.2 py310h06a4308_0
zeromq 4.3.4 h9c3ff4c_1 conda-forge
zipp 3.17.0 pyhd8ed1ab_0 conda-forge
zlib 1.2.13 h5eee18b_0
zstd 1.5.5 hc292b87_0
Do you get any error message in your terminal? I installed ngsolve with pip in a venv environment instead of conda and it works well in jupyter, but I guess conda should work too…
Here are a few common problems when installing NGSolve in a Conda environment:
-
Dependency Issues: NGSolve requires specific versions of dependencies, such as scipy
, numpy
, and pybind11
. Ensure they match the required versions or are compatible.
-
Incorrect Conda Channel: Sometimes, NGSolve might not be found in the default Conda channels. You may need to add the correct channel, such as conda-forge
.
Example:
conda install -c conda-forge ngsolve
-
Compiler Compatibility: Ensure that your Conda environment has the appropriate C++ compiler tools. Some versions of NGSolve may require specific compilers that aren’t included by default.
-
Python Version: NGSolve might not be compatible with the latest Python versions. Try using Python 3.7 or 3.8 if you face issues.
-
CUDA Compatibility: If you’re using CUDA for GPU support, ensure that your environment is set up correctly with compatible versions of cudatoolkit
and ngsolve
CUDA bindings.