Quote:
Quote:
Code:
# sqg -p thonny Quote:
Code:
Code:
Quote:
Quote:
Quote:
Quote:
|
How do I configure python for Tk?
As per the final error in #12 above. I'm guessing that the standard Python install does not use Tk. Tk is something unique to Thonny |
Quote:
I always understood the dependencies were all installed as a package when using sbopkg |
Open a python3 shell, and see if you can import tkinter. If not what is the error.
Or just keep ignoring the advise you are given. Edit: https://docs.python.org/3/index.html https://docs.python.org/3/library/tkinter.html |
I removed Python3 and reinstalled it paying particular attention to the output. It was very fast but I did see mention of tk flash past but it still was not installed
|
You are new to python. You are going to have an impossible time, unless you start at step one, then 2...
Arch calls python3 python, Slack might call that python3. It's your box, find out. Code:
python |
Quote:
|
Quote:
Quote:
|
Quote:
@FlinchX says Slack calls python3.python3 Are you going to post that or not? Code:
python3 Or, you could check and see if you have that installed. |
After you get/have python3 working, tk/tcl installed so that tkinter will work...
Here is a simple little test script to see if all is well, with tkinter. test.py Code:
#!/usr/bin/python Code:
python3 ./test.py |
Quote:
|
Quote:
|
@SAJM Did you have a full 14.2 install before you started to install SBo things?
|
Quote:
[CODE} bash-4.3$ python3 ./test.py Traceback (most recent call last): File "./test.py", line 3, in <module> from tkinter import * File "/usr/lib64/python3.7/tkinter/__init__.py", line 36, in <module> import _tkinter # If this fails your Python may not be configured for Tk ModuleNotFoundError: No module named '_tkinter' bash-4.3$ [/CODE] EDIT oops I just noticed I should have run this after the Tk issue was resolved!! |
Im going to remove everything and start again in this order
1. Install Python3 2. Install Thonny Paying particular attention to dependencies. |
All times are GMT -5. The time now is 03:53 AM. |