Bug 2422339 - [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'
Summary: [abrt] python3-sdkmanager: open(): __init__.py:771:open:FileNotFoundError: [E...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: python-sdkmanager
Version: 43
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Benson Muite
QA Contact:
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:9fa0f347a50b769fffb11d9633f...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-12-15 18:13 UTC by Mr Beedell, Roke Julian Lockhart
Modified: 2025-12-15 18:17 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)
File: os_info (712 bytes, text/plain)
2025-12-15 18:13 UTC, Mr Beedell, Roke Julian Lockhart
no flags Details
File: environ (670 bytes, text/plain)
2025-12-15 18:13 UTC, Mr Beedell, Roke Julian Lockhart
no flags Details
File: mountinfo (3.91 KB, text/plain)
2025-12-15 18:13 UTC, Mr Beedell, Roke Julian Lockhart
no flags Details
File: open_fds (315 bytes, text/plain)
2025-12-15 18:13 UTC, Mr Beedell, Roke Julian Lockhart
no flags Details
File: namespaces (171 bytes, text/plain)
2025-12-15 18:13 UTC, Mr Beedell, Roke Julian Lockhart
no flags Details
File: backtrace (1.23 KB, text/plain)
2025-12-15 18:13 UTC, Mr Beedell, Roke Julian Lockhart
no flags Details
File: cpuinfo (3.78 KB, text/plain)
2025-12-15 18:13 UTC, Mr Beedell, Roke Julian Lockhart
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 2422333 0 unspecified NEW [abrt] python3-sdkmanager: mkdir(): __init__.py:1011:mkdir:PermissionError: [Errno 13] Permission denied: '/opt/android-... 2025-12-29 10:04:11 UTC
Red Hat Bugzilla 2422339 0 unspecified NEW [abrt] python3-sdkmanager: open(): __init__.py:771:open:FileNotFoundError: [Errno 2] No such file or directory: '/opt/an... 2025-12-15 18:17:18 UTC

Internal Links: 2422333 2422339

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"`.


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