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

Curtsies frontend repl fails to start with setuptools >= 50 and watchdog installed #848

Open
nolsto opened this issue Sep 2, 2020 · 0 comments

Comments

@nolsto
Copy link

@nolsto nolsto commented Sep 2, 2020

When bpython is installed with the [watch] extra (watchdog installed additionally), The repl fails to start.
Uninstalling watchdog or installing setuptools<50 prevents the issue.

Produced with watchdog 0.10.3, bpython 0.19, python 3.8.5, macOS 10.14.6.

bpython version 0.19 on top of Python 3.8.5 /venv/bin/python3.8

Traceback (most recent call last):
  File "/venv/bin/bpython", line 8, in <module>
    sys.exit(main())
  File "/venv/lib/python3.8/site-packages/bpython/curtsies.py", line 220, in main
    exit_value = repl.mainloop(True, paste)
  File "/venv/lib/python3.8/site-packages/bpython/curtsies.py", line 114, in mainloop
    self.initialize_interp()
  File "/venv/lib/python3.8/site-packages/bpython/curtsiesfrontend/repl.py", line 1873, in initialize_interp
    del self.coderunner.interp.locals["_Helper"]
KeyError: '_Helper'

This appears to have something to do with the overridden distutils made in this setuptools change.
Using the SETUPTOOLS_USE_DISTUTILS=stdlib escape hatch it provides prevents the problem as well.

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

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.