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: CLOSED ERRATA
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-09-26 01:21 UTC (History)
7 users (show)

Fixed In Version: bottles-51.9-1.fc40 bottles-51.9-1.fc39 bottles-51.9-1.fc38
Clone Of:
Environment:
Last Closed: 2023-09-17 20:32:08 UTC
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?

Comment 9 Fedora Update System 2023-09-17 20:31:06 UTC
FEDORA-2023-ab9b6be38b has been submitted as an update to Fedora 40. https://bodhi.fedoraproject.org/updates/FEDORA-2023-ab9b6be38b

Comment 10 Fedora Update System 2023-09-17 20:32:08 UTC
FEDORA-2023-ab9b6be38b has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 11 Fedora Update System 2023-09-17 20:35:46 UTC
FEDORA-2023-5d9f9069dd has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-5d9f9069dd

Comment 12 Fedora Update System 2023-09-17 20:36:08 UTC
FEDORA-2023-1886bcf803 has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2023-1886bcf803

Comment 13 Fedora Update System 2023-09-18 02:05:18 UTC
FEDORA-2023-1886bcf803 has been pushed to the Fedora 39 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-1886bcf803`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-1886bcf803

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

Comment 14 Fedora Update System 2023-09-18 03:15:21 UTC
FEDORA-2023-5d9f9069dd has been pushed to the Fedora 38 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-5d9f9069dd`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-5d9f9069dd

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

Comment 15 Fedora Update System 2023-09-26 00:17:51 UTC
FEDORA-2023-1886bcf803 has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 16 Fedora Update System 2023-09-26 01:21:32 UTC
FEDORA-2023-5d9f9069dd has been pushed to the Fedora 38 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.