Comments (4)
@sharpwood, thanks for pointing that out; corrected, update, should run ok.
from btgym.
Unfortunately, I updated and reinstalled it, but I still had that mistake.
[2018-03-31 10:55:34.071209] INFO: LauncherShell: Random seed: 0
</home/liguodong/tmp/test_gym_a3c> already exists. Override[y/n]? y
[2018-03-31 10:55:39.373812] NOTICE: LauncherShell: Files in </home/liguodong/tmp/test_gym_a3c> purged.
FileNotFoundError Traceback (most recent call last)
in ()
43 root_random_seed=0,
44 purge_previous=1, # ask to override previously saved model and logs
---> 45 verbose=1
46 )
~/Code/btgym-master/btgym/algorithms/launcher/base.py in init(self, env_config, cluster_config, policy_config, trainer_config, max_env_steps, root_random_seed, test_mode, purge_previous, log_level, verbose)
183
184 # Make cluster specification dict:
--> 185 self.cluster_spec = self.make_cluster_spec(self.cluster_config)
186
187 # Configure workers:
~/Code/btgym-master/btgym/algorithms/launcher/base.py in make_cluster_spec(self, config)
260
261 for _ in range(config['num_ps']):
--> 262 self.clear_port(port)
263 self.ports_to_use.append(port)
264 all_ps.append('{}:{}'.format(config['host'], port))
~/Code/btgym-master/btgym/algorithms/launcher/base.py in clear_port(self, port_list)
283
284 for port in port_list:
--> 285 p = psutil.Popen(['lsof', '-i:{}'.format(port), '-t'], stdout=PIPE, stderr=PIPE)
286 pid = p.communicate()[0].decode()[:-1] # retrieving PID
287 if pid is not '':
/opt/anaconda/lib/python3.6/site-packages/psutil/init.py in init(self, *args, **kwargs)
1309 # spawned by subprocess.Popen terminates too quickly, see:
1310 # giampaolo/psutil#193
-> 1311 self.__subproc = subprocess.Popen(*args, **kwargs)
1312 self._init(self.__subproc.pid, _ignore_nsp=True)
1313
/opt/anaconda/lib/python3.6/subprocess.py in init(self, args, bufsize, executable, stdin, stdout, stderr, preexec_fn, close_fds, shell, cwd, env, universal_newlines, startupinfo, creationflags, restore_signals, start_new_session, pass_fds, encoding, errors)
707 c2pread, c2pwrite,
708 errread, errwrite,
--> 709 restore_signals, start_new_session)
710 except:
711 # Cleanup if the child failed starting.
/opt/anaconda/lib/python3.6/subprocess.py in _execute_child(self, args, executable, preexec_fn, close_fds, pass_fds, cwd, env, startupinfo, creationflags, shell, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite, restore_signals, start_new_session)
1342 if errno_num == errno.ENOENT:
1343 err_msg += ': ' + repr(err_filename)
-> 1344 raise child_exception_type(errno_num, err_msg, err_filename)
1345 raise child_exception_type(err_msg)
1346
FileNotFoundError: [Errno 2] No such file or directory: 'lsof': 'lsof'
from btgym.
Hmm, @sharpwood do you have lsof
utility installed?
from btgym.
I install lsof and it works. Thanks mate.
from btgym.
Related Issues (20)
- Is there any real-life cases of successful application of reinforcement learning in trading / asset management? HOT 4
- Overestimated Value Function in Actor Critic Framework HOT 7
- signal.pause() - workers exit, but signal never received -- software issue? (debian linux) HOT 16
- loading multiple features - question ? HOT 3
- Amazing project <3
- PR Request for Docker addition HOT 2
- Train Test routine sampling - IndexError HOT 2
- BTgymMultiData - Sync between different data stream HOT 5
- Discussion: Long Episode Duration HOT 3
- Tutorial: Integration with TF-Agents RL Framework HOT 4
- Erroneous static_RNN policy behavior explanation.
- 2020
- BTGym Slack Join Link Broken HOT 1
- Problem with dependencies in installation on window HOT 1
- Examples that do more that randomly selects an action?
- Support Tensorflow 2 HOT 14
- ValueError: Axis limits cannot be NaN or Inf HOT 1
- INFOS
- Use btgym custom environment
- _pickle.PicklingError: Can't pickle <class 'pandas.core.frame.Pandas'>: attribute lookup Pandas on pandas.core.frame failed HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from btgym.