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

Broken PyCrust import in wx.shell #1037

Closed
mdickinson opened this issue Nov 8, 2021 · 2 comments · Fixed by #1048
Closed

Broken PyCrust import in wx.shell #1037

mdickinson opened this issue Nov 8, 2021 · 2 comments · Fixed by #1048
Milestone

Comments

@mdickinson
Copy link
Member

There's a broken import in the wx Shell class, here:

from PyCrust.interpreter import Interpreter

PyCrust apparently still exists, and can be installed via a pip install wx_py. But the import will still fail as written: PyCrust isn't a top-level import.

@mdickinson
Copy link
Member Author

On closer inspection, it looks as though PyCrust is dead, at least on Python 3. The PyPI homepage link is broken, and the wx_py source contains a number of Python 2-isms. A simple import wx_py fails on Python 3 (with ModuleNotFoundError: No module named 'buffer').

@mdickinson
Copy link
Member Author

Sorry, I'm wrong: the wx_py PyPI package looks dead, but PyCrust is apparently alive and kicking and a part of wxPython. The following brings up a PyCrust shell for me:

Python 3.9.8 (main, Nov  8 2021, 11:51:40) 
[Clang 13.0.0 (clang-1300.0.29.3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from wx.py.PyCrust import App
>>> app = App()
>>> app.MainLoop()

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

Successfully merging a pull request may close this issue.

2 participants