unexpectedpanda / retool

Retool: a better filter tool for Redump and No-Intro DAT files.
BSD 3-Clause "New" or "Revised" License
343 stars 22 forks source link

Entrypoints Issue on 2.03.0 #323

Closed maxexcloo closed 3 months ago

maxexcloo commented 3 months ago

Describe the bug I tried to use the tool without changing directory first on 2.03.0. --update worked but processing fails.

To reproduce $DIR_SCRIPTS/retool/bin/python $DIR_SCRIPTS/retool/app/retool.py --config $DIR_CONFIG/retool.yaml --exclude $RETOOL_FLAGS --output $DIR_DATA/$NAME_DATS/$NAME_GAMES_DATS $DIR_DATA/$NAME_DATS/$NAME_GAMES_DATS

Expected behavior Directory is processed as before, the previous command was: pushd $DIR_SCRIPTS/retool/app && ../bin/python retool.py --config $DIR_BASE/$DIR_CONFIG/retool.yaml --exclude $RETOOL_FLAGS --output $DIR_BASE/$DIR_DATA/$NAME_DATS/$NAME_GAMES_DATS $DIR_BASE/$DIR_DATA/$NAME_DATS/$NAME_GAMES_DATS && popd

Operating system macOS

Retool edition retool.py

Retool version 2.03.0

What other settings are you using? ABbcdefkmopPruv

Additional context

max.schaefer@mini:/Volumes/Games$ $DIR_SCRIPTS/retool/bin/python $DIR_SCRIPTS/retool/app/retool.py --config $DIR_CONFIG/retool.yaml --exclude $RETOOL_FLAGS --output $DIR_DATA/$NAME_DATS/$NAME_GAMES_DATS $DIR_DATA/$NAME_DATS/$NAME_GAMES_DATS 

Retool 2.03.0
-------------
Processing folder...

Processing file 1/14

* Reading DAT file: "/Volumes/Games/Data/DATs/Redump/Sony - PlayStation - Datfile (10776)
  (2024-03-27 17-24-40).dat"
* Validating DAT file... 
* Error: [Errno 2] No such file or directory: 'datafile.dtd' Skipping file...

Processing file 2/14

* Reading DAT file: "/Volumes/Games/Data/DATs/Redump/Sega - Dreamcast - Datfile (1474)
  (2024-03-23 05-03-45).dat"
* Validating DAT file... 
* Error: [Errno 2] No such file or directory: 'datafile.dtd' Skipping file...

Processing file 3/14

* Reading DAT file: "/Volumes/Games/Data/DATs/Redump/Sony - PlayStation 2 - Datfile (11448)
  (2024-04-01 03-46-26).dat"
* Validating DAT file... 
* Error: [Errno 2] No such file or directory: 'datafile.dtd' Skipping file...

Processing file 4/14

* Reading DAT file: "/Volumes/Games/Data/DATs/Redump/Sony - PlayStation Portable - Datfile
  (2863) (2024-03-28 19-16-47).dat"
* Validating DAT file... 
* Error: [Errno 2] No such file or directory: 'datafile.dtd' Skipping file...

Processing file 5/14

* Reading DAT file: "/Volumes/Games/Data/DATs/Redump/Sharp - X68000 - Datfile (29)
  (2024-03-14 22-19-24).dat"
* Validating DAT file... 
* Error: [Errno 2] No such file or directory: 'datafile.dtd' Skipping file...

Processing file 6/14

* Reading DAT file: "/Volumes/Games/Data/DATs/Redump/NEC - PC Engine CD & TurboGrafx CD -
  Datfile (545) (2024-03-20 13-53-53).dat"
* Validating DAT file... 
* Error: [Errno 2] No such file or directory: 'datafile.dtd' Skipping file...

Processing file 7/14

* Reading DAT file: "/Volumes/Games/Data/DATs/Redump/Panasonic - 3DO Interactive
  Multiplayer - Datfile (639) (2024-03-20 18-09-41).dat"
* Validating DAT file... 
* Error: [Errno 2] No such file or directory: 'datafile.dtd' Skipping file...

Processing file 8/14

* Reading DAT file: "/Volumes/Games/Data/DATs/Redump/Nintendo - Wii - Datfile (3770)
  (2024-03-08 01-24-41).dat"
* Validating DAT file... 
* Error: [Errno 2] No such file or directory: 'datafile.dtd' Skipping file...

Processing file 9/14

* Reading DAT file: "/Volumes/Games/Data/DATs/Redump/Microsoft - Xbox 360 - Datfile (3356)
  (2024-04-01 02-58-30).dat"
* Validating DAT file... 
* Error: [Errno 2] No such file or directory: 'datafile.dtd' Skipping file...

Processing file 10/14

* Reading DAT file: "/Volumes/Games/Data/DATs/Redump/Sony - PlayStation 3 - Datfile (4370)
  (2024-03-31 16-28-48).dat"
* Validating DAT file... 
* Error: [Errno 2] No such file or directory: 'datafile.dtd' Skipping file...

Processing file 11/14

* Reading DAT file: "/Volumes/Games/Data/DATs/Redump/Sega - Saturn - Datfile (2367)
  (2024-03-25 02-08-10).dat"
* Validating DAT file... 
* Error: [Errno 2] No such file or directory: 'datafile.dtd' Skipping file...

Processing file 12/14

* Reading DAT file: "/Volumes/Games/Data/DATs/Redump/Nintendo - GameCube - Datfile (1991)
  (2024-03-29 07-23-56).dat"
* Validating DAT file... 
* Error: [Errno 2] No such file or directory: 'datafile.dtd' Skipping file...

Processing file 13/14

* Reading DAT file: "/Volumes/Games/Data/DATs/Redump/Microsoft - Xbox - Datfile (2606)
  (2024-03-31 20-18-20).dat"
* Validating DAT file... 
* Error: [Errno 2] No such file or directory: 'datafile.dtd' Skipping file...

Processing file 14/14

* Reading DAT file: "/Volumes/Games/Data/DATs/Redump/Sega - Mega CD & Sega CD - Datfile
  (542) (2024-02-18 14-04-01).dat"
* Validating DAT file... 
* Error: [Errno 2] No such file or directory: 'datafile.dtd' Skipping file...

* Finished processing 14 files in the "/Volumes/Games/Data/DATs/Redump"
  folder in 2.90s. Any DATs that have been created are in the
  "/Volumes/Games/Data/DATs/Redump" folder.
unexpectedpanda commented 3 months ago

That sure is a lot of shell variables.

Confirmed to work fine on Windows, but not on Ubuntu, so I'm sure it's the same issue there as MacOS. I'll take a look.

unexpectedpanda commented 3 months ago

Okay, it's just a path failure on the DTD file. Shouldn't be too long.

unexpectedpanda commented 3 months ago

v2.03.1 should hopefully rectify things for you.

maxexcloo commented 3 months ago

Works for me! Thanks mate :)

unexpectedpanda commented 3 months ago

Good to hear!