You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ python3 -m pytest --cov=eth2spec.phase0.minimal eth2spec
ImportError while loading conftest '/home/ubuntu/specs/consensus-specs/tests/core/pyspec/eth2spec/test/conftest.py'.
eth2spec/test/conftest.py:1: in <module>
from eth2spec.test import context
eth2spec/test/context.py:6: in <module>
from eth2spec.phase0 import mainnet as spec_phase0_mainnet, minimal as spec_phase0_minimal
eth2spec/phase0/__init__.py:1: in <module>
from . import mainnet as spec # noqa:F401
eth2spec/phase0/mainnet.py:15: in <module>
from eth2spec.utils import bls
eth2spec/utils/bls.py:21: in <module>
from py_arkworks_bls12381 import (
../../../venv/lib/python3.8/site-packages/py_arkworks_bls12381/__init__.py:1: in <module>
from .py_arkworks_bls12381 import *
E ImportError: PyO3 modules may only be initialized once per interpreter process
This error appears when running running tests with any --cov flag.
The other flags (-n, --disable-bls, --cov-report, and --cov-branch) do not cause this error - able to test successfully with these.
What I've tried so far:
(Thanks @hwwhww!) Uninstall py_arkworks_bls12381 & build from source instead: $ pip install --no-binary py_arkworks_bls12381 py_arkworks_bls12381. This did not help with the error.
The text was updated successfully, but these errors were encountered:
Encountering an error when running tests. I'm using
consensus-specs
@ 0b76c83.Setup
Error
--cov
flag.-n
,--disable-bls
,--cov-report
, and--cov-branch
) do not cause this error - able to test successfully with these.What I've tried so far:
py_arkworks_bls12381
& build from source instead:$ pip install --no-binary py_arkworks_bls12381 py_arkworks_bls12381
. This did not help with the error.The text was updated successfully, but these errors were encountered: