Bug 2422339

Summary: [abrt] python3-sdkmanager: open(): __init__.py:771:open:FileNotFoundError: [Errno 2] No such file or directory: '/opt/android-sdk/build-tools/36.0.0/package.xml'
Product: [Fedora] Fedora Reporter: Mr Beedell, Roke Julian Lockhart <8ru2u4gz>
Component: python-sdkmanagerAssignee: Benson Muite <benson_muite>
Status: NEW --- QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 43CC: 8ru2u4gz, benson_muite
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/857fb7cfdc4f3987c886bbd840ac4e13e7e7081
Whiteboard: abrt_hash:9fa0f347a50b769fffb11d9633f2858965d62159;VARIANT_ID=kde;
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: os_info
none
File: environ
none
File: mountinfo
none
File: open_fds
none
File: namespaces
none
File: backtrace
none
File: cpuinfo none

Description Mr Beedell, Roke Julian Lockhart 2025-12-15 18:13:47 UTC
Description of problem:
I bypassed https://bugzilla.redhat.com/show_bug.cgi?id=2422333#c0 with `run0`.

Version-Release number of selected component:
python3-sdkmanager-0.6.10-6.fc43

Additional info:
reporter:       libreport-2.17.15
kernel:         6.17.11-300.fc43.x86_64
cmdline:        /usr/bin/python3 -sP /usr/bin/sdkmanager build-tools;36.0.0
cgroup:         0::/user.slice/user-0.slice/session-10.scope
uid:            0
reason:         __init__.py:771:open:FileNotFoundError: [Errno 2] No such file or directory: '/opt/android-sdk/build-tools/36.0.0/package.xml'
executable:     /usr/bin/sdkmanager
type:           Python3
package:        python3-sdkmanager-0.6.10-6.fc43
runlevel:       /bin/sh: line 1: runlevel: command not found
exception_type: FileNotFoundError
crash_function: open
interpreter:    python3-3.14.2-1.fc43.x86_64
comment:        I bypassed https://bugzilla.redhat.com/show_bug.cgi?id=2422333#c0 with `run0`.

Truncated backtrace:
__init__.py:771:open:FileNotFoundError: [Errno 2] No such file or directory: '/opt/android-sdk/build-tools/36.0.0/package.xml'

Traceback (most recent call last):
  File "/usr/bin/sdkmanager", line 8, in <module>
    sys.exit(main())
             ~~~~^^
  File "/usr/lib/python3.14/site-packages/sdkmanager.py", line 1236, in main
    method(args.packages)
    ~~~~~~^^^^^^^^^^^^^^^
  File "/usr/lib/python3.14/site-packages/sdkmanager.py", line 1072, in install
    _generate_package_xml(install_dir, package, url)
    ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.14/site-packages/sdkmanager.py", line 1154, in _generate_package_xml
    with (install_dir / 'package.xml').open('w') as fp:
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^
  File "/usr/lib64/python3.14/pathlib/__init__.py", line 771, in open
    return io.open(self, mode, buffering, encoding, errors, newline)
           ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/opt/android-sdk/build-tools/36.0.0/package.xml'

Local variables in innermost frame:
self: PosixPath('/opt/android-sdk/build-tools/36.0.0/package.xml')
mode: 'w'
buffering: -1
encoding: 'locale'
errors: None
newline: None

Comment 1 Mr Beedell, Roke Julian Lockhart 2025-12-15 18:13:51 UTC
Created attachment 2118830 [details]
File: os_info

Comment 2 Mr Beedell, Roke Julian Lockhart 2025-12-15 18:13:52 UTC
Created attachment 2118831 [details]
File: environ

Comment 3 Mr Beedell, Roke Julian Lockhart 2025-12-15 18:13:54 UTC
Created attachment 2118832 [details]
File: mountinfo

Comment 4 Mr Beedell, Roke Julian Lockhart 2025-12-15 18:13:55 UTC
Created attachment 2118833 [details]
File: open_fds

Comment 5 Mr Beedell, Roke Julian Lockhart 2025-12-15 18:13:56 UTC
Created attachment 2118834 [details]
File: namespaces

Comment 6 Mr Beedell, Roke Julian Lockhart 2025-12-15 18:13:57 UTC
Created attachment 2118835 [details]
File: backtrace

Comment 7 Mr Beedell, Roke Julian Lockhart 2025-12-15 18:13:58 UTC
Created attachment 2118836 [details]
File: cpuinfo

Comment 8 Mr Beedell, Roke Julian Lockhart 2025-12-15 18:17:18 UTC
This remediated itself when I re-invoked `run0 sdkmanager "build-tools;36.0.0"`.