Matoking / protontricks

A wrapper that does winetricks things for Proton enabled games, requires Winetricks.
GNU General Public License v3.0
1.61k stars 34 forks source link

protontricks error on steam deck #183

Closed FASTRACER023 closed 10 months ago

FASTRACER023 commented 1 year ago

whenever i try to run a protontricks command in konsole i get this error :

protontricks (ERROR): 'winetricks' executable could not be found automatically. Winetricks isn't installed, please install winetricks in order to use this script!

what do i do? i tried installing protontricks both through discover and konsole but no luck.

Matoking commented 1 year ago

What do you mean by "installing it through Konsole"? Did you use pipx, pacman or something else? What distro are you using?

For the Flatpak version, the command-line version is not available through protontricks just by installing it. You'll also have to setup an alias as described here. Alternatively, you can substitute protontricks for flatpak run com.github.Matoking.protontricks which does the same thing. For example, instead of running

protontricks 1234 foo

just run

flatpak run com.github.Matoking.protontricks 1234 foo
FASTRACER023 commented 1 year ago

What do you mean by "installing it through Konsole"? Did you use pipx, pacman or something else? What distro are you using?

For the Flatpak version, the command-line version is not available through protontricks just by installing it. You'll also have to setup an alias as described here. Alternatively, you can substitute protontricks for flatpak run com.github.Matoking.protontricks which does the same thing. For example, instead of running

protontricks 1234 foo

just run

flatpak run com.github.Matoking.protontricks 1234 foo

hi, thanks for the reply.

i used pacman to install through konsole and i'm also on steamos, since im on steamdeck

your suggestion worked but i'm still having trouble with winecfg command. any suggestions?

Matoking commented 1 year ago

I need more information than that. What are you trying to do (eg. what is the command), and what is happening instead?

FASTRACER023 commented 1 year ago

i'm following a tutorial for a game and one of the commands is

$ flatpak run com.github.Matoking.protontricks -c winecfg 244210

the output was along the lines of winecfg on recognized as command

FASTRACER023 commented 1 year ago

i'm following a tutorial for a game and one of the commands is

$ flatpak run com.github.Matoking.protontricks -c winecfg 244210

the output was along the lines of winecfg on recognized as command

after rerunning the commands, the output is

/bin/sh: line 1: winecfg: command not found

Matoking commented 1 year ago

Try the following command instead:

flatpak run com.github.Matoking.protontricks -c "wine winecfg" 244210

Alternatively, start Protontricks -> select the game -> select "Select the default wineprefix" -> "Run winecfg", which should do the same thing.

HellishINC commented 1 year ago

I'm getting the a similar error message though I'm using flatpak on Gentoo.

Protontricks was closed due to the following error:

Traceback (most recent call last):
  File "/app/lib/python3.10/site-packages/protontricks/cli/util.py", line 149, in wrapper
    return cli_func(self, *args, **kwargs)
  File "/app/lib/python3.10/site-packages/protontricks/cli/main.py", line 234, in main
    prompt_filesystem_access(
  File "/app/lib/python3.10/site-packages/protontricks/gui.py", line 372, in prompt_filesystem_access
    inaccessible_paths = get_inaccessible_paths(paths)
  File "/app/lib/python3.10/site-packages/protontricks/flatpak.py", line 167, in get_inaccessible_paths
    mounted_paths = [_map_path(path) for path in mounted_paths]
  File "/app/lib/python3.10/site-packages/protontricks/flatpak.py", line 167, in <listcomp>
    mounted_paths = [_map_path(path) for path in mounted_paths]
  File "/app/lib/python3.10/site-packages/protontricks/flatpak.py", line 134, in _map_path
    if path.startswith("/"):
AttributeError: 'NoneType' object has no attribute 'startswith'

=============

Please include this entire error message when making a bug report.
Log messages:

Running inside Flatpak sandbox, version 1.12.3.
Found Steam directory at /home/helly/.var/app/com.valvesoftware.Steam/.local/share/Steam
Using default Steam Runtime at /home/helly/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_32/steam-runtime
WINETRICKS environment variable is not available. Searching from $PATH.
Found 1 Steam library folders

When trying to run from term I get

flatpak run com.github.Matoking.protontricks -c "wine winecfg" 1245620
Traceback (most recent call last):
  File "/app/bin/protontricks", line 8, in <module>
    sys.exit(cli())
  File "/app/lib/python3.10/site-packages/protontricks/cli/main.py", line 32, in cli
    main(args)
  File "/app/lib/python3.10/site-packages/protontricks/cli/util.py", line 149, in wrapper
    return cli_func(self, *args, **kwargs)
  File "/app/lib/python3.10/site-packages/protontricks/cli/main.py", line 234, in main
    prompt_filesystem_access(
  File "/app/lib/python3.10/site-packages/protontricks/gui.py", line 372, in prompt_filesystem_access
    inaccessible_paths = get_inaccessible_paths(paths)
  File "/app/lib/python3.10/site-packages/protontricks/flatpak.py", line 167, in get_inaccessible_paths
    mounted_paths = [_map_path(path) for path in mounted_paths]
  File "/app/lib/python3.10/site-packages/protontricks/flatpak.py", line 167, in <listcomp>
    mounted_paths = [_map_path(path) for path in mounted_paths]
  File "/app/lib/python3.10/site-packages/protontricks/flatpak.py", line 134, in _map_path
    if path.startswith("/"):
AttributeError: 'NoneType' object has no attribute 'startswith'

(edit: whoops had a typo, fixed output)

Missed #167 Seems many are having this same issue. I see there are other (though unhelpful) reviews on discover also stating it does not launch. There is no SD on my end as this is running of my nvme.

EDIT: Found a workaround. Downgrading to an older version restores functionality.

flatpak update --commit=fab6248ad1c2c8fc59a45c1cfc8cce914a759e1c68373d82ea1c03e0f75b9098 com.github.Matoking.protontricks
Matoking commented 1 year ago

@HellishINC Whoops, that was a bug introduced in 1.10.0. I've pushed a fix to Flathub that should go live in a few hours.

Matoking commented 10 months ago

Closing issue due to inactivity.

stiinkyratz commented 1 month ago

i cant run the commands listed to fix the protontricks bug

(deck@steamdeck ~)$ flatpak update --commit=fab6248ad1c2c8fc59a45c1cfc8cce914a759e1c68373d82ea1c03e0f75b9098 com.github.Matoking.protontricks Looking for updates… error: Server returned status 404 (1)(deck@steamdeck ~)$