Git Product home page Git Product logo

Comments (5)

justinlaughlin avatar justinlaughlin commented on July 19, 2024 2

I think we should start moving towards libraries like scikit-build to help simplify some of the build logic.

from pymfem.

dohyun-cse avatar dohyun-cse commented on July 19, 2024 1

Thank you @justinlaughlin for digging into this. I commented out the if statement and just set haveWheel=False, and tried to run

python setup.py install

In a fresh virtual environment with packages in requirements.txt, the above command installed mfem without any issues and examples run seamlessly. After installing mpi4py, I also succeeded to install its parallel version.

from pymfem.

andy9t7 avatar andy9t7 commented on July 19, 2024

I also have the same problem as above. I have tried running both commands:

pip install mfem pip install mfem --no-binary mfem

from pymfem.

sshiraiwa avatar sshiraiwa commented on July 19, 2024

I can not reproduce this error on my Mac. My operating system is older (Monterey), but I am suspecting this may relating to the version of setuptools, since in my environment, it does not call chrpath. I used python -m pip install ./

from pymfem.

justinlaughlin avatar justinlaughlin commented on July 19, 2024

Okay, I did some digging into setup.py.

  • chrpath is only run if do_bdist_wheel==True
  • do_bdist_wheel==True only if configure_bdist() is run
  • configure_bidst() is only run if haveWheel==True
  • haveWheel==True only if from wheel.bdist_wheel import bdist_wheel on line 38 has no import error.

Thus, if wheel is installed and has bdist_wheel, setup.py will try to build a wheel, and will fail if chrpath is not installed.

Looking at the CI scripts:

  • In testrelease_binary.yml wheel is installed but chrpath is also installed on line 73 via yum.
  • In test_with_MFEM_*.yml, the installation for wheel is commented out.

@dohyun-cse and @andy9t7 can you try adding the flag haveWheel=False in setup.py after line 41 where it is set? I am guessing you are running into this error but @sshiraiwa is not because you already have wheel installed. This needs to be fixed and made more robust, but I don't believe building the wheel is necessary, so the easiest hot-fix for now is to just set the flag to False.

from pymfem.

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.