Re: [oi-dev] No module named 'pkg'

2021-03-08 Thread Gary Mills
On Wed, Mar 03, 2021 at 08:38:40PM +0100, Klaus Ziegler wrote:
> 
> 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 
>     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 :-(

You are dealing with a circular dependancy of the worst kind.  I had a
similar problem building pkg with python-2.7 .  My solution was to
build both python and pkg in /opt first.  The source for pkg is
available here:

https://hg.java.net/hg/ips~pkg-gate

You need mercurial to obtain it.  The big clue is that packages are
not actually looking for other packages.  They are only looking for
files or directories contained in those packages.  In this case, it's
looking for a directory under python's vendor-packages directory.

Once I had both python and pkg installed in /opt, I could use that pkg
command to publish the python and pkg packages.  Then, I could install
both packages.  The rest was easy.


-- 
-Gary Mills--refurb--Winnipeg, Manitoba, Canada-

___
oi-dev mailing list
oi-dev@openindiana.org
https://openindiana.org/mailman/listinfo/oi-dev


Re: [oi-dev] No module named 'pkg'

2021-03-06 Thread Andreas Wacknitz

Am 05.03.21 um 15:10 schrieb Klaus Ziegler:


Hi Stephan,

yes, indeed I haven't run gmake setup in the top-level oi-userland
directory,
what I have done now:
klausz@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@sunfire % cd /usr/lib/python2.7/vendor-packages/ < - is there :-)
klausz@sunfire % cd /usr/lib/python3.5/vendor-packages
-bash: cd: /usr/lib/python3.5/vendor-packages: No such file or directory

This simply means you are missing Python-3.5 version packages/modules.
We are far ahead with package updates
on i386 and are now working on adding 3.7 and 3.9 package versions.
Python-2.7 is out of support since beginning of this year
and many newer module versions don't support 2.7 anymore. So we have to
either remove Python-2.7 versions or keep the last supported
version for Python-2.7.



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 ?

You can look at our package history. Alexander has been merging many
parts of OmniOS's IPS version with the help of the OmniOS people last year.
When your IPS already tries to use python-3.5 modules you are in a bad
situation and need to find a way to bootstrap the missing modules.


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".

This sounds like a way to bootstrap the missing packages. You should be
aware that you'll also need to update some of your make include files
in oi-userland/make-rules and probably also some template files in
oi-userland/templates and transforms in oi-userland/transforms.

Best regards,
Andreas


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/ 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 
 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
oi-dev@openindiana.org
https://openindiana.org/mailman/listinfo/oi-dev


Re: [oi-dev] No module named 'pkg'

2021-03-05 Thread s...@pandora.be


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 kla...@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@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@sunfire % cd /usr/lib/python2.7/vendor-packages/ < - is there :-)
> klausz@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 
> 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@openindiana.org | oi-dev@openindiana.org ]
> [ https://openindiana.org/mailman/listinfo/oi-dev |
> https://openindiana.org/mailman/listinfo/oi-dev ]
> 
> ___
> oi-dev mailing list
> [ mailto:oi-dev@openindiana.org | oi-dev@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@openindiana.org | oi-dev@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:kla...@haus-gisela.de |
> mailto:kla...@haus-gisela.de ] \\\
>(.. )
> =o00=(_)=00o=
> 
> ___
> oi-dev mailing list
> oi-dev@openindiana.org
> https://openindiana.org/mailman/listinfo/oi-dev

___
oi-dev mailing list
oi-dev@openindiana.org
https://openindiana.org/mailman/listinfo/oi-dev


Re: [oi-dev] No module named 'pkg'

2021-03-05 Thread Klaus Ziegler

Hi Stephan,

yes, indeed I haven't run gmake setup in the top-level oi-userland 
directory,

what I have done now:
klausz@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@sunfire % cd /usr/lib/python2.7/vendor-packages/ < - is there :-)
klausz@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/ 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 


 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
oi-dev@openindiana.org
https://openindiana.org/mailman/listinfo/oi-dev


___
oi-dev mailing list
oi-dev@openindiana.org
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/

Greetings
Stephan
|


___
oi-dev mailing list
oi-dev@openindiana.org
https://openindiana.org/mailman/listinfo/oi-dev


--
Klaus Ziegler   Tel: (++49 6105) 968846
Zeppelinstrasse 3   Mobil: (++49 172) 3064445
D-64546 Walldorf-Moerfelden mailto:kla...@haus-gisela.de

\\\
(.. )
=o00=(_)=00o=

___
oi-dev mailing list
oi-dev@openindiana.org
https://openindiana.org/mailman/listinfo/oi-dev


Re: [oi-dev] No module named 'pkg'

2021-03-03 Thread Stephan Althaus

On 03/03/21 08:48 PM, Till Wegmueller wrote:

Hi

IPS itself 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 


 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
oi-dev@openindiana.org
https://openindiana.org/mailman/listinfo/oi-dev


___
oi-dev mailing list
oi-dev@openindiana.org
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/

Greetings
Stephan
|
___
oi-dev mailing list
oi-dev@openindiana.org
https://openindiana.org/mailman/listinfo/oi-dev


Re: [oi-dev] No module named 'pkg'

2021-03-03 Thread Till Wegmueller

Hi

IPS itself 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 


     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
oi-dev@openindiana.org
https://openindiana.org/mailman/listinfo/oi-dev


___
oi-dev mailing list
oi-dev@openindiana.org
https://openindiana.org/mailman/listinfo/oi-dev


[oi-dev] No module named 'pkg'

2021-03-03 Thread Klaus Ziegler

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 


    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
oi-dev@openindiana.org
https://openindiana.org/mailman/listinfo/oi-dev