Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Subversion/Pentoo KeyError 'ARCH' Issue
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
joe198645
n00b
n00b


Joined: 06 Dec 2016
Posts: 3

PostPosted: Tue Dec 06, 2016 11:09 am    Post subject: Subversion/Pentoo KeyError 'ARCH' Issue Reply with quote

Hi all,

Very new to Gentoo, so please go easy on me. I've been battling installing Gentoo on a Raspberry PI for the last couple of weeks, with the aim of installing Layman so I could use a Pentoo overlay. After a major battle of installing Layman (due to my incompetence on the system and lack of knowledge with USE flags, emerge use, etc.) I finally managed to install Layman and it seems to be working. I have run the following commands:

Code:
layman -L

Code:
layman -a pentoo


and both of these completed successfully. but when I search for the overlay profile using "eselect profile list" it is not displayed within the list. I have tried going down the manual route of using symbolic links also, and then running "emerge -DNupv world" as specified in a tutorial I have been following, and the following error message appears:

Code:
Calculating dependencies /================================================================================================
======== Traceback for invalid call to portage.package.ebuild.config.config.__getitem__ ========
  File "/usr/lib/python-exec/python3.4/emerge", line 50, in <module>
    retval = emerge_main()
  File "/usr/lib/python3.4/site-packages/_emerge/main.py", line 1185, in emerge_main
    return run_action(emerge_config)
  File "/usr/lib/python3.4/site-packages/_emerge/actions.py", line 3236, in run_action
    emerge_config.args, spinner)
  File "/usr/lib/python3.4/site-packages/_emerge/actions.py", line 324, in action_build
    settings, trees, myopts, myparams, myaction, myfiles, spinner)
  File "/usr/lib/python3.4/site-packages/_emerge/depgraph.py", line 9196, in backtrack_depgraph
    myaction, myfiles, spinner)
  File "/usr/lib/python3.4/site-packages/_emerge/depgraph.py", line 9233, in _backtrack_depgraph
    success, favorites = mydepgraph.select_files(myfiles)
  File "/usr/lib/python3.4/site-packages/_emerge/depgraph.py", line 3583, in select_files
    return self._select_files(args)
  File "/usr/lib/python3.4/site-packages/_emerge/depgraph.py", line 3926, in _select_files
    return self._resolve(myfavorites)
  File "/usr/lib/python3.4/site-packages/_emerge/depgraph.py", line 4077, in _resolve
    if not self._create_graph():
  File "/usr/lib/python3.4/site-packages/_emerge/depgraph.py", line 2378, in _create_graph
    allow_unsatisfied=allow_unsatisfied):
  File "/usr/lib/python3.4/site-packages/_emerge/depgraph.py", line 3089, in _add_pkg_deps
    allow_unsatisfied):
  File "/usr/lib/python3.4/site-packages/_emerge/depgraph.py", line 3105, in _add_pkg_dep_string
    allow_unsatisfied)
  File "/usr/lib/python3.4/site-packages/_emerge/depgraph.py", line 3185, in _wrapped_add_pkg_dep_string
    pkg, dep_priority, root_config, selected_atoms[pkg]):
  File "/usr/lib/python3.4/site-packages/_emerge/depgraph.py", line 3384, in _minimize_children
    root_config.root, atom, parent=parent)
  File "/usr/lib/python3.4/site-packages/_emerge/depgraph.py", line 5324, in _select_pkg_highest_available
    ret = self._select_pkg_highest_available_imp(root, atom, onlydeps=onlydeps, parent=parent)
  File "/usr/lib/python3.4/site-packages/_emerge/depgraph.py", line 5558, in _select_pkg_highest_available_imp
    autounmask_level=autounmask_level, parent=parent)
  File "/usr/lib/python3.4/site-packages/_emerge/depgraph.py", line 5899, in _wrapped_select_pkg_highest_available_imp
    if not self._pkg_visibility_check(pkg, autounmask_level):
  File "/usr/lib/python3.4/site-packages/_emerge/depgraph.py", line 5596, in _pkg_visibility_check
    mreasons = _get_masking_status(pkg, pkgsettings, root_config, use=self._pkg_use_enabled(pkg))
  File "/usr/lib/python3.4/site-packages/_emerge/depgraph.py", line 9479, in _get_masking_status
    portdb=root_config.trees["porttree"].dbapi, myrepo=myrepo)
  File "/usr/lib/python3.4/site-packages/portage/package/ebuild/getmaskingstatus.py", line 100, in _getmaskingstatus
    myarch = settings["ARCH"]
  File "/usr/lib/python3.4/site-packages/portage/package/ebuild/config.py", line 2570, in __getitem__
    return self._getitem(key)
  File "/usr/lib/python3.4/site-packages/portage/package/ebuild/config.py", line 2623, in _getitem
    raise KeyError(mykey)
