Jun-21-2022, 05:56 PM
I run the code using charm crypto for a project, python3.6 and Ununtu18 which shows me an error indicating a hypothesis and exception error.
hypothesis 6.46.2 requires python3.7 or later
The hypothesis is an advanced library in python used for testing
Where I had installed these libraries
pyparsing==2.1.5
hypothesis
pytest
The error in setup.py files or elsewhere like it can happen if the packaging toolchain is older than python require how to solve it.
hypothesis 6.46.2 requires python3.7 or later
The hypothesis is an advanced library in python used for testing
Where I had installed these libraries
pyparsing==2.1.5
hypothesis
pytest
The error in setup.py files or elsewhere like it can happen if the packaging toolchain is older than python require how to solve it.
from hypothesis.strategies import text, composite, sampled_from, characters, one_of, integers from functools import partial
Error:/usr/bin/python3.6 /home/ali/Downloads/charm-dev/charm/toolbox/policy_expression_spec.py
Traceback (most recent call last):
File "/home/ali/Downloads/charm-dev/charm/toolbox/policy_expression_spec.py", line 1, in <module>
from hypothesis.strategies import text, composite, sampled_from, characters, one_of, integers
File "/usr/local/lib/python3.6/dist-packages/hypothesis-6.46.2-py3.6.egg/hypothesis/__init__.py", line 18, in <module>
import hypothesis._error_if_old # noqa # imported for side-effect of nice error
File "/usr/local/lib/python3.6/dist-packages/hypothesis-6.46.2-py3.6.egg/hypothesis/_error_if_old.py", line 23, in <module>
raise Exception(message.format(__version__))
Exception:
Hypothesis 6.46.2 requires Python 3.7 or later.
This can only happen if your packaging toolchain is older than python_requires.
See https://packaging.python.org/guides/distributing-packages-using-setuptools/
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 62, in apport_excepthook
if not enabled():
File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 24, in enabled
import re
File "/usr/lib/python3.6/re.py", line 142, in <module>
class RegexFlag(enum.IntFlag):
AttributeError: module 'enum' has no attribute 'IntFlag'
Original exception was:
Traceback (most recent call last):
File "/home/ali/Downloads/charm-dev/charm/toolbox/policy_expression_spec.py", line 1, in <module>
from hypothesis.strategies import text, composite, sampled_from, characters, one_of, integers
File "/usr/local/lib/python3.6/dist-packages/hypothesis-6.46.2-py3.6.egg/hypothesis/__init__.py", line 18, in <module>
import hypothesis._error_if_old # noqa # imported for side-effect of nice error
File "/usr/local/lib/python3.6/dist-packages/hypothesis-6.46.2-py3.6.egg/hypothesis/_error_if_old.py", line 23, in <module>
raise Exception(message.format(__version__))
Exception:
Hypothesis 6.46.2 requires Python 3.7 or later.
This can only happen if your packaging toolchain is older than python_requires.
See https://packaging.python.org/guides/distributing-packages-using-setuptools/