Bug 2345907 - [abrt] bottles: run_program(): bottles-cli:699:run_program:UnboundLocalError: cannot access local variable 'program' where it is not associated with a value
Summary: [abrt] bottles: run_program(): bottles-cli:699:run_program:UnboundLocalError:...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: bottles
Version: 41
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Sandro
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:faef7e5165714c18e467d02a165...
: 2346832 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-02-15 14:53 UTC by jack
Modified: 2025-11-17 03:35 UTC (History)
8 users (show)

Fixed In Version: bottles-52.0-4.fc41
Clone Of:
Environment:
Last Closed: 2025-11-17 03:35:43 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: os_info (754 bytes, text/plain)
2025-02-15 14:53 UTC, jack
no flags Details
File: environ (1.69 KB, text/plain)
2025-02-15 14:53 UTC, jack
no flags Details
File: mountinfo (5.00 KB, text/plain)
2025-02-15 14:53 UTC, jack
no flags Details
File: open_fds (1.03 KB, text/plain)
2025-02-15 14:53 UTC, jack
no flags Details
File: namespaces (171 bytes, text/plain)
2025-02-15 14:53 UTC, jack
no flags Details
File: backtrace (2.93 KB, text/plain)
2025-02-15 14:53 UTC, jack
no flags Details
File: cpuinfo (3.14 KB, text/plain)
2025-02-15 14:53 UTC, jack
no flags Details

Description jack 2025-02-15 14:53:04 UTC
Description of problem:
Tried to install Vintage Story from an exe

Version-Release number of selected component:
bottles-1:51.17-3.fc41

Additional info:
reporter:       libreport-2.17.15
kernel:         6.12.11-200.fc41.x86_64
cmdline:        /usr/bin/python3 /usr/bin/bottles-cli run -b '\"Vintage Story\"' -e '\"/home/jackgreenearth/.local/share/applications/1.20.4(stable)/vs_install_win-x64_1.20.4.exe\"'
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/dbus-:1.2-org.gnome.Nautilus
uid:            1000
reason:         bottles-cli:699:run_program:UnboundLocalError: cannot access local variable 'program' where it is not associated with a value
executable:     /usr/bin/bottles-cli
type:           Python3
package:        bottles-1:51.17-3.fc41
runlevel:       N 5
exception_type: UnboundLocalError
crash_function: run_program
interpreter:    python3-3.13.2-1.fc41.x86_64
comment:        Tried to install Vintage Story from an exe

Truncated backtrace:
bottles-cli:699:run_program:UnboundLocalError: cannot access local variable 'program' where it is not associated with a value

Traceback (most recent call last):
  File "/usr/bin/bottles-cli", line 758, in <module>
    cli = CLI()
  File "/usr/bin/bottles-cli", line 236, in __init__
    self.__process_args()
    ~~~~~~~~~~~~~~~~~~~^^
  File "/usr/bin/bottles-cli", line 285, in __process_args
    self.run_program()
    ~~~~~~~~~~~~~~~~^^
  File "/usr/bin/bottles-cli", line 699, in run_program
    WineExecutor.run_program(bottle, program)
                                     ^^^^^^^
UnboundLocalError: cannot access local variable 'program' where it is not associated with a value

Local variables in innermost frame:
self: <__main__.CLI object at 0x7f53a6df5940>
_bottle: 'Vintage Story'
_program: None
_keep: True
_args: ''
_executable: '/home/jackgreenearth/.local/share/applications/1.20.4(stable)/vs_install_win-x64_1.20.4.exe'
_cwd: None
_pre_script: None
_post_script: None
_program_dxvk: None
_program_vkd3d: None
_program_dxvk_nvapi: None
_program_fsr: None
_program_gamescope: None
_program_virt_desktop: None
mng: <bottles.backend.managers.manager.Manager object at 0x7f53a6df6cf0>
b: 'Vintage Story'
bottle: BottleConfig(Name='Vintage Story', Arch='win64', Windows='win10', Runner='soda-9.0-1', WorkingDir='', DXVK='dxvk-2.5.2', NVAPI='dxvk-nvapi-v0.8.0', VKD3D='vkd3d-proton-2.14.1', LatencyFleX='latencyflex-v0.1.1', Path='Vintage-Story', Custom_Path=False, Environment='Gaming', Creation_Date='2025-02-15 14:40:49.570815', Update_Date='2025-02-15 14:42:54.882846', Versioning=False, Versioning_Exclusion_Patterns=[], State=0, Parameters=BottleParams(dxvk=True, dxvk_nvapi=False, vkd3d=True, latencyflex=False, mangohud=False, mangohud_display_on_game_start=True, obsvkc=False, vkbasalt=False, gamemode=False, gamescope=False, gamescope_game_width=0, gamescope_game_height=0, gamescope_window_width=0, gamescope_window_height=0, gamescope_fps=0, gamescope_fps_no_focus=0, gamescope_scaling=False, gamescope_borderless=False, gamescope_fullscreen=True, sync='fsync', fsr=False, fsr_sharpening_strength=2, fsr_quality_mode='none', custom_dpi=96, renderer='gl', discrete_gpu=True, virtual_desktop=False, virtual_desktop_res='1280x720', pulseaudio_latency=False, fullscreen_capture=False, take_focus=False, mouse_warp=True, decorated=True, fixme_logs=False, use_runtime=False, use_eac_runtime=True, use_be_runtime=True, use_steam_runtime=False, sandbox=False, versioning_compression=False, versioning_automatic=False, versioning_exclusion_patterns=False, vmtouch=False, vmtouch_cache_cwd=False), Sandbox=BottleSandboxParams(share_net=False, share_sound=False), Environment_Variables={}, Installed_Dependencies=['d3dx9', 'msls31', 'arial32', 'times32', 'courie32', 'd3dcompiler_43', 'd3dcompiler_47', 'mono', 'gecko'], DLL_Overrides={}, External_Programs={}, Uninstallers={}, session_arguments='', run_in_terminal=False, Language='sys', CompatData='', data={}, RunnerPath='')
programs: []

Comment 1 jack 2025-02-15 14:53:09 UTC
Created attachment 2076631 [details]
File: os_info

Comment 2 jack 2025-02-15 14:53:10 UTC
Created attachment 2076632 [details]
File: environ

Comment 3 jack 2025-02-15 14:53:11 UTC
Created attachment 2076633 [details]
File: mountinfo

Comment 4 jack 2025-02-15 14:53:12 UTC
Created attachment 2076634 [details]
File: open_fds

Comment 5 jack 2025-02-15 14:53:13 UTC
Created attachment 2076635 [details]
File: namespaces

Comment 6 jack 2025-02-15 14:53:14 UTC
Created attachment 2076636 [details]
File: backtrace

Comment 7 jack 2025-02-15 14:53:16 UTC
Created attachment 2076637 [details]
File: cpuinfo

Comment 8 Sandro 2025-03-22 15:51:47 UTC
*** Bug 2346832 has been marked as a duplicate of this bug. ***

Comment 9 Sandro 2025-03-22 15:53:14 UTC
I was able t reproduce this with 51.17. It appears to be fixed in 51.21, which I'm going to push shortly.

Comment 10 Fedora Update System 2025-03-22 16:50:01 UTC
FEDORA-2025-b66b6f6fe5 (bottles-51.21-2.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-b66b6f6fe5

Comment 11 Fedora Update System 2025-03-23 02:42:14 UTC
FEDORA-2025-b66b6f6fe5 has been pushed to the Fedora 41 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-b66b6f6fe5`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-b66b6f6fe5

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 12 Sandro 2025-11-08 13:21:09 UTC
(In reply to Sandro from comment #9)
> I was able t reproduce this with 51.17. It appears to be fixed in 51.21,
> which I'm going to push shortly.

I had to pull 51.21 due to a bug which made Bottles unusable in certain circumstances. This has now been fixed and an update to 52.0 will be pushed to testing shortly.

Comment 13 Fedora Update System 2025-11-08 15:49:18 UTC
FEDORA-2025-9e0bd12f85 (bottles-52.0-4.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-9e0bd12f85

Comment 14 Fedora Update System 2025-11-09 05:01:07 UTC
FEDORA-2025-9e0bd12f85 has been pushed to the Fedora 41 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-9e0bd12f85`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-9e0bd12f85

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 15 Fedora Update System 2025-11-17 03:35:43 UTC
FEDORA-2025-9e0bd12f85 (bottles-52.0-4.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.


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