3-manifolds / Sage_macOS

SageMath as a macOS application bundle.
152 stars 15 forks source link

Something is broken in RC4 with OSX 14.4 #63

Closed brunoh2015 closed 5 months ago

brunoh2015 commented 5 months ago

After installing the new version v2.3-RC4 for amg64 on Mac OSX 14.4, it is impossible to launch the Notebook version of Sagemath (the command line version works fine) and susbsequently to quit the software. I had to use force quit

Everything worked fine with the v2.3-RC3 on Mac OSX 14.3.1

culler commented 5 months ago

Thank you for contributing to this project by testing the pre-release!

I think I know the cause of this problem, and I think it has been fixed in the latest pre-release version. But to make sure would you please run the Application's main executable in a Terminal window and report any tracebacks that it prints out. The command to run in your terminal is:

/Applications/SageMath-10-3.app/Contents/MacOS/SageMath

When you try to open the notebook it should print a traceback in your Terminal. I am expecting it to say that the directory ~/Library/SageMath-10-3/Jupyter/runtime does not exist.

brunoh2015 commented 5 months ago

Thank you for your quick & clear answer

Here is the traceback I obtained through terminal.

Exception in Tkinter callback Traceback (most recent call last): File "/Applications/SageMath-10-3.app/Contents/Frameworks/Sage.framework/Versions/Current/venv/lib/python3.11/tkinter/init.py", line 1948, in call return self.func(*args) ^^^^^^^^^^^^^^^^ File "/Applications/SageMath-10-3.app/Contents/Resources/main.py", line 338, in launch_sage launched = self.launch_notebook('jupyterlab') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Applications/SageMath-10-3.app/Contents/Resources/main.py", line 150, in launch_notebook json_files = [f for f in os.listdir(jupyter_runtime_dir) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ FileNotFoundError: [Errno 2] No such file or directory: '/Users/bh/Library/Application Support/SageMath-10-3/Jupyter/runtime’

On 19 Mar 2024, at 19:00, Marc Culler @.***> wrote:

Thank you for contributing to this project by testing the pre-release!

I think I know the cause of this problem, and I think it has been fixed in the latest pre-release version. But to make sure would you please run the Application's main executable in a Terminal window and report any tracebacks that it prints out. The command to run in your terminal is:

/Applications/SageMath-10-3.app/Contents/MacOS/SageMath

When you try to open the notebook it should print a traceback in your Terminal. I am expecting it to say that the directory ~/Library/SageMath-10-3/Jupyter/runtime does not exist.

— Reply to this email directly, view it on GitHub https://github.com/3-manifolds/Sage_macOS/issues/63#issuecomment-2007813962, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADIU5SYF2ZJOSZWVJHNZLRLYZB4LZAVCNFSM6AAAAABE55XJ7CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMBXHAYTGOJWGI. You are receiving this because you authored the thread.

culler commented 5 months ago

Oops, I got the directory slightly wrong (left out "Application Support"). But that is what I expected.

If you download the latest pre-release version it should automatically create that directory if it does not exist. The disk image that had that bug was only up for a few hours, but you managed to get a copy.

brunoh2015 commented 5 months ago

You were right all along ! Thank you so much.

Everything works perfectly fine now. Problem solved

On 19 Mar 2024, at 19:54, Marc Culler @.***> wrote:

If you download the latest pre-release version it should automatically create that directory if it does not exist. The disk image that had that bug was only up for a few hours, but you managed to get a copy.

— Reply to this email directly, view it on GitHub https://github.com/3-manifolds/Sage_macOS/issues/63#issuecomment-2007909426, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADIU5S2TCDIN4GZLCYMFJITYZCCXTAVCNFSM6AAAAABE55XJ7CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMBXHEYDSNBSGY. You are receiving this because you authored the thread.

culler commented 5 months ago

Thanks for letting us know!