-
Notifications
You must be signed in to change notification settings - Fork 160
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
some problems when run dqn_agent.py #9
Comments
I also had problems with the init.py files regarding imports. But after fixing them I had this error: Traceback (most recent call last): Looking at the code in core.py I couldn't figure out what was going wrong |
Hi both. Thanks for reporting these issues. |
/home/dav/anaconda3/lib/python3.6/site-packages/tgym/envs/init.py in () ModuleNotFoundError: No module named 'trading' |
Hi davdigioia This is caused by Python 3.x. It does not support relative import any more. |
Thanks. I will try
…On 25 Oct 2017 06:55, "paulg" ***@***.***> wrote:
Hi davdigioia
This is caused by Python 3.x. It does not support relative import any more.
you might change it to:
from tgym.envs.trading import SpreadTrading
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#9 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AUCb4HtjJYMw6qZYSeOS65PcBEGGrtErks5svs06gaJpZM4OtPWm>
.
|
|
If you are using python >= 3, comment out the content of
|
Is this dqn agent in static mode ? cause i run th generator using live feed . it say chunk error. |
My work env:Python 3.5.2 :: Anaconda custom (64-bit),tensorflow 1.0.1,keras 2.0.4.There are some questions I have encountered.As follows:
1.File "/usr/anaconda3/lib/python3.5/site-packages/tgym/envs/init.py", line 1, in
from trading import SpreadTrading
ImportError: No module named 'trading
=>so I have to solve it by import sys and append the code sys.path.append('/usr/anaconda3/lib/python3.5/site-packages/tgym/envs/')
=>There are also analogous problems:
File "dqn_agent.py", line 118, in
from tgym.gens.deterministic import WavySignal
File "/usr/anaconda3/lib/python3.5/site-packages/tgym/gens/init.py", line 1, in
from csvstream import *
ImportError: No module named 'csvstream'
2.when I solve the problems about the module,there are also error:
=> File "/usr/anaconda3/lib/python3.5/site-packages/tgym/gens/csvstream.py", line 6
print csv
^
SyntaxError: Missing parentheses in call to 'print'
=>I have saw the codes of dqn_agent.py,it uses pytho 3.x.However,csvstream.py uses pyhton 2.x
===>Therefore ,I want to ask is there a efficient way to run the examples.I do not know how many bugs there are.Thank you!
The text was updated successfully, but these errors were encountered: