Bug 2422333 - [abrt] python3-sdkmanager: mkdir(): __init__.py:1011:mkdir:PermissionError: [Errno 13] Permission denied: '/opt/android-sdk'
Summary: [abrt] python3-sdkmanager: mkdir(): __init__.py:1011:mkdir:PermissionError: [...
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:70559869d738a2dde8fe1a308e6...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-12-15 17:46 UTC by Mr. Beedell, Roke Julian Lockhart (RJLB)
Modified: 2025-12-29 10:04 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 17:46 UTC, Mr. Beedell, Roke Julian Lockhart (RJLB)
no flags Details
File: environ (4.91 KB, text/plain)
2025-12-15 17:46 UTC, Mr. Beedell, Roke Julian Lockhart (RJLB)
no flags Details
File: mountinfo (3.77 KB, text/plain)
2025-12-15 17:46 UTC, Mr. Beedell, Roke Julian Lockhart (RJLB)
no flags Details
File: open_fds (301 bytes, text/plain)
2025-12-15 17:46 UTC, Mr. Beedell, Roke Julian Lockhart (RJLB)
no flags Details
File: namespaces (171 bytes, text/plain)
2025-12-15 17:46 UTC, Mr. Beedell, Roke Julian Lockhart (RJLB)
no flags Details
File: backtrace (927 bytes, text/plain)
2025-12-15 17:46 UTC, Mr. Beedell, Roke Julian Lockhart (RJLB)
no flags Details
File: cpuinfo (3.78 KB, text/plain)
2025-12-15 17:46 UTC, Mr. Beedell, Roke Julian Lockhart (RJLB)
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
Red Hat Bugzilla 2425654 0 unspecified NEW [abrt] python3-sdkmanager: move(): <frozen os>:236:makedirs:PermissionError: [Errno 13] Permission denied: '/opt/android... 2025-12-29 10:04:11 UTC
Red Hat Bugzilla 2425729 0 unspecified NEW [abrt] python3-sdkmanager: mkdir(): __init__.py:1011:mkdir:PermissionError: [Errno 13] Permission denied: '/opt/android-... 2025-12-29 10:04:18 UTC

Internal Links: 2422333 2422339 2425654

Description Mr. Beedell, Roke Julian Lockhart (RJLB) 2025-12-15 17:46:33 UTC
Description of problem:
~~~
RokeJulianLockhart@Beedell:~$ sdkmanager
bash: sdkmanager: command not found...
Install package 'python3-sdkmanager' to provide command 'sdkmanager'? [N/y] y


 * Waiting in queue... 
 * Loading list of packages.... 
The following packages have to be installed:
 python3-looseversion-1.3.0-11.fc43.noarch      Version numbering for anarchists and software realists
 python3-sdkmanager-0.6.10-6.fc43.noarch        Android SDK manager written in Python
Proceed with changes? [N/y] y


 * Waiting in queue... 
 * Waiting for authentication... 
 * Waiting in queue... 
 * Downloading packages... 
 * Requesting data... 
 * Testing changes... 
 * Installing packages... 
Downloading https://raw.githubusercontent.com/f-droid/android-sdk-transparency-log/master/signed/checksums.json.asc into /home/RokeJulianLockhart/.cache/sdkmanager/checksums.json.asc
Downloading https://raw.githubusercontent.com/f-droid/android-sdk-transparency-log/master/signed/checksums.json into /home/RokeJulianLockhart/.cache/sdkmanager/checksums.json
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 1033, in install
    android_home = get_android_home()
  File "/usr/lib/python3.14/site-packages/sdkmanager.py", line 573, in get_android_home
    android_home.mkdir(exist_ok=True)
    ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.14/pathlib/__init__.py", line 1011, in mkdir
    os.mkdir(self, mode)
    ~~~~~~~~^^^^^^^^^^^^
PermissionError: [Errno 13] Permission denied: '/opt/android-sdk'
~~~

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
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-org.kde.konsole-24320.scope/tab(24344).scope
uid:            1000
reason:         __init__.py:1011:mkdir:PermissionError: [Errno 13] Permission denied: '/opt/android-sdk'
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: PermissionError
crash_function: mkdir
interpreter:    python3-3.14.2-1.fc43.x86_64

Truncated backtrace:
__init__.py:1011:mkdir:PermissionError: [Errno 13] Permission denied: '/opt/android-sdk'

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 1033, in install
    android_home = get_android_home()
  File "/usr/lib/python3.14/site-packages/sdkmanager.py", line 573, in get_android_home
    android_home.mkdir(exist_ok=True)
    ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.14/pathlib/__init__.py", line 1011, in mkdir
    os.mkdir(self, mode)
    ~~~~~~~~^^^^^^^^^^^^
PermissionError: [Errno 13] Permission denied: '/opt/android-sdk'

Local variables in innermost frame:
self: PosixPath('/opt/android-sdk')
mode: 511
parents: False
exist_ok: True

Comment 1 Mr. Beedell, Roke Julian Lockhart (RJLB) 2025-12-15 17:46:36 UTC
Created attachment 2118792 [details]
File: os_info

Comment 2 Mr. Beedell, Roke Julian Lockhart (RJLB) 2025-12-15 17:46:38 UTC
Created attachment 2118793 [details]
File: environ

Comment 3 Mr. Beedell, Roke Julian Lockhart (RJLB) 2025-12-15 17:46:39 UTC
Created attachment 2118794 [details]
File: mountinfo

Comment 4 Mr. Beedell, Roke Julian Lockhart (RJLB) 2025-12-15 17:46:40 UTC
Created attachment 2118795 [details]
File: open_fds

Comment 5 Mr. Beedell, Roke Julian Lockhart (RJLB) 2025-12-15 17:46:42 UTC
Created attachment 2118796 [details]
File: namespaces

Comment 6 Mr. Beedell, Roke Julian Lockhart (RJLB) 2025-12-15 17:46:43 UTC
Created attachment 2118797 [details]
File: backtrace

Comment 7 Mr. Beedell, Roke Julian Lockhart (RJLB) 2025-12-15 17:46:44 UTC
Created attachment 2118798 [details]
File: cpuinfo

Comment 8 Mr. Beedell, Roke Julian Lockhart (RJLB) 2025-12-15 18:14:54 UTC
Per https://bugzilla.redhat.com/show_bug.cgi?id=2422339#c0, this can be bypassed with `run0`.

Comment 9 Mr. Beedell, Roke Julian Lockhart (RJLB) 2025-12-24 15:40:34 UTC
I invoked `sdkmanager` without `run0`.


reporter:       libreport-2.17.15
kernel:         6.17.12-300.fc43.x86_64
cmdline:        /usr/bin/python3 -sP /usr/bin/sdkmanager
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-org.kde.konsole-36732.scope/tab(36754).scope
uid:            1000
reason:         __init__.py:1011:mkdir:PermissionError: [Errno 13] Permission denied: '/opt/android-sdk'
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: PermissionError
crash_function: mkdir
interpreter:    python3-3.14.2-1.fc43.x86_64
comment:        I invoked `sdkmanager` without `run0`.


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