Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] conan source failing with python_requires #14848

Closed
docbrown1955 opened this issue Sep 29, 2023 · 2 comments · Fixed by #14852
Closed

[bug] conan source failing with python_requires #14848

docbrown1955 opened this issue Sep 29, 2023 · 2 comments · Fixed by #14852
Assignees
Milestone

Comments

@docbrown1955
Copy link

Environment details

  • Operating System+version: Windows 11
  • Conan version: 2.0.9 & 2.0.13
  • Python version: 3.11.0

Steps to reproduce

  1. Use a "python_requires" in the recipe
  2. Make sure the python requires recipe is not in the local cache, only on a remote
  3. Call conan source .

By looking at the call stack, it seems no remote is ever defined from the conan source command, which explains why at the time the python requires is searching in remotes, it fails.

Logs

 > conan source .
test_package/0.1.0: Not found in local cache, looking in remotes...
ERROR: Error loading conanfile at 'D:\workdir\test_package\conanfile.py': Cannot resolve python_requires 'recipe_utils/0.1.0': No remote defined

Call stack:
image
Looking at each steps from the very beginning (source method) the remotes variable is always empty.

@memsharded
Copy link
Member

Hi @docbrown1955

Thanks very much for reporting. Indeed there is a gap, and remotes were not passed. Adding them in #14852, proposed for next 2.0.14 release.

@docbrown1955
Copy link
Author

Thanks a lot for the info, and the quick reaction!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants