Bug 2221500 - [abrt] bottles: __get_exec_type(): executor.py:172:__get_exec_type:AttributeError: 'NoneType' object has no attribute 'lower'
Summary: [abrt] bottles: __get_exec_type(): executor.py:172:__get_exec_type:AttributeE...
Keywords:
Status: ASSIGNED
Alias: None
Product: Fedora
Classification: Fedora
Component: bottles
Version: 38
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:e2670b1029ada111e64820a08e2...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-07-09 14:33 UTC by alod123
Modified: 2023-07-09 21:33 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)
File: os_info (682 bytes, text/plain)
2023-07-09 14:33 UTC, alod123
no flags Details
File: environ (3.17 KB, text/plain)
2023-07-09 14:33 UTC, alod123
no flags Details
File: mountinfo (3.81 KB, text/plain)
2023-07-09 14:33 UTC, alod123
no flags Details
File: open_fds (936 bytes, text/plain)
2023-07-09 14:33 UTC, alod123
no flags Details
File: namespaces (171 bytes, text/plain)
2023-07-09 14:33 UTC, alod123
no flags Details
File: backtrace (896 bytes, text/plain)
2023-07-09 14:33 UTC, alod123
no flags Details
File: cpuinfo (2.80 KB, text/plain)
2023-07-09 14:33 UTC, alod123
no flags Details

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?


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