Ciphey TypeError with Python 3.9
See original GitHub issue⚠️IMPORTANT⚠️ if you do not fill this out, we will automatically delete your issue. We will not help anyone that cannot fill out this template.
- Have you read our Wiki page “Common Issues & Their Solutions”?
Describe the bug After installing Ciphey using pip3, running Ciphey with any argument will cause the problem.
Plaintext ⚠️IMPORTANT⚠️ The below code is non-negotiable for “Ciphey didn’t decrypt…” problems. If you do not tell us your plaintext, we will not help you.
raceback (most recent call last):
File "<home>/.local/bin/ciphey", line 5, in <module>
from ciphey.ciphey import main
File "<home>/.local/lib/python3.9/site-packages/ciphey/__init__.py", line 1, in <module>
from . import basemods, common, iface
File "<home>/.local/lib/python3.9/site-packages/ciphey/basemods/__init__.py", line 1, in <module>
from . import Checkers, Crackers, Decoders, Resources, Searchers
File "<home>/.local/lib/python3.9/site-packages/ciphey/basemods/Checkers/__init__.py", line 1, in <module>
from . import any, brandon, ezcheck, format, human, quorum, regex
File "<home>/.local/lib/python3.9/site-packages/ciphey/basemods/Checkers/any.py", line 3, in <module>
from ciphey.iface import Config, ParamSpec, PolymorphicChecker, registry
File "<home>/.local/lib/python3.9/site-packages/ciphey/iface/__init__.py", line 1, in <module>
from ._config import Config
File "<home>/.local/lib/python3.9/site-packages/ciphey/iface/_config.py", line 11, in <module>
from ._modules import PolymorphicChecker, ResourceLoader, Searcher
File "<home>/.local/lib/python3.9/site-packages/ciphey/iface/_modules.py", line 208, in <module>
class CrackResult(NamedTuple, Generic[T]):
File "/usr/lib/python3.9/typing.py", line 1820, in _namedtuple_mro_entries
raise TypeError("Multiple inheritance with NamedTuple is not supported")
TypeError: Multiple inheritance with NamedTuple is not supported
Version ⚠️IMPORTANT⚠️ We need this information because different environments will induce different bugs in Ciphey
- OS/Distro: Arch Linux
- Python version: Python 3.9.0
- Ciphey versions: ciphey 5.11.0, cipheycore 0.3.2, cipherdists 0.3.34
- Did you use Docker? No
Verbose Output
⚠️IMPORTANT⚠️ Verbose output will tell us why it’s not working the way we expected it to be.
Run Ciphey with ciphey -vvv
and paste the results into Pastebin.com or a GitHub Gist
Verbose output is the same as the plaintext.
To Reproduce Steps to reproduce the behavior:
- What input did you use? Any input or without input.
- What flags / arguments did you use? Any argument or without argument
Expected behavior A clear and concise description of what you expected to happen. Ciphey runs without this error.
Any other information? Add any other context about the problem here.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:4
- Comments:7 (2 by maintainers)
Top GitHub Comments
This is caused by https://github.com/python/cpython/pull/19363
Workaround for now may be to comment out line 1880 and 1881 from the file /usr/lib/python3.9/typing.py or the equivalent in your case (line 1820 in your case). Worked for me. Could be other consequences out of this in the future.
This may help you find the lines
def _namedtuple_mro_entries(bases): # if len(bases) > 1: # raise TypeError(“Multiple inheritance with NamedTuple is not supported”)