Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Many ImportErrors and RecursionErrors when running tests using tox. #285

Closed
CalabashSquash opened this issue Apr 26, 2022 · 3 comments
Closed

Comments

@CalabashSquash
Copy link

📝 Details
When setting up a development environment for the repository, and attempting to run the tests using tox, I get 8 warnings, and 25 errors all to do with either not being able to import different modules from the starkware library, or RecursionError: maximum recursion depth exceeded errors.

platform linux -- Python 3.8.10, pytest-7.1.2, pluggy-1.0.0
cachedir: .tox/default/.pytest_cache
rootdir: dir/cairo-contracts, configfile: tox.ini
plugins: forked-1.4.0, typeguard-2.13.3, web3-5.29.0, xdist-2.5.0, asyncio-0.18.3

🔢 Code to reproduce bug

Commands I am running:

git clone https://github.com/OpenZeppelin/cairo-contracts.git
cd cairo-contracts
python3 -m venv env
source env/bin/activate
pip install cairo-nile
nile install
pip install tox # Have also tried removing this and installing with `sudo apt-get install tox`
nile compile --directory src
tox

Running tox gives the following output (It's quite lengthy):

.tox create: dir/cairo-contracts/.tox/.tox
.tox installdeps: tox >= 3.15
.package recreate: dir/cairo-contracts/.tox/.package
.package installdeps: setuptools>=46.1.0, setuptools_scm[toml]>=5, wheel
package init file 'src/openzeppelin/upgrades/__init__.py' not found (or not a regular file)
...
package init file 'src/openzeppelin/token/erc20/interfaces/__init__.py' not found (or not a regular file)
default recreate: dir/cairo-contracts/.tox/default
default installdeps: cairo-lang, pytest-xdist
default inst: dir/cairo-contracts/.tox/.tmp/package/1/openzeppelin-cairo-contracts-0.1.0.post1.dev25+gf96acc2.tar.gz
default installed: aiohttp==3.8.1,aiosignal==1.2.0,async-timeout==4.0.2,attrs==21.4.0,base58==2.1.1,bitarray==1.2.2,cachetools==5.0.0,cairo-lang==0.8.0,certifi==2021.10.8,charset-normalizer==2.0.12,cytoolz==0.11.2,distlib==0.3.4,ecdsa==0.17.0,eth-abi==2.1.1,eth-account==0.5.7,eth-hash==0.3.2,eth-keyfile==0.5.1,eth-keys==0.3.4,eth-rlp==0.2.1,eth-typing==2.3.0,eth-utils==1.10.0,execnet==1.9.0,fastecdsa==2.2.3,filelock==3.6.0,frozendict==1.2,frozenlist==1.3.0,hexbytes==0.2.2,idna==3.3,importlib-metadata==4.11.3,importlib-resources==5.7.1,iniconfig==1.1.1,ipfshttpclient==0.8.0a2,jsonschema==4.4.0,lark-parser==0.12.0,lru-dict==1.1.7,marshmallow==3.15.0,marshmallow-dataclass==8.5.5,marshmallow-enum==1.5.1,marshmallow-oneofschema==3.0.1,mpmath==1.2.1,multiaddr==0.0.9,multidict==6.0.2,mypy-extensions==0.4.3,netaddr==0.8.0,numpy==1.22.3,openzeppelin-cairo-contracts @ file://dir/cairo-contracts/.tox/.tmp/package/1/openzeppelin-cairo-contracts-0.1.0.post1.dev25%2Bgf96acc2.tar.gz,packaging==21.3,parsimonious==0.8.1,pipdeptree==2.2.1,platformdirs==2.5.2,pluggy==1.0.0,prometheus-client==0.14.1,protobuf==3.20.1,py==1.11.0,pycryptodome==3.14.1,pyparsing==3.0.8,pyrsistent==0.18.1,pytest==7.1.2,pytest-asyncio==0.18.3,pytest-forked==1.4.0,pytest-xdist==2.5.0,PyYAML==6.0,requests==2.27.1,rlp==2.0.1,six==1.16.0,sympy==1.10.1,toml==0.10.2,tomli==2.0.1,toolz==0.11.2,tox==3.25.0,typeguard==2.13.3,typing-inspect==0.7.1,typing_extensions==4.2.0,urllib3==1.26.9,varint==1.0.2,virtualenv==20.14.1,web3==5.29.0,websockets==9.1,yarl==1.7.2,zipp==3.8.0
default run-test-pre: PYTHONHASHSEED='2461346136'
default run-test: commands[0] | pytest
=============================================================================================== test session starts ===============================================================================================
platform linux -- Python 3.8.10, pytest-7.1.2, pluggy-1.0.0
cachedir: .tox/default/.pytest_cache
rootdir: dir/cairo-contracts, configfile: tox.ini
plugins: forked-1.4.0, typeguard-2.13.3, web3-5.29.0, xdist-2.5.0, asyncio-0.18.3
asyncio: mode=auto
gw0 [0] / gw1 [0] / gw2 [0] / gw3 [0] / gw4 [0] / gw5 [0] / gw6 [0] / gw7 [0]                                                                                                                                     

===================================================================================================== ERRORS ======================================================================================================
__________________________________________________________________________________ ERROR collecting tests/access/test_Ownable.py __________________________________________________________________________________
tests/access/test_Ownable.py:2: in <module>
    from starkware.starknet.testing.starknet import Starknet
.tox/default/lib/python3.8/site-packages/starkware/starknet/testing/starknet.py:7: in <module>
    from starkware.starknet.services.api.messages import StarknetMessageToL1
.tox/default/lib/python3.8/site-packages/starkware/starknet/services/api/messages.py:8: in <module>
    from starkware.starknet.business_logic.internal_transaction import InternalInvokeFunction
.tox/default/lib/python3.8/site-packages/starkware/starknet/business_logic/internal_transaction.py:51: in <module>
    from starkware.starknet.services.api.gateway.transaction import Deploy, InvokeFunction, Transaction
.tox/default/lib/python3.8/site-packages/starkware/starknet/services/api/gateway/transaction.py:153: in <module>
    class TransactionSchema(OneOfSchema):
.tox/default/lib/python3.8/site-packages/starkware/starknet/services/api/gateway/transaction.py:164: in TransactionSchema
    TransactionType.DEPLOY.name: Deploy.Schema,
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/lazy_class_attribute.py:33: in __get__
    setattr(cls, self.name, self.func())
... (Omitting a number of lines due to maximum character limit)
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:528: in _field_for_generic_type
    children = tuple(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:529: in <genexpr>
    field_for_schema(arg, base_schema=base_schema, typ_frame=typ_frame)
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:718: in field_for_schema
    or _internal_class_schema(typ, base_schema, typ_frame)
E   RecursionError: maximum recursion depth exceeded
!!! Recursion detected (same locals & position)
__________________________________________________________________________________ ERROR collecting tests/access/test_Ownable.py __________________________________________________________________________________
tests/access/test_Ownable.py:2: in <module>
    from starkware.starknet.testing.starknet import Starknet
.tox/default/lib/python3.8/site-packages/starkware/starknet/testing/starknet.py:7: in <module>
    from starkware.starknet.services.api.messages import StarknetMessageToL1
.tox/default/lib/python3.8/site-packages/starkware/starknet/services/api/messages.py:8: in <module>
    from starkware.starknet.business_logic.internal_transaction import InternalInvokeFunction
.tox/default/lib/python3.8/site-packages/starkware/starknet/business_logic/internal_transaction.py:51: in <module>
    from starkware.starknet.services.api.gateway.transaction import Deploy, InvokeFunction, Transaction
.tox/default/lib/python3.8/site-packages/starkware/starknet/services/api/gateway/transaction.py:153: in <module>
    class TransactionSchema(OneOfSchema):
.tox/default/lib/python3.8/site-packages/starkware/starknet/services/api/gateway/transaction.py:164: in TransactionSchema
    TransactionType.DEPLOY.name: Deploy.Schema,
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/lazy_class_attribute.py:33: in __get__
    setattr(cls, self.name, self.func())
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:350: in class_schema
    return _internal_class_schema(clazz, base_schema, clazz_frame)
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:393: in _internal_class_schema
    attributes.update(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:396: in <genexpr>
    field_for_schema(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:711: in field_for_schema
    nested_schema = getattr(typ, "Schema", None)
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/lazy_class_attribute.py:33: in __get__
    setattr(cls, self.name, self.func())
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:350: in class_schema
    return _internal_class_schema(clazz, base_schema, clazz_frame)
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:393: in _internal_class_schema
    attributes.update(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:396: in <genexpr>
    field_for_schema(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:711: in field_for_schema
    nested_schema = getattr(typ, "Schema", None)
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/lazy_class_attribute.py:33: in __get__
    setattr(cls, self.name, self.func())
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:350: in class_schema
    return _internal_class_schema(clazz, base_schema, clazz_frame)
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:393: in _internal_class_schema
    attributes.update(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:396: in <genexpr>
    field_for_schema(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:686: in field_for_schema
    generic_field = _field_for_generic_type(typ, base_schema, typ_frame, **metadata)
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:559: in _field_for_generic_type
    return field_for_schema(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:711: in field_for_schema
    nested_schema = getattr(typ, "Schema", None)
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/lazy_class_attribute.py:33: in __get__
    setattr(cls, self.name, self.func())
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:350: in class_schema
    return _internal_class_schema(clazz, base_schema, clazz_frame)
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:393: in _internal_class_schema
    attributes.update(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:396: in <genexpr>
    field_for_schema(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:686: in field_for_schema
    generic_field = _field_for_generic_type(typ, base_schema, typ_frame, **metadata)
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:545: in _field_for_generic_type
    values=field_for_schema(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:718: in field_for_schema
    or _internal_class_schema(typ, base_schema, typ_frame)
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:393: in _internal_class_schema
    attributes.update(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:396: in <genexpr>
    field_for_schema(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:718: in field_for_schema
    or _internal_class_schema(typ, base_schema, typ_frame)
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:393: in _internal_class_schema
    attributes.update(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:396: in <genexpr>
    field_for_schema(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:686: in field_for_schema
    generic_field = _field_for_generic_type(typ, base_schema, typ_frame, **metadata)
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:559: in _field_for_generic_type
    return field_for_schema(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:686: in field_for_schema
    generic_field = _field_for_generic_type(typ, base_schema, typ_frame, **metadata)
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:528: in _field_for_generic_type
    children = tuple(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:529: in <genexpr>
    field_for_schema(arg, base_schema=base_schema, typ_frame=typ_frame)
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:718: in field_for_schema
    or _internal_class_schema(typ, base_schema, typ_frame)
E   RecursionError: maximum recursion depth exceeded
!!! Recursion detected (same locals & position)
_________________________________________________________________________________ ERROR collecting tests/account/test_Account.py __________________________________________________________________________________
ImportError while importing test module 'dir/cairo-contracts/tests/account/test_Account.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/account/test_Account.py:5: in <module>
    from utils import Signer, assert_revert, contract_path
tests/utils.py:11: in <module>
    from starkware.starknet.business_logic.execution.objects import Event
E   ModuleNotFoundError: No module named 'starkware.starknet.business_logic.execution'
_____________________________________________________________________________ ERROR collecting tests/account/test_AddressRegistry.py ______________________________________________________________________________
ImportError while importing test module 'dir/cairo/cairo-contracts/tests/account/test_AddressRegistry.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/account/test_AddressRegistry.py:3: in <module>
    from utils import Signer, contract_path
tests/utils.py:11: in <module>
    from starkware.starknet.business_logic.execution.objects import Event
E   ModuleNotFoundError: No module named 'starkware.starknet.business_logic.execution'
__________________________________________________________________________________ ERROR collecting tests/access/test_Ownable.py __________________________________________________________________________________
tests/access/test_Ownable.py:2: in <module>
    from starkware.starknet.testing.starknet import Starknet
.tox/default/lib/python3.8/site-packages/starkware/starknet/testing/starknet.py:7: in <module>
    from starkware.starknet.services.api.messages import StarknetMessageToL1
.tox/default/lib/python3.8/site-packages/starkware/starknet/services/api/messages.py:8: in <module>
    from starkware.starknet.business_logic.internal_transaction import InternalInvokeFunction
.tox/default/lib/python3.8/site-packages/starkware/starknet/business_logic/internal_transaction.py:51: in <module>
    from starkware.starknet.services.api.gateway.transaction import Deploy, InvokeFunction, Transaction
.tox/default/lib/python3.8/site-packages/starkware/starknet/services/api/gateway/transaction.py:153: in <module>
    class TransactionSchema(OneOfSchema):
.tox/default/lib/python3.8/site-packages/starkware/starknet/services/api/gateway/transaction.py:164: in TransactionSchema
    TransactionType.DEPLOY.name: Deploy.Schema,
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/lazy_class_attribute.py:33: in __get__
    setattr(cls, self.name, self.func())
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:350: in class_schema
    return _internal_class_schema(clazz, base_schema, clazz_frame)
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:393: in _internal_class_schema
    attributes.update(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:396: in <genexpr>
    field_for_schema(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:711: in field_for_schema
    nested_schema = getattr(typ, "Schema", None)
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/lazy_class_attribute.py:33: in __get__
    setattr(cls, self.name, self.func())
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:350: in class_schema
    return _internal_class_schema(clazz, base_schema, clazz_frame)
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:393: in _internal_class_schema
    attributes.update(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:396: in <genexpr>
    field_for_schema(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:711: in field_for_schema
    nested_schema = getattr(typ, "Schema", None)
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/lazy_class_attribute.py:33: in __get__
    setattr(cls, self.name, self.func())
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:350: in class_schema
    return _internal_class_schema(clazz, base_schema, clazz_frame)
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:393: in _internal_class_schema
    attributes.update(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:396: in <genexpr>
    field_for_schema(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:686: in field_for_schema
    generic_field = _field_for_generic_type(typ, base_schema, typ_frame, **metadata)
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:559: in _field_for_generic_type
    return field_for_schema(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:711: in field_for_schema
    nested_schema = getattr(typ, "Schema", None)
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/lazy_class_attribute.py:33: in __get__
    setattr(cls, self.name, self.func())
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:350: in class_schema
    return _internal_class_schema(clazz, base_schema, clazz_frame)
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:393: in _internal_class_schema
    attributes.update(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:396: in <genexpr>
    field_for_schema(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:686: in field_for_schema
    generic_field = _field_for_generic_type(typ, base_schema, typ_frame, **metadata)
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:545: in _field_for_generic_type
    values=field_for_schema(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:718: in field_for_schema
    or _internal_class_schema(typ, base_schema, typ_frame)
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:393: in _internal_class_schema
    attributes.update(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:396: in <genexpr>
    field_for_schema(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:718: in field_for_schema
    or _internal_class_schema(typ, base_schema, typ_frame)
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:393: in _internal_class_schema
    attributes.update(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:396: in <genexpr>
    field_for_schema(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:686: in field_for_schema
    generic_field = _field_for_generic_type(typ, base_schema, typ_frame, **metadata)
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:559: in _field_for_generic_type
    return field_for_schema(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:686: in field_for_schema
    generic_field = _field_for_generic_type(typ, base_schema, typ_frame, **metadata)
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:528: in _field_for_generic_type
    children = tuple(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:529: in <genexpr>
    field_for_schema(arg, base_schema=base_schema, typ_frame=typ_frame)
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:718: in field_for_schema
    or _internal_class_schema(typ, base_schema, typ_frame)
E   RecursionError: maximum recursion depth exceeded
!!! Recursion detected (same locals & position)
_______________________________________________________________________________ ERROR collecting tests/introspection/test_ERC165.py _______________________________________________________________________________
ImportError while importing test module '/home/mynameuhh/Documents/cairo/cairo-contracts/tests/introspection/test_ERC165.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/introspection/test_ERC165.py:3: in <module>
    from utils import assert_revert, contract_path
tests/utils.py:11: in <module>
    from starkware.starknet.business_logic.execution.objects import Event
E   ModuleNotFoundError: No module named 'starkware.starknet.business_logic.execution'
__________________________________________________________________________________ ERROR collecting tests/access/test_Ownable.py __________________________________________________________________________________
tests/access/test_Ownable.py:2: in <module>
    from starkware.starknet.testing.starknet import Starknet
.tox/default/lib/python3.8/site-packages/starkware/starknet/testing/starknet.py:7: in <module>
    from starkware.starknet.services.api.messages import StarknetMessageToL1
.tox/default/lib/python3.8/site-packages/starkware/starknet/services/api/messages.py:8: in <module>
    from starkware.starknet.business_logic.internal_transaction import InternalInvokeFunction
.tox/default/lib/python3.8/site-packages/starkware/starknet/business_logic/internal_transaction.py:51: in <module>
    from starkware.starknet.services.api.gateway.transaction import Deploy, InvokeFunction, Transaction
.tox/default/lib/python3.8/site-packages/starkware/starknet/services/api/gateway/transaction.py:153: in <module>
    class TransactionSchema(OneOfSchema):
.tox/default/lib/python3.8/site-packages/starkware/starknet/services/api/gateway/transaction.py:164: in TransactionSchema
    TransactionType.DEPLOY.name: Deploy.Schema,
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/lazy_class_attribute.py:33: in __get__
    setattr(cls, self.name, self.func())
... (Omitting a number of lines due to character limit)
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:559: in _field_for_generic_type
    return field_for_schema(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:686: in field_for_schema
    generic_field = _field_for_generic_type(typ, base_schema, typ_frame, **metadata)
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:528: in _field_for_generic_type
    children = tuple(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:529: in <genexpr>
    field_for_schema(arg, base_schema=base_schema, typ_frame=typ_frame)
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:718: in field_for_schema
    or _internal_class_schema(typ, base_schema, typ_frame)
E   RecursionError: maximum recursion depth exceeded
!!! Recursion detected (same locals & position)
__________________________________________________________________________________ ERROR collecting tests/access/test_Ownable.py __________________________________________________________________________________
tests/access/test_Ownable.py:2: in <module>
    from starkware.starknet.testing.starknet import Starknet
.tox/default/lib/python3.8/site-packages/starkware/starknet/testing/starknet.py:7: in <module>
    from starkware.starknet.services.api.messages import StarknetMessageToL1
.tox/default/lib/python3.8/site-packages/starkware/starknet/services/api/messages.py:8: in <module>
    from starkware.starknet.business_logic.internal_transaction import InternalInvokeFunction
.tox/default/lib/python3.8/site-packages/starkware/starknet/business_logic/internal_transaction.py:51: in <module>
    from starkware.starknet.services.api.gateway.transaction import Deploy, InvokeFunction, Transaction
.tox/default/lib/python3.8/site-packages/starkware/starknet/services/api/gateway/transaction.py:153: in <module>
    class TransactionSchema(OneOfSchema):
.tox/default/lib/python3.8/site-packages/starkware/starknet/services/api/gateway/transaction.py:164: in TransactionSchema
    TransactionType.DEPLOY.name: Deploy.Schema,
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/lazy_class_attribute.py:33: in __get__
    setattr(cls, self.name, self.func())
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:350: in class_schema
    return _internal_class_schema(clazz, base_schema, clazz_frame)
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:393: in _internal_class_schema
    attributes.update(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:396: in <genexpr>
    field_for_schema(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:711: in field_for_schema
    nested_schema = getattr(typ, "Schema", None)
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/lazy_class_attribute.py:33: in __get__
    setattr(cls, self.name, self.func())
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:350: in class_schema
    return _internal_class_schema(clazz, base_schema, clazz_frame)
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:393: in _internal_class_schema
    attributes.update(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:396: in <genexpr>
    field_for_schema(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:711: in field_for_schema
    nested_schema = getattr(typ, "Schema", None)
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/lazy_class_attribute.py:33: in __get__
    setattr(cls, self.name, self.func())
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:350: in class_schema
    return _internal_class_schema(clazz, base_schema, clazz_frame)
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:393: in _internal_class_schema
    attributes.update(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:396: in <genexpr>
    field_for_schema(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:686: in field_for_schema
    generic_field = _field_for_generic_type(typ, base_schema, typ_frame, **metadata)
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:559: in _field_for_generic_type
    return field_for_schema(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:711: in field_for_schema
    nested_schema = getattr(typ, "Schema", None)
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/lazy_class_attribute.py:33: in __get__
    setattr(cls, self.name, self.func())
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:350: in class_schema
    return _internal_class_schema(clazz, base_schema, clazz_frame)
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:393: in _internal_class_schema
    attributes.update(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:396: in <genexpr>
    field_for_schema(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:686: in field_for_schema
    generic_field = _field_for_generic_type(typ, base_schema, typ_frame, **metadata)
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:545: in _field_for_generic_type
    values=field_for_schema(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:718: in field_for_schema
    or _internal_class_schema(typ, base_schema, typ_frame)
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:393: in _internal_class_schema
    attributes.update(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:396: in <genexpr>
    field_for_schema(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:718: in field_for_schema
    or _internal_class_schema(typ, base_schema, typ_frame)
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:393: in _internal_class_schema
    attributes.update(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:396: in <genexpr>
    field_for_schema(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:686: in field_for_schema
    generic_field = _field_for_generic_type(typ, base_schema, typ_frame, **metadata)
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:559: in _field_for_generic_type
    return field_for_schema(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:686: in field_for_schema
    generic_field = _field_for_generic_type(typ, base_schema, typ_frame, **metadata)
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:528: in _field_for_generic_type
    children = tuple(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:529: in <genexpr>
    field_for_schema(arg, base_schema=base_schema, typ_frame=typ_frame)
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:718: in field_for_schema
    or _internal_class_schema(typ, base_schema, typ_frame)
E   RecursionError: maximum recursion depth exceeded
!!! Recursion detected (same locals & position)
______________________________________________________________________________ ERROR collecting tests/security/test_initializable.py ______________________________________________________________________________
ImportError while importing test module '/home/mynameuhh/Documents/cairo/cairo-contracts/tests/security/test_initializable.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/security/test_initializable.py:3: in <module>
    from utils import TRUE, FALSE, assert_revert, contract_path
tests/utils.py:11: in <module>
    from starkware.starknet.business_logic.execution.objects import Event
E   ModuleNotFoundError: No module named 'starkware.starknet.business_logic.execution'
_______________________________________________________________________________ ERROR collecting tests/security/test_reentrancy.py ________________________________________________________________________________
ImportError while importing test module '/home/mynameuhh/Documents/cairo/cairo-contracts/tests/security/test_reentrancy.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/security/test_reentrancy.py:4: in <module>
    from utils import (
tests/utils.py:11: in <module>
    from starkware.starknet.business_logic.execution.objects import Event
E   ModuleNotFoundError: No module named 'starkware.starknet.business_logic.execution'
________________________________________________________________________________ ERROR collecting tests/security/test_safemath.py _________________________________________________________________________________
ImportError while importing test module '/home/mynameuhh/Documents/cairo/cairo-contracts/tests/security/test_safemath.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/security/test_safemath.py:3: in <module>
    from utils import (
tests/utils.py:11: in <module>
    from starkware.starknet.business_logic.execution.objects import Event
E   ModuleNotFoundError: No module named 'starkware.starknet.business_logic.execution'
________________________________________________________________________________ ERROR collecting tests/token/erc20/test_ERC20.py _________________________________________________________________________________
ImportError while importing test module '/home/mynameuhh/Documents/cairo/cairo-contracts/tests/token/erc20/test_ERC20.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/token/erc20/test_ERC20.py:3: in <module>
    from utils import (
tests/utils.py:11: in <module>
    from starkware.starknet.business_logic.execution.objects import Event
E   ModuleNotFoundError: No module named 'starkware.starknet.business_logic.execution'
_________________________________________________________________________ ERROR collecting tests/token/erc20/test_ERC20_Burnable_mock.py __________________________________________________________________________
ImportError while importing test module '/home/mynameuhh/Documents/cairo/cairo-contracts/tests/token/erc20/test_ERC20_Burnable_mock.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/token/erc20/test_ERC20_Burnable_mock.py:4: in <module>
    from utils import (
tests/utils.py:11: in <module>
    from starkware.starknet.business_logic.execution.objects import Event
E   ModuleNotFoundError: No module named 'starkware.starknet.business_logic.execution'
__________________________________________________________________________________ ERROR collecting tests/access/test_Ownable.py __________________________________________________________________________________
tests/access/test_Ownable.py:2: in <module>
    from starkware.starknet.testing.starknet import Starknet
.tox/default/lib/python3.8/site-packages/starkware/starknet/testing/starknet.py:7: in <module>
    from starkware.starknet.services.api.messages import StarknetMessageToL1
.tox/default/lib/python3.8/site-packages/starkware/starknet/services/api/messages.py:8: in <module>
    from starkware.starknet.business_logic.internal_transaction import InternalInvokeFunction
.tox/default/lib/python3.8/site-packages/starkware/starknet/business_logic/internal_transaction.py:51: in <module>
    from starkware.starknet.services.api.gateway.transaction import Deploy, InvokeFunction, Transaction
.tox/default/lib/python3.8/site-packages/starkware/starknet/services/api/gateway/transaction.py:153: in <module>
    class TransactionSchema(OneOfSchema):
.tox/default/lib/python3.8/site-packages/starkware/starknet/services/api/gateway/transaction.py:164: in TransactionSchema
    TransactionType.DEPLOY.name: Deploy.Schema,
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/lazy_class_attribute.py:33: in __get__
    setattr(cls, self.name, self.func())
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:350: in class_schema
    return _internal_class_schema(clazz, base_schema, clazz_frame)
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:393: in _internal_class_schema
    attributes.update(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:396: in <genexpr>
    field_for_schema(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:711: in field_for_schema
    nested_schema = getattr(typ, "Schema", None)
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/lazy_class_attribute.py:33: in __get__
    setattr(cls, self.name, self.func())
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:350: in class_schema
    return _internal_class_schema(clazz, base_schema, clazz_frame)
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:393: in _internal_class_schema
    attributes.update(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:396: in <genexpr>
    field_for_schema(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:711: in field_for_schema
    nested_schema = getattr(typ, "Schema", None)
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/lazy_class_attribute.py:33: in __get__
    setattr(cls, self.name, self.func())
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:350: in class_schema
    return _internal_class_schema(clazz, base_schema, clazz_frame)
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:393: in _internal_class_schema
    attributes.update(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:396: in <genexpr>
    field_for_schema(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:686: in field_for_schema
    generic_field = _field_for_generic_type(typ, base_schema, typ_frame, **metadata)
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:559: in _field_for_generic_type
    return field_for_schema(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:711: in field_for_schema
    nested_schema = getattr(typ, "Schema", None)
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/lazy_class_attribute.py:33: in __get__
    setattr(cls, self.name, self.func())
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:350: in class_schema
    return _internal_class_schema(clazz, base_schema, clazz_frame)
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:393: in _internal_class_schema
    attributes.update(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:396: in <genexpr>
    field_for_schema(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:686: in field_for_schema
    generic_field = _field_for_generic_type(typ, base_schema, typ_frame, **metadata)
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:545: in _field_for_generic_type
    values=field_for_schema(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:718: in field_for_schema
    or _internal_class_schema(typ, base_schema, typ_frame)
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:393: in _internal_class_schema
    attributes.update(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:396: in <genexpr>
    field_for_schema(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:718: in field_for_schema
    or _internal_class_schema(typ, base_schema, typ_frame)
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:393: in _internal_class_schema
    attributes.update(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:396: in <genexpr>
    field_for_schema(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:686: in field_for_schema
    generic_field = _field_for_generic_type(typ, base_schema, typ_frame, **metadata)
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:559: in _field_for_generic_type
    return field_for_schema(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:686: in field_for_schema
    generic_field = _field_for_generic_type(typ, base_schema, typ_frame, **metadata)
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:528: in _field_for_generic_type
    children = tuple(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:529: in <genexpr>
    field_for_schema(arg, base_schema=base_schema, typ_frame=typ_frame)
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:718: in field_for_schema
    or _internal_class_schema(typ, base_schema, typ_frame)
E   RecursionError: maximum recursion depth exceeded
!!! Recursion detected (same locals & position)
____________________________________________________________________________ ERROR collecting tests/token/erc20/test_ERC20_Mintable.py ____________________________________________________________________________
ImportError while importing test module '/home/mynameuhh/Documents/cairo/cairo-contracts/tests/token/erc20/test_ERC20_Mintable.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/token/erc20/test_ERC20_Mintable.py:3: in <module>
    from utils import (
tests/utils.py:11: in <module>
    from starkware.starknet.business_logic.execution.objects import Event
E   ModuleNotFoundError: No module named 'starkware.starknet.business_logic.execution'
__________________________________________________________________________________ ERROR collecting tests/access/test_Ownable.py __________________________________________________________________________________
tests/access/test_Ownable.py:2: in <module>
    from starkware.starknet.testing.starknet import Starknet
.tox/default/lib/python3.8/site-packages/starkware/starknet/testing/starknet.py:7: in <module>
    from starkware.starknet.services.api.messages import StarknetMessageToL1
.tox/default/lib/python3.8/site-packages/starkware/starknet/services/api/messages.py:8: in <module>
    from starkware.starknet.business_logic.internal_transaction import InternalInvokeFunction
.tox/default/lib/python3.8/site-packages/starkware/starknet/business_logic/internal_transaction.py:51: in <module>
    from starkware.starknet.services.api.gateway.transaction import Deploy, InvokeFunction, Transaction
.tox/default/lib/python3.8/site-packages/starkware/starknet/services/api/gateway/transaction.py:153: in <module>
    class TransactionSchema(OneOfSchema):
.tox/default/lib/python3.8/site-packages/starkware/starknet/services/api/gateway/transaction.py:164: in TransactionSchema
    TransactionType.DEPLOY.name: Deploy.Schema,
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/lazy_class_attribute.py:33: in __get__
    setattr(cls, self.name, self.func())
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:350: in class_schema
    return _internal_class_schema(clazz, base_schema, clazz_frame)
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:393: in _internal_class_schema
    attributes.update(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:396: in <genexpr>
    field_for_schema(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:711: in field_for_schema
    nested_schema = getattr(typ, "Schema", None)
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/lazy_class_attribute.py:33: in __get__
    setattr(cls, self.name, self.func())
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:350: in class_schema
    return _internal_class_schema(clazz, base_schema, clazz_frame)
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:393: in _internal_class_schema
    attributes.update(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:396: in <genexpr>
    field_for_schema(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:711: in field_for_schema
    nested_schema = getattr(typ, "Schema", None)
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/lazy_class_attribute.py:33: in __get__
    setattr(cls, self.name, self.func())
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:350: in class_schema
    return _internal_class_schema(clazz, base_schema, clazz_frame)
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:393: in _internal_class_schema
    attributes.update(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:396: in <genexpr>
    field_for_schema(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:686: in field_for_schema
    generic_field = _field_for_generic_type(typ, base_schema, typ_frame, **metadata)
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:559: in _field_for_generic_type
    return field_for_schema(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:711: in field_for_schema
    nested_schema = getattr(typ, "Schema", None)
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/lazy_class_attribute.py:33: in __get__
    setattr(cls, self.name, self.func())
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:350: in class_schema
    return _internal_class_schema(clazz, base_schema, clazz_frame)
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:393: in _internal_class_schema
    attributes.update(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:396: in <genexpr>
    field_for_schema(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:686: in field_for_schema
    generic_field = _field_for_generic_type(typ, base_schema, typ_frame, **metadata)
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:545: in _field_for_generic_type
    values=field_for_schema(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:718: in field_for_schema
    or _internal_class_schema(typ, base_schema, typ_frame)
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:393: in _internal_class_schema
    attributes.update(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:396: in <genexpr>
    field_for_schema(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:718: in field_for_schema
    or _internal_class_schema(typ, base_schema, typ_frame)
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:393: in _internal_class_schema
    attributes.update(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:396: in <genexpr>
    field_for_schema(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:686: in field_for_schema
    generic_field = _field_for_generic_type(typ, base_schema, typ_frame, **metadata)
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:559: in _field_for_generic_type
    return field_for_schema(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:686: in field_for_schema
    generic_field = _field_for_generic_type(typ, base_schema, typ_frame, **metadata)
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:528: in _field_for_generic_type
    children = tuple(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:529: in <genexpr>
    field_for_schema(arg, base_schema=base_schema, typ_frame=typ_frame)
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:718: in field_for_schema
    or _internal_class_schema(typ, base_schema, typ_frame)
E   RecursionError: maximum recursion depth exceeded
!!! Recursion detected (same locals & position)
____________________________________________________________________________ ERROR collecting tests/token/erc20/test_ERC20_Pausable.py ____________________________________________________________________________
ImportError while importing test module '/home/mynameuhh/Documents/cairo/cairo-contracts/tests/token/erc20/test_ERC20_Pausable.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/token/erc20/test_ERC20_Pausable.py:3: in <module>
    from utils import (
tests/utils.py:11: in <module>
    from starkware.starknet.business_logic.execution.objects import Event
E   ModuleNotFoundError: No module named 'starkware.starknet.business_logic.execution'
__________________________________________________________________________________ ERROR collecting tests/access/test_Ownable.py __________________________________________________________________________________
tests/access/test_Ownable.py:2: in <module>
    from starkware.starknet.testing.starknet import Starknet
.tox/default/lib/python3.8/site-packages/starkware/starknet/testing/starknet.py:7: in <module>
    from starkware.starknet.services.api.messages import StarknetMessageToL1
.tox/default/lib/python3.8/site-packages/starkware/starknet/services/api/messages.py:8: in <module>
    from starkware.starknet.business_logic.internal_transaction import InternalInvokeFunction
.tox/default/lib/python3.8/site-packages/starkware/starknet/business_logic/internal_transaction.py:51: in <module>
    from starkware.starknet.services.api.gateway.transaction import Deploy, InvokeFunction, Transaction
.tox/default/lib/python3.8/site-packages/starkware/starknet/services/api/gateway/transaction.py:153: in <module>
    class TransactionSchema(OneOfSchema):
.tox/default/lib/python3.8/site-packages/starkware/starknet/services/api/gateway/transaction.py:164: in TransactionSchema
    TransactionType.DEPLOY.name: Deploy.Schema,
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/lazy_class_attribute.py:33: in __get__
    setattr(cls, self.name, self.func())
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:350: in class_schema
    return _internal_class_schema(clazz, base_schema, clazz_frame)
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:393: in _internal_class_schema
    attributes.update(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:396: in <genexpr>
    field_for_schema(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:711: in field_for_schema
    nested_schema = getattr(typ, "Schema", None)
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/lazy_class_attribute.py:33: in __get__
    setattr(cls, self.name, self.func())
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:350: in class_schema
    return _internal_class_schema(clazz, base_schema, clazz_frame)
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:393: in _internal_class_schema
    attributes.update(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:396: in <genexpr>
    field_for_schema(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:711: in field_for_schema
    nested_schema = getattr(typ, "Schema", None)
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/lazy_class_attribute.py:33: in __get__
    setattr(cls, self.name, self.func())
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:350: in class_schema
    return _internal_class_schema(clazz, base_schema, clazz_frame)
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:393: in _internal_class_schema
    attributes.update(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:396: in <genexpr>
    field_for_schema(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:686: in field_for_schema
    generic_field = _field_for_generic_type(typ, base_schema, typ_frame, **metadata)
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:559: in _field_for_generic_type
    return field_for_schema(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:711: in field_for_schema
    nested_schema = getattr(typ, "Schema", None)
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/lazy_class_attribute.py:33: in __get__
    setattr(cls, self.name, self.func())
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:350: in class_schema
    return _internal_class_schema(clazz, base_schema, clazz_frame)
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:393: in _internal_class_schema
    attributes.update(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:396: in <genexpr>
    field_for_schema(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:686: in field_for_schema
    generic_field = _field_for_generic_type(typ, base_schema, typ_frame, **metadata)
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:545: in _field_for_generic_type
    values=field_for_schema(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:718: in field_for_schema
    or _internal_class_schema(typ, base_schema, typ_frame)
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:393: in _internal_class_schema
    attributes.update(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:396: in <genexpr>
    field_for_schema(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:718: in field_for_schema
    or _internal_class_schema(typ, base_schema, typ_frame)
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:393: in _internal_class_schema
    attributes.update(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:396: in <genexpr>
    field_for_schema(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:686: in field_for_schema
    generic_field = _field_for_generic_type(typ, base_schema, typ_frame, **metadata)
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:559: in _field_for_generic_type
    return field_for_schema(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:686: in field_for_schema
    generic_field = _field_for_generic_type(typ, base_schema, typ_frame, **metadata)
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:528: in _field_for_generic_type
    children = tuple(
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:529: in <genexpr>
    field_for_schema(arg, base_schema=base_schema, typ_frame=typ_frame)
.tox/default/lib/python3.8/site-packages/marshmallow_dataclass/__init__.py:718: in field_for_schema
    or _internal_class_schema(typ, base_schema, typ_frame)
E   RecursionError: maximum recursion depth exceeded
!!! Recursion detected (same locals & position)
__________________________________________________________________________ ERROR collecting tests/token/erc20/test_ERC20_Upgradeable.py ___________________________________________________________________________
ImportError while importing test module '/home/mynameuhh/Documents/cairo/cairo-contracts/tests/token/erc20/test_ERC20_Upgradeable.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/token/erc20/test_ERC20_Upgradeable.py:3: in <module>
    from utils import (
tests/utils.py:11: in <module>
    from starkware.starknet.business_logic.execution.objects import Event
E   ModuleNotFoundError: No module named 'starkware.starknet.business_logic.execution'
______________________________________________________________________ ERROR collecting tests/token/erc721/test_ERC721_Mintable_Burnable.py _______________________________________________________________________
ImportError while importing test module '/home/mynameuhh/Documents/cairo/cairo-contracts/tests/token/erc721/test_ERC721_Mintable_Burnable.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/token/erc721/test_ERC721_Mintable_Burnable.py:3: in <module>
    from utils import (
tests/utils.py:11: in <module>
    from starkware.starknet.business_logic.execution.objects import Event
E   ModuleNotFoundError: No module named 'starkware.starknet.business_logic.execution'
______________________________________________________________________ ERROR collecting tests/token/erc721/test_ERC721_Mintable_Pausable.py _______________________________________________________________________
ImportError while importing test module '/home/mynameuhh/Documents/cairo/cairo-contracts/tests/token/erc721/test_ERC721_Mintable_Pausable.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/token/erc721/test_ERC721_Mintable_Pausable.py:3: in <module>
    from utils import (
tests/utils.py:11: in <module>
    from starkware.starknet.business_logic.execution.objects import Event
E   ModuleNotFoundError: No module named 'starkware.starknet.business_logic.execution'
______________________________________________________________________ ERROR collecting tests/token/erc721/test_ERC721_SafeMintable_mock.py _______________________________________________________________________
ImportError while importing test module '/home/mynameuhh/Documents/cairo/cairo-contracts/tests/token/erc721/test_ERC721_SafeMintable_mock.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/token/erc721/test_ERC721_SafeMintable_mock.py:3: in <module>
    from utils import (
tests/utils.py:11: in <module>
    from starkware.starknet.business_logic.execution.objects import Event
E   ModuleNotFoundError: No module named 'starkware.starknet.business_logic.execution'
___________________________________________________________ ERROR collecting tests/token/erc721_enumerable/test_ERC721_Enumerable_Mintable_Burnable.py ____________________________________________________________
ImportError while importing test module '/home/mynameuhh/Documents/cairo/cairo-contracts/tests/token/erc721_enumerable/test_ERC721_Enumerable_Mintable_Burnable.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/token/erc721_enumerable/test_ERC721_Enumerable_Mintable_Burnable.py:3: in <module>
    from utils import (
tests/utils.py:11: in <module>
    from starkware.starknet.business_logic.execution.objects import Event
E   ModuleNotFoundError: No module named 'starkware.starknet.business_logic.execution'
__________________________________________________________________________________ ERROR collecting tests/upgrades/test_Proxy.py __________________________________________________________________________________
ImportError while importing test module '/home/mynameuhh/Documents/cairo/cairo-contracts/tests/upgrades/test_Proxy.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/upgrades/test_Proxy.py:3: in <module>
    from utils import (
tests/utils.py:11: in <module>
    from starkware.starknet.business_logic.execution.objects import Event
E   ModuleNotFoundError: No module named 'starkware.starknet.business_logic.execution'
________________________________________________________________________________ ERROR collecting tests/upgrades/test_upgrades.py _________________________________________________________________________________
ImportError while importing test module '/home/mynameuhh/Documents/cairo/cairo-contracts/tests/upgrades/test_upgrades.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/upgrades/test_upgrades.py:3: in <module>
    from utils import (
tests/utils.py:11: in <module>
    from starkware.starknet.business_logic.execution.objects import Event
E   ModuleNotFoundError: No module named 'starkware.starknet.business_logic.execution'
================================================================================================ warnings summary =================================================================================================
.tox/default/lib/python3.8/site-packages/frozendict/__init__.py:16
.tox/default/lib/python3.8/site-packages/frozendict/__init__.py:16
.tox/default/lib/python3.8/site-packages/frozendict/__init__.py:16
.tox/default/lib/python3.8/site-packages/frozendict/__init__.py:16
.tox/default/lib/python3.8/site-packages/frozendict/__init__.py:16
.tox/default/lib/python3.8/site-packages/frozendict/__init__.py:16
.tox/default/lib/python3.8/site-packages/frozendict/__init__.py:16
.tox/default/lib/python3.8/site-packages/frozendict/__init__.py:16
  /home/mynameuhh/Documents/cairo/cairo-contracts/.tox/default/lib/python3.8/site-packages/frozendict/__init__.py:16: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.10 it will stop working
    class frozendict(collections.Mapping):

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
============================================================================================= short test summary info =============================================================================================
ERROR tests/access/test_Ownable.py - RecursionError: maximum recursion depth exceeded
ERROR tests/access/test_Ownable.py - RecursionError: maximum recursion depth exceeded
... (Omitting some lines to get under 65k character limit)
ERROR tests/upgrades/test_upgrades.py
========================================================================================= 8 warnings, 25 errors in 7.18s ==========================================================================================
ERROR: InvocationError for command /home/mynameuhh/Documents/cairo/cairo-contracts/.tox/default/bin/pytest (exited with code 1)
_____________________________________________________________________________________________________ summary _____________________________________________________________________________________________________
ERROR:   default: commands failed

There are essentially two types of errors. The first being a maximum recursion error as part of the marshmallow_dataclass package. The second being ModuleNotFoundError: No module named 'starkware.starknet.business_logic.execution'.

As mentioned, I have tried installing tox both from the pip package manager, as well as apt. They are both seemingly the same.

Any help with how I can get this working would be greatly appreciated!
Thank you.

@CalabashSquash
Copy link
Author

I had to omit a some lines in some of the stack traces (Noted inline). Please let me know if you would like the full stack traces, or if there is any other info you would like.

@andrew-fleming
Copy link
Collaborator

Hey @CalabashSquash, thanks for posting this issue! I just submitted #286 to fix both of these issues. If you'd prefer not to wait, you can adjust your local tox as shown in the PR.

@martriay
Copy link
Contributor

Fixed in #286

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants