Skip to content
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

whereis on Linux #4

Open
negrusti opened this issue Jan 16, 2023 · 1 comment
Open

whereis on Linux #4

negrusti opened this issue Jan 16, 2023 · 1 comment

Comments

@negrusti
Copy link

negrusti commented Jan 16, 2023

whereis on Linux works like this:

whereis ibd2sdi
ibd2sdi: /usr/bin/ibd2sdi /usr/share/man/man1/ibd2sdi.1.gz

so the script crashes with:

Traceback (most recent call last):
  File "sdi2sql.py", line 182, in <module>
    ibd2sql(config)
  File "sdi2sql.py", line 52, in ibd2sql
    sdi_result = subprocess.run([ibd2sdi_path, '--dump-file=' + sdi_path, ibd_path], stdout=subprocess.PIPE)
  File "/usr/lib/python3.8/subprocess.py", line 493, in run
    with Popen(*popenargs, **kwargs) as process:
  File "/usr/lib/python3.8/subprocess.py", line 858, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.8/subprocess.py", line 1704, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'ibd2sdi: /usr/bin/ibd2sdi /usr/share/man/man1/ibd2sdi.1.gz'

@anyongjin
Copy link
Owner

Thanks for your feedback.
I fixed this bug in commit: a9cfa9a
But I don't have suitable environment to test it.
So, some more feedback is welcome if there is still a probleam

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants