I want to run https://github.com/tflearn/tflearn/blob/master/examples/reinforcement_learning/atari_1step_qlearning.py on a Debian 8 server.

I have installed all the dependencies , and I ssh using

ssh -Y user@domain.com

However, when I run that code ,I am getting the errors :

> Traceback (most recent call last): File > "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner > self.run() File "/usr/lib/python2.7/threading.py", line 763, in run > self.__target(*self.__args, **self.__kwargs) File "ML/test.py", line 227, in actor_learner_thread > readout_t = q_values.eval(session=session, feed_dict={s: [s_t]}) File > "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/ops.py", > line 559, in eval > return _eval_using_default_session(self, feed_dict, self.graph, session) File > "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/ops.py", > line 3656, in _eval_using_default_session > return session.run(tensors, feed_dict) File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/client/session.py", > line 710, in run > run_metadata_ptr) File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/client/session.py", > line 846, in _run > raise RuntimeError('Attempted to use a closed Session.') RuntimeError: Attempted to use a closed Session.

Note that this code creates new GUI windows

When I run it natively (without ssh, by logging into gnome environment physically) that runs fine.(im able to see those windows)

EDIT:

I dont know what happened, but now it shows more errors :