LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Thonny not starting (https://www.linuxquestions.org/questions/slackware-14/thonny-not-starting-4175714063/)

SAJM 07-03-2022 04:24 AM

Downloading the iso is pitifully slow.

Interestingly none of the UK mirrors have the slackware-15.0-install-dvd.iso

Petri Kaukasoina 07-03-2022 04:27 AM

Quote:

Originally Posted by SAJM (Post 6365255)
slackware-15.0-install-dvd.iso

That's the 32-bit one. You probably want slackware64-15.0-install-dvd.iso.

https://slackware.uk/slackware/slack...nstall-dvd.iso

SAJM 07-03-2022 04:45 AM

Quote:

Originally Posted by Petri Kaukasoina (Post 6365258)
That's the 32-bit one. You probably want slackware64-15.0-install-dvd.iso.

https://slackware.uk/slackware/slack...nstall-dvd.iso

Damn it!!!
Well spotted

FlinchX 07-03-2022 05:43 AM

Quote:

Originally Posted by SAJM (Post 6365255)
Downloading the iso is pitifully slow.

Interestingly none of the UK mirrors have the slackware-15.0-install-dvd.iso

What mirrors? Just download it over BitTorrent. As free bonus, you get automatic integrity check. This forum has a related sticky topic.

keithpeter 07-03-2022 12:05 PM

Quote:

Originally Posted by SAJM (Post 6365255)
Interestingly none of the UK mirrors have the slackware-15.0-install-dvd.iso

https://www.mirrorservice.org/sites/...ware-15.0-iso/

http://slackware.uk/slackware/slackw...ware-15.0-iso/

The install isos are in a separate directory from the packages. Always catches me out.

BrunoLafleur 07-03-2022 03:09 PM

Quote:

Originally Posted by SAJM (Post 6365205)
Going back to python3. It clearly does not work.


On this site I looked at, pip and pip3 seem to be mixed up on the same command strings.

https://help.dreamhost.com/hc/en-us/...ython3-modules

Here is another one

https://stackoverflow.com/questions/...-with-python-3

It's now clear to me that pip3 might well be the version but in a command string it's pip, which is exactly what I was doing.

No wonder I was getting confused!!

You had pip3 in post 11 of this thread (https://www.linuxquestions.org/quest...3/). The version warning don't stop it from working. Just after Post 11 you should have done
> pip3 install tkinter

But else you upgrade pip and so deleted pip3.

pip3 is the command for python3 (which is for Python 3) and work well on Slackware after installing python3 or on a full Slackware 15.

Python is use a lot for scientific applications and is working everywhere it is installed. It is not at all a student or toy application.

SAJM 07-04-2022 11:43 AM

I cannot burn the ISO because what I thought was a dvd turned out to be a RW CD and 15.0 is too big, so for better or worse I have to install Thonny on 14.2

SAJM 07-04-2022 11:46 AM

So by upgrading pip I erased pip3?

SAJM 07-04-2022 11:55 AM

Quote:

Originally Posted by BrunoLafleur (Post 6365359)

Python is use a lot for scientific applications and is working everywhere it is installed. It is not at all a student or toy application.

That may be true but python is touted in education circles as the preferred learning tool.

SAJM 07-04-2022 11:58 AM

Quote:

Originally Posted by SAJM (Post 6365554)
So by upgrading pip I erased pip3?

How do I get it back?

pan64 07-04-2022 12:24 PM

Quote:

Originally Posted by SAJM (Post 6365554)
So by upgrading pip I erased pip3?

Since you did not explain what did you do we cannot answer. Usually no, pip and pip3 can live together, but there are ways to make it wrong.
Quote:

Originally Posted by SAJM (Post 6365560)
That may be true but python is touted in education circles as the preferred learning tool.

Yes, it is a general purpose tool, and used almost everywhere. So teaching it looks like a good idea.
Quote:

Originally Posted by SAJM (Post 6365563)
How do I get it back?

How did you screw it up?

SAJM 07-04-2022 12:48 PM

Quote:

Originally Posted by pan64 (Post 6365573)
How did you screw it up?

See message 11 and 66

I didnt know I did messed it up but it seems I may have.
since posting
I have remove python 3 and reinstalled it.
I also imported tk
viz

Code:

bash-4.3$  python3
Python 3.7.2 (default, Jul  4 2022, 18:25:41)
[GCC 5.5.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> pip3 install tk
  File "<stdin>", line 1
    pip3 install tk
              ^
SyntaxError: invalid syntax
>>> import tk
>>> import tkinter
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  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'
>>> pip3 install tkinter
  File "<stdin>", line 1
    pip3 install tkinter
              ^
SyntaxError: invalid syntax
>>>

So as I see it python3 is installed and running and tk is installed OK.
What next?

SAJM 07-04-2022 12:55 PM

Quote:

Originally Posted by BrunoLafleur (Post 6365149)
To test if Tcl and Tk are installed, you can also test if wish is present :
> which wish

tkinter is a module for Python3 which encapsulate Tcl/Tk. It needs Tcl and Tk.

So if tkinter is installed it won't work without Tcl and Tk installed.
Or tkinter is not installed.

pip3 will tell you in either case.

I understood Tk was for python2 and tk was for python3

teckk 07-04-2022 12:58 PM

Python works just fine. It works it's own python way. I wish people would not use pip at all. If you have a machine with a package manager, the package manager keeps everything up to date and everything matches. Install python and python modules with your package manager.

I you install something with pip, your package manager does not know about it, and now your python file tree is all messed up.

What can you do if a python modules is not in your distros repos.

You build/install something with pip as user. And install it into a directory in /home. Use it from there, or make a virtual python env. Then you won't mess up your file tree, or your installation of python, and you won't be mad. You just have a piece of python software that doesn't not work.

Or, use your distros build tools to build/make a package for your distro, according to your distos docs, and install that package with your package manager.

Mix and match your python and python modules and python file tree, and you are almost guaranteed to have a broken python install.

Ever see a dog chasing his tail?

SAJM 07-04-2022 01:06 PM

Quote:

Originally Posted by teckk (Post 6365587)
Python works just fine. It works it's own python way. I wish people would not use pip at all. If you have a machine with a package manager, the package manager keeps everything up to date and everything matches. Install python and python modules with your package manager.

I you install something with pip, your package manager does not know about it, and now your python file tree is all messed up.

What can you do if a python modules is not in your distros repos.

You build/install something with pip as user. And install it into a directory in /home. Use it from there, or make a virtual python env. Then you won't mess up your file tree, or your installation of python, and you won't be mad. You just have a piece of python software that doesn't not work.

Or, use you distros build tools to build/make a package for your distro, according to your distos docs, and install that package with your package manager.

Mix and match your python and python modules and python file tree, and you are almost guaranteed to have a broken python install.

Ever see a dog chasing his tail?

If I install python3 it is not sufficient to run Thonny - which is where this thread started -
tk tkinter are required and the general opinion is that this achieved using pip3.

What do you suggest?

I am that dog!!!!!!!!


All times are GMT -5. The time now is 05:52 AM.