Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1958921 - python-verboselogs fails to build on rawhide: ImportError: cannot import name 'numversion' from 'astroid.__pkginfo__' (/usr/lib/python3.9/site-packages/astroid/__pkginfo__.py)
Summary: python-verboselogs fails to build on rawhide: ImportError: cannot import name...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-verboselogs
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Scott K Logan
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.10 F35FTBFS
TreeView+ depends on / blocked
 
Reported: 2021-05-10 12:36 UTC by Miro Hrončok
Modified: 2021-05-10 18:16 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-05-10 18:16:41 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Miro Hrončok 2021-05-10 12:36:06 UTC
python-verboselogs fails to build with Python 3.10.0b1:

=================================== FAILURES ===================================
____________________ VerboseLogsTestCase.test_pylint_plugin ____________________

self = <verboselogs.tests.VerboseLogsTestCase testMethod=test_pylint_plugin>

    def test_pylint_plugin(self):
        """Test the :mod:`verboselogs.pylint` module."""
        saved_args = sys.argv
        try:
            sys.argv = ['pylint', '--load-plugins', 'verboselogs.pylint', '--errors-only', 'verboselogs']
>           __import__('pylint').run_pylint()

verboselogs/tests.py:69: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3.10/site-packages/pylint/__init__.py:24: in run_pylint
    PylintRun(sys.argv[1:])
/usr/lib/python3.10/site-packages/pylint/lint/run.py:266: in __init__
    linter.load_plugin_modules(self._plugins)
/usr/lib/python3.10/site-packages/pylint/lint/pylinter.py:503: in load_plugin_modules
    module = astroid.modutils.load_module_from_name(modname)
/usr/lib/python3.10/site-packages/astroid/modutils.py:212: in load_module_from_name
    return importlib.import_module(dotted_name)
/usr/lib64/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
...
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

    # Verbose, notice, and spam log levels for Python's logging module.
    #
    # Author: Glenn Matthews <glenn>
    # Last Change: August 7, 2017
    # URL: https://verboselogs.readthedocs.io
    
    """
    Pylint_ plugin to fix invalid errors about the :mod:`logging` module.
    
    .. _Pylint: https://pypi.python.org/pypi/pylint
    """
    
    from astroid import MANAGER, scoped_nodes, nodes
>   from astroid.__pkginfo__ import numversion
E   ImportError: cannot import name 'numversion' from 'astroid.__pkginfo__' (/usr/lib/python3.10/site-packages/astroid/__pkginfo__.py)

verboselogs/pylint.py:14: ImportError

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.10/fedora-rawhide-x86_64/02172592-python-verboselogs/

For all our attempts to build python-verboselogs with Python 3.10, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.10/package/python-verboselogs/

Testing and mass rebuild of packages is happening in copr. You can follow these instructions to test locally in mock if your package builds with Python 3.10:
https://copr.fedorainfracloud.org/coprs/g/python/python3.10/

Let us know here if you have any questions.

Python 3.10 will be included in Fedora 35. To make that update smoother, we're building Fedora packages with early pre-releases of Python 3.10.
A build failure prevents us from testing all dependent packages (transitive [Build]Requires), so if this package is required a lot, it's important for us to get it fixed soon.
We'd appreciate help from the people who know this package best, but if you don't want to work on this now, let us know so we can try to work around it on our side.

Comment 1 Miro Hrončok 2021-05-10 12:36:58 UTC
I've also enabled tracking in https://koschei.fedoraproject.org/package/python-verboselogs to see fi this is Python 3.10 related (it does not seem to be).

Comment 2 Miro Hrončok 2021-05-10 12:40:16 UTC
As suspected, it is not related to Python 3.10.

    from astroid import MANAGER, scoped_nodes, nodes
>   from astroid.__pkginfo__ import numversion
E   ImportError: cannot import name 'numversion' from 'astroid.__pkginfo__' (/usr/lib/python3.9/site-packages/astroid/__pkginfo__.py)
verboselogs/pylint.py:14: ImportError


Note You need to log in before you can comment on or make changes to this bug.