Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

installation fails on crc32c setup (Windows 10)

See original GitHub issue

System info:

Windows 10 ver.1903, x64
python ver. 3.8.3, build MSC v.1916 64 bit (using conda)

Running pip install -U catalyst fails at the crc32 setup stage:

Building wheel for crc32c ( ... error
  ERROR: Command errored out with exit status 1:
ERROR: Failed building wheel for crc32c

Apparently, the crc32 module doesn’t build against Visual Studio, see However, VS builds are default on Windows systems for python.

I wonder if the crc32c module is necessary at all. For example, there’s some crc32 functionality in the binascii module, e.g.:

import binascii
buf = open("","rb").read()
print( binascii.crc32(buf))

Wouldn’t it be sufficient? Thanks!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

velikodniycommented, May 6, 2020

Oh! I’ve just realized that I implemented it already in tensorboardX 😄 We can use crc32c from this library until we drop it from dependencies and replace with torch.tensorboard (if we do).

So, all we need is ~love~ to replace this one

if os.environ.get("CRC32C_SW_MODE", None) is None:
    os.environ["CRC32C_SW_MODE"] = "auto"
from crc32c import crc32 as crc32c  # noqa: E402

with this one:

from tensorboardX.crc32c import crc32c

Don’t forget to remove crc32c from the dependencies and make a note in the README file about speedup if the library is installed.

Scitatorcommented, Jul 5, 2020
Read more comments on GitHub >

github_iconTop Results From Across the Web

Installing error under win10 system · Issue #1 · ICRAR/crc32c
When I install crc32c-1.2 under win10 x64 system, it comes the following errors. ... error: command 'C:\Program Files (x86)\Microsoft Visual ...
Read more >
CRC32C and Installing crcmod | Cloud Storage - Google Cloud
You are installing the crcmod package for use with your system installation of Python, and thus use the sudo command. If installing crcmod...
Read more >
CRC Checking During an Installation - Win32 apps
The CRC check fails if the original CRC value is non-null and is different from the CRC calculated on the copy. If the...
Read more >
Could not build wheels for google-crc32c which use PEP 517 ...
I'm building the image on my Windows 10 system via: docker buildx build --platform=linux/arm/v7 . I'm trying to install google-cloud-bigquery ...
Read more >
crc32c - PyPI
pip install crc32c. Supported platforms are Linux and OSX using the gcc and clang compilers, and Windows using the Visual Studio compiler.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found