py7zr Import error

I installed py7zr and get

ImportError: cannot import name ‘IA64Decoder’ from ‘bcj._bcjfilter’

ImportError: pybcj module: Neither C implementation nor Python implementation can be imported.

(among other messages, largely traceback of calls) I tried uninstalling and installing pybcj; no effect.

In py7zr’s instructions it says:

The py7zr depends on several external libraries. You should install these libraries with py7zr. There are PyCryptodomex, PyZstd, PyPPMd, pybcj, texttable, and multivolumefile.

From your error message, you need to install pybcj. Make sure the others are installed too.

Yeah, pybcj was installed already. I later discovered (pip install) bcj-cffi was needed, which apparently installed pycparser, and cffi as well. Thanks for the input.

You’re welcome. Is this in PyPi? The devs have put some thought (and a number of conditions and constraints) into their dependencies.
py7zr/pyproject.toml at 42a3dc8e07932eeb9607a19f5ebe908ad362cab4 · miurahr/py7zr · GitHub

If bcj-cffi is needed on CPython too, it’s worth raising an issue to let them know.