GithubHelp home page GithubHelp logo

Comments (7)

jbednar avatar jbednar commented on May 20, 2024

| Installing param (pip install param) into a virtual environment that is inside a git repository fails with
| Exception: Cannot find any git version tags of format v_._
| This makes it difficult to install param as part of certain Jenkins CI workflows that make use of git + virtualenv.

Thanks for the report! Chris, I think you should go ahead with what we mentioned about ignoring all errors from version.py, just for cases like this where we don't quite know what environment it might have been placed into.

Jean-Luc, maybe it would be worth version.py catching this error and falling back to the declared version (plus perhaps "-dirty" or "-unknown" as a warning that we were unable to get version info).

The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.

from param.

jbednar avatar jbednar commented on May 20, 2024

We've got a fix now, thanks to Marco Elver and Jean-Luc Stevens; see #61

Can you please try installing version 786378d using pip's git support, with something like:

pip install git+https://github.com/ioam/param.git@786378da45e414f714ee4ab9f88c6cf89a551fee

from param.

jlstevens avatar jlstevens commented on May 20, 2024

Hi

I'm not sure it will work just yet - at least if any of our projects is being tested in this environment other than param. The 'reponame' argument needs to be set in the Version object for the other projects.

I'll fix this now.

from param.

stober avatar stober commented on May 20, 2024

I think to test the fix, I need to install from a source distribution, not via pip's git support.

from param.

jbednar avatar jbednar commented on May 20, 2024

Ah. We were hoping that you would test it so that we could make a new release confidently, but I guess we'll have to wing it and cross our fingers! We'll let you know when 1.2.1 is ready.

The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.

from param.

jbednar avatar jbednar commented on May 20, 2024

Ok, 1.2.1 is released and should fix this problem -- please reopen this issue if not!

from param.

stober avatar stober commented on May 20, 2024

This is fixed for me. Thanks!

from param.

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.