Git Product home page Git Product logo

Comments (10)

memsharded avatar memsharded commented on July 18, 2024

Hi @sharadupadhyaya

I am afraid I cannot reproduce. I have tried locally and this seems to work correctly.
Please provide:

  • A full conanfile.py that allows to reproduce the issue.
  • The exact command you are typing
  • The full output of the command

from conan.

sharadupadhyaya avatar sharadupadhyaya commented on July 18, 2024

Please see the example attached.
I am using attached conanrecipe.py that uses a python-require package.
test.tar.gz

Command to create the python-require package:
conan create test/testmodule.py
Command to reproduce the issue:

conan install conanrecipe.py --version 1.0+0

conan export-pkg --version 1.0+0 conanrecipe.py
Output:
None
ERROR: conanfile.py: Invalid configuration: Version not passed

from conan.

sharadupadhyaya avatar sharadupadhyaya commented on July 18, 2024

Above works fine with Conan2.0.0.

from conan.

sharadupadhyaya avatar sharadupadhyaya commented on July 18, 2024

This worked till Conan 2.0.11, started failing from Conan2.0.12.

from conan.

memsharded avatar memsharded commented on July 18, 2024

Thanks very much, that really helped to reproduce the issue. It was being caused by the python-requires inheritance.
I am having a look to provide a fix.

from conan.

memsharded avatar memsharded commented on July 18, 2024

I am proposing a fix for this in #16224

Indeed, the addition of some checks back then caused this issue. Please note from https://docs.conan.io/2/introduction.html

Only the latest released patch (major.minor.patch) of every minor version is supported and stable.

So as this behavior was already in latest 2.0.17, it cannot be considered a regression, but a regular bugfix.
Still I am assigning this to the next patch release 2.3.1, so it can be released as soon as possible.

Thanks very much for reporting!

from conan.

sharadupadhyaya avatar sharadupadhyaya commented on July 18, 2024

Thanks, I will wait for patch release 2.3.1.

from conan.

memsharded avatar memsharded commented on July 18, 2024

Closed by #16224, it will be in next 2.3.1

from conan.

memsharded avatar memsharded commented on July 18, 2024

2.3.1 is out

from conan.

sharadupadhyaya avatar sharadupadhyaya commented on July 18, 2024

from conan.

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.