missing pydoc module
missing pydoc module
Post#1 by nick613 » 30 Oct 2018, 19:19
Thanks!
nick613
- ncmprhnsbl
- DEV Team
- Posts: 4293
- Joined: 20 Mar 2012, 03:42
- Distribution: v5.0-64bit
- Location: australia
- Contact:
missing pydoc module
Post#2 by ncmprhnsbl » 30 Oct 2018, 22:32
however, it is needed for some packages to build, and python dev stuff..
probably it should make it's way into 05-devel.xzm, but afaics, it doesn't..
so, for the moment, what i'd do is grab the full python package and either grab what you need from it or make a module of the whole thing..
check to match the version with installed version maybe.
ncmprhnsbl
nick613
- ncmprhnsbl
- DEV Team
- Posts: 4293
- Joined: 20 Mar 2012, 03:42
- Distribution: v5.0-64bit
- Location: australia
- Contact:
missing pydoc module
Post#4 by ncmprhnsbl » 31 Oct 2018, 00:29
i'd say yes to any of these.. shouldn't break anything.
ncmprhnsbl
missing pydoc module
Post#5 by nick613 » 31 Oct 2018, 02:32
nick613
- ncmprhnsbl
- DEV Team
- Posts: 4293
- Joined: 20 Mar 2012, 03:42
- Distribution: v5.0-64bit
- Location: australia
- Contact:
missing pydoc module
Post#6 by ncmprhnsbl » 31 Oct 2018, 06:10
if all goes well you could then rebuild 001-core with the full package.
by: (# denotes root terminal)
Code: Select all
#cp /mnt/sd*/porteus/base/001-core.xzm /tmp (or any ext* partition)
#cd /tmp (or whereever)
#mkdir extract
#xzm2dir 001-core.xzm extract
then either
#xzm2dir python-module.xzm extract
or
#removepkg -r extract python2 (might not be necessary if version are same)
#installpkg -r extract python2* (*wildcard saves typing the whole pkg name)
then
#dir2xzm extract 001-core-m.xzm (m for modified)
replace in base
Code: Select all
rm -rf usr/lib${SUFFIX}/python2.7/distutils/tests/*
rm -rf usr/lib${SUFFIX}/python2.7/unittest/test/*
rm -rf usr/lib${SUFFIX}/python2.7/test/*
rm -rf usr/lib${SUFFIX}/python2.7/ctypes/test/*
rm -rf usr/lib${SUFFIX}/python2.7/json/tests/*
rm -rf usr/lib${SUFFIX}/python2.7/bsddb/test/*
rm -rf usr/lib${SUFFIX}/python2.7/email/test/*
rm -rf usr/lib${SUFFIX}/python2.7/lib-tk/test/*
rm -rf usr/lib${SUFFIX}/python2.7/sqlite3/test/*
rm -rf usr/lib${SUFFIX}/python2.7/lib2to3/tests/*
rm -rf usr/lib${SUFFIX}/python2.7/idlelib/*
rm -rf usr/lib${SUFFIX}/python2.7/lib-tk/*
rm -rf usr/lib${SUFFIX}/python2.7/lib2to3/*
rm usr/lib${SUFFIX}/python2.7/pydoc.py* 2>/dev/null
rm usr/lib${SUFFIX}/python2.7/tabnanny.py* 2>/dev/null
ncmprhnsbl
missing pydoc module
Post#7 by nick613 » 01 Nov 2018, 18:36
nick613
- ncmprhnsbl
- DEV Team
- Posts: 4293
- Joined: 20 Mar 2012, 03:42
- Distribution: v5.0-64bit
- Location: australia
- Contact:
missing pydoc module
Post#8 by ncmprhnsbl » 01 Nov 2018, 22:31
anyway here's links for slackware packages:
python2:
http://ftp.slackware.com/pub/slackware/ ... 6_64-3.txz
python3:
http://ftp.slackware.com/pub/slackware/ ... 6_64-1.txz
in your filemanager rightclick menu you should find "convert txz to xzm" or "convert slackware to module" or something like that.
the tar.xz from the python website is the source files and would need to be compiled, which is a whole other ball game.
btw, which desktop are you using?
ncmprhnsbl
missing pydoc module
Post#9 by nick613 » 02 Nov 2018, 04:35
I'm using Cinnamon for my desktop.
So I downloaded and converted into a module. It's inserting into the OS properly because it's taking over my python3 command, but I'm getting an error:
python3: /lib64/libc.so.6: version `GLIBC_2.28' not found (required by /usr/lib64/libpython3.6m.so.1.0)
The machine is running 2.27. How can this be updated?
nick613
- ncmprhnsbl
- DEV Team
- Posts: 4293
- Joined: 20 Mar 2012, 03:42
- Distribution: v5.0-64bit
- Location: australia
- Contact:
missing pydoc module
Post#10 by ncmprhnsbl » 02 Nov 2018, 05:06
it might be enough to make an updated glibc http://ftp.slackware.com/pub/slackware/ ... 6_64-2.txz
but, this might mess up other stuff(i don't fully understand this)
we are currently working on getting a new updated release together, hopefully soon..
at some point when slackware 15 is released, and repo becomes semi-fixed again, this sort of problem won't occur..
ncmprhnsbl
missing pydoc module
Post#11 by jssouza » 02 Nov 2018, 05:27
Here are the python packages from Slackware current at the time when Cinnamon was built for Porteus 4. These might work for your use case.
python-2.7.14-x86_64-1.txz
python3-3.6.5-x86_64-2.txz
jssouza
missing pydoc module
Post#12 by nick613 » 02 Nov 2018, 18:23
nick613
- ncmprhnsbl
- DEV Team
- Posts: 4293
- Joined: 20 Mar 2012, 03:42
- Distribution: v5.0-64bit
- Location: australia
- Contact:
missing pydoc module
Post#13 by ncmprhnsbl » 02 Nov 2018, 23:38

and thank you jssouza, too!
ncmprhnsbl
missing pydoc module
Post#14 by vinnie » 16 Jun 2024, 05:18
Sorry for necroposting but I have just this problem, I am exploring porteus a bit and after installing pip separately (with getpkg python-pip as mentioned in another topic), I find myself without the help() command in python, I miss pydocncmprhnsbl wrote: ↑31 Oct 2018, 06:10Code: Select all
#cp /mnt/sd*/porteus/base/001-core.xzm /tmp (or any ext* partition) #cd /tmp (or whereever) #mkdir extract #xzm2dir 001-core.xzm extract then either #xzm2dir python-module.xzm extract or #removepkg -r extract python2 (might not be necessary if version are same) #installpkg -r extract python2* (*wildcard saves typing the whole pkg name) then #dir2xzm extract 001-core-m.xzm (m for modified) replace in base

I understand it's in devel however it's 140mb, I would prefer to uncorporate just that library, the problem is that xzm2dir doesn't seem to work.
I try to run the command but it keeps returning me the help:
Code: Select all
guest@porteus:/mnt/sdb4/devel$ mkdir ./extract
guest@porteus:/mnt/sdb4/devel$ xzm2dir ./05-devel.xzm ./extract
Extract .xzm module to folder
Usage: xzm2dir moduleName.xzm [outputFolder]
Example: xzm2dir module.xzm
Example: xzm2dir module.xzm outputFolder
vinnie
- ncmprhnsbl
- DEV Team
- Posts: 4293
- Joined: 20 Mar 2012, 03:42
- Distribution: v5.0-64bit
- Location: australia
- Contact:
missing pydoc module
Post#15 by ncmprhnsbl » 16 Jun 2024, 23:06

this line:
Code: Select all
if [ "$1" == "" ] || [ "$1" == "-h" ] || [ "$1" != "*.xzm" ]; then
Code: Select all
[ "$1" != "*.xzm" ]
Code: Select all
[ $(echo "$1" | grep "*.xzm") ]
Code: Select all
[ "${1##*.}" != "xzm" ]
else, for the moment use the rightclick menu in the (root)filemanager "extract module" option or even just "mount module" and copy what you want from /mnt/loop and unmount it after.
ncmprhnsbl