Code Monkey home page Code Monkey logo

Comments (7)

khurtado avatar khurtado commented on August 25, 2024

I have this on my todo list, but haven't been able to work on it yet, hope to have it for the middle of next week though.

from genproductions.

khurtado avatar khurtado commented on August 25, 2024

@kdlong Just made a pull request for this: #1261

from genproductions.

kdlong avatar kdlong commented on August 25, 2024

Great, thanks! Testing at T2_US_Wisconsin now.

from genproductions.

khurtado avatar khurtado commented on August 25, 2024

Thanks! Let me know how that goes. Also: What version of condor does Wisconsin use in the submit node? CMS Connect uses 8.4.x, the python binding queries should work equally for both 8.4 and 8.6, but I have never tested with 8.6.x

from genproductions.

kdlong avatar kdlong commented on August 25, 2024

It worked without any problems. We just updated to 8.6, so that also doesn't seem to be a problem. Maybe we could add the line

PYTHONPATH=/usr/lib64/python2.6/site-packages:$PYTHONPATH

into the submit_condor_gridpack_generation.sh script since this seems to be the expected location, and if the packages are located elsewhere this line shouldn't cause any harm. What do you think?

from genproductions.

bendavid avatar bendavid commented on August 25, 2024

This could break things if there are a mix of python versions. Better to add only the path for the needed condor bindings package.

from genproductions.

khurtado avatar khurtado commented on August 25, 2024

@kdlong: I would prefer not to hardcode that directory in the PYTHONPATH every time if possible.
If any change is necessary, it should be added into the source_condor.sh script which source_condor / source_cmsconnect depend on. This script currently finds the PATH for the python bindings in the local system as long as it is available in the and python 2.x is the default version in the system, which is the usual in EL6/7 based systems and will probably be the case until 2020 (end of support of python 2.7.x). If this becomes a problem we should push to have these dependencies included in CVMFS ( #1212 ) . We could also easily include these 2 libraries in the github repository, but then somebody would need to keep track of updates when needed, so I would rather not go that route.

@bendavid The problem is the condor bindings only have its own directory when they are installed from the condor tarball binaries. When condor and the bindings are installed from RPMS, htcondor.so and classads.so are installed in the parent directory on EL6/7-based systems, so the whole site-packages will be included in most cases.
In any case, since we setup the CMS framework before doing any actual work in madgraph and CVMFS PATHs are prepended in the PYTHONPATH, a module will only tried to be used from the local system if it's not avaialble in cvmfs... and at this point the only candidate for that would be the condor python bindings.

from genproductions.

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.