Package Details: python-conda 4.9.2-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: cyrevolt (specter119)
Last Packager: cyrevolt
Votes: 23
Popularity: 0.37
First Submitted: 2016-04-08 07:41
Last Updated: 2020-12-14 22:52

Dependencies (7)

Sources (1)

Pinned Comments

cyrevolt commented on 2020-12-14 23:01

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

« First ‹ Previous 1 2 3 4

ardeaf commented on 2017-04-26 22:34

Can't build python-ruamel.yaml-hg:

:: Proceed with installation? [Y/n] y
:: Retrieving package(s)...
:: python-conda build files are up-to-date -- skipping
:: python-ruamel.yaml-hg build files are up-to-date -- skipping
[sudo] password for ardeaf:
:: Checking python-ruamel.yaml-hg integrity...
==> Making package: python-ruamel.yaml-hg 0.12.14.r1.486262651aa3-1 (Wed Apr 26 12:33:27 HST 2017)
==> Retrieving sources...
-> Updating yaml hg repo...
pulling from https://bitbucket.org/ruamel/yaml
searching for changes
no changes found
==> Validating source files with md5sums...
yaml ... Skipped
:: Checking python-conda integrity...
==> Making package: python-conda 4.3.6-1 (Wed Apr 26 12:33:31 HST 2017)
==> Retrieving sources...
-> Found 4.3.6.tar.gz
==> Validating source files with sha512sums...
4.3.6.tar.gz ... Passed
:: Building python-ruamel.yaml-hg package(s)...
==> Making package: python-ruamel.yaml-hg 0.14.10.r1.79122dcec309-1 (Wed Apr 26 12:33:32 HST 2017)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Starting pkgver()...
==> Removing existing $pkgdir/ directory...
==> Entering fakeroot environment...
==> Starting package()...
/usr/lib/python3.6/site-packages/pip/commands/install.py:194: UserWarning: Disabling all use of wheels due to the use of --build-options / --global-options / --install-options.
cmdoptions.check_install_build_global(options)
Directory '.' is not installable. File 'setup.py' not found.
==> ERROR: A failure occurred in package().
Aborting...
:: Building python-conda package(s)...
==> Making package: python-conda 4.3.6-1 (Wed Apr 26 12:33:34 HST 2017)
==> Checking runtime dependencies...
==> Installing missing dependencies...
error: target not found: python-ruamel.yaml-hg
==> ERROR: 'pacman' failed to install missing dependencies.
:: failed to build python-ruamel.yaml-hg package(s)
:: failed to build python-conda package(s)

confusedfla commented on 2017-01-30 07:57

What's the reason for depending on python-ruamel.yaml-hg?
python-ruamel.yaml is now in community: https://www.archlinux.org/packages/community/x86_64/python-ruamel-yaml/

cyrevolt commented on 2017-01-24 22:49

The issue is now "fixed", using a "testing" installation as they mention it in `setup.py`. I hope this causes no other side-effects. Please let me know if this works for you now! :)

jddantes commented on 2017-01-20 04:48

Seems conda wasn't installed using that commit. Listed the details here (https://bbs.archlinux.org/viewtopic.php?pid=1685147#p1685147)

cyrevolt commented on 2017-01-10 23:11

Sorry for this issue, and thanks to geno_whirl for pointing it out (see https://bbs.archlinux.org/viewtopic.php?id=221775 ). Upstream has made some changes which essentially doesn't create the binaries conda, activate and deactivate anymore. When you run the setup.py manually, you will see this message:
WARNING: Your current install method for conda only supports conda
as a python library. You are not installing a conda executable command
or activate/deactivate commands. If your intention is to install conda
as a standalone application, currently supported install methods include
the Anaconda installer and the miniconda installer.

This only affects you if you are using a POSIX shell like bash. If you run fish (like I do ;)), you will still be able to use conda. :)

To fix it, you can downgrade by running the following:
git clone "https://aur.archlinux.org/python-conda.git"
cd python-conda
git checkout 8e0dfd4c6621e5ad64d5debc2c2b743e3c452059
makepkg -i

That clones the git repo from AUR, checks out the commit with the older version v4.2.12-3, and builds and installs it.

petronny commented on 2017-01-02 08:19

Hi,
please add `echo $pkgver > conda/.version` to python-conda-git too.

cyrevolt commented on 2016-11-30 19:42

I'm sorry, I had relics of an older build process present when I thought this little hack could be removed now. I readded the `echo $pkgver > conda/.version` to the build steps.

eigengrau commented on 2016-11-30 08:01

This currently fails to build for me, since for some reason conda fails to create the version string inside setup.py.

==> Starting package()...
running install
running build
running build_py
UPDATING build/lib/conda/__init__.py
WRITING build/lib/conda/.version with version None
Traceback (most recent call last):
File "setup.py", line 90, in <module>
zip_safe=False,
File "/usr/lib/python3.5/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/lib/python3.5/distutils/dist.py", line 955, in run_commands
self.run_command(cmd)
File "/usr/lib/python3.5/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/usr/lib/python3.5/site-packages/setuptools/command/install.py", line 61, in run
return orig.install.run(self)
File "/usr/lib/python3.5/distutils/command/install.py", line 539, in run
self.run_command('build')
File "/usr/lib/python3.5/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.5/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/usr/lib/python3.5/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/usr/lib/python3.5/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.5/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/tmp/makepkg/python-conda/src/conda-4.2.12/conda/_vendor/auxlib/packaging.py", line 206, in run
write_version_file(target_dir, self.distribution.metadata.version)
File "/tmp/makepkg/python-conda/src/conda-4.2.12/conda/_vendor/auxlib/packaging.py", line 198, in write_version_file
f.write(version)
TypeError: write() argument must be str, not None