Chrispresso / SuperMarioBros-AI

332 stars 69 forks source link

run Example 'gym.utils.seeding' has no attribute 'hash_seed' #15

Closed zhyfei closed 5 months ago

zhyfei commented 5 months ago

python smb_ai.py --replay-file "Example world1-1" --replay-inds 1213,1214 Traceback (most recent call last): ... seed2 = seeding.hash_seed(seed1 + 1) % 2**31 AttributeError: module 'gym.utils.seeding' has no attribute 'hash_seed'

zhyfei commented 5 months ago

I found why because default use gym==0.26.2, Downgrade gym to 0.25.2. On release 0.26.0 the hash_seed was removed. pip install gym==0.25.2