[oi-dev] No module named 'pkg'
stes@PANDORA.BE
stes at telenet.be
Fri Mar 5 17:40:12 UTC 2021
As Till Wegmueller already said, the IPS package manager itself is at
https://github.com/OpenIndiana/pkg5 - so in its own github repository.
> what to do to migrate userland for SPARC
> from python2.7 to python3.5
Have you migrated pkg5 already to python 3.5 ?
If I'm not mistaken,
pkg contents pkg | grep vendor-packages
will show that 'pkg' (the package 'pkg') delivers a bunch of vendor-packages/pkg files,
which I think is the module 'pkg' it is trying to find in vendor-packages.
However I must add that I've never built 'pkg5' itself so this is just what I think when reading the error messages.
----- Op 5 mar 2021 om 15:10 schreef Klaus Ziegler klausz at haus-gisela.de:
> Hi Stephan, yes, indeed I haven't run gmake setup in the top-level oi-userland
> directory,
> what I have done now:
> klausz at sunfire % gmake setup
> setup components
> make[1]: Entering directory '/ws/klausz/oi-userland/components'
> /bin/mkdir -p /ws/klausz/oi-userland/sparc/logs
> /usr/bin/pkgrepo create file:/ws/klausz/oi-userland/sparc/repo
> /usr/bin/pkgrepo add-publisher -s file:/ws/klausz/oi-userland/sparc/repo
> userland
> /usr/bin/pkgrepo rebuild -s file:/ws/klausz/oi-userland/sparc/repo
> Initiating repository rebuild.
> building tools...
>
> After that I've built the latest gawk and tried:
> gmake sample-manifest <- okay
> gmake pre-publish <------------------------ STILL the SAME ERROR: ImportError:
> No module named 'pkg'
>
> My problem is that SPARC does not have a:
> /usr/lib/python3.5/vendor-packages directory:
> klausz at sunfire % cd /usr/lib/python2.7/vendor-packages/ < - is there :-)
> klausz at sunfire % cd /usr/lib/python3.5/vendor-packages
> -bash: cd: /usr/lib/python3.5/vendor-packages: No such file or directory
>
> that's where I think the "pkg module" lives - right?
> how do I build/get this directory - it's not worth symlinking the
> python2.7 directory since that is 32bit and the python3.5 installation
> is 64bit per default - what to do to migrate userland for SPARC
> from python2.7 to python3.5 ?
> All the SPARC packages (100) which I've already built are done via
> a home-gown script which do all the steps by hand rather than
> to use "gmake publish" - I allready had a valid repo, which is the
> the step done by "gmake setup".
>
> Much Regards
> Klaus
>
> On 04.03.21 00:13, Stephan Althaus wrote:
>
>
>
> On 03/03/21 08:48 PM, Till Wegmueller wrote:
>
>
> Hi
>
> IPS itself [ https://github.com/OpenIndiana/pkg5/ |
> https://github.com/OpenIndiana/pkg5/ ] or the path in the components directory
>
> -Till
>
> On 03.03.21 16:38, Klaus Ziegler wrote:
>
>
> Hi,
>
> I've been able to compile python3.5 on SPARC and wanted to decom
> my workaround for building packages in oi-userland, unfortunately
>
> gmake pre-publish still tells me:
>
> Traceback (most recent call last):
> File "/ws/klausz/oi-userland/tools/userland-mangler", line 38, in <module>
> import pkg.fmri
> ImportError: No module named 'pkg'
>
> can anybody tell me where and what module I have to build to be able to use
> python3.5 to build packages, I hope it's not in the illumos-gate :-(
>
> Much Regards
> Klaus
>
> _______________________________________________
> oi-dev mailing list
> [ mailto:oi-dev at openindiana.org | oi-dev at openindiana.org ]
> [ https://openindiana.org/mailman/listinfo/oi-dev |
> https://openindiana.org/mailman/listinfo/oi-dev ]
>
> _______________________________________________
> oi-dev mailing list
> [ mailto:oi-dev at openindiana.org | oi-dev at openindiana.org ]
> [ https://openindiana.org/mailman/listinfo/oi-dev |
> https://openindiana.org/mailman/listinfo/oi-dev ]
>
>
> Hello Klaus!
>
> Is there a chance you skipped this:
> cd $HOME/oi-userland
> gmake setup
>
> from [ http://docs.openindiana.org/dev/userland/ |
> http://docs.openindiana.org/dev/userland/ ]
>
> Greetings
> Stephan
>
>
> _______________________________________________
> oi-dev mailing list [ mailto:oi-dev at openindiana.org | oi-dev at openindiana.org ] [
> https://openindiana.org/mailman/listinfo/oi-dev |
> https://openindiana.org/mailman/listinfo/oi-dev ]
>
> --
> Klaus Ziegler Tel: (++49 6105) 968846
> Zeppelinstrasse 3 Mobil: (++49 172) 3064445
> D-64546 Walldorf-Moerfelden [ mailto:klausz at haus-gisela.de |
> mailto:klausz at haus-gisela.de ] \\\
> (.. )
> =o00=(_)=00o=============================================================
>
> _______________________________________________
> oi-dev mailing list
> oi-dev at openindiana.org
> https://openindiana.org/mailman/listinfo/oi-dev
More information about the oi-dev
mailing list