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

out of tree build fails: "'_DefaultIsolatedEnv' object has no attribute '_scripts_dir'" #4655

Closed
kaktus42 opened this issue Mar 30, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@kaktus42
Copy link

πŸ› Bug

I am trying to do an "out of tree build" of the package aioesphomeapi.
I followed the procedure outlined in the docs.
At the step to build (pyodide build) I get the following error:

βœ— pyodide build                                                    
xbuild environment already exists, skipping download                                                                                                                                                                                                                           
Installing xbuild environment                                                                                                                                                                                                                                                  

Traceback (most recent call last):
  File "/home/kaktus42/miniconda3/lib/python3.10/site-packages/pyodide_build/pypabuild.py", line 71, in _runner
    env["BUILD_ENV_SCRIPTS_DIR"] = isolated_build_env._scripts_dir
AttributeError: '_DefaultIsolatedEnv' object has no attribute '_scripts_dir'

ERROR Backend operation failed: AttributeError("'_DefaultIsolatedEnv' object has no attribute '_scripts_dir'")

The "normal" build (python -m build) works without problems.

To Reproduce

Just running the build as described.

Expected behavior

Successful build.

Environment

  • Pyodide Version: Pyodide CLI Version: 0.2.3
  • Browser version: -
  • Any other relevant information:

pyodide-build==0.25.0
pyodide-cli==0.2.3
pyodide-lock==0.1.0a4

βœ— ./emsdk activate ${PYODIDE_EMSCRIPTEN_VERSION}
Resolving SDK version '3.1.46' to 'sdk-releases-21644188d5c473e92f1d7df2f9f60c758a78a486-64bit'
Setting the following tools as active:
   node-16.20.0-64bit
   releases-21644188d5c473e92f1d7df2f9f60c758a78a486-64bit

Additional context

@kaktus42 kaktus42 added the bug Something isn't working label Mar 30, 2024
@ryanking13
Copy link
Member

This will be fixed by #4653 (we will release pyodide-build 0.25.1 soon with that patch). For pyodide-build 0.25.0, downgrading the build version:

pip install build<1.2.0

will resolve the issue.

@ryanking13
Copy link
Member

Closing as resolved by #4653

timkpaine added a commit to finos/perspective that referenced this issue Apr 18, 2024
texodus added a commit to finos/perspective that referenced this issue Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants