Giter Site home page Giter Site logo

Comments (8)

AndreasAlbert avatar AndreasAlbert commented on July 29, 2024

with 8_0_20 I cannot even install the library? How exactly did you do it?

With 9_3_2 it kinda works:

  • installing package from master branch successful
  • running tests in master is successful
  • installing package from reenable_pylint branch successful
  • running tests in reenable_pylint not successful, but with another message than what you quote.

Both cmssw versions have the same python version, so that's not it.

from hepdata_lib.

clelange avatar clelange commented on July 29, 2024

I'm setting up CMSSW and then create a new virtualenv into which I install hepdata_lib. Let me try from scratch.

from hepdata_lib.

AndreasAlbert avatar AndreasAlbert commented on July 29, 2024

Okay, I can reproduce the problem if I follow your instruction:

  1. Setup CMSSW 8_0_20
  2. mkvirtualenv SOMEENV -p /cvmfs/cms.cern.ch/slc6_amd64_gcc530/external/python/2.7.11-ikhhed/bin/python2.7
  3. python -m pip install -e /path/to/hepdata_lib
  4. python -m pip install --upgrade setuptools (This is necessary to be able to run the tests. If not, it complains that may version of setuptools is too old. Why does it not automatically update on hepdata_lib install?
  5. python setup.py test

Then I get the error you see. Investigation now.

from hepdata_lib.

AndreasAlbert avatar AndreasAlbert commented on July 29, 2024

(This is using master)

from hepdata_lib.

clelange avatar clelange commented on July 29, 2024

I guess we should just require a recent setuptools version. I'll try this:

import sys
from distutils.version import StrictVersion
from setuptools import setup, __version__


if StrictVersion(__version__) < StrictVersion('20.2'):
    print('your setuptools version does not support PEP 508. Upgrade setuptools and repeat the installation: pip install --upgrade setuptools)
    sys.exit(1)

from hepdata_lib.

clelange avatar clelange commented on July 29, 2024

OK, forget the above comment, steps are:

cmsrel CMSSW_8_0_20
cd CMSSW_8_0_20/src
cmsenv
virtualenv HEPData -p `which python`
pip install --upgrade pip setuptools
pip install -e /path/to/hepdata_lib

from hepdata_lib.

clelange avatar clelange commented on July 29, 2024

OK, I'd say, let's forget about tests on lxplus - as long as we can run the notebooks when converted to python scripts, things should be fine.
I also tried later CMSSW version, CC7, but recurring issues related to enum etc.

from hepdata_lib.

clelange avatar clelange commented on July 29, 2024

Closing since we have other ways to use the library on LXPLUS such as Singularity, documented in README since #133

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.