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

ImportError: cannot import name 'noarch_python_build_age_default' from 'conda_build.config' when running tests #191

Open
2 tasks done
opoplawski opened this issue Dec 12, 2024 · 3 comments
Assignees
Labels
type::bug describes erroneous operation, use severity::* to classify the type

Comments

@opoplawski
Copy link

Checklist

  • I added a descriptive title
  • I searched open reports and couldn't find a duplicate

What happened?

When trying to execute the tests I'm getting:

+ py.test-3.13 -v
ImportError while loading conftest '/home/orion/fedora/python-conda-index/python-conda-index-0.5.0-build/conda-index-0.5.0/tests/conftest.py'.
tests/conftest.py:8: in <module>
    from conda_build.config import (
E   ImportError: cannot import name 'noarch_python_build_age_default' from 'conda_build.config' (/usr/lib/python3.13/site-packages/conda_build/config.py)

This is with conda-build 24.11.2

Additional Context

No response

@opoplawski opoplawski added the type::bug describes erroneous operation, use severity::* to classify the type label Dec 12, 2024
@github-project-automation github-project-automation bot moved this to 🆕 New in 🧭 Planning Dec 12, 2024
@dholth dholth self-assigned this Feb 24, 2025
@dholth
Copy link
Contributor

dholth commented Feb 24, 2025

Can reproduce on the 0.5.0 tag. The fix is in 8cb985a and on main but it has not been included in a conda-index release.

@jjhelmus
Copy link

noarch_python_build_age_default was removed in conda/conda-build#5333 after being deprecated in conda/conda-build#5298.

@opoplawski
Copy link
Author

@dholth thanks for the pointer - that does indeed appear to resolve the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type::bug describes erroneous operation, use severity::* to classify the type
Projects
Status: 🆕 New
Development

No branches or pull requests

3 participants