Bug 2221500

Summary: [abrt] bottles: __get_exec_type(): executor.py:172:__get_exec_type:AttributeError: 'NoneType' object has no attribute 'lower'
Product: [Fedora] Fedora Reporter: alod123
Component: bottlesAssignee: Sandro <gui1ty>
Status: ASSIGNED --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 38CC: alod123, ego.cordatus, gui1ty, mail, maxwell, thunderbirdtr, walter.pete
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/e2bce7cc596385de764146502acdfb33fc8e9ce
Whiteboard: abrt_hash:e2670b1029ada111e64820a08e23a43398ff85b5;VARIANT_ID=xfce;
Fixed In Version: Doc Type: If docs needed, set a value
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 alod123 2023-07-09 14:33:40 UTC
Version-Release number of selected component:
bottles-1:51.6-1.fc38

Additional info:
reporter:       libreport-2.17.11
kernel:         6.3.8-200.fc38.x86_64
cgroup:         0::/user.slice/user-1000.slice/session-12.scope
uid:            1000
reason:         executor.py:172:__get_exec_type:AttributeError: 'NoneType' object has no attribute 'lower'
executable:     /usr/bin/bottles-cli
type:           Python3
package:        bottles-1:51.6-1.fc38
runlevel:       N 5
exception_type: AttributeError
crash_function: __get_exec_type
interpreter:    python3-3.11.4-1.fc38.x86_64
cmdline:        /usr/bin/python3 /usr/bin/bottles-cli run -b gaming1 executableNameUnity.exe

Truncated backtrace:
executor.py:172:__get_exec_type:AttributeError: 'NoneType' object has no attribute 'lower'

Traceback (most recent call last):
  File "/usr/bin/bottles-cli", line 653, in <module>
    cli = CLI()
          ^^^^^
  File "/usr/bin/bottles-cli", line 150, in __init__
    self.__process_args()
  File "/usr/bin/bottles-cli", line 199, in __process_args
    self.run_program()
  File "/usr/bin/bottles-cli", line 588, in run_program
    WineExecutor(
  File "/usr/share/bottles/bottles/backend/wine/executor.py", line 55, in __init__
    self.exec_type = self.__get_exec_type(exec_path)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/share/bottles/bottles/backend/wine/executor.py", line 172, in __get_exec_type
    _exec = exec_path.lower()
            ^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'lower'

Local variables in innermost frame:
exec_path: None

Comment 1 alod123 2023-07-09 14:33:44 UTC
Created attachment 1974844 [details]
File: os_info

Comment 2 alod123 2023-07-09 14:33:45 UTC
Created attachment 1974845 [details]
File: environ

Comment 3 alod123 2023-07-09 14:33:47 UTC
Created attachment 1974846 [details]
File: mountinfo

Comment 4 alod123 2023-07-09 14:33:48 UTC
Created attachment 1974847 [details]
File: open_fds

Comment 5 alod123 2023-07-09 14:33:49 UTC
Created attachment 1974848 [details]
File: namespaces

Comment 6 alod123 2023-07-09 14:33:51 UTC
Created attachment 1974849 [details]
File: backtrace

Comment 7 alod123 2023-07-09 14:33:52 UTC
Created attachment 1974850 [details]
File: cpuinfo

Comment 8 Sandro 2023-07-09 21:33:31 UTC
I think you made a mistake constructing the command:

> cmdline:        /usr/bin/python3 /usr/bin/bottles-cli run -b gaming1 executableNameUnity.exe

You have to pass the executable name with '-e foo.exe'. In your case, assuming 'executableName' is not part of the name, this should be:

bottles-cli run -b gaming1 -e Unity.exe

If I leave out the '-e' I can reproduce the AttributeError.

In case you didn't run 'bottles-cli' yourself, could you describe what steps you took that resulted in the error?