Giter Club home page Giter Club logo

Comments (11)

Matoking avatar Matoking commented on July 30, 2024

That's weird; my guess is that one of your Steam library paths has weird characters that are not playing nice with the glob module?

Could you run the following two commands in a new terminal and paste what it prints? It should print a list of your Steam library directories.

source ~/.local/pipx/venvs/protontricks/bin/activate
python -c "from protontricks.steam import find_steam_path, get_steam_lib_paths; steam_path, _ = find_steam_path(); print(get_steam_lib_paths(steam_path))"

from protontricks.

lucifertdark avatar lucifertdark commented on July 30, 2024

I'm getting the same error, here's what those commands print out for me...

['/home/rob/.steam/steam']

from protontricks.

Matoking avatar Matoking commented on July 30, 2024

I'm getting the same error, here's what those commands print out for me...

['/home/rob/.steam/steam']

What OS are you running? What is your Python version (check with python3 --version)?

from protontricks.

lucifertdark avatar lucifertdark commented on July 30, 2024

Those details would help. ;)
Ubuntu 19.10 with the 5.3.0 kernel & Python 3.7.5

from protontricks.

Matoking avatar Matoking commented on July 30, 2024

I pushed a small update to re_debug branch that should print more information when the exception happens.

Install the test version with the following command, reopen the terminal and then try running the command that causes the crash and paste whatever it prints:

pipx install --force --spec git+https://github.com/Matoking/protontricks.git@re_debug protontricks

from protontricks.

lucifertdark avatar lucifertdark commented on July 30, 2024

That seems to have fixed it for me...
edit, nope it's happened again..........
protontricks --gui
Traceback (most recent call last):
File "/home/rob/.local/pipx/venvs/protontricks/lib/python3.7/site-packages/protontricks/gui.py", line 27, in select_steam_app_with_gui
], check=True, stdout=PIPE, stderr=PIPE)
File "/usr/lib/python3.7/subprocess.py", line 512, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['zenity', '--forms', '--text=Steam Game Library', '--title=Choose Game', '--add-combo', 'Pick a library game', '--combo-values', "Acorn Assault: Rodent Revolution: 410290|Aegis Defenders: 371140|Auto Age: Standoff: 458680|Bad North: 688420|Blasphemous: 774361|Book of Demons: 449960|Brothers - A Tale of Two Sons: 225080|Californium: 402060|Castle of Illusion: 227600|Crysis: 17300|Crysis 2 Maximum Edition: 108800|Crysis Warhead: 17330|Dark Future: Blood Red States: 370870|Distrust: 635200|Divide by Sheep: 252130|EARTH'S DAWN: 494600|Emily Wants To Play: 416590|Fall of Light: Darkest Edition: 633950|Gauntlet™ : 258970|Grim Dawn: 219990|HITMAN™ 2: 863550|Hard Reset Redux: 407810|Heat Signature: 268130|INSIDE: 304430|Immortal Planet: 631980|In Fear I Trust: 522690|KHOLAT: 343710|Kathy Rain: 370910|Little Nightmares: 424840|MOTHERGUNSHIP: 574090|Mages of Mystralia: 529660|Morphies Law: 948960|My Memory of Us: 651500|My Time At Portia: 666140|Neighbours from Hell 2: 260770|Next Hero: 756490|Nexus: The Jupiter Incident: 6420|Non-Steam shortcut: Enter The Gungeon: 3853151923|Odallus: The Dark Call: 319480|Odyssey - The Invention of Science: 558110|Oozi: Earth Adventure: 257990|PLANET ALPHA: 485030|Pacify: 967050|Phantom Doctrine: 559100|Pixel Puzzles Traditional Jigsaws: 1058200|Pixel Puzzles Ultimate: 351030|Porcunipine: 352620|Pumped BMX Pro: 966720|Quantum Replica: 470090|Rebel Galaxy: 290300|Renoir: 496400|Republique: 317100|Rise of the Triad: 217140|STAR WARS™: The Force Unleashed™ Ultimate Sith Edition: 32430|Shadow Warrior 2: 324800|SimCity 4 Deluxe: 24780|Sine Mora EX: 606730|Sleeping Dogs: Definitive Edition: 307690|Space Rangers HD: A War Apart: 214730|Sparkle Unleashed: 550450|Styx: Master of Shadows: 242640|Styx: Shards of Darkness: 355790|The Deadly Tower of Monsters: 353700|The King's Bird: 812550|The Light Keeps Us Safe: 853240|The Sexy Brutale: 552590|The Spiral Scouts: 862480|The Surge: 378540|Thief: 239160|Unreal Tournament 3: Black Edition: 13210|Viscera Cleanup Detail: 246900|Warhammer: End Times - Vermintide: 235540"]' died with <Signals.SIGABRT: 6>.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/rob/.local/bin/protontricks", line 8, in
sys.exit(main())
File "/home/rob/.local/pipx/venvs/protontricks/lib/python3.7/site-packages/protontricks/cli.py", line 171, in main
steam_app = select_steam_app_with_gui(steam_apps=steam_apps)
File "/home/rob/.local/pipx/venvs/protontricks/lib/python3.7/site-packages/protontricks/gui.py", line 48, in select_steam_app_with_gui
raise RuntimeError("Zenity returned an error")
RuntimeError: Zenity returned an error

from protontricks.

Matoking avatar Matoking commented on July 30, 2024

That's a different error, although it should also be handled properly as of 24070b0.

You should still be getting the sre_constants.error: bad character range D-1 at position 7 error or something similar, as the change only prints more information when that error happens.

from protontricks.

lucifertdark avatar lucifertdark commented on July 30, 2024

I think my bug was caused by an outdated version of Winetricks, now updated, apologies for muddying the waters.

from protontricks.

Matoking avatar Matoking commented on July 30, 2024

@NodokaHanamura Please test the following test branch as described earlier:

pipx install --force --spec git+https://github.com/Matoking/protontricks.git@re_debug protontricks

I haven't been able to reproduce the error using either my own paths or what @lucifertdark provided, so it might be unique to your environment.

from protontricks.

NodokaHanamura avatar NodokaHanamura commented on July 30, 2024

Sorry for the delay.

I've tried both commands you've given me and got the following output:

nikki@SENIORNEGI-Linux ~ $ pipx install --force --spec git+https://github.com/Matoking/protontricks.git@re_debug protontricks
usage: pipx [-h] [--version]
            {install,inject,upgrade,upgrade-all,uninstall,uninstall-all,reinstall-all,list,run,runpip,ensurepath,completions}
            ...
pipx: error: unrecognized arguments: --spec protontricks
nikki@SENIORNEGI-Linux ~ $ source ~/.local/pipx/venvs/protontricks/bin/activate
(protontricks) nikki@SENIORNEGI-Linux ~ $ python -c "from protontricks.steam import find_steam_path, get_steam_lib_paths; steam_path, _ = find_steam_path(); print(get_steam_lib_paths(steam_path))"
['/home/nikki/.steam/steam', '/media/nikki/[HDD-1] HOME YUE/SteamLibrary', '/media/nikki/[HDD-3] HOME ZVEZDA/SteamLinux', '/media/nikki/[HDD-4] HOME POBEDA/!Linux', '/media/nikki/[HDD-6] HOME SHUTEN/SteamLibrary']

from protontricks.

Matoking avatar Matoking commented on July 30, 2024

Thanks for the help, I was able to reproduce the error and I've now fixed it in the master branch.

You can use the command in README to install the development version with the bug fix until a new release is made.

from protontricks.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.