Giter Site home page Giter Site logo

FileNotFoundError about btgym HOT 4 CLOSED

kismuz avatar kismuz commented on May 20, 2024
FileNotFoundError

from btgym.

Comments (4)

Kismuz avatar Kismuz commented on May 20, 2024 1

@sharpwood, thanks for pointing that out; corrected, update, should run ok.

from btgym.

sharpwood avatar sharpwood commented on May 20, 2024

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.

Kismuz avatar Kismuz commented on May 20, 2024

Hmm, @sharpwood do you have lsof utility installed?

from btgym.

sharpwood avatar sharpwood commented on May 20, 2024

I install lsof and it works. Thanks mate.

from btgym.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.