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 1457297 - undefined symbol: spec_Type
Summary: undefined symbol: spec_Type
Keywords:
Status: CLOSED DUPLICATE of bug 1462671
Alias: None
Product: Fedora
Classification: Fedora
Component: python3
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Charalampos Stratakis
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-05-31 13:22 UTC by Miroslav Suchý
Modified: 2017-06-28 13:02 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-06-28 13:02:00 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Miroslav Suchý 2017-05-31 13:22:41 UTC
Description of problem:
On freshly updated F26 I am getting this error:
ImportError: /usr/lib64/python3.6/site-packages/rpm/_rpms.cpython-36m-x86_64-linux-gnu.so: undefined symbol: spec_Type

This is when running pylint-3, but the culprint seems to be in python3-system-libs.

Version-Release number of selected component (if applicable):
$ rpm -qf /usr/lib64/python3.6/imp.py
system-python-libs-3.6.1-6.fc26.x86_64
$ rpm -qf /usr/lib64/python3.6/site-packages/rpm/_rpms.cpython-36m-x86_64-linux-gnu.so
python3-rpm-4.13.0.1-4.fc26.x86_64

How reproducible:
determinist

Steps to Reproduce:
1.pylint-3 /usr/lib/python3.6/site-packages/mockbuild/util.py

Actual results:
************* Module mockbuild.util
R:138, 4: Too many nested blocks (6/5) (too-many-nested-blocks)
C:218,15: Do not use `len(SEQUENCE)` as condition value (len-as-condition)
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/astroid/manager.py", line 129, in ast_from_module_name
    module = modutils.load_module_from_name(modname)
  File "/usr/lib/python3.6/site-packages/astroid/modutils.py", line 190, in load_module_from_name
    return load_module_from_modpath(dotted_name.split('.'), path, use_sys)
  File "/usr/lib/python3.6/site-packages/astroid/modutils.py", line 233, in load_module_from_modpath
    module = imp.load_module(curname, mp_file, mp_filename, mp_desc)
  File "/usr/lib64/python3.6/imp.py", line 242, in load_module
    return load_dynamic(name, filename, file)
  File "/usr/lib64/python3.6/imp.py", line 342, in load_dynamic
    return _load(spec)
  File "<frozen importlib._bootstrap>", line 675, in _load
  File "<frozen importlib._bootstrap>", line 648, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 560, in module_from_spec
  File "<frozen importlib._bootstrap_external>", line 922, in create_module
  File "<frozen importlib._bootstrap>", line 205, in _call_with_frames_removed
ImportError: /usr/lib64/python3.6/site-packages/rpm/_rpms.cpython-36m-x86_64-linux-gnu.so: undefined symbol: spec_Type

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/pylint-3", line 11, in <module>
    load_entry_point('pylint==1.7.1', 'console_scripts', 'pylint')()
  File "/usr/lib/python3.6/site-packages/pylint/__init__.py", line 13, in run_pylint
    Run(sys.argv[1:])
  File "/usr/lib/python3.6/site-packages/pylint/lint.py", line 1300, in __init__
    linter.check(args)
  File "/usr/lib/python3.6/site-packages/pylint/lint.py", line 726, in check
    self._do_check(files_or_modules)
  File "/usr/lib/python3.6/site-packages/pylint/lint.py", line 855, in _do_check
    self.check_astroid_module(ast_node, walker, rawcheckers, tokencheckers)
  File "/usr/lib/python3.6/site-packages/pylint/lint.py", line 934, in check_astroid_module
    walker.walk(ast_node)
  File "/usr/lib/python3.6/site-packages/pylint/utils.py", line 973, in walk
    self.walk(child)
  File "/usr/lib/python3.6/site-packages/pylint/utils.py", line 973, in walk
    self.walk(child)
  File "/usr/lib/python3.6/site-packages/pylint/utils.py", line 970, in walk
    cb(astroid)
  File "/usr/lib/python3.6/site-packages/pylint/checkers/variables.py", line 1129, in visit_import
    module = next(node.infer_name_module(parts[0]))
  File "/usr/lib/python3.6/site-packages/astroid/context.py", line 40, in cache_generator
    for result in generator:
  File "/usr/lib/python3.6/site-packages/astroid/decorators.py", line 85, in wrapped
    res = next(generator)
  File "/usr/lib/python3.6/site-packages/astroid/inference.py", line 193, in infer_import
    yield self.do_import_module(name)
  File "/usr/lib/python3.6/site-packages/astroid/mixins.py", line 119, in do_import_module
    relative_only=level and level >= 1)
  File "/usr/lib/python3.6/site-packages/astroid/scoped_nodes.py", line 409, in import_module
    return MANAGER.ast_from_module_name(absmodname)
  File "/usr/lib/python3.6/site-packages/astroid/manager.py", line 154, in ast_from_module_name
    return self.ast_from_file(found_spec.location, modname, fallback=False)
  File "/usr/lib/python3.6/site-packages/astroid/manager.py", line 80, in ast_from_file
    return AstroidBuilder(self).file_build(filepath, modname)
  File "/usr/lib/python3.6/site-packages/astroid/builder.py", line 152, in file_build
    return self._post_build(module, encoding)
  File "/usr/lib/python3.6/site-packages/astroid/builder.py", line 169, in _post_build
    self.add_from_names_to_locals(from_node)
  File "/usr/lib/python3.6/site-packages/astroid/builder.py", line 214, in add_from_names_to_locals
    imported = node.do_import_module()
  File "/usr/lib/python3.6/site-packages/astroid/mixins.py", line 119, in do_import_module
    relative_only=level and level >= 1)
  File "/usr/lib/python3.6/site-packages/astroid/scoped_nodes.py", line 409, in import_module
    return MANAGER.ast_from_module_name(absmodname)
  File "/usr/lib/python3.6/site-packages/astroid/manager.py", line 133, in ast_from_module_name
    modname=modname, path=spec.location, error=ex))
AttributeError: module 'astroid.interpreter._import.spec' has no attribute 'location'

Note that there are two traceback. And for this report is likely relevant only the first one.

Comment 1 Charalampos Stratakis 2017-06-28 13:02:00 UTC
This should be fixed by https://bodhi.fedoraproject.org/updates/FEDORA-2017-2128524184

Marking this bug as duplicate.

*** This bug has been marked as a duplicate of bug 1462671 ***


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