Page 2 of 2

slpkg for porteus 5.01: getting it to work.

Posted: 23 Oct 2023, 16:29
by inukaze
Slpkg versions :

Resolve depencies for slpkg => 3.7.1

Code: Select all

slackpkg install python3 python-urllib3 python-setuptools
You can install 3.9.9

Code: Select all

wget -c https://sourceforge.net/projects/slpkg/files/binary/slpkg-3.9.9-x86_64-1_dsw.txz/download -O slpkg-3.9.9-x86_64-1_dsw.txz ; installpkg slpkg-3.9.9-x86_64-1_dsw.txz ; ldconfig
From the version 3.7.1 python3 are required :

Code: Select all

export SLPKG='slpkg-3.7.1-x86_64-1_dsw.txz'
wget -c https://sourceforge.net/projects/slpkg/files/binary/"$SLPKG"/download -O "$SLPKG"
installpkg "$SLPKG"
ldconfig
If you see an error like :
no module named slpkg
no module named pydoc
Reinstall python3 and re-run slpkg update:

Code: Select all

wget http://mirrors.slackware.com/slackware/slackware64-15.0/patches/packages/python3-3.9.18-x86_64-1_slack15.0.txz
upgradepkg --reinstall --install-new python3-3.9.18-x86_64-1_slack15.0.txz
slpkg update
But if you want the old version using python2 you can use slpkg v3.4.3

Code: Select all

export SLPKG='slpkg-3.4.3-x86_64-1_dsw.txz' ; wget -c https://sourceforge.net/projects/slpkg/files/binary/"$SLPKG"/download -O "$SLPKG" ; installpkg "$SLPKG" ; ldconfig
slackpkg install python2 python2-module-collection
slpkg update
slpkg -s sbo python2-pythondialog
Well in this moment i can't connect to "sbo" server from Venezuela :'(

slpkg for porteus 5.01: getting it to work.

Posted: 24 Oct 2023, 00:27
by Rava
inukaze wrote:
23 Oct 2023, 16:29
If you see an error like :
no module named slpkg
no module named pydoc
Reinstall python3 and re-run slpkg update:

Code: Select all

wget http://mirrors.slackware.com/slackware/slackware64-15.0/patches/packages/python3-3.9.18-x86_64-1_slack15.0.txz
upgradepkg --reinstall --install-new python3-3.9.18-x86_64-1_slack15.0.txz
slpkg update
Should not a dependency module for slpkg-3.9.9-x86_64 be sufficient?
One that got only the bare minimum of files extracted from python3-3.9.18-x86_64-1_slack15.0.txz ?
inukaze wrote:
23 Oct 2023, 16:29
But if you want the old version using python2 you can use slpkg v3.4.3
Porteus 5.01 uses python3. And the thread title states slpkg for porteus 5.01: getting it to work. Did anyone really exchange Porteus 5.01's python3 with python2?

slpkg for porteus 5.01: getting it to work.

Posted: 25 Oct 2023, 13:52
by francois
I have both python and python3 on my computer. I do not really know how to make python3 the version to be used. Would this be a good thing?

slpkg for porteus 5.01: getting it to work.

Posted: 25 Oct 2023, 16:26
by Rava
francois wrote:
25 Oct 2023, 13:52
I have both python and python3 on my computer. I do not really know how to make python3 the version to be used.
What is your non python3 python? Is it python2?
francois wrote:
25 Oct 2023, 13:52
Would this be a good thing?
When all works as it should with all your python scripts: "Never change a running system."

Some python scripts will not look / ask for python but specifically for python3. Could be that this is the reason you not seem to encounter any issues.

The Python script I found online seems to be content with any python version: (searched my scripts in /usr/local/bin via "grep python *" )

Code: Select all

cleanup_sessionstore.py:#! /usr/bin/env python
while pview and some others demand python3:

Code: Select all

pview:#!/bin/env python3

slpkg for porteus 5.01: getting it to work.

Posted: 26 Oct 2023, 00:58
by francois
From memory building PDF4QT or anki was asking for python3. Standard on porteus is python 2.xx.

Thanks for the info. Good knowledge. :)

slpkg for porteus 5.01: getting it to work.

Posted: 26 Oct 2023, 03:32
by Rava
francois wrote:
26 Oct 2023, 00:58
From memory building PDF4QT or anki was asking for python3. Standard on porteus is python 2.xx.
Not true, at least not for Porteus 5.01 :

Code: Select all

root@rava:/# file /usr/bin/python
/usr/bin/python: symbolic link to /usr/bin/python3
Do you run Porteus 5.01 or 5.0 or 4.0?