Package Details: python-conda 23.1.0-1

Git Clone URL: https://aur.archlinux.org/python-conda.git (read-only, click to copy)
Package Base: python-conda
Description: OS-agnostic, system-level binary package manager and ecosystem https://conda.io
Upstream URL: https://github.com/conda/conda
Licenses: BSD
Provides: python-conda, python-conda-env
Submitter: cyrevolt
Maintainer: specter119
Last Packager: specter119
Votes: 27
Popularity: 0.039312
First Submitted: 2016-04-08 07:41 (UTC)
Last Updated: 2023-03-02 04:36 (UTC)

Pinned Comments

cyrevolt commented on 2020-12-14 23:01 (UTC) (edited on 2020-12-14 23:18 (UTC) by cyrevolt)

Errors
Traceback (most recent call last):
  File "/usr/bin/conda-build", line 33, in <module>
    sys.exit(load_entry_point('conda-build==3.20.5', 'console_scripts', 'conda-build')())
  File "/usr/bin/conda-build", line 25, in importlib_load_entry_point
    return next(matches).load()
  File "/usr/lib/python3.9/importlib/metadata.py", line 77, in load
    module = import_module(match.group('module'))
  File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 790, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "/usr/lib/python3.9/site-packages/conda_build/cli/main_build.py", line 12, in <module>
    from glob2 import glob
ModuleNotFoundError: No module named 'glob2'

If you see something like this, the "error" is that AUR packages are not rebuilt when the system Python version is upgraded, which just happened again with 3.9. You need to manually upgrade each and every Python package from AUR, unfortunately. That is quite a caveat, because not everyone notices that something specific like Python is upgraded when they run pacman -Syu and see a list of 200 or more packages. This also happens with Node.js and what not.

Solution

So I have just bumped the package here as well as python-conda-build, which triggers updates with e.g. yay -Su. However, some dependencies may not have a new version now. What we could do for this case is to increase pkgrel for those other packages. It feels hacky, but at least it works.

Addendum

I am sorry for the inconvenience. Now the remaining problem is: Because of the bunch of dependencies and dependencies of dependencies, it is easy to miss one of them. =) Secondly, I do not own all the dependencies, so some will need manual maintenance either way, unfortunately. For example, you will need to reinstall python-glob2-git. Please let us know here if anyone of you runs into issues and we will try to help.

Notes

To rebuild, you need to pass the --rebuild option.

Example: yay -S python-glob2-git --rebuild

Latest Comments

1 2 3 4 5 6 Next › Last »

specter119 commented on 2023-08-29 02:21 (UTC)

@rafauke never mind, I will try to build it recently? seems harder than previously.

rafauke commented on 2023-08-28 15:19 (UTC) (edited on 2023-08-28 21:27 (UTC) by rafauke)

Hello @cyrevolt, I don't really want to maintain this package, apologies for the misunderstanding.

cyrevolt commented on 2023-08-28 14:11 (UTC)

I've added rafauke as another co-maintainer.

Hope that helps keeping this package more up to date. 🙂 They also file an orphan request. I will disown the package so they can take over. Good luck and thank you!

newsboost commented on 2023-03-02 08:26 (UTC)

@specter119: Thanks a lot! So, sounds like there isn't much difference between this and miniconda3, in that case I prefer the one that's mostly updated... About micromamba-bin: Never heard of that before, I'll look a bit into that and see if I should try it out, thanks!

specter119 commented on 2023-03-02 04:43 (UTC)

@newsboost

updated, For miniconda3, it has a built-in(the base) env. For python-conda, only provides the conda binary. The base env is like the system python, which you can not modify.

BTW, I personally recommend trying the micromamba-bin currently. for mamba is a more powerful python env/lib manager based on conda's resources.

newsboost commented on 2023-03-01 13:22 (UTC)

Hi. Sorry, what's the difference between this and https://aur.archlinux.org/packages/miniconda3 ? Both seem to provide conda - that confuses me... On the other hand, this package seems pretty dead since it hadn't been updated since October - 5 months...

carlosal1015 commented on 2022-09-12 16:00 (UTC)

Since that python-conda is providing /usr/bin/conda, could you please include

provides=('conda')

huyz commented on 2022-05-15 06:43 (UTC)

Update to python-setuptools 1:60.4.0-1 solves this issue.

huyz commented on 2022-05-13 05:07 (UTC)

A workaround of this issue is to edit /usr/lib/python3.10/site-packages/conda-4.12.0-py3.10.egg-info/requires.txt and remove the ruamel_yaml_conda>=0.11.14 line.

huyz commented on 2022-05-13 04:36 (UTC)

It seems that python-setuptools 1:60.0.0-1 breaks conda.

With python-setuptools 60.0.0 I got the following error:

    Traceback (most recent call last):
      File "/usr/lib/python3.10/site-packages/conda/cli/main.py", line 142, in main
        from ..activate import main as activator_main
      File "/usr/lib/python3.10/site-packages/conda/activate.py", line 22, in <module>
        from .base.context import ROOT_ENV_NAME, context, locate_prefix_by_name
      File "/usr/lib/python3.10/site-packages/conda/base/context.py", line 32, in <module>
        from ..common.configuration import (Configuration, ConfigurationLoadError, MapParameter,
      File "/usr/lib/python3.10/site-packages/conda/common/configuration.py", line 36, in <module>
        from .path import expand
      File "/usr/lib/python3.10/site-packages/conda/common/path.py", line 17, in <module>
        from distutils.spawn import find_executable
      File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
      File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
      File "<frozen importlib._bootstrap>", line 674, in _load_unlocked
      File "<frozen importlib._bootstrap>", line 571, in module_from_spec
      File "/usr/lib/python3.10/site-packages/_distutils_hack/__init__.py", line 92, in create_module
        return importlib.import_module('setuptools._distutils')
      File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
        return _bootstrap._gcd_import(name[level:], package, level)
      File "/usr/lib/python3.10/site-packages/setuptools/__init__.py", line 16, in <module>
        import setuptools.version
      File "/usr/lib/python3.10/site-packages/setuptools/version.py", line 1, in <module>
        import pkg_resources
      File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 3267, in <module>
        def _initialize_master_working_set():
      File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 3241, in _call_aside
        f(*args, **kwargs)
      File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 3279, in _initialize_master_working_set
        working_set = WorkingSet._build_master()
      File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 573, in _build_master
        ws.require(__requires__)
      File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 891, in require
        needed = self.resolve(parse_requirements(requirements))
      File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 777, in resolve
        raise DistributionNotFound(req, requirers)
    pkg_resources.DistributionNotFound: The 'ruamel_yaml_conda>=0.11.14' distribution was not found and is required by conda

Downgrade python-setuptools to 59.8.0 solves this issue.