Giter VIP home page Giter VIP logo

Comments (4)

ryanking13 avatar ryanking13 commented on June 12, 2024

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.

Indavelopers avatar Indavelopers commented on June 12, 2024

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.

ryanking13 avatar ryanking13 commented on June 12, 2024

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.

Indavelopers avatar Indavelopers commented on June 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.