KeyError: 'ARCH'
================================================================================================                               ... done!
Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.4/emerge", line 50, in <module>
    retval = emerge_main()
  File "/usr/lib/python3.4/site-packages/_emerge/main.py", line 1185, in emerge_main
    return run_action(emerge_config)
  File "/usr/lib/python3.4/site-packages/_emerge/actions.py", line 3236, in run_action
    emerge_config.args, spinner)
  File "/usr/lib/python3.4/site-packages/_emerge/actions.py", line 324, in action_build
    settings, trees, myopts, myparams, myaction, myfiles, spinner)
  File "/usr/lib/python3.4/site-packages/_emerge/depgraph.py", line 9196, in backtrack_depgraph
    myaction, myfiles, spinner)
  File "/usr/lib/python3.4/site-packages/_emerge/depgraph.py", line 9233, in _backtrack_depgraph
    success, favorites = mydepgraph.select_files(myfiles)
  File "/usr/lib/python3.4/site-packages/_emerge/depgraph.py", line 3583, in select_files
    return self._select_files(args)
  File "/usr/lib/python3.4/site-packages/_emerge/depgraph.py", line 3926, in _select_files
    return self._resolve(myfavorites)
  File "/usr/lib/python3.4/site-packages/_emerge/depgraph.py", line 4077, in _resolve
    if not self._create_graph():
  File "/usr/lib/python3.4/site-packages/_emerge/depgraph.py", line 2378, in _create_graph
    allow_unsatisfied=allow_unsatisfied):
  File "/usr/lib/python3.4/site-packages/_emerge/depgraph.py", line 3089, in _add_pkg_deps
    allow_unsatisfied):
  File "/usr/lib/python3.4/site-packages/_emerge/depgraph.py", line 3105, in _add_pkg_dep_string
    allow_unsatisfied)
  File "/usr/lib/python3.4/site-packages/_emerge/depgraph.py", line 3185, in _wrapped_add_pkg_dep_string
    pkg, dep_priority, root_config, selected_atoms[pkg]):
  File "/usr/lib/python3.4/site-packages/_emerge/depgraph.py", line 3384, in _minimize_children
    root_config.root, atom, parent=parent)
  File "/usr/lib/python3.4/site-packages/_emerge/depgraph.py", line 5324, in _select_pkg_highest_available
    ret = self._select_pkg_highest_available_imp(root, atom, onlydeps=onlydeps, parent=parent)
  File "/usr/lib/python3.4/site-packages/_emerge/depgraph.py", line 5558, in _select_pkg_highest_available_imp
    autounmask_level=autounmask_level, parent=parent)
  File "/usr/lib/python3.4/site-packages/_emerge/depgraph.py", line 5899, in _wrapped_select_pkg_highest_available_imp
    if not self._pkg_visibility_check(pkg, autounmask_level):
  File "/usr/lib/python3.4/site-packages/_emerge/depgraph.py", line 5596, in _pkg_visibility_check
    mreasons = _get_masking_status(pkg, pkgsettings, root_config, use=self._pkg_use_enabled(pkg))
  File "/usr/lib/python3.4/site-packages/_emerge/depgraph.py", line 9479, in _get_masking_status
    portdb=root_config.trees["porttree"].dbapi, myrepo=myrepo)
  File "/usr/lib/python3.4/site-packages/portage/package/ebuild/getmaskingstatus.py", line 100, in _getmaskingstatus
    myarch = settings["ARCH"]
  File "/usr/lib/python3.4/site-packages/portage/package/ebuild/config.py", line 2570, in __getitem__
    return self._getitem(key)
  File "/usr/lib/python3.4/site-packages/portage/package/ebuild/config.py", line 2623, in _getitem
    raise KeyError(mykey)
KeyError: 'ARCH'


I have synced Emerge which was fine apart from some permission errors related to deleting folders related to the Pentoo direcroty structure (I dont think this is causing the problem).

I also realised that I hadn't installed subversion alongside layman, so I went back to do that, with the following error similarly to the above:

Code:
Calculating dependencies \================================================================================================
======== Traceback for invalid call to portage.package.ebuild.config.config.__getitem__ ========
  File "/usr/lib/python-exec/python3.4/emerge", line 50, in <module>
    retval = emerge_main()
  File "/usr/lib/python3.4/site-packages/_emerge/main.py", line 1185, in emerge_main
    return run_action(emerge_config)
  File "/usr/lib/python3.4/site-packages/_emerge/actions.py", line 3236, in run_action
    emerge_config.args, spinner)
  File "/usr/lib/python3.4/site-packages/_emerge/actions.py", line 324, in action_build
    settings, trees, myopts, myparams, myaction, myfiles, spinner)
  File "/usr/lib/python3.4/site-packages/_emerge/depgraph.py", line 9196, in backtrack_depgraph
    myaction, myfiles, spinner)
  File "/usr/lib/python3.4/site-packages/_emerge/depgraph.py", line 9233, in _backtrack_depgraph
    success, favorites = mydepgraph.select_files(myfiles)
  File "/usr/lib/python3.4/site-packages/_emerge/depgraph.py", line 3583, in select_files
    return self._select_files(args)
  File "/usr/lib/python3.4/site-packages/_emerge/depgraph.py", line 3926, in _select_files
    return self._resolve(myfavorites)
  File "/usr/lib/python3.4/site-packages/_emerge/depgraph.py", line 3990, in _resolve
    myroot, atom, onlydeps=onlydeps)
  File "/usr/lib/python3.4/site-packages/_emerge/depgraph.py", line 5324, in _select_pkg_highest_available
    ret = self._select_pkg_highest_available_imp(root, atom, onlydeps=onlydeps, parent=parent)
  File "/usr/lib/python3.4/site-packages/_emerge/depgraph.py", line 5558, in _select_pkg_highest_available_imp
    autounmask_level=autounmask_level, parent=parent)
  File "/usr/lib/python3.4/site-packages/_emerge/depgraph.py", line 5899, in _wrapped_select_pkg_highest_available_imp
    if not self._pkg_visibility_check(pkg, autounmask_level):
  File "/usr/lib/python3.4/site-packages/_emerge/depgraph.py", line 5596, in _pkg_visibility_check
    mreasons = _get_masking_status(pkg, pkgsettings, root_config, use=self._pkg_use_enabled(pkg))
  File "/usr/lib/python3.4/site-packages/_emerge/depgraph.py", line 9479, in _get_masking_status
    portdb=root_config.trees["porttree"].dbapi, myrepo=myrepo)
  File "/usr/lib/python3.4/site-packages/portage/package/ebuild/getmaskingstatus.py", line 100, in _getmaskingstatus
    myarch = settings["ARCH"]
  File "/usr/lib/python3.4/site-packages/portage/package/ebuild/config.py", line 2570, in __getitem__
    return self._getitem(key)
  File "/usr/lib/python3.4/site-packages/portage/package/ebuild/config.py", line 2623, in _getitem
    raise KeyError(mykey)
KeyError: 'ARCH'
================================================================================================


