Skip to content

[bug] bpython crashes #902

Closed
Closed
@nikitax44

Description

@nikitax44

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]'

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy