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: 'snap': 'snap' Aborted (core dumped) #19

Closed
jayvdb opened this issue Oct 27, 2019 · 2 comments

Comments

@jayvdb
Copy link

jayvdb commented Oct 27, 2019

If snap is not available, the error is not very user-friendly.

> bauh
which: no snap in (/usr/lib/python3.7:/home/jayvdb/perl5/bin:/home/jayvdb/.asdf/shims:/home/jayvdb/.asdf/shims:/home/jayvdb/.asdf/bin:/home/jayvdb/.avn/bin:/home/jayvdb/perl5/bin:/home/jayvdb/.sdkman/candidates/gradle/current/bin:/home/jayvdb/bin:/usr/local/bin:/usr/bin:/bin:/home/jayvdb/.local/bin:/home/jayvdb/.local/bin)
which: no snap in (/usr/lib/python3.7:/home/jayvdb/perl5/bin:/home/jayvdb/.asdf/shims:/home/jayvdb/.asdf/shims:/home/jayvdb/.asdf/bin:/home/jayvdb/.avn/bin:/home/jayvdb/perl5/bin:/home/jayvdb/.sdkman/candidates/gradle/current/bin:/home/jayvdb/bin:/usr/local/bin:/usr/bin:/bin:/home/jayvdb/.local/bin:/home/jayvdb/.local/bin)
which: no snap in (/usr/lib/python3.7:/home/jayvdb/perl5/bin:/home/jayvdb/.asdf/shims:/home/jayvdb/.asdf/shims:/home/jayvdb/.asdf/bin:/home/jayvdb/.avn/bin:/home/jayvdb/perl5/bin:/home/jayvdb/.sdkman/candidates/gradle/current/bin:/home/jayvdb/bin:/usr/local/bin:/usr/bin:/bin:/home/jayvdb/.local/bin:/home/jayvdb/.local/bin)
Traceback (most recent call last):
  File "/usr/lib/python3.7/site-packages/bauh/view/qt/thread.py", line 412, in run
    warnings = self.man.list_warnings()
  File "/usr/lib/python3.7/site-packages/bauh/view/core/controller.py", line 318, in list_warnings
    man_warnings = man.list_warnings(internet_available=int_available)
  File "/usr/lib/python3.7/site-packages/bauh/gems/snap/controller.py", line 206, in list_warnings
    available, output = snap.is_api_available()
  File "/usr/lib/python3.7/site-packages/bauh/gems/snap/snap.py", line 235, in is_api_available
    for o in SimpleProcess(['snap', 'search']).instance.stdout:
  File "/usr/lib/python3.7/site-packages/bauh/commons/system.py", line 71, in __init__
    self.instance = self._new(final_cmd, cwd, global_interpreter, lang, stdin=pwdin)
  File "/usr/lib/python3.7/site-packages/bauh/commons/system.py", line 87, in _new
    return subprocess.Popen(cmd, **args)
  File "/usr/lib64/python3.7/subprocess.py", line 775, in __init__
    restore_signals, start_new_session)
  File "/usr/lib64/python3.7/subprocess.py", line 1522, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'snap': 'snap'
Aborted (core dumped)
@vinifmor
Copy link
Owner

I have already fixed that issue in the staging branch. I will try to publish another minor until the weekend.

@vinifmor
Copy link
Owner

vinifmor commented Nov 1, 2019

Fixed in 0.7.2.

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