Bug 2214535 - [abrt] python3-ansible-lint: get_cache_dir(): prerun.py:13:get_cache_dir:AttributeError: 'str' object has no attribute 'resolve'
Summary: [abrt] python3-ansible-lint: get_cache_dir(): prerun.py:13:get_cache_dir:Attr...
Keywords:
Status: CLOSED DUPLICATE of bug 2213747
Alias: None
Product: Fedora
Classification: Fedora
Component: python-ansible-compat
Version: 37
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: chedi toueiti
QA Contact:
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:c5641727f0be9df4880e0686f83...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-06-13 09:36 UTC by vastefairetaperconnard
Modified: 2023-08-03 06:54 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-08-03 06:54:24 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (1.06 KB, text/plain)
2023-06-13 09:36 UTC, vastefairetaperconnard
no flags Details
File: cpuinfo (2.98 KB, text/plain)
2023-06-13 09:36 UTC, vastefairetaperconnard
no flags Details
File: environ (3.97 KB, text/plain)
2023-06-13 09:36 UTC, vastefairetaperconnard
no flags Details
File: mountinfo (3.50 KB, text/plain)
2023-06-13 09:36 UTC, vastefairetaperconnard
no flags Details
File: namespaces (172 bytes, text/plain)
2023-06-13 09:36 UTC, vastefairetaperconnard
no flags Details
File: open_fds (502 bytes, text/plain)
2023-06-13 09:36 UTC, vastefairetaperconnard
no flags Details

Description vastefairetaperconnard 2023-06-13 09:36:03 UTC
Version-Release number of selected component:
python3-ansible-lint-1:6.10.0-1.fc37

Additional info:
reporter:       libreport-2.17.10
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/vte-spawn-81bf982e-afb2-4268-9537-bcb5723e43d9.scope
cmdline:        /usr/bin/python3 -sP /usr/bin/ansible-lint --version
crash_function: get_cache_dir
exception_type: AttributeError
executable:     /usr/bin/ansible-lint
interpreter:    python3-3.11.3-2.fc37.x86_64
kernel:         6.3.6-100.fc37.x86_64
runlevel:       N 5
type:           Python3
uid:            1000

Truncated backtrace:
prerun.py:13:get_cache_dir:AttributeError: 'str' object has no attribute 'resolve'

Traceback (most recent call last):
  File "/usr/bin/ansible-lint", line 8, in <module>
    sys.exit(_run_cli_entrypoint())
             ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/ansiblelint/__main__.py", line 344, in _run_cli_entrypoint
    sys.exit(main(sys.argv))
             ^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/ansiblelint/__main__.py", line 197, in main
    initialize_options(argv[1:])
  File "/usr/lib/python3.11/site-packages/ansiblelint/__main__.py", line 110, in initialize_options
    options.cache_dir = get_cache_dir(options.project_dir)
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/ansible_compat/prerun.py", line 13, in get_cache_dir
    basename = project_dir.resolve().name.encode(encoding="utf-8")
               ^^^^^^^^^^^^^^^^^^^
AttributeError: 'str' object has no attribute 'resolve'

Local variables in innermost frame:
project_dir: '/home/bgarcia/git/sysadmin/ansible-bedrock'

Comment 1 vastefairetaperconnard 2023-06-13 09:36:06 UTC
Created attachment 1970600 [details]
File: backtrace

Comment 2 vastefairetaperconnard 2023-06-13 09:36:07 UTC
Created attachment 1970601 [details]
File: cpuinfo

Comment 3 vastefairetaperconnard 2023-06-13 09:36:08 UTC
Created attachment 1970602 [details]
File: environ

Comment 4 vastefairetaperconnard 2023-06-13 09:36:10 UTC
Created attachment 1970603 [details]
File: mountinfo

Comment 5 vastefairetaperconnard 2023-06-13 09:36:12 UTC
Created attachment 1970604 [details]
File: namespaces

Comment 6 vastefairetaperconnard 2023-06-13 09:36:13 UTC
Created attachment 1970605 [details]
File: open_fds

Comment 7 Parag Nemade 2023-06-13 10:58:20 UTC
This happened due to new update of ansible-compat in F37
The last known ansible-lint build is
ansible-lint-6.10.0-1.fc37
which is working fine with
python-ansible-compat-2.2.7-9.fc37
but then python-ansible-compat directly got an update to 4.0.4-1.fc37 which broke ansible-lint command.

Comment 8 Parag Nemade 2023-08-03 06:54:24 UTC

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


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