Package Details: python-google-crc32c 1.5.0-1

Git Clone URL: (read-only, click to copy)
Package Base: python-google-crc32c
Description: Wraps Google's crc32c library into a Python wrapper
Upstream URL:
Licenses: Apache
Submitter: zhangkaizhao
Maintainer: lmartinez-mirror
Last Packager: lmartinez-mirror
Votes: 0
Popularity: 0.000000
First Submitted: 2020-09-24 09:27 (UTC)
Last Updated: 2022-09-01 01:24 (UTC)

Latest Comments

amstan commented on 2022-07-28 05:39 (UTC)

To close the loop. TLDR: Please ignore me, nothing to see here.

I guess this is just something that happens to most arch python packages on archlinuxarm.

I tried manually compiling pyalpm too (which is a normal binary package from the main repos). I took its PKGBUILD and ran it with makepkg (note that it's also got an x86 only arch=(), and it uses the same $CARCH invocation in its check()), and I got a similar error there.

My conclusion (unverified) is that archlinuxarm packages are just compiled with --nocheck, otherwise you frequently get the error I described.

amstan commented on 2022-07-27 18:13 (UTC) (edited on 2022-07-27 18:14 (UTC) by amstan)


For some context, I'm trying to run this on armv7.

copying build/lib.linux-armv7l-3.10/google_crc32c/__pycache__/__config__.cpython-310.pyc -> build/bdist.linux-armv7l/wheel/google_crc32c/__pycache__
copying build/lib.linux-armv7l-3.10/google_crc32c/__pycache__/_checksum.cpython-310.pyc -> build/bdist.linux-armv7l/wheel/google_crc32c/__pycache__
Successfully built google_crc32c-1.3.0-cp310-cp310-linux_armv7l.whl
==> Starting check()...
$CARCH=armv7h < log line added by me
_________________________________________________________________________________________________ ERROR collecting tests/ __________________________________________________________________________________________________
ImportError while importing test module '/home/amstan/.cache/pikaur/build/python-google-crc32c/src/python-crc32c-1.3.0/tests/'.
Hint: make sure your test modules/packages have valid Python names.
/usr/lib/python3.10/importlib/ in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/ in <module>
    import google_crc32c
E   ModuleNotFoundError: No module named 'google_crc32c'

Looks like the problem is that $CARCH=armv7h, whereas the python building names things armv7l. seems like the way to do it, but I'm wondering where the corner case is.

amstan commented on 2022-07-27 04:14 (UTC)

Is it just me or does the check() fail when it's being compiled in a clean setup.

I think it works if the package is already installed (eg: at upgrade time).

Maybe line 26 is not very hermetic and tries to use the system libraries instead.