Traceback (most recent call last):


 "dqn_agent.py", line 129, in <module>

environment = SpreadTrading(spread_coefficients=[1], data_generator=generator, trading_fee=trading_fee, time_fee=time_fee, history_length=history_length, episode_length=episode_length)
TypeError: __init__() got an unexpected keyword argument 'episode_length'

Traceback (most recent call last):


 "/Users/aaksenov/.virtualenvs/puppets/lib/python3.5/site-packages/salt/cloud/cli.py", line 284, in run

self.config.get('names')


 "/Users/aaksenov/.virtualenvs/puppets/lib/python3.5/site-packages/salt/cloud/__init__.py", line 1457, in run_profile

ret[name] = self.create(vm_)


 "/Users/aaksenov/.virtualenvs/puppets/lib/python3.5/site-packages/salt/cloud/__init__.py", line 1287, in create

output = self.clouds[func](vm_)


 "/Users/aaksenov/.virtualenvs/puppets/lib/python3.5/site-packages/salt/cloud/clouds/saltify.py", line 63, in create

ret = __utils__['cloud.bootstrap'](vm_, __opts__)


 "/Users/aaksenov/.virtualenvs/puppets/lib/python3.5/site-packages/salt/utils/cloud.py", line 532, in bootstrap

deployed = deploy_script(**deploy_kwargs)


 "/Users/aaksenov/.virtualenvs/puppets/lib/python3.5/site-packages/salt/utils/cloud.py", line 1332, in deploy_script

ssh_file(opts, '{0}/minion.pem'.format(tmp_dir), minion_pem, ssh_kwargs)


 "/Users/aaksenov/.virtualenvs/puppets/lib/python3.5/site-packages/salt/utils/cloud.py", line 1939, in ssh_file

return sftp_file(dest_path, contents, kwargs, local_file)


 "/Users/aaksenov/.virtualenvs/puppets/lib/python3.5/site-packages/salt/utils/cloud.py", line 1957, in sftp_file

os.write(tmpfd, contents)
TypeError: a bytes-like object is required, not 'str'
