missing pydoc module
missing pydoc module
I just installed PyCharm but the console and all debugging was not starting because it said it couldn't find the pydoc module. I checked in shell and it seems that it's missing from the Python installation. Is there any reason for this and is there any way to fix it?
Thanks!
Thanks!
- ncmprhnsbl
- DEV Team
- Posts: 4123
- Joined: 20 Mar 2012, 03:42
- Distribution: v5.0-64bit
- Location: australia
- Contact:
missing pydoc module
yes, pydoc(among other stuff) is stripped from the default porteus, mainly because it's not needed for *most* apps to run..
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.
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.
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44
missing pydoc module
Is it possible to just install a fresh copy of python over the old one?
- ncmprhnsbl
- DEV Team
- Posts: 4123
- Joined: 20 Mar 2012, 03:42
- Distribution: v5.0-64bit
- Location: australia
- Contact:
missing pydoc module
you mean in the live system, saved to changes or in the extracted 001-core? (or as a module loaded on top)
i'd say yes to any of these.. shouldn't break anything.
i'd say yes to any of these.. shouldn't break anything.
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44
missing pydoc module
Cool. So what would be the simplest option to prevent any future problems? I'd like to use the OS primarily for python development and so I'd like to have all the default modules work without any hitches.
- ncmprhnsbl
- DEV Team
- Posts: 4123
- Joined: 20 Mar 2012, 03:42
- Distribution: v5.0-64bit
- Location: australia
- Contact:
missing pydoc module
well, the simplist(and safest) would be to make a python module and put it in /modules. that way if there's a problem it's easy to roll back.
if all goes well you could then rebuild 001-core with the full package.
by: (# denotes root terminal)
for reference, here's what is removed:
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
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44
missing pydoc module
I'm sorry, but you may have to hold my hand here. How would I make a python module? I downloaded the tar.xz from the python website, but how would I make that into a module? I tried to extract it and build it with dir2xzm but that didn't seem to do the trick.
- ncmprhnsbl
- DEV Team
- Posts: 4123
- Joined: 20 Mar 2012, 03:42
- Distribution: v5.0-64bit
- Location: australia
- Contact:
missing pydoc module
i didn't think to ask: python 2 or 3? i'm guessing probably 3 since 2 is in line to be deprecated.
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?
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?
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44
missing pydoc module
Yeah, I'm looking to set up python 3 but I'd probably get 2 as well in case I need it later.
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?
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?
- ncmprhnsbl
- DEV Team
- Posts: 4123
- Joined: 20 Mar 2012, 03:42
- Distribution: v5.0-64bit
- Location: australia
- Contact:
missing pydoc module
hmm, i feared that something like that might be the case, since we're using slackware current which is rolling, and since the april release, they've moved on with a few things. glibc being one of them..
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..
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..
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44
missing pydoc module
Maybe try the other way round.
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
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
missing pydoc module
Thanks for the help. I tried what jssouza suggested and the module loads nicely, and now pydoc3 seems to be functioning properly, as well as PyCharm. Thanks for all your help.
- ncmprhnsbl
- DEV Team
- Posts: 4123
- Joined: 20 Mar 2012, 03:42
- Distribution: v5.0-64bit
- Location: australia
- Contact:
missing pydoc module
and thank you jssouza, too!
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44
missing pydoc module
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
- ncmprhnsbl
- DEV Team
- Posts: 4123
- Joined: 20 Mar 2012, 03:42
- Distribution: v5.0-64bit
- Location: australia
- Contact:
missing pydoc module
seems a bug has been introduced by me presumably.. a rubbish test in the script: /opt/porteus-scripts/xzm2dir :
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.
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44