lutris / lutris

Lutris desktop client
https://lutris.net
GNU General Public License v3.0
7.77k stars 687 forks source link

AttributeError("'NoneType' object has no attribute 'lower'") when trying to install games #4256

Closed lilithwhite closed 1 year ago

lilithwhite commented 2 years ago

Bug description

When trying to install anything from the installers at the Lutris website (Possibly using other methods too, haven't tried to install anything manually) I get the error "AttributeError("'NoneType' object has no attribute 'lower'")"

How to Reproduce

Steps to reproduce the behavior:

  1. Use any installer from the lutris website to try to install a game
  2. Receive the error "AttributeError("'NoneType' object has no attribute 'lower'")"

Expected behavior

Lutris should be able to install games.

Log output

lutris -d
INFO     2022-05-03 10:47:16,631 [startup.init_lutris:173]:Starting Lutris 0.5.10
WARNING  2022-05-03 10:47:16,663 [libretro.get_libretro_cores:24]:No folder at /home/seren/.local/share/lutris/runners/retroarch/
DEBUG    2022-05-03 10:47:16,670 [xrandr._get_vidmodes:15]:Retrieving video modes from XrandR
INFO     2022-05-03 10:47:16,706 [startup.check_driver:57]:Using NVIDIA drivers 510.68.02 for x86_64
INFO     2022-05-03 10:47:16,706 [startup.check_driver:61]:GPU: NVIDIA GeForce RTX 2060 with Max-Q Design
INFO     2022-05-03 10:47:16,706 [startup.check_driver:77]:GPU: 10DE:1F12 1043:1F11 (nvidia drivers)
INFO     2022-05-03 10:47:16,706 [startup.check_driver:77]:GPU: 1002:1636 1043:1F11 (amdgpu drivers)
INFO     2022-05-03 10:47:16,803 [startup.update_runtime:213]:Startup complete
DEBUG    2022-05-03 10:47:16,896 [lutriswindow.update_store:437]:Showing 0 games
DEBUG    2022-05-03 10:47:19,837 [application.show_window:332]:Showing window AddGamesWindow{}
DEBUG    2022-05-03 10:47:25,348 [http.get:83]:GET https://lutris.net/api/games?search=ubisoft+connect&with-installers=True
DEBUG    2022-05-03 10:47:27,270 [api.get_game_installers:160]:Fetching installer https://lutris.net/api/installers/ubisoft-connect
DEBUG    2022-05-03 10:47:27,270 [http.get:83]:GET https://lutris.net/api/installers/ubisoft-connect
DEBUG    2022-05-03 10:47:27,739 [application.show_window:332]:Showing window InstallerWindowubisoft-connect
DEBUG    2022-05-03 10:47:27,739 [application.on_app_window_destroyed:350]:Removed window AddGamesWindow{}
DEBUG    2022-05-03 10:47:29,504 [xrandr._get_vidmodes:15]:Retrieving video modes from XrandR
INFO     2022-05-03 10:47:31,325 [runner.get_runner_version:324]:Getting runner information for wine
DEBUG    2022-05-03 10:47:31,325 [http.get:83]:GET https://lutris.net/api/runners/wine
DEBUG    2022-05-03 10:47:31,719 [interpreter.get_runners_to_install:223]:Default wine version is lutris-fshack-7.2
DEBUG    2022-05-03 10:47:31,727 [interpreter.get_extras:159]:Checking if service provide extra files
DEBUG    2022-05-03 10:47:31,727 [installer.prepare_game_files:146]:No service to retrieve files from
DEBUG    2022-05-03 10:47:31,738 [interpreter.create_game_folder:181]:Creating destination path /home/seren/Games/ubisoft-connect
DEBUG    2022-05-03 10:47:32,937 [downloader.start:65]:⬇ https://ubistatic3-a.akamaihd.net/orbit/launcher_installer/UbisoftConnectInstaller.exe
DEBUG    2022-05-03 10:47:59,638 [downloader.download_cb:125]:Finished downloading https://ubistatic3-a.akamaihd.net/orbit/launcher_installer/UbisoftConnectInstaller.exe
INFO     2022-05-03 10:48:00,061 [file_box.on_download_complete:252]:Download completed
DEBUG    2022-05-03 10:48:00,061 [files_box.on_file_available:93]:uplay is available
INFO     2022-05-03 10:48:00,061 [files_box.on_file_available:99]:All files available
INFO     2022-05-03 10:48:00,061 [installerwindow.on_files_available:463]:All files are available, continuing install
DEBUG    2022-05-03 10:48:00,063 [interpreter._iter_commands:317]:Installer command: {'task': {'name': 'create_prefix', 'prefix': '$GAMEDIR'}}
INFO     2022-05-03 10:48:00,067 [wine.create_prefix:96]:Creating a win64 prefix in /home/seren/Games/ubisoft-connect
DEBUG    2022-05-03 10:48:00,067 [system.execute:56]:Executing /home/seren/.local/share/lutris/runners/wine/lutris-fshack-7.2-x86_64/bin/wineboot
DEBUG    2022-05-03 10:48:00,067 [system.execute:62]:WINEARCH=win64 WINEPREFIX=/home/seren/Games/ubisoft-connect WINEDLLOVERRIDES=winemenubuilder= WINE_MONO_CACHE_DIR=/home/seren/.local/share/lutris/runners/wine/lutris-fshack-7.2-x86_64/mono WINE_GECKO_CACHE_DIR=/home/seren/.local/share/lutris/runners/wine/lutris-fshack-7.2-x86_64/gecko
INFO     2022-05-03 10:48:15,660 [wine.create_prefix:147]:win64 Prefix created in /home/seren/Games/ubisoft-connect
DEBUG    2022-05-03 10:48:15,722 [interpreter._iter_commands:317]:Installer command: {'task': {'app': 'arial', 'name': 'winetricks', 'prefix': '$GAMEDIR'}}
DEBUG    2022-05-03 10:48:15,763 [wine.use_lutris_runtime:115]:/home/seren/.local/share/lutris/runners/wine/lutris-fshack-7.2-x86_64/bin/wine is provided by Lutris, using runtime
ERROR    2022-05-03 10:48:16,125 [jobs.target:36]:Error while completing task <bound method CommandsMixin.task of <interpreter.ScriptInterpreter object at 0x7fd2d185b380 (lutris+installer+interpreter+ScriptInterpreter at 0x2263060)>>: <class 'AttributeError'> 'NoneType' object has no attribute 'lower'
  File "/usr/lib/python3/dist-packages/lutris/util/jobs.py", line 34, in target
    result = self.function(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/lutris/installer/commands.py", line 436, in task
    command = task(**data)
  File "/usr/lib/python3/dist-packages/lutris/runners/commands/wine.py", line 346, in winetricks
    return wineexec(
  File "/usr/lib/python3/dist-packages/lutris/runners/commands/wine.py", line 299, in wineexec
    wine.prelaunch()
  File "/usr/lib/python3/dist-packages/lutris/runners/wine.py", line 799, in prelaunch
    self.setup_dlls(
  File "/usr/lib/python3/dist-packages/lutris/runners/wine.py", line 776, in setup_dlls
    if dll_manager.version.lower() != "manual":
ERROR    2022-05-03 10:48:16,126 [interpreter._iter_commands:302]:Last install command failed, show error
INFO     2022-05-03 10:48:21,506 [interpreter.revert:374]:Cancelling installation of Ubisoft Connect
DEBUG    2022-05-03 10:48:21,509 [wine.winekill:165]:Killing all wine processes: ['/home/seren/.local/share/lutris/runners/wine/lutris-fshack-7.2-x86_64/bin/wineserver', '-k']
DEBUG    2022-05-03 10:48:21,509 [wine.winekill:166]:   Wine prefix: /home/seren/Games/ubisoft-connect
DEBUG    2022-05-03 10:48:21,509 [wine.winekill:167]:   Wine arch: win64
DEBUG    2022-05-03 10:48:21,516 [wine.winekill:173]:Waiting for wine processes to terminate
DEBUG    2022-05-03 10:48:21,517 [wine.winekill:189]:Done waiting.
DEBUG    2022-05-03 10:48:21,517 [system.remove_folder:229]:Removing folder /home/seren/Games/ubisoft-connect
DEBUG    2022-05-03 10:48:21,731 [system.remove_folder:229]:Removing folder /home/seren/.cache/lutris/installer/ubisoft-connect
DEBUG    2022-05-03 10:48:21,760 [application.on_app_window_destroyed:350]:Removed window InstallerWindowubisoft-connect
INFO     2022-05-03 10:48:23,467 [application.do_shutdown:885]:Shutting down Lutris

System Information

[System]
OS:              Pop!_OS 21.10 impish
Arch:            x86_64
Kernel:          5.16.19-76051619-generic
Desktop:         KDE
Display Server:  x11

[CPU]
Vendor:          AuthenticAMD
Model:           AMD Ryzen 9 4900HS with Radeon Graphics
Physical cores:  8
Logical cores:   16

[Memory]
RAM:             38.7 GB
Swap:            4.0 GB

[Graphics]
Vendor:          AMD
OpenGL Renderer: AMD RENOIR (DRM 3.44.0, 5.16.19-76051619-generic, LLVM 12.0.1)
OpenGL Version:  4.6 (Compatibility Profile) Mesa 21.3.5
OpenGL Core:     4.6 (Core Profile) Mesa 21.3.5
OpenGL ES:       OpenGL ES 3.2 Mesa 21.3.5
Vulkan:          Supported

Media (optional)

No response

Checklist:

danieljohnson2 commented 2 years ago

I believe this was fixed in release 0.5.10.1. Give that a try.

NoTitleGamesOfficial commented 2 years ago

I'm having the same issue on Ubuntu 20.04. The latest version I get with updates is 5.10. How can I update to 5.10.1?

danieljohnson2 commented 2 years ago

That's a good question! The PPA does not seem to have 0.5.10.1, and I wonder why not.

strycore commented 1 year ago

Fix released