Skip to content

conda build conflit #6

@ninyawee

Description

@ninyawee
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ben/.local/share/mise/installs/python/miniconda3-latest/lib/python3.12/site-packages/conda_libmamba_solver/solver.py", line 414, in _solve_attempt
    new_conflicts = self._maybe_raise_for_problems(
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ben/.local/share/mise/installs/python/miniconda3-latest/lib/python3.12/site-packages/conda_libmamba_solver/solver.py", line 712, in _maybe_raise_for_problems
    self._maybe_raise_for_conda_build(
  File "/home/ben/.local/share/mise/installs/python/miniconda3-latest/lib/python3.12/site-packages/conda_libmamba_solver/solver.py", line 805, in _maybe_raise_for_conda_build
    raise exc
conda_libmamba_solver.conda_build_exceptions.ExplainedDependencyNeedsBuildingError: Unsatisfiable dependencies for platform linux-64: {MatchSpec("python[version='>=3.6,<3.7.0a0']"), MatchSpec("pydantic[version='>=2.7.1,<3
conda_libmamba_solver.conda_build_exceptions.ExplainedDependencyNeedsBuildingError: Unsatisfiable dependencies for platform linux-64: {MatchSpec("python[version='>=3.6,<3.7.0a0']"), MatchSpec("pydantic[version='>=2.7.1,<3.0.0']"), MatchSpec("httpx[version='>=0.27.0,<0.28.0']"), MatchSpec("arrow==0.16.0=py36_0")}
Encountered problems while solving:
  - nothing provides requested httpx >=0.27.0,<0.28.0
  - nothing provides requested pydantic >=2.7.1,<3.0.0
  - package arrow-0.16.0-py36_0 requires python >=3.6,<3.7.0a0, but none of the providers can be installed
Could not solve for environment specs
The following packages are incompatible
├─ arrow >=0.16.0,<0.17.0  is installable with the potential options
│  ├─ arrow 0.16.0 would require
│  │  └─ python >=3.6,<3.7.0a0 , which can be installed;
│  ├─ arrow 0.16.0 would require
│  │  └─ python >=3.7,<3.8.0a0 , which can be installed;
│  └─ arrow 0.16.0 would require
│     └─ python >=3.8,<3.9.0a0 , which can be installed;
├─ httpx >=0.27.0,<0.28.0  does not exist (perhaps a typo or a missing channel);
├─ pydantic >=2.7.1,<3.0.0  does not exist (perhaps a typo or a missing channel);
└─ python >=3.11.0,<4.0.0  is not installable because it conflicts with any installable versions previously reported.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/home/ben/.local/share/mise/installs/python/miniconda3-latest/bin/conda-build", line 11, in <module>
    sys.exit(execute())
             ^^^^^^^^^
  File "/home/ben/.local/share/mise/installs/python/miniconda3-latest/lib/python3.12/site-packages/conda_build/cli/main_build.py", line 590, in execute
    api.build(
  File "/home/ben/.local/share/mise/installs/python/miniconda3-latest/lib/python3.12/site-packages/conda_build/api.py", line 250, in build
    return build_tree(
           ^^^^^^^^^^^
  File "/home/ben/.local/share/mise/installs/python/miniconda3-latest/lib/python3.12/site-packages/conda_build/build.py", line 3638, in build_tree
    packages_from_this = build(
                         ^^^^^^
  File "/home/ben/.local/share/mise/installs/python/miniconda3-latest/lib/python3.12/site-packages/conda_build/build.py", line 2409, in build
    create_build_envs(top_level_pkg, notest)
  File "/home/ben/.local/share/mise/installs/python/miniconda3-latest/lib/python3.12/site-packages/conda_build/build.py", line 2247, in create_build_envs
    raise e
  File "/home/ben/.local/share/mise/installs/python/miniconda3-latest/lib/python3.12/site-packages/conda_build/build.py", line 2220, in create_build_envs
    environ.get_package_records(
  File "/home/ben/.local/share/mise/installs/python/miniconda3-latest/lib/python3.12/site-packages/conda_build/environ.py", line 937, in get_install_actions
    precs = get_package_records(
            ^^^^^^^^^^^^^^^^^^^^
  File "/home/ben/.local/share/mise/installs/python/miniconda3-latest/lib/python3.12/site-packages/conda_build/environ.py", line 937, in get_install_actions
    precs = get_package_records(
            ^^^^^^^^^^^^^^^^^^^^
  File "/home/ben/.local/share/mise/installs/python/miniconda3-latest/lib/python3.12/site-packages/conda_build/environ.py", line 937, in get_install_actions
    precs = get_package_records(
            ^^^^^^^^^^^^^^^^^^^^
  File "/home/ben/.local/share/mise/installs/python/miniconda3-latest/lib/python3.12/site-packages/conda_build/environ.py", line 891, in get_install_actions
    precs = _install_actions(prefix, index, specs)["LINK"]
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ben/.local/share/mise/installs/python/miniconda3-latest/lib/python3.12/site-packages/conda_build/environ.py", line 1301, in install_actions
    txn = solver.solve_for_transaction(prune=False, ignore_pinned=False)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ben/.local/share/mise/installs/python/miniconda3-latest/lib/python3.12/site-packages/conda/core/solve.py", line 153, in solve_for_transaction
    unlink_precs, link_precs = self.solve_for_diff(
                               ^^^^^^^^^^^^^^^^^^^^
  File "/home/ben/.local/share/mise/installs/python/miniconda3-latest/lib/python3.12/site-packages/conda/core/solve.py", line 222, in solve_for_diff
    final_precs = self.solve_final_state(
                  ^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ben/.local/share/mise/installs/python/miniconda3-latest/lib/python3.12/site-packages/conda_libmamba_solver/solver.py", line 223, in solve_final_state
    out_state = self._solving_loop(in_state, out_state, index)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ben/.local/share/mise/installs/python/miniconda3-latest/lib/python3.12/site-packages/conda_libmamba_solver/solver.py", line 303, in _solving_loop
    solved = self._solve_attempt(in_state, out_state, index, attempt=attempt)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ben/.local/share/mise/installs/python/miniconda3-latest/lib/python3.12/site-packages/conda_libmamba_solver/solver.py", line 414, in _solve_attempt
    new_conflicts = self._maybe_raise_for_problems(
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ben/.local/share/mise/installs/python/miniconda3-latest/lib/python3.12/site-packages/conda_libmamba_solver/solver.py", line 712, in _maybe_raise_for_problems
    self._maybe_raise_for_conda_build(
  File "/home/ben/.local/share/mise/installs/python/miniconda3-latest/lib/python3.12/site-packages/conda_libmamba_solver/solver.py", line 805, in _maybe_raise_for_conda_build
    raise exc
conda_libmamba_solver.conda_build_exceptions.ExplainedDependencyNeedsBuildingError: Unsatisfiable dependencies for platform linux-64: {MatchSpec("python[version='>=3.6,<3.7.0a0']"), MatchSpec("pydantic[version='>=2.7.1,<3
conda_libmamba_solver.conda_build_exceptions.ExplainedDependencyNeedsBuildingError: Unsatisfiable dependencies for platform linux-64: {MatchSpec("python[version='>=3.6,<3.7.0a0']"), MatchSpec("pydantic[version='>=2.7.1,<3.0.0']"), MatchSpec("httpx[version='>=0.27.0,<0.28.0']"), MatchSpec("arrow==0.16.0=py36_0")}
Encountered problems while solving:
  - nothing provides requested httpx >=0.27.0,<0.28.0
  - nothing provides requested pydantic >=2.7.1,<3.0.0
  - package arrow-0.16.0-py36_0 requires python >=3.6,<3.7.0a0, but none of the providers can be installed
Could not solve for environment specs
The following packages are incompatible
├─ arrow >=0.16.0,<0.17.0  is installable with the potential options
│  ├─ arrow 0.16.0 would require
│  │  └─ python >=3.6,<3.7.0a0 , which can be installed;
│  ├─ arrow 0.16.0 would require
│  │  └─ python >=3.7,<3.8.0a0 , which can be installed;
│  └─ arrow 0.16.0 would require
│     └─ python >=3.8,<3.9.0a0 , which can be installed;
├─ httpx >=0.27.0,<0.28.0  does not exist (perhaps a typo or a missing channel);
├─ pydantic >=2.7.1,<3.0.0  does not exist (perhaps a typo or a missing channel);
└─ python >=3.11.0,<4.0.0  is not installable because it conflicts with any installable versions previously reported.

ai advised

The error you're encountering is due to the specified versions of httpx and pydantic in your meta.yaml file not being available in the channels you are using. The versions specified are:
httpx >=0.27.0,<0.28.0
pydantic >=2.7.1,<3.0.0
To resolve this, you can try the following:

  1. Check for Typographical Errors: Ensure that the version numbers are correct and there are no typos.
  2. Check Available Versions: Use the Conda search command or visit the Anaconda repository online to check the available versions of these packages.
  3. Adjust Version Ranges: If the versions you specified do not exist, adjust the version constraints in your meta.yaml to match the available versions.
  4. Add Channels: If these versions are available in different channels, you might need to add those channels to your Conda configuration.
    Would you like to adjust the version ranges directly in the meta.yaml, or do you need help with another approach?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions