Skip to content

[bug] bpython crashes #902

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

Closed
nikitax44 opened this issue Aug 1, 2021 · 0 comments
Closed

[bug] bpython crashes #902

nikitax44 opened this issue Aug 1, 2021 · 0 comments
Labels
Milestone

Comments

@nikitax44
Copy link

change dir to /
type "import " and do not press enter it will crash with this traceback:

bpython.mp4
Traceback (most recent call last):
  File "/tmp/test1/venv/bin/bpython", line 8, in <module>
    sys.exit(main())
  File "/tmp/test1/venv/lib/python3.8/site-packages/bpython/curtsies.py", line 201, in main
    exit_value = repl.mainloop(True, paste)
  File "/tmp/test1/venv/lib/python3.8/site-packages/bpython/curtsies.py", line 115, in mainloop
    while self.module_gatherer.find_coroutine():
  File "/tmp/test1/venv/lib/python3.8/site-packages/bpython/importcompletion.py", line 226, in find_coroutine
    next(self.find_iterator)
  File "/tmp/test1/venv/lib/python3.8/site-packages/bpython/importcompletion.py", line 217, in find_all_modules
    for module in self.find_modules(p):
  File "/tmp/test1/venv/lib/python3.8/site-packages/bpython/importcompletion.py", line 202, in find_modules
    for subname in self.find_modules(path_real):
  File "/tmp/test1/venv/lib/python3.8/site-packages/bpython/importcompletion.py", line 202, in find_modules
    for subname in self.find_modules(path_real):
  File "/tmp/test1/venv/lib/python3.8/site-packages/bpython/importcompletion.py", line 202, in find_modules
    for subname in self.find_modules(path_real):
  [Previous line repeated 1 more time]
  File "/tmp/test1/venv/lib/python3.8/site-packages/bpython/importcompletion.py", line 199, in find_modules
    stat = path_real.stat()
  File "/usr/lib/python3.8/pathlib.py", line 1198, in stat
    return self._accessor.stat(self)
FileNotFoundError: [Errno 2] No such file or directory: '/sys/kernel/security/apparmor/apparmorfs:[12490]'
@nikitax44 nikitax44 changed the title bpython crashes [bug]bpython crashes Aug 1, 2021
@nikitax44 nikitax44 changed the title [bug]bpython crashes [bug] bpython crashes Aug 1, 2021
@sebastinas sebastinas added this to the release-0.22 milestone Aug 1, 2021
@sebastinas sebastinas added the bug label Aug 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants