CNES / aviso-fes

FES is the last version of the FES (Finite Element Solution) tide model.
https://cnes.github.io/aviso-fes
BSD 3-Clause "New" or "Revised" License
59 stars 24 forks source link

Installing FES2014 with conda, Looking for incompatible packages #19

Closed G4occhi closed 1 week ago

G4occhi commented 1 year ago

Hi, I would like to migrate to FES2014 and I am trying to install it with conda on my system.

Unfortunately the command: conda install pyfes -c fbriol

GIVE: Collecting package metadata (current_repodata.json): done Solving environment: failed with initial frozen solve. Retrying with flexible solve. Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source. Collecting package metadata (repodata.json): done Solving environment: failed with initial frozen solve. Retrying with flexible solve. Solving environment: / Found conflicts! Looking for incompatible packages. This can take several minutes. Press CTRL-C to abort. failed

UnsatisfiableError: The following specifications were found to be incompatible with each other:

Output in format: Requested package -> Available versionsThe following specifications were found to be incompatible with your system:

Your installed version is: 2.31

Honestly, I have no Idea about the issue. May you suggest any solutions?

I have also tried cmake with no success since make -j give the following: fatal error: uthash.h: No such file or director

Thanks Giova

ludwigus commented 1 year ago

Hi, I have exactly the same problems installing pyfes on Ubuntu22.04. Conda gives the reported error (just with glibc==2.35 instead). In order to build the library myself I needed to install the uthash libs manually (sudo apt install uthash-dev). After that, building and installing with the default options (as given in the install instructions) works. However, if I try to build the python lib as well ( -DBUILD_PYTHON=ON) I get the following output:

$ cmake .. -DCMAKE_INSTALL_PREFIX=/opt/local -DBUILD_PYTHON=ON
-- FES version: 2.9.4
-- Build type: RELWITHDEBINFO
-- Performing Test HAS_CPP14_FLAG
-- Performing Test HAS_CPP14_FLAG - Success
-- Found Python3: /usr/bin/python3.10 (found version "3.10.6") found components: Interpreter Development Development.Module Development.Embed 
-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython3.10.so (found version "3.10.6") 
CMake Error at CMakeLists.txt:192 (add_subdirectory):
  The source directory

    /home/username/tmp/test_tide/aviso-fes-2.9.4/third_party/pybind11

  does not contain a CMakeLists.txt file.

CMake Error at python/CMakeLists.txt:16 (pybind11_add_module):
  Unknown CMake command "pybind11_add_module".

-- Configuring incomplete, errors occurred!
See also "/home/username/tmp/test_tide/aviso-fes-2.9.4/build/CMakeFiles/CMakeOutput.log".
See also "/home/username/tmp/test_tide/aviso-fes-2.9.4/build/CMakeFiles/CMakeError.log".

I have attached the two files but I couldn't find anything there that helped me solve the problem. CMakeError.log CMakeOutput.log Is this a bug or did I do something wrong?

njuMarineGeoscience commented 1 year ago

I also have nearly the same problem. I got the error when trying to install via conda:

Collecting package metadata (current_repodata.json): done Solving environment: unsuccessful initial attempt using frozen solve. Retrying with flexible solve. Collecting package metadata (repodata.json): done Solving environment: unsuccessful initial attempt using frozen solve. Retrying with flexible solve.

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

Current channels:

I used conda search pyfes, but only found pyfesom

datpthus commented 1 year ago

Hi, I followed hints from this: https://github.com/kvos/CoastSat.slope/issues/21 "So, the answer was pretty easy, here is the answer from the FES14 issue: Try to update your conda environment (conda update --all -c conda-forge) then reinstall the library (conda install pyfes -c fbriol -c conda-forge)

This did the trick. By the way, the latest FES version runs on python 3.9" by Alerovere and I created a new env using python 3.9 or newer and then I upgraded to latest Conda. That works for me. You should try that!

@njuMarineGeoscience @G4occhi @ludwigus

njuMarineGeoscience commented 1 year ago

conda update --all -c conda-forge

Thank you @datpthus , I tried this but still got the same error

njuMarineGeoscience commented 1 year ago

I did not find pyfes or fbriol in my anaconda navigator, is it the problem?

datpthus commented 1 year ago

@njuMarineGeoscience hi, what I did is pretty simple:

I know others also found difficult to install FES2014 but perharps I was lucky. However, could you try that?

datpthus commented 1 year ago

@njuMarineGeoscience : for the latest Conda version 2.4.2 I can find pyfes package (2.9.4) from Anaconda Navigator. So, I really think that you should re-install Conda.

njuMarineGeoscience commented 1 year ago

@datpthus Thank you! I think maybe pyfes does not support the MAC M1 chip. The file size of the anaconda installation package for the M1 was quite a bit smaller than for Intel, that's why I did not find pyfes. I just tried to download the intel version on my M1 MAC, and it worked! I don't understand, but now I have pyfes installed.

datpthus commented 1 year ago

@njuMarineGeoscience thats great!

xxxzzz32 commented 10 months ago

Hello everyone! I am writing this comment to sum up my experience about installing fes2014, and I hope my experience can help people who have difficulties installing pyfes. First of all, my computer system is Windows 11, the version of Anaconda is 2023.07-2, and the version of python in 'base' environment is 3.11.4.

The first try is in the 'base' environment. I typed 'conda update --all -c conda-forge' just as @datpthus said. Here, you'd better run Anaconda Prompt as administrator. About one hour later, it displayed: Preparing transaction: done Verifying transaction: done Executing transaction: done Maybe you will cost fewer time in this step, because my download speed is slow. And then I typed 'conda install pyfes -c fbriol'. After a long wait , it ddisplayed: Specifications:

In the second try, I runned Anaconda Prompt as administrator, and typed 'conda create python310 python=3.10' to create a new environment. Then I typed 'conda update --all -c conda-forge', and it displayed as above. Lastly, I typed 'conda install pyfes -c fbriol', and it displayed: Preparing transaction: done Verifying transaction: done Executing transaction: done To confirm pyfes is installed, I typed 'conda list', and I found pyfes 2.9.4 inside.

Thank you to the seniors for your valuable experience!

xiyang712 commented 9 months ago

@xxxzzzz32 Hello, I should have installed successfully, but when I run the program I get this error. image image

xxxzzz32 commented 9 months ago

I guess that you installed sucessfully in cmd or anaconda prompt, but you get this error in jupyter notebook. Therefore, maybe the environmnt in jupyter doesn't have installed pyfes. Maybe you should change the environment in jupyter.

---- Replied Message ---- | From | @.> | | Date | 09/30/2023 14:14 | | To | @.> | | Cc | @.>@.> | | Subject | Re: [CNES/aviso-fes] Installing FES2014 with conda, Looking for incompatible packages (Issue #19) |

@xxxzzzz32 Hello, I should have installed successfully, but when I run the program I get this error.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

fbriol commented 1 week ago

This question is out of date. Please use the most recent version of this software. You can install it from Conda.