Bug 2101222

Summary: pylint fails with E1101: Module 'os' has no 'path' member (no-member)
Product: [Fedora] Fedora Reporter: Martin Pitt <mpitt>
Component: python-astroidAssignee: Gwyn Ciesla <gwync>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: awilliam, bcl, gwync, jpazdziora, orion
Target Milestone: ---Keywords: Regression
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-07-11 17:05:15 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Martin Pitt 2022-06-26 17:35:52 UTC
Description of problem:  The recent update [1] seems to have broken pylint (which didn't change in two months). Two days ago, python-dbusmock's pylint tests started to fail [2] with lots of messages like

  dbusmock/mockobject.py:47:7: E1101: Module 'os' has no 'path' member (no-member)
  dbusmock/mockobject.py:762:8: E1101: Module 'os' has no 'write' member (no-member)


These are bogus - of course the standard library `os` module knows about these.


Version-Release number of selected component (if applicable):

python-astroid-2.11.6-1.fc37
python3-pylint-2.13.7-2.fc37.noarch

How reproducible: Always


Steps to Reproduce:
1. git clone https://github.com/martinpitt/python-dbusmock/
2. cd python-dbusmock
3. python3 -m pylint dbusmock/*.py


Additional info:

[1] https://bodhi.fedoraproject.org/updates/FEDORA-2022-4f1ff0f531
[2] https://github.com/martinpitt/python-dbusmock/runs/7035892203?check_suite_focus=true

Comment 1 Gwyn Ciesla 2022-06-27 15:26:22 UTC
https://github.com/PyCQA/astroid/issues/1669

Comment 2 Adam Williamson 2022-07-11 17:05:15 UTC
Fixed in 2.12.1 which I just built:
https://koji.fedoraproject.org/koji/buildinfo?buildID=2000066

I'm also updating pylint, hold for that.