BG3ModManager-LinuxLauncher icon indicating copy to clipboard operation
BG3ModManager-LinuxLauncher copied to clipboard

returned non-zero exit status 99

Open mbauer599 opened this issue 2 years ago • 4 comments

Just putting this in here for anyone else who may encounter errors:

Installing dotnet472 if necessary...
Running WINEPREFIX=/home/user/.local/share/wineprefixes/BG3MM/ winetricks dotnet472
Traceback (most recent call last):
  File "/opt/BG3MM/linux.py", line 258, in <module>
    main()
  File "/opt/BG3MM/linux.py", line 243, in main
    setup_wineprefix()
  File "/opt/BG3MM/linux.py", line 103, in setup_wineprefix
    run_command(f"WINEPREFIX={prefix_location} winetricks dotnet472")
  File "/opt/BG3MM/linux.py", line 82, in run_command
    result = subprocess.run(cmd, shell=True, check=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
  File "/usr/lib/python3.10/subprocess.py", line 526, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command 'WINEPREFIX=/home/user/.local/share/wineprefixes/BG3MM/ winetricks dotnet472' returned non-zero exit status 99.
warning: This package (dotnet45) is broken in wine-8.0.2. Broken since 5.18. See https://bugs.winehq.org/show_bug.cgi?id=49897 for more info. Use --force to try anyway.

As suggested, and exactly what I expect from .net, I just forced it through but I'm also super lazy so I just added --force to winetricks in the script.

mbauer599 avatar Dec 08 '23 16:12 mbauer599

THANKS FOR MENTIONING THIS. Ran into exactly this problem. Thank you thank you.

FlatDevice avatar Apr 27 '24 06:04 FlatDevice

Where did you insert --force? I attempted added it to the end of the line saying run command for installing dotnet472 but still got non-zero exit code 99

jpruitt2297 avatar Jun 15 '24 15:06 jpruitt2297

@jpruitt2297

Where did you insert --force? I attempted added it to the end of the line saying run command for installing dotnet472 but still got non-zero exit code 99

In linux.py where winetricks is called. Just be aware that this IS the lazy solution. But I'm okay with that.

def setup_wineprefix():
    # Create WINEPREFIX if it doesn't exist
    print("Checking if WINEPREFIX exists...")
    if not os.path.exists(prefix_location):
        print("Creating WINEPREFIX...")
        os.makedirs(prefix_location)
        print(f"{prefix_location} created, running winecfg.")
        notify("Click 'OK' on the 'Wine configuration' window when it appears to
 continue...")
        run_command(f"WINEPREFIX={prefix_location} winecfg")
    print("Installing dotnet472 if necessary...")
    run_command(f"WINEPREFIX={prefix_location} winetricks --force dotnet472")
    print("Installing d3dcompiler_47 if necessary...")
    run_command(f"WINEPREFIX={prefix_location} winetricks --force d3dcompiler_47")
    
  

mbauer599 avatar Jun 15 '24 15:06 mbauer599

Ah, okay. I think when I attempted that but I put the --force after the components attempting install. I did manage to fix this situation though through winegui handling installs to the wineprefix with no issues. So I guess if someone still has trouble, they could try that.

@jpruitt2297

Where did you insert --force? I attempted added it to the end of the line saying run command for installing dotnet472 but still got non-zero exit code 99

In linux.py where winetricks is called. Just be aware that this IS the lazy solution. But I'm okay with that.

def setup_wineprefix():
    # Create WINEPREFIX if it doesn't exist
    print("Checking if WINEPREFIX exists...")
    if not os.path.exists(prefix_location):
        print("Creating WINEPREFIX...")
        os.makedirs(prefix_location)
        print(f"{prefix_location} created, running winecfg.")
        notify("Click 'OK' on the 'Wine configuration' window when it appears to
 continue...")
        run_command(f"WINEPREFIX={prefix_location} winecfg")
    print("Installing dotnet472 if necessary...")
    run_command(f"WINEPREFIX={prefix_location} winetricks --force dotnet472")
    print("Installing d3dcompiler_47 if necessary...")
    run_command(f"WINEPREFIX={prefix_location} winetricks --force d3dcompiler_47")
    
  

jpruitt2297 avatar Jun 20 '24 15:06 jpruitt2297