New features which should be implemented in Porteus; suggestions are welcome. All questions or problems with testing releases (alpha, beta, or rc) should go in their relevant thread here, rather than the Bug Reports section.
-
inukaze
- Black ninja

- Posts: 48
- Joined: 06 Jul 2023, 07:40
- Distribution: Slackware
Post#16
by inukaze » 23 Oct 2023, 16:29
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 :'(
inukaze
-
Rava
- Contributor

- Posts: 5424
- Joined: 11 Jan 2011, 02:46
- Distribution: XFCE 5.01 x86_64 + 4.0 i586
- Location: Forests of Germany
Post#17
by Rava » 24 Oct 2023, 00:27
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?
Rava
-
francois
- Contributor

- Posts: 6499
- Joined: 28 Dec 2010, 14:25
- Distribution: xfce plank porteus nemesis
- Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.
Post#18
by francois » 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. Would this be a good thing?
Prendre son temps, profiter de celui qui passe.
francois
-
Rava
- Contributor

- Posts: 5424
- Joined: 11 Jan 2011, 02:46
- Distribution: XFCE 5.01 x86_64 + 4.0 i586
- Location: Forests of Germany
Post#19
by Rava » 25 Oct 2023, 16:26
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:
Cheers!
Yours Rava
Rava
-
francois
- Contributor

- Posts: 6499
- Joined: 28 Dec 2010, 14:25
- Distribution: xfce plank porteus nemesis
- Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.
Post#20
by francois » 26 Oct 2023, 00:58
From memory building PDF4QT or anki was asking for python3. Standard on porteus is python 2.xx.
Thanks for the info. Good knowledge.

Prendre son temps, profiter de celui qui passe.
francois
-
Rava
- Contributor

- Posts: 5424
- Joined: 11 Jan 2011, 02:46
- Distribution: XFCE 5.01 x86_64 + 4.0 i586
- Location: Forests of Germany
Post#21
by Rava » 26 Oct 2023, 03:32
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?
Cheers!
Yours Rava
Rava