File "/home/pralakk16/anaconda3/lib/python3.6/site-packages/spyder/utils/site/sitecustomize.py", line 705, in runfile
execfile(filename, namespace)
File "/home/pralakk16/anaconda3/lib/python3.6/site-packages/spyder/utils/site/sitecustomize.py", line 102, in execfile
exec(compile(f.read(), filename, 'exec'), namespace)
File "/home/pralakk16/Desktop/Artificial Intelligence/StockTradingReinforcementLearning/stockTrading_ars.py", line 219, in
env = gym.make(hp.env_name)
File "/home/pralakk16/.local/lib/python3.6/site-packages/gym/envs/registration.py", line 167, in make
return registry.make(id)
File "/home/pralakk16/.local/lib/python3.6/site-packages/gym/envs/registration.py", line 118, in make
spec = self.spec(id)
File "/home/pralakk16/.local/lib/python3.6/site-packages/gym/envs/registration.py", line 138, in spec
match = env_id_re.search(id)
TypeError: expected string or bytes-like object
THE output line is where the error is occurring
THE Input Line is as follows:
nb_inputs = list(env.action_space.shape.items())[0]
The Input is a dictionary but the but it looks like the output is not,
can you please help me on this.
Hi Andrew,
I am getting an error for my code.
Here is the line where I am getting error
nb_outputs = env.action_space.shape[0]
This is the Error:
File "/home/pralakk16/anaconda3/lib/python3.6/site-packages/spyder/utils/site/sitecustomize.py", line 705, in runfile execfile(filename, namespace)
File "/home/pralakk16/anaconda3/lib/python3.6/site-packages/spyder/utils/site/sitecustomize.py", line 102, in execfile exec(compile(f.read(), filename, 'exec'), namespace)
File "/home/pralakk16/Desktop/Artificial Intelligence/StockTradingReinforcementLearning/stockTrading_ars.py", line 219, in
env = gym.make(hp.env_name)
File "/home/pralakk16/.local/lib/python3.6/site-packages/gym/envs/registration.py", line 167, in make return registry.make(id)
File "/home/pralakk16/.local/lib/python3.6/site-packages/gym/envs/registration.py", line 118, in make spec = self.spec(id)
File "/home/pralakk16/.local/lib/python3.6/site-packages/gym/envs/registration.py", line 138, in spec match = env_id_re.search(id)
TypeError: expected string or bytes-like object
THE output line is where the error is occurring
THE Input Line is as follows: nb_inputs = list(env.action_space.shape.items())[0]
The Input is a dictionary but the but it looks like the output is not, can you please help me on this.
Your help would be appreciated Thanks