Cantera 2.6.0 unavailable with Conda ?

497 views
Skip to first unread message

Joe Trzaska

unread,
May 18, 2022, 9:40:39 PM5/18/22
to Cantera Users' Group
I am attempting to install Cantera 2.6.0 (or whichever version has since become the most recent) via Conda, as recommended on the website.  However, when I enter the following command, the installation routine locates and installs cantera-2.5.1.

>> conda create --name ct-env --channel cantera cantera ipython matplotlib jupyter

This version is out of step with some of the tutorials, making it hard to grasp elements of the functionality.

I tried to install this version and upgrade to the latest with the command below, but I received an output reading "All requested packages already installed," and the cantera version remained 2.5.1.  

>>conda update --channel cantera cantera

Can anyone direct me towards Cantera 2.6.0?

Thanks for your help!

Ray Speth

unread,
May 19, 2022, 11:34:12 AM5/19/22
to Cantera Users' Group

Hi,

Can you provide some more information about your system? Specifically, with the ct-env environment activated, can you share the full list of packages installed, as output by conda list, and the basic information about the conda environment shown by conda info?

Regards,
Ray

Daniel Thomas

unread,
May 19, 2022, 3:17:53 PM5/19/22
to Cantera Users' Group
Hi Ray, 

I'm also having trouble upgrading to 2.6 on Windows.  Upgrading on mac worked fine, but on Windows 10, I only have the option of 2.5.1 -- trying both cantera and conda-forge channels.

Here's my conda info:

     active environment : base
    active env location : C:\ProgramData\Anaconda3
            shell level : 1
       user config file : C:\Users\me-dthomas-admin\.condarc
 populated config files : C:\Users\me-dthomas-admin\.condarc
          conda version : 4.12.0
    conda-build version : 3.18.10
         python version : 3.7.5.final.0
       virtual packages : __win=0=0
                          __archspec=1=x86_64
       base environment : C:\ProgramData\Anaconda3  (writable)
      conda av data dir : C:\ProgramData\Anaconda3\etc\conda
  conda av metadata url : None
           channel URLs : https://repo.anaconda.com/pkgs/main/win-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/win-64
                          https://repo.anaconda.com/pkgs/r/noarch
                          https://repo.anaconda.com/pkgs/msys2/win-64
                          https://repo.anaconda.com/pkgs/msys2/noarch
          package cache : C:\ProgramData\Anaconda3\pkgs
                          C:\Users\me-dthomas-admin\.conda\pkgs
                          C:\Users\me-dthomas-admin\AppData\Local\conda\conda\pkgs
       envs directories : C:\Users\dthomas\.conda\envs
                          C:\ProgramData\Anaconda3\envs
                          C:\Users\me-dthomas-admin\.conda\envs
                          C:\Users\me-dthomas-admin\AppData\Local\conda\conda\envs
               platform : win-64
             user-agent : conda/4.12.0 requests/2.27.1 CPython/3.7.5 Windows/10 Windows/10.0.19041
          administrator : True
             netrc file : None
           offline mode : False

Joe Trzaska

unread,
May 19, 2022, 3:43:46 PM5/19/22
to canter...@googlegroups.com
Please find the requested information attached.  Like Daniel, I am also using Windows 10.  As a troubleshooting exercise, I will try to install Cantera on my laptop running Ubuntu later today.
conda list output.txt
conda info output.txt

Bryan Weber

unread,
May 19, 2022, 10:37:21 PM5/19/22
to Cantera Users' Group
Hi all,

Sorry about this! I have two requests for more debugging: 1) Only install Cantera into a brand new environment, what do you get? 2) Specify the version of Cantera to be installed, conda install -c cantera cantera=2.6.0 what do you get?

Thanks!
Bryan

Daniel Thomas

unread,
May 20, 2022, 9:49:28 AM5/20/22
to Cantera Users' Group
Hi Bryan,

Thanks for looking into this.  Here's the conda output for both with the cantera channel:

(base) C:\WINDOWS\system32>conda create --name cantera26 --channel cantera cantera
Collecting package metadata (current_repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: C:\Users\dthomas\.conda\envs\cantera26

  added / updated specs:
    - cantera


The following NEW packages will be INSTALLED:

  blas               pkgs/main/win-64::blas-1.0-mkl
  ca-certificates    pkgs/main/win-64::ca-certificates-2022.4.26-haa95532_0
  cantera            cantera/win-64::cantera-2.5.1-py39hb2e0c1f_0
  certifi            pkgs/main/win-64::certifi-2021.10.8-py39haa95532_2
  h5py               pkgs/main/win-64::h5py-3.6.0-py39h3de5c98_0
  hdf5               pkgs/main/win-64::hdf5-1.10.6-h7ebc959_0
  icc_rt             pkgs/main/win-64::icc_rt-2019.0.0-h0cc432a_1
  intel-openmp       pkgs/main/win-64::intel-openmp-2021.4.0-haa95532_3556
  mkl                pkgs/main/win-64::mkl-2021.4.0-haa95532_640
  mkl-service        pkgs/main/win-64::mkl-service-2.4.0-py39h2bbff1b_0
  mkl_fft            pkgs/main/win-64::mkl_fft-1.3.1-py39h277e83a_0
  mkl_random         pkgs/main/win-64::mkl_random-1.2.2-py39hf11a4ad_0
  numpy              pkgs/main/win-64::numpy-1.22.3-py39h7a0a035_0
  numpy-base         pkgs/main/win-64::numpy-base-1.22.3-py39hca35cd5_0
  openssl            pkgs/main/win-64::openssl-1.1.1o-h2bbff1b_0
  pip                pkgs/main/win-64::pip-21.2.4-py39haa95532_0
  pyreadline         pkgs/main/win-64::pyreadline-2.1-py39haa95532_1
  python             pkgs/main/win-64::python-3.9.12-h6244533_0
  ruamel_yaml        pkgs/main/win-64::ruamel_yaml-0.15.100-py39h2bbff1b_0
  setuptools         pkgs/main/win-64::setuptools-61.2.0-py39haa95532_0
  six                pkgs/main/noarch::six-1.16.0-pyhd3eb1b0_1
  sqlite             pkgs/main/win-64::sqlite-3.38.3-h2bbff1b_0
  tzdata             pkgs/main/noarch::tzdata-2022a-hda174b7_0
  vc                 pkgs/main/win-64::vc-14.2-h21ff451_1
  vs2015_runtime     pkgs/main/win-64::vs2015_runtime-14.27.29016-h5e58377_2
  wheel              pkgs/main/noarch::wheel-0.37.1-pyhd3eb1b0_0
  wincertstore       pkgs/main/win-64::wincertstore-0.2-py39haa95532_2
  yaml               pkgs/main/win-64::yaml-0.2.5-he774522_0
  zlib               pkgs/main/win-64::zlib-1.2.12-h8cc25b3_2


Proceed ([y]/n)?

_______________________________________________________________________________________________________________

(base) C:\WINDOWS\system32>conda create --name cantera26 --channel cantera cantera=2.6.0
Collecting package metadata (current_repodata.json): done
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: \
Found conflicts! Looking for incompatible packages.
This can take several minutes.  Press CTRL-C to abort.
failed

UnsatisfiableError:

_______________________________________________________________________________________________________________

With the conda-forge channel, it is currently failing even without specifying the cantera version:

(base) C:\WINDOWS\system32>conda create --name cantera26 --channel conda-forge cantera
Collecting package metadata (current_repodata.json): done
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed

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

  - cantera

Current channels:

  - https://conda.anaconda.org/conda-forge/win-64
  - https://conda.anaconda.org/conda-forge/noarch
  - https://repo.anaconda.com/pkgs/main/win-64
  - https://repo.anaconda.com/pkgs/main/noarch
  - https://repo.anaconda.com/pkgs/r/win-64
  - https://repo.anaconda.com/pkgs/r/noarch
  - https://repo.anaconda.com/pkgs/msys2/win-64
  - https://repo.anaconda.com/pkgs/msys2/noarch

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.



--
You received this message because you are subscribed to a topic in the Google Groups "Cantera Users' Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cantera-users/JzlsUwddDiM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cantera-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cantera-users/d9261e45-e48c-40f6-a76d-f9cc4a51f25cn%40googlegroups.com.

Bryan Weber

unread,
May 20, 2022, 10:44:36 AM5/20/22
to Cantera Users' Group
Hi Daniel,

Thanks! The conda-forge one is known, conda-forge doesn't build Windows packages for Cantera, since they're available on the cantera channel.

For the conda create ... cantera=2.6.0, can you show the rest of the output from the unsatisfiable error? That will actually say what the conflict is. Could you also try the mamba solver?

conda install -n base mamba
mamba create -n cantera26 -c cantera cantera=2.6.0

Thanks!
Bryan

Daniel Thomas

unread,
May 20, 2022, 11:07:17 AM5/20/22
to Cantera Users' Group
Hi Bryan,

With the verbose option, I get the following:

(base) C:\WINDOWS\system32>conda create -v --name cantera26 --channel cantera cantera=2.6.0
Collecting package metadata (current_repodata.json): ...working... INFO conda.core.subdir_data:fetch_repodata_remote_request(728): Unable to retrieve repodata (response: 404) for https://conda.anaconda.org/cantera/win-64/current_repodata.json
done
Solving environment: ...working... failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): ...working... done
Solving environment: ...working...

Found conflicts! Looking for incompatible packages.
This can take several minutes.  Press CTRL-C to abort.
failed
Traceback (most recent call last):
  File "C:\ProgramData\Anaconda3\lib\site-packages\conda\exceptions.py", line 1082, in __call__
    return func(*args, **kwargs)
  File "C:\ProgramData\Anaconda3\lib\site-packages\conda\cli\main.py", line 87, in _main
    exit_code = do_call(args, p)
  File "C:\ProgramData\Anaconda3\lib\site-packages\conda\cli\conda_argparse.py", line 84, in do_call
    return getattr(module, func_name)(args, parser)
  File "C:\ProgramData\Anaconda3\lib\site-packages\conda\cli\main_create.py", line 41, in execute
    install(args, parser, 'create')
  File "C:\ProgramData\Anaconda3\lib\site-packages\conda\cli\install.py", line 291, in install
    raise e
  File "C:\ProgramData\Anaconda3\lib\site-packages\conda\cli\install.py", line 264, in install
    should_retry_solve=(_should_retry_unfrozen or repodata_fn != repodata_fns[-1]),
  File "C:\ProgramData\Anaconda3\lib\site-packages\conda\core\solve.py", line 155, in solve_for_transaction
    should_retry_solve)
  File "C:\ProgramData\Anaconda3\lib\site-packages\conda\core\solve.py", line 196, in solve_for_diff
    force_remove, should_retry_solve)
  File "C:\ProgramData\Anaconda3\lib\site-packages\conda\core\solve.py", line 319, in solve_final_state
    ssc = self._run_sat(ssc)
  File "C:\ProgramData\Anaconda3\lib\site-packages\conda\common\io.py", line 88, in decorated
    return f(*args, **kwds)
  File "C:\ProgramData\Anaconda3\lib\site-packages\conda\core\solve.py", line 856, in _run_sat
    should_retry_solve=ssc.should_retry_solve
  File "C:\ProgramData\Anaconda3\lib\site-packages\conda\common\io.py", line 88, in decorated
    return f(*args, **kwds)
  File "C:\ProgramData\Anaconda3\lib\site-packages\conda\resolve.py", line 1323, in solve
    self.find_conflicts(specs, specs_to_add, history_specs)
  File "C:\ProgramData\Anaconda3\lib\site-packages\conda\resolve.py", line 352, in find_conflicts
    raise UnsatisfiableError(bad_deps, strict=strict_channel_priority)
conda.exceptions.UnsatisfiableError

_____________________________________________________________________________________________________________________

After installing mamba from conda-forge, I get the following:

(base) C:\WINDOWS\system32>mamba create -n cantera26 -c cantera cantera=2.6.0

                  __    __    __    __
                 /  \  /  \  /  \  /  \
                /    \/    \/    \/    \
███████████████/  /██/  /██/  /██/  /████████████████████████
              /  / \   / \   / \   / \  \____
             /  /   \_/   \_/   \_/   \    o \__,
            / _/                       \_____/  `
            |/
        ███╗   ███╗ █████╗ ███╗   ███╗██████╗  █████╗
        ████╗ ████║██╔══██╗████╗ ████║██╔══██╗██╔══██╗
        ██╔████╔██║███████║██╔████╔██║██████╔╝███████║
        ██║╚██╔╝██║██╔══██║██║╚██╔╝██║██╔══██╗██╔══██║
        ██║ ╚═╝ ██║██║  ██║██║ ╚═╝ ██║██████╔╝██║  ██║
        ╚═╝     ╚═╝╚═╝  ╚═╝╚═╝     ╚═╝╚═════╝ ╚═╝  ╚═╝

        mamba (0.15.3) supported by @QuantStack

        GitHub:  https://github.com/mamba-org/mamba
        Twitter: https://twitter.com/QuantStack

█████████████████████████████████████████████████████████████


Looking for: ['cantera=2.6.0']

pkgs/main/noarch         [====================] (00m:00s) Done
cantera/win-64           [====================] (00m:00s) Done
cantera/noarch           [====================] (00m:00s) Done
pkgs/r/win-64            [====================] (00m:00s) Done
pkgs/msys2/win-64        [====================] (00m:00s) Done
pkgs/r/noarch            [====================] (00m:00s) Done
pkgs/msys2/noarch        [====================] (00m:00s) Done
pkgs/main/win-64         [====================] (00m:01s) Done
Encountered problems while solving:
  - nothing provides libcantera 2.6.0 h82bb817_0 needed by cantera-2.6.0-py39h29588fb_0



Bryan Weber

unread,
May 20, 2022, 8:38:21 PM5/20/22
to Cantera Users' Group
Hi Daniel,

I _think_ I resolved this this afternoon. We hadn't properly labeled the new libcantera package in our channel. Please give it another try (regular conda should be fine) and let me know how it goes.

Best,
Bryan

Joe Trzaska

unread,
May 23, 2022, 9:47:18 AM5/23/22
to canter...@googlegroups.com
Bryan - I was able to get 2.6.0 installed this morning, thank you!  FYI I did have to specify the version ( ... cantera=2.6.0), as without that inclusion conda continued to locate version 2.5.1, instead.



--

Daniel Thomas

unread,
May 23, 2022, 10:27:31 AM5/23/22
to Cantera Users' Group
Hi Bryan,

Yes, worked fine for me too -- but as Joe wrote, I had to specify cantera=2.6.0.  Thanks for figuring it out!

Daniel

Reply all
Reply to author
Forward
0 new messages