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

Files fail to open or save (Mac OS X 10.15) #840

Closed
troywein opened this issue Aug 8, 2019 · 15 comments
Closed

Files fail to open or save (Mac OS X 10.15) #840

troywein opened this issue Aug 8, 2019 · 15 comments
Labels
Milestone

Comments

@troywein
Copy link

troywein commented Aug 8, 2019

Hello I am encountering a weird issue where I am unable to load or save python scripts. I recently upgraded to Mac OS X 10.15. I have tried reinstalling and also have tried running the application from different install locations. Thanks Troy

@aivarannamaa
Copy link
Member

Hi!
Do you get some error messages? How does the problem manifest?

@troywein
Copy link
Author

troywein commented Aug 8, 2019 via email

@aivarannamaa
Copy link
Member

Upon double clicking any file.py it doesn’t open in the editor

Do you mean double clicking in Finder or in Thonny's Files view?

Can you try running Thonny from Terminal? It may give some clue. Logs may be useful as well. The instructions are here: https://github.com/thonny/thonny/wiki/Troubleshooting#open-in-terminal-macos

@troywein
Copy link
Author

troywein commented Aug 9, 2019 via email

@aivarannamaa
Copy link
Member

I can check the log files and send them to you if you are interested?

Yes, this could be helpful!

Do you have access to a machine with the latest beta?

My Mac isn't compatible, but I'll try to install it in a VM.

@troywein
Copy link
Author

troywein commented Aug 12, 2019 via email

@aivarannamaa
Copy link
Member

Unfortunately I didn't receive the attachments. It seems to be usual problem of GitHub that the attachments sent by e-mail get lost. Please open this issue in the browser and upload the attachments via GitHub interface!

@troywein
Copy link
Author

Here are the files.
Screen Shot 2019-08-12 at 3 09 41 PM
Thonny.zip

@aivarannamaa
Copy link
Member

Do you happen to have separate Python + IDLE installed?

If yes, then please check whether following program works for you:

import tkinter as tk
from tkinter import filedialog

def doit(event):
    print(filedialog.askopenfilename(master=root))

root = tk.Tk()
root.bind("<1>", doit, True)

root.mainloop()

When you run it then you should see an empty window. If you click on it, you should see File Open dialog. Please test whether deleting master=root from the code changes anything.

@aivarannamaa
Copy link
Member

Can you open other Thonny's dialogs (eg. Tools => Options or Help => About) ?

@troywein
Copy link
Author

I can open the dialogs.

@troywein
Copy link
Author

I do have a separate Python and Idle installed. I get the following error message when running the program you have above:

Screen Shot 2019-08-14 at 11 15 27 AM

@aivarannamaa
Copy link
Member

Most likely python command invokes Python 2 bundled with the OS. Can you try same program with python3?

@aivarannamaa aivarannamaa reopened this Aug 14, 2019
@troywein
Copy link
Author

Works fine in python3 with and without master=root

@aivarannamaa
Copy link
Member

Problem was created in 4db8c48

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants