error test Python virtual environment #763
-
im to try to test with command pytest and got following result =================================================== ERRORS ====================================================____________________________ ERROR collecting tests/pathfinder_worker/test_call.py ____________________________tests/pathfinder_worker/test_call.py:9: in <module>
from starkware.starknet.services.api.gateway.transaction import InvokeFunction, Declare
.venv/lib/python3.10/site-packages/starkware/starknet/services/api/gateway/transaction.py:11: in <module>
from services.everest.api.gateway.transaction import EverestTransaction
.venv/lib/python3.10/site-packages/services/everest/api/gateway/transaction.py:5: in <module>
from starkware.starkware_utils.validated_dataclass import ValidatedMarshmallowDataclass
.venv/lib/python3.10/site-packages/starkware/starkware_utils/validated_dataclass.py:13: in <module>
from starkware.starkware_utils.validated_fields import Field
.venv/lib/python3.10/site-packages/starkware/starkware_utils/validated_fields.py:12: in <module>
from starkware.starkware_utils.marshmallow_dataclass_fields import (
.venv/lib/python3.10/site-packages/starkware/starkware_utils/marshmallow_dataclass_fields.py:9: in <module>
from frozendict import frozendict
.venv/lib/python3.10/site-packages/frozendict/__init__.py:16: in <module>
class frozendict(collections.Mapping):
E AttributeError: module 'collections' has no attribute 'Mapping'
=========================================== short test summary info ===========================================ERROR tests/pathfinder_worker/test_call.py - AttributeError: module 'collections' has no attribute 'Mapping'
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!============================================== 1 error in 0.86s =============================================== |
Beta Was this translation helpful? Give feedback.
Answered by
sergey-melnychuk
Apr 12, 2023
Replies: 2 comments
-
Wrong Python version, please use 3.9 or 3.10. See here: https://stackoverflow.com/a/70195883 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
sergey-melnychuk
-
Thank solved |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Wrong Python version, please use 3.9 or 3.10. See here: https://stackoverflow.com/a/70195883