Giter Site home page Giter Site logo

Comments (6)

AndreasAlbert avatar AndreasAlbert commented on July 29, 2024

Some notes on what I have tried:

  • Download root binaries and untar in python -> works trivially

  • Sourcing thisroot.sh -> does not work. You can use os.environ to overwrite what python thinks most of the paths in environment variables are and thus propagate the effect of the source command into python. Unfortunately, this does not work for LD_LIBRARY_PATH as that is apparently cached at python startup, so changing it during runtime does not help. If this path is not set right, import ROOT fails because it cannot find various compiled libraries lib*.so. StackOverflow turned up two workarounds, both of which do not work:

    • os.execv gives a permission denied error (probably because we do not have rights to start processes on the build machine?)
    • Using cdll.LoadLibrary to load a given library works, but it is not clear to me how to proceed for the >100 library files in root/lib. I tried just loading all of them, but that fails. Do you need to import them in the right order?

from hepdata_lib.

AndreasAlbert avatar AndreasAlbert commented on July 29, 2024

Maybe this works?

from hepdata_lib.

clelange avatar clelange commented on July 29, 2024

Yes, I think you need to use mock.

from hepdata_lib.

clelange avatar clelange commented on July 29, 2024

Can you assign the issue if you're working on it? Otherwise I might give it a go later when I'm tired of preparing presentation slides ;-)

from hepdata_lib.

AndreasAlbert avatar AndreasAlbert commented on July 29, 2024

With mock, building runs through now. There are plenty of sphinx/latex warnings, though and the build does not produce the output. Not quite there yet.

from hepdata_lib.

AndreasAlbert avatar AndreasAlbert commented on July 29, 2024

I think I was looking in the wrong documentation version before. Everything seems fine now.

from hepdata_lib.

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.