-
Notifications
You must be signed in to change notification settings - Fork 530
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UnboundLocalError: local variable 'ext' referenced before assignment #260
Comments
A quick fix for your case, edit /home/luttkule/anaconda3/envs/rl-test/lib/python3.9/site-packages/retro/data/init.py line 401, replace ext with ".md". It should be look like: known_hashes[sha] = (game, ".md", os.path.join(path(), curpath)) |
Thank you. It seems to me that the import is still not successful: (rl-test) luttkule@LeLuGPC-u:/mnt/UHDD/git/rl-test/nicholas-renotte/streetfighter/roms$ ls
'Street Fighter II'\'' - Special Champion Edition (Europe).md' 'Street Fighter II'\'' - Special Champion Edition (Europe).zip'
(rl-test) luttkule@LeLuGPC-u:/mnt/UHDD/git/rl-test/nicholas-renotte/streetfighter/roms$ python -m retro.import .
Imported 0 games
(rl-test) luttkule@LeLuGPC-u:/mnt/UHDD/git/rl-test/nicholas-renotte/streetfighter/roms$ python -m retro.import 'Street Fighter II'\'' - Special Champion Edition (Europe).md'
Imported 0 games
(rl-test) luttkule@LeLuGPC-u:/mnt/UHDD/git/rl-test/nicholas-renotte/streetfighter/roms$ python -m retro.import .
Imported 0 games
(rl-test) luttkule@LeLuGPC-u:/mnt/UHDD/git/rl-test/nicholas-renotte/streetfighter/roms$ python -m retro.import Street\ Fighter\ II\'\ -\ Special\ Champion\ Edition\ \(Europe\).md
Imported 0 games |
I'm not 100% sure but did you make sure your rom.sha matches the file you downloaded? If not you might need to update/create a rom.sha file. |
Issue summary
I am trying to install a rom and I get the following error:
This is the content of the directory:
I downlaoded and extracted the rom from https://wowroms.com/en/roms/sega-genesis-megadrive/download-street-fighter-ii-special-champion-edition-europe/26496.html
System information
The text was updated successfully, but these errors were encountered: