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

FileNotFoundError: [Errno 2] No such file or directory: 'zstdmt' #3742

Closed
suhaibmujahid opened this issue Oct 18, 2023 · 2 comments · Fixed by #3756
Closed

FileNotFoundError: [Errno 2] No such file or directory: 'zstdmt' #3742

suhaibmujahid opened this issue Oct 18, 2023 · 2 comments · Fixed by #3756
Labels
bug Something isn't working

Comments

@suhaibmujahid
Copy link
Member

Google Colab Notebook:

%pip install bugbug -qU

from bugbug import bugzilla, db

db.download(bugzilla.BUGS_DB)

Output:

---------------------------------------------------------------------------

FileNotFoundError                         Traceback (most recent call last)

<ipython-input-2-8f1d74dfb43d> in <cell line: 5>()
      3 from bugbug import bugzilla, db
      4 
----> 5 db.download(bugzilla.BUGS_DB)

5 frames

/usr/lib/python3.10/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, gid, gids, uid, umask, start_new_session)
   1861                     if errno_num != 0:
   1862                         err_msg = os.strerror(errno_num)
-> 1863                     raise child_exception_type(errno_num, err_msg, err_filename)
   1864                 raise child_exception_type(err_msg)
   1865 

FileNotFoundError: [Errno 2] No such file or directory: 'zstdmt'

Note
This does not seem to be a regression by #3723

The same error on version 0.0.516 (before start using zstdmt):

%pip install bugbug==0.0.516 -qU

from bugbug import bugzilla, db

db.download(bugzilla.BUGS_DB)

Output:

---------------------------------------------------------------------------

FileNotFoundError                         Traceback (most recent call last)

[<ipython-input-1-d5fc8a1dca0a>](https://localhost:8080/#) in <cell line: 5>()
      3 from bugbug import bugzilla, db
      4 
----> 5 db.download(bugzilla.BUGS_DB)

5 frames

[/usr/lib/python3.10/subprocess.py](https://localhost:8080/#) 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, gid, gids, uid, umask, start_new_session)
   1861                     if errno_num != 0:
   1862                         err_msg = os.strerror(errno_num)
-> 1863                     raise child_exception_type(errno_num, err_msg, err_filename)
   1864                 raise child_exception_type(err_msg)
   1865 

FileNotFoundError: [Errno 2] No such file or directory: 'zstd'
@suhaibmujahid suhaibmujahid added the bug Something isn't working label Oct 18, 2023
@marco-c
Copy link
Collaborator

marco-c commented Oct 18, 2023

The zstandard binaries are required. The easiest fix is installing them through the package manager.

@suhaibmujahid
Copy link
Member Author

suhaibmujahid commented Oct 19, 2023

The zstandard binaries are required. The easiest fix is installing them through the package manager.

Installing the package using pip (as suggested in #3708 (comment)) does not solve the problem in Colab because python package binaries is not listed in PATH:

! echo $PATH
/opt/bin:/usr/local/nvidia/bin:/usr/local/cuda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/tools/node/bin:/tools/google-cloud-sdk/bin

However, installing the zstd package using apt solved the issue:

! apt install zstd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants