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 Memory error when building orjson wheel for armv7 Docker on Ubuntu64 #358

Closed
magicse opened this issue Feb 25, 2023 · 1 comment
Closed

Comments

@magicse
Copy link

magicse commented Feb 25, 2023

I'm trying to compile Docker image on Ubuntu64 for Home Assistant, but it always fails with an Out of Memory error when it tries to build the armv7 version.

#0 24.80   Downloading orjson-3.8.6.tar.gz (655 kB)                                                                                                                                    
#0 25.86      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 655.1/655.1 kB 902.5 kB/s eta 0:00:00                                                                                              
#0 29.00   Installing build dependencies: started                                                                                                                                      
#0 73.69   Installing build dependencies: finished with status 'done'
#0 73.81   Getting requirements to build wheel: started
#0 76.44   Getting requirements to build wheel: finished with status 'done'
#0 76.50   Preparing metadata (pyproject.toml): started
#0 596.0   Preparing metadata (pyproject.toml): still running...
#0 1078.8   Preparing metadata (pyproject.toml): still running...
#0 1527.7   Preparing metadata (pyproject.toml): still running...
#0 1528.0   Preparing metadata (pyproject.toml): finished with status 'error'
#0 1528.3   error: subprocess-exited-with-error
#0 1528.3   
#0 1528.3   × Preparing metadata (pyproject.toml) did not run successfully.
#0 1528.3   │ exit code: 1
#0 1528.3   ╰─> [16 lines of output]
#0 1528.3           Updating crates.io index
#0 1528.3       warning: spurious network error (2 tries remaining): failed to mmap. Could not write data: Out of memory; class=Os (2)
#0 1528.3       warning: spurious network error (1 tries remaining): failed to mmap. Could not write data: Out of memory; class=Os (2)
#0 1528.3       error: failed to get `ahash` as a dependency of package `orjson v3.8.6 (/tmp/pip-install-d1umdm0e/orjson)`
#0 1528.3       
#0 1528.3       Caused by:
#0 1528.3         failed to fetch `https://github.com/rust-lang/crates.io-index`
#0 1528.3       
#0 1528.3       Caused by:
#0 1528.3         failed to mmap. Could not write data: Out of memory; class=Os (2)
#0 1528.3       💥 maturin failed
#0 1528.3         Caused by: Cargo metadata failed. Does your crate compile with `cargo build`?
#0 1528.3         Caused by: `cargo metadata` exited with an error:
#0 1528.3       Error running maturin: Command '['maturin', 'pep517', 'write-dist-info', '--metadata-directory', '/tmp/pip-modern-metadata-6jp59nkn', '--interpreter', '/usr/bin/python3']' returned non-zero exit status 1.
#0 1528.3       Checking for Rust toolchain....
#0 1528.3       Running `maturin pep517 write-dist-info --metadata-directory /tmp/pip-modern-metadata-6jp59nkn --interpreter /usr/bin/python3`
#0 1528.3       [end of output]
#0 1528.3   
#0 1528.3   note: This error originates from a subprocess, and is likely not a problem with pip.
#0 1528.4 error: metadata-generation-failed
#0 1528.4 
#0 1528.4 × Encountered error while generating package metadata.
#0 1528.4 ╰─> orjson
#0 1528.4 
#0 1528.4 note: This is an issue with the package mentioned above, not pip.
#0 1528.4 hint: See above for details.

@magicse
Copy link
Author

magicse commented Feb 25, 2023

rust-lang/cargo#2808

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

2 participants