-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
MacOS standalone not working due to pygments error #19236
Comments
I confirm Spyder standalone don't run on Monterey either, and obviously, you can mark my own bug report #19237 as a duplicate of this one ! |
Correct. This seems caused by a an incompatibility between Sphinx and Pygments. I think for now the simplest thing we can do to solve it is to add an upper constraint to Pygments (2.13 was released last August 15th, so that should be the version that introduced this issue). @mrclary, could you take care of this? |
@ccordoba12 should we, for the moment, remove the Spyder.dmg and the link to download it from the Spyder 5.3.3 release page? |
Ok, I think that's a good idea given that this is a hard crash, so it'll give a very bad impression to new users. Please also leave a note in the 5.3.3 release entry saying that the Mac app has a critical error but we'll try to upload it shortly (you can reference this issue if you want too). Also, you need to check that the 5.3.2 dmg can still be downloaded from our main webpage (i.e. spyder.org). |
About this error, I think it's in our side because I couldn't find a similar one in the Sphinx repo. So maybe we're not packaging all Pygments lexers somehow? |
If there is not a problem with the Windows or conda installs, then I hesitate to restrict the pygments version because it may be that only the macOS installer (py2app) didn't capture |
I'll take a look. If that is the issue, I can patch that and upload a new artifact (built locally) for 5.3.3. Then we can decide how best to proceed, either a patch or PR to py2app or both. |
Just in case, checked on Windows and both standalone and conda version start normally 👍 |
So it was definitely py2app not capturing all the components of the package. The quick fix is to force py2app to include the entire package. I'll upload new artifacts shortly. The long-term fix for this would be to submit a PR for a pygments recipe for py2app. However, given the imminent conda-based installer, I'll forgo that and just submit a PR here for this patch. |
Another concern is why the app test erroneously declares that Spyder launched successfully... |
New artifacts are now uploaded. |
Thanks for your prompt help with this @mrclary! |
I was thiking about this too 🤔. My guess is that since py2app shows a dialog when the application is unable to launch, that was causing the faulty installer launched to properly handle the exit signal and then causing the test script to exit normally. Maybe we should add some validation to the output generated when runnning Spyder to check that no tracebacks are found @mrclary ? |
That's an interesting idea @dalthviz. When looking at the last logs of the Mac app on PRs, you can see that the error was shown there but it wasn't flagged as such: https://github.com/spyder-ide/spyder/runs/8079765883?check_suite_focus=true#step:11:1 |
py2app does not show the dialog. That is a system (macOS) dialog. I think the "py2app" reference comes from the info.plist in the Spyder.app bundle. The test only checks whether Spyder is still running. In Spyder, we have a flag dedicated for this test which causes spyder to quit when it raises an exception. In this instance, spyder did not raise the exception, so it did not quit, but instead it was somehow picked up by the os. I'll take a deeper look at it, but @dalthviz's suggestion may be the right thing to do. |
Seems like although the action building and testing the MacOS installer passes there is an error with the generated app. Looking the action log you can see a traceback related with
pygments
(from action execution: https://github.com/spyder-ide/spyder/runs/8079765883?check_suite_focus=true#step:11:17):And when launching the installed app you see an error dialog from py2app (I checked this using MacOS 11.6.8 Big Sur):
Checking seems like
pygments
released version 2.13.0 a couple of weeks ago and PRs which GitHub actions checks runs are older than two weeks ago seem like where able to properly pass the MacOS installer validation test. Could then the new pygments release be the cause of the issue?What do you think @mrclary ?
Also, I think someone reported something similar on the google group, right @ccordoba12 ?
The text was updated successfully, but these errors were encountered: