* [gentoo-user] emerge fails with syntax error from stage3-amd64-openrc-20250216T164837Z.tar.xz
@ 2025-02-22 6:13 Steven Lembark
2025-02-22 8:29 ` Dale
2025-02-22 21:35 ` ilovecountrymusic483
0 siblings, 2 replies; 3+ messages in thread
From: Steven Lembark @ 2025-02-22 6:13 UTC (permalink / raw
To: gentoo-user; +Cc: lembark
Done this enough times before: Boot the minimal install, create a vm,
create the baseline LV's, mount them along with the slaves (e.g.,
dev), chroot to the new system, do the emerges.
Checking the duck didn't get me anywhere; not sure if this is something
well-known or not; if so any pointers to known workarounds would be
appreciated.
Thanks
Using:
install-amd64-minimal-20250216T164837Z.iso
stage3-amd64-openrc-20250216T164837Z.tar.xz
Mount the filesytems then:
cd /mnt/gentoo;
xzcat < stage3-amd64-openrc-20250216T164837Z.tar.xz | tar xf -;
mount --bind for dev, sys, proc, run...
chroot /mnt/gentoo /bin/bash --login;
Simple sanity check: Does emerge run at all:
# ls -l $( which emerge );
lrwxrwxrwx 1 root root 31 Feb 16 17:23 /bin/emerge -> ../lib/python-exec/python-exec2
whatever python-exec might be...
# emerge --version;
Traceback (most recent call last):
File "/usr/lib/python-exec/python3.12/emerge", line 51, in <module>
from _emerge.main import emerge_main
File "/usr/lib/python3.12/site-packages/_emerge/main.py", line 25, in <module>
from portage.sync import _SUBMODULE_PATH_MAP
File "/usr/lib/python3.12/site-packages/portage/sync/__init__.py", line 24, in <module>
module_controller = Modules(path=path, namepath="portage.sync.modules")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/portage/module.py", line 101, in __init__
self._modules = self._get_all_modules()
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/portage/module.py", line 134, in _get_all_modules
new_module = Module(entry, self._namepath)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/portage/module.py", line 33, in __init__
self.initialized = self._initialize()
^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/portage/module.py", line 43, in _initialize
self._module = __import__(mod_name, [], [], ["not empty"])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/portage/sync/modules/PaxHeaders/__init__.py", line 1
20 atime=1726641191
^^^^^
SyntaxError: invalid syntax
--
Steven Lembark
Workhorse Computing
lembark@wrkhors.com
+1 888 359 3508
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-user] emerge fails with syntax error from stage3-amd64-openrc-20250216T164837Z.tar.xz
2025-02-22 6:13 [gentoo-user] emerge fails with syntax error from stage3-amd64-openrc-20250216T164837Z.tar.xz Steven Lembark
@ 2025-02-22 8:29 ` Dale
2025-02-22 21:35 ` ilovecountrymusic483
1 sibling, 0 replies; 3+ messages in thread
From: Dale @ 2025-02-22 8:29 UTC (permalink / raw
To: gentoo-user
Steven Lembark wrote:
> Done this enough times before: Boot the minimal install, create a vm,
> create the baseline LV's, mount them along with the slaves (e.g.,
> dev), chroot to the new system, do the emerges.
>
> Checking the duck didn't get me anywhere; not sure if this is something
> well-known or not; if so any pointers to known workarounds would be
> appreciated.
>
> Thanks
>
> Using:
>
> install-amd64-minimal-20250216T164837Z.iso
> stage3-amd64-openrc-20250216T164837Z.tar.xz
>
> Mount the filesytems then:
>
> cd /mnt/gentoo;
> xzcat < stage3-amd64-openrc-20250216T164837Z.tar.xz | tar xf -;
>
> mount --bind for dev, sys, proc, run...
> chroot /mnt/gentoo /bin/bash --login;
>
> Simple sanity check: Does emerge run at all:
>
> # ls -l $( which emerge );
> lrwxrwxrwx 1 root root 31 Feb 16 17:23 /bin/emerge -> ../lib/python-exec/python-exec2
>
> whatever python-exec might be...
>
> # emerge --version;
>
> Traceback (most recent call last):
> File "/usr/lib/python-exec/python3.12/emerge", line 51, in <module>
> from _emerge.main import emerge_main
> File "/usr/lib/python3.12/site-packages/_emerge/main.py", line 25, in <module>
> from portage.sync import _SUBMODULE_PATH_MAP
> File "/usr/lib/python3.12/site-packages/portage/sync/__init__.py", line 24, in <module>
> module_controller = Modules(path=path, namepath="portage.sync.modules")
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> File "/usr/lib/python3.12/site-packages/portage/module.py", line 101, in __init__
> self._modules = self._get_all_modules()
> ^^^^^^^^^^^^^^^^^^^^^^^
> File "/usr/lib/python3.12/site-packages/portage/module.py", line 134, in _get_all_modules
> new_module = Module(entry, self._namepath)
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> File "/usr/lib/python3.12/site-packages/portage/module.py", line 33, in __init__
> self.initialized = self._initialize()
> ^^^^^^^^^^^^^^^^^^
> File "/usr/lib/python3.12/site-packages/portage/module.py", line 43, in _initialize
> self._module = __import__(mod_name, [], [], ["not empty"])
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> File "/usr/lib/python3.12/site-packages/portage/sync/modules/PaxHeaders/__init__.py", line 1
> 20 atime=1726641191
> ^^^^^
> SyntaxError: invalid syntax
>
>
I checked mine, emerge pointing to python is the same here. So that is
good. Just some thoughts here. Did you run the source and env command
after doing the chroot? Also, I'd check to make sure that you have a
profile set that exists. I'd expect emerge to point out if it is not
set correctly but one never can be to sure. Just do a eselect profile
list and see if one is selected. If not, fix that and try again.
If none of that helps, maybe someone else has seen this error before.
Dale
:-) :-)
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: [gentoo-user] emerge fails with syntax error from stage3-amd64-openrc-20250216T164837Z.tar.xz
2025-02-22 6:13 [gentoo-user] emerge fails with syntax error from stage3-amd64-openrc-20250216T164837Z.tar.xz Steven Lembark
2025-02-22 8:29 ` Dale
@ 2025-02-22 21:35 ` ilovecountrymusic483
1 sibling, 0 replies; 3+ messages in thread
From: ilovecountrymusic483 @ 2025-02-22 21:35 UTC (permalink / raw
To: gentoo-user
-----Original Message-----
From: Steven Lembark <lembark@wrkhors.com>
Sent: Saturday, February 22, 2025 1:14 AM
To: gentoo-user@lists.gentoo.org
Cc: lembark@wrkhors.com
Subject: [gentoo-user] emerge fails with syntax error from
stage3-amd64-openrc-20250216T164837Z.tar.xz
Done this enough times before: Boot the minimal install, create a vm, create
the baseline LV's, mount them along with the slaves (e.g., dev), chroot to
the new system, do the emerges.
Checking the duck didn't get me anywhere; not sure if this is something
well-known or not; if so any pointers to known workarounds would be
appreciated.
Thanks
Hi, I have tried this before and found for what ever reason that my
compiler doesn't work along with a few other issues. I have a current vm
which works just fine and is currently updating as I write.
Using:
install-amd64-minimal-20250216T164837Z.iso
stage3-amd64-openrc-20250216T164837Z.tar.xz
Mount the filesytems then:
cd /mnt/gentoo;
xzcat < stage3-amd64-openrc-20250216T164837Z.tar.xz | tar xf -;
mount --bind for dev, sys, proc, run...
chroot /mnt/gentoo /bin/bash --login;
Simple sanity check: Does emerge run at all:
# ls -l $( which emerge );
lrwxrwxrwx 1 root root 31 Feb 16 17:23 /bin/emerge ->
../lib/python-exec/python-exec2
whatever python-exec might be...
# emerge --version;
Traceback (most recent call last):
File "/usr/lib/python-exec/python3.12/emerge", line 51, in <module>
from _emerge.main import emerge_main
File "/usr/lib/python3.12/site-packages/_emerge/main.py", line 25, in
<module>
from portage.sync import _SUBMODULE_PATH_MAP
File "/usr/lib/python3.12/site-packages/portage/sync/__init__.py", line
24, in <module>
module_controller = Modules(path=path, namepath="portage.sync.modules")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/portage/module.py", line 101, in
__init__
self._modules = self._get_all_modules()
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/portage/module.py", line 134, in
_get_all_modules
new_module = Module(entry, self._namepath)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/portage/module.py", line 33, in
__init__
self.initialized = self._initialize()
^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/portage/module.py", line 43, in
_initialize
self._module = __import__(mod_name, [], [], ["not empty"])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/usr/lib/python3.12/site-packages/portage/sync/modules/PaxHeaders/__init__.
py", line 1
20 atime=1726641191
^^^^^
SyntaxError: invalid syntax
--
Steven Lembark
Workhorse Computing
lembark@wrkhors.com
+1 888 359 3508
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-02-22 21:36 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-22 6:13 [gentoo-user] emerge fails with syntax error from stage3-amd64-openrc-20250216T164837Z.tar.xz Steven Lembark
2025-02-22 8:29 ` Dale
2025-02-22 21:35 ` ilovecountrymusic483
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox