Comments (4)
Sure, please open a PR.
It fails as needs files python.h and ffi.h
Could you please attach the error you get? So we can make sure it is happening because python3-dev and libffi-dev is not installed.
from pyodide.
Welp, I found this problem and needed to solve it in the way I indicated, installing python3-dev and libffi-dev, I'm pretty sure.
Unfortunately, I'm unable to reproduce this, as I see in every of my environments, once you have Python and Pip rolling, you finally find these libraries have been installed as dependencies, for example by Python3-pip if I recall correctly.
Last check was done on a clean Debian 12 Bookworm installation.
I also found that XZ is also needed, sorry don't recall right now if for:
PYODIDE_EMSCRIPTEN_VERSION=$(pyodide config get emscripten_version)
./emsdk install ${PYODIDE_EMSCRIPTEN_VERSION}
How would you recommend addressing this? How can I be of better help?
Should I add a PR stating a list of requirements at the start of the tutorial?
Or should we leave this just as an issue, as the probabilities it would come back again are low?
It fails as needs files python.h and ffi.h
Could you please attach the error you get? So we can make sure it is happening because python3-dev and libffi-dev is not installed.
Unfortunately, can't reproduce, but can confirm there were 2 errors: first one stated that "python.h file was not found", and I was able to research and find that python3-dev was needed, which solved it, and second one stated "ffi.h file was not found", which corresponded to libffi-dev not installed.
from pyodide.
I suspect that the error you are experiencing is caused by installing certain python packages that are required during the pyodide build environment installation process. More specifically, I think python.h or libffi was required because you're building those packages from source, but I believe that those packages can be installed using whl files without building from source.
So that's why I asked for a reproduction, to see on which environment the error happens. I guess this issue (#4347 (comment)) was happened because of the similar reason.
from pyodide.
I believe I was not installing it from source, but I'm not sure.
As I couldn't reproduce the issue and doesn't seem to be a common case, feel free to close this.
Thanks for your attention!
from pyodide.
Related Issues (20)
- `zstandard` HOT 1
- pyodide build should read settings from pyproject.toml HOT 10
- webloop should support cancellation HOT 2
- Mac builds: Pyodide Venv: `pytest` breaks when `python -m pytest` does not HOT 10
- `Downloading Pyodide` slightly confusing for CDN usage HOT 1
- issue using pygame-ce HOT 9
- Pyodide config recipe broken in 0.26.0 HOT 3
- Error when loading bundled python packages using Pyodide from NPM HOT 6
- scipy.integrate.dblquad gives very wrong result even for the simplest integrations HOT 21
- wrong behavior when setting item on a PyProxyJsonAdaptor HOT 2
- Wrong typing for `create_proxy` and `create_once_callable`
- imported module not found in class in pyodide, error "NameError: name 'urllib3' is not defined" HOT 4
- rasterio: Add package request HOT 1
- Pandas is sending DeprecationWarning in 0.26.0 HOT 1
- RFC Vendor shared libraries to the wheel by default HOT 7
- memoize in loadDynlibsFromPackage has no effect HOT 7
- rerun-sdk HOT 1
- Unknown typed array type 'BigInt64Array' when using transformers v3 with Xenova/Phi-3-mini-4k-instruct HOT 1
- NumPy: `numpy.linalg.LinAlgError` not thrown HOT 2
- Imports in the REPL cause infinite recursion error (0.26.1) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyodide.