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

Error running make test: PyO3 modules may only be initialized once #3936

Open
jtraglia opened this issue Sep 20, 2024 · 0 comments
Open

Error running make test: PyO3 modules may only be initialized once #3936

jtraglia opened this issue Sep 20, 2024 · 0 comments

Comments

@jtraglia
Copy link
Member

When running make test I get the following error:

ImportError while loading conftest '<path>/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.utils import bls
eth2spec/utils/bls.py:24: in <module>
    from py_arkworks_bls12381 import (
../../../venv/lib/python3.12/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
make: *** [test] Error 4

To no alas, I spent a little time trying to fix this. Doesn't seem like it will be a simple fix. I moved bls_active into a separate file, but then the whisk spec imports curdleproofs which imports py_arkworks. Not sure what to do here.

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

1 participant