scientificcomputing / scifem

Scientific finite element toolbox
https://scientificcomputing.github.io/scifem/
MIT License
13 stars 2 forks source link

error updating scifem #53

Closed rsn766 closed 3 weeks ago

rsn766 commented 3 weeks ago

Running a MAC M3 0.8 version of Fenicsx Collecting scifem Downloading scifem-0.2.7.tar.gz (1.9 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.9/1.9 MB 21.2 M Preparing metadata (pyproject.toml) ... done ERROR: Exception: Traceback (most recent call last): File "/opt/anaconda3/envs/fenicsx-env/lib/python3.12/site-pac al/cli/base_command.py", line 180, in exc_logging_wrapper status = run_func(*args) ^^^^^^^^^^^^^^^ . . . ModuleNotFoundError: No module named 'scikit_build_core' What did I do wrong? Do you need full error

finsberg commented 3 weeks ago

Hi @rsn766 Have you tried

conda install conda-forge::scifem

?

rsn766 commented 3 weeks ago

Duh...THANK YOU!!!

rsn766 commented 3 weeks ago

nope, spoke to soon. SOLVER_RULE_UPDATE failed

PackagesNotFoundError: The following packages are not available from current channels:

Current channels:

To search for alternate channels that may provide the conda package you're looking for, navigate to

https://anaconda.org

and use the search bar at the top of the page.

finsberg commented 3 weeks ago

OK, maybe this is some new syntax (I just copied it from https://anaconda.org/conda-forge/scifem). How about

conda install -c conda-forge scifem
rsn766 commented 3 weeks ago

That was it! Thank you!!!!

rsn766 commented 3 weeks ago

Probably still the same issue? At first it installed, but when I went to VS, I get this error in install. Error while loading conda entry point: conda-libmamba-solver (dlopen(/opt/anaconda3/lib/python3.11/site-packages/libmambapy/bindings.cpython-311-darwin.so, 0x0002): Library not loaded: @rpath/libarchive.20.dylib Referenced from: <496442DC-0EDE-3705-A2B5-401A4FC0D733> /opt/anaconda3/lib/libmamba.2.0.0.dylib Reason: tried: '/opt/anaconda3/lib/libarchive.20.dylib' (no such file), '/opt/anaconda3/lib/python3.11/site-packages/libmambapy/../../../libarchive.20.dylib' (no such file), '/opt/anaconda3/lib/python3.11/site-packages/libmambapy/../../../libarchive.20.dylib' (no such file), '/opt/anaconda3/bin/../lib/libarchive.20.dylib' (no such file), '/opt/anaconda3/bin/../lib/libarchive.20.dylib' (no such file), '/usr/local/lib/libarchive.20.dylib' (no such file), '/usr/lib/libarchive.20.dylib' (no such file, not in dyld cache)) Error while loading conda entry point: conda-libmamba-solver (dlopen(/opt/anaconda3/lib/python3.11/site-packages/libmambapy/bindings.cpython-311-darwin.so, 0x0002): Library not loaded: @rpath/libarchive.20.dylib Referenced from: <496442DC-0EDE-3705-A2B5-401A4FC0D733> /opt/anaconda3/lib/libmamba.2.0.0.dylib Reason: tried: '/opt/anaconda3/lib/libarchive.20.dylib' (no such file), '/opt/anaconda3/lib/python3.11/site-packages/libmambapy/../../../libarchive.20.dylib' (no such file), '/opt/anaconda3/lib/python3.11/site-packages/libmambapy/../../../libarchive.20.dylib' (no such file), '/opt/anaconda3/bin/../lib/libarchive.20.dylib' (no such file), '/opt/anaconda3/bin/../lib/libarchive.20.dylib' (no such file), '/usr/local/lib/libarchive.20.dylib' (no such file), '/usr/lib/libarchive.20.dylib' (no such file, not in dyld cache))

CondaValueError: You have chosen a non-default solver backend (libmamba) but it was not recognized. Choose one of: classic

jorgensd commented 3 weeks ago

This seems like a more fundamental issue: https://github.com/ContinuumIO/anaconda-issues/issues/13353

rsn766 commented 3 weeks ago

So Switch to my PC?

jorgensd commented 3 weeks ago

So Switch to my PC?

I am just trying to point out that this doesn’t seem to be related to the specific conda environment. For instance, have you tried making a new environment?

rsn766 commented 3 weeks ago

Turns out it was an "I am an idiot" problem. installed fine once I put my head back on my shoulders!