External Env Cartpole Server Bug - dict has no attribute environment

When I run cartpole_server.py as described in the module comments I receive the error:

Traceback (most recent call last):  File "cartpole_server.py", line 156, in <module>    get_trainable_cls(args.run).get_default_config()
AttributeError: 'dict' object has no attribute 'environment'

It seems that this method is returning a legacy environment dict, rather than some new object that is supposedly expected.

What can I do to get this up and running?

edit: I am using: ray 2.1.0, rllib 3.2.0, python 3.8.5

Looks like reverting to the last version of the file solves this. Seems like unit tests don’t cover this file.