!!! Problem in 'dev-vcs/git' dependencies.
!!! 'ARCH' None                                                                                                                ... done!
Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.4/emerge", line 50, in <module>
    retval = emerge_main()
  File "/usr/lib/python3.4/site-packages/_emerge/main.py", line 1185, in emerge_main
    return run_action(emerge_config)
  File "/usr/lib/python3.4/site-packages/_emerge/actions.py", line 3236, in run_action
    emerge_config.args, spinner)
  File "/usr/lib/python3.4/site-packages/_emerge/actions.py", line 324, in action_build
    settings, trees, myopts, myparams, myaction, myfiles, spinner)
  File "/usr/lib/python3.4/site-packages/_emerge/depgraph.py", line 9196, in backtrack_depgraph
    myaction, myfiles, spinner)
  File "/usr/lib/python3.4/site-packages/_emerge/depgraph.py", line 9233, in _backtrack_depgraph
    success, favorites = mydepgraph.select_files(myfiles)
  File "/usr/lib/python3.4/site-packages/_emerge/depgraph.py", line 3583, in select_files
    return self._select_files(args)
  File "/usr/lib/python3.4/site-packages/_emerge/depgraph.py", line 3926, in _select_files
    return self._resolve(myfavorites)
  File "/usr/lib/python3.4/site-packages/_emerge/depgraph.py", line 3990, in _resolve
    myroot, atom, onlydeps=onlydeps)
  File "/usr/lib/python3.4/site-packages/_emerge/depgraph.py", line 5324, in _select_pkg_highest_available
    ret = self._select_pkg_highest_available_imp(root, atom, onlydeps=onlydeps, parent=parent)
  File "/usr/lib/python3.4/site-packages/_emerge/depgraph.py", line 5558, in _select_pkg_highest_available_imp
    autounmask_level=autounmask_level, parent=parent)
  File "/usr/lib/python3.4/site-packages/_emerge/depgraph.py", line 5899, in _wrapped_select_pkg_highest_available_imp
    if not self._pkg_visibility_check(pkg, autounmask_level):
  File "/usr/lib/python3.4/site-packages/_emerge/depgraph.py", line 5596, in _pkg_visibility_check
    mreasons = _get_masking_status(pkg, pkgsettings, root_config, use=self._pkg_use_enabled(pkg))
  File "/usr/lib/python3.4/site-packages/_emerge/depgraph.py", line 9479, in _get_masking_status
    portdb=root_config.trees["porttree"].dbapi, myrepo=myrepo)
  File "/usr/lib/python3.4/site-packages/portage/package/ebuild/getmaskingstatus.py", line 100, in _getmaskingstatus
    myarch = settings["ARCH"]
  File "/usr/lib/python3.4/site-packages/portage/package/ebuild/config.py", line 2570, in __getitem__
    return self._getitem(key)
  File "/usr/lib/python3.4/site-packages/portage/package/ebuild/config.py", line 2623, in _getitem
    raise KeyError(mykey)
KeyError: 'ARCH'


Does anyone have any ideas how I can solve this issue? I know its Python based but not sure how to proceed.

My "emerge --info" output is as follows:

Code:

Portage 2.2.28 (python 3.4.3-final-0, pentoo, gcc-4.9.3, glibc-2.22-r4, 4.4.33-v7+ armv7l)
=================================================================
System uname: Linux-4.4.33-v7+-armv7l-with-gentoo-2.2
KiB Mem:      947732 total,    480204 free
KiB Swap:          0 total,         0 free
sh bash 4.3_p42-r1
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p42-r1::gentoo
dev-lang/perl:            5.22.2::gentoo
dev-lang/python:          2.7.10-r1::gentoo, 3.4.3-r1::gentoo
dev-util/cmake:           3.5.2-r1::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.19.1::gentoo
sys-apps/sandbox:         2.10-r1::gentoo
sys-devel/autoconf:       2.69::gentoo
sys-devel/automake:       1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.3::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.3::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22-r4::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

ACCEPT_LICENSE="* -@EULA"
CBUILD="armv7a-hardfloat-linux-gnueabi"
CFLAGS="-O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard"
CHOST="armv7a-hardfloat-linux-gnueabi"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS=""
DISTDIR="/usr/portage/distfiles"
FCFLAGS=""
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS=""
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="alsa cdr dvd kde qt4"
Unset:  ACCEPT_KEYWORDS, CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 2423

PostPosted: Tue Dec 06, 2016 11:46 am    Post subject: Re: Subversion/Pentoo KeyError 'ARCH' Issue Reply with quote

joe198645 wrote:
... with the aim of installing Layman so I could use a Pentoo overlay.

For only one additional repository (overlay) you don't need layman. Just drop following file into your /etc/portage/repos.conf directory:
Code:
[pentoo]
location = /var/portage/repos/pentoo
sync-type = git
sync-uri = https://github.com/gentoo-mirror/pentoo.git
auto-sync = yes
priority = -2000
Adjust location to where you want to store pentoo's data and priority as you like. Then sync it using
Code:
# emaint sync -r pentoo && eix-update
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 5300
Location: Room 101

PostPosted: Tue Dec 06, 2016 12:45 pm    Post subject: Re: Subversion/Pentoo KeyError 'ARCH' Issue Reply with quote

joe198645 wrote:
Code:
Portage 2.2.28 (python 3.4.3-final-0, pentoo, gcc-4.9.3, glibc-2.22-r4, 4.4.33-v7+ armv7l)
[...]
<= ACCEPT_KEYWORDS should be listed here.
ACCEPT_LICENSE="* -@EULA"

joe198645 ... the problem is the profile you have set, 'pentoo' isn't a path, it should read something like 'default/linux/x86/13.0' (but for arm or arm64). It is for that reason you don't have ACCEPT_KEYWORDS defined, and so 'ARCH'. I'm not sure what profiles the pentoo tree provides, or what arch(s) they keyword, and so you are probably best to stick with the one provided by the gentoo repo, pentoo can be used regardless (asuming packages are keyworded).

HTH & best ... khay
Back to top
View user's profile Send private message
joe198645
n00b
n00b


Joined: 06 Dec 2016
Posts: 3

PostPosted: Tue Dec 06, 2016 4:14 pm    Post subject: Re: Subversion/Pentoo KeyError 'ARCH' Issue Reply with quote

charles17 wrote:
joe198645 wrote:
... with the aim of installing Layman so I could use a Pentoo overlay.

For only one additional repository (overlay) you don't need layman. Just drop following file into your /etc/portage/repos.conf directory:
Code:
[pentoo]
location = /var/portage/repos/pentoo
sync-type = git
sync-uri = https://github.com/gentoo-mirror/pentoo.git
auto-sync = yes
priority = -2000
Adjust location to where you want to store pentoo's data and priority as you like. Then sync it using
Code:
# emaint sync -r pentoo && eix-update


Many thanks Charles17. Didn't realise this was possible! Seems to work so far. Thank you!
Back to top
View user's profile Send private message
joe198645
n00b
n00b


Joined: 06 Dec 2016
Posts: 3

PostPosted: Tue Dec 06, 2016 4:16 pm    Post subject: Re: Subversion/Pentoo KeyError 'ARCH' Issue Reply with quote

khayyam wrote:
joe198645 wrote:
Code:
Portage 2.2.28 (python 3.4.3-final-0, pentoo, gcc-4.9.3, glibc-2.22-r4, 4.4.33-v7+ armv7l)
[...]
<= ACCEPT_KEYWORDS should be listed here.
ACCEPT_LICENSE="* -@EULA"

joe198645 ... the problem is the profile you have set, 'pentoo' isn't a path, it should read something like 'default/linux/x86/13.0' (but for arm or arm64). It is for that reason you don't have ACCEPT_KEYWORDS defined, and so 'ARCH'. I'm not sure what profiles the pentoo tree provides, or what arch(s) they keyword, and so you are probably best to stick with the one provided by the gentoo repo, pentoo can be used regardless (asuming packages are keyworded).

HTH & best ... khay


Thanks for your reply khayyam! This made sense, and made me realise that I needed to set the profile back to default ARM before proceeding. Seems to work now. Thank you.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum