Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
AssertionError: setcpv recursion detected ?????
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
stewes
n00b
n00b


Joined: 27 Sep 2016
Posts: 4

PostPosted: Tue Sep 27, 2016 12:38 pm    Post subject: AssertionError: setcpv recursion detected ????? Reply with quote

hello ,

i'm totaly at loss. After reinstalling my gentoo system portage output this errors. So python programming isn't my thing aka portage system 8O


Code:
These are the packages that would be merged, in order:

Calculating dependencies  . . .... done!
Traceback (most recent call last):
  File "/usr/lib/python-exec/python2.7/emerge", line 50, in <module>
    retval = emerge_main()
  File "/usr/lib64/python2.7/site-packages/_emerge/main.py", line 1224, in emerge_main
    return run_action(emerge_config)
  File "/usr/lib64/python2.7/site-packages/_emerge/actions.py", line 3261, in run_action
    retval = action_build(emerge_config, spinner=spinner)
  File "/usr/lib64/python2.7/site-packages/_emerge/actions.py", line 338, in action_build
    settings, trees, myopts, myparams, myaction, myfiles, spinner)
  File "/usr/lib64/python2.7/site-packages/_emerge/depgraph.py", line 9247, in backtrack_depgraph
    myaction, myfiles, spinner)
  File "/usr/lib64/python2.7/site-packages/_emerge/depgraph.py", line 9284, in _backtrack_depgraph
    success, favorites = mydepgraph.select_files(myfiles)
  File "/usr/lib64/python2.7/site-packages/_emerge/depgraph.py", line 3606, in select_files
    return self._select_files(args)
  File "/usr/lib64/python2.7/site-packages/_emerge/depgraph.py", line 3949, in _select_files
    return self._resolve(myfavorites)
  File "/usr/lib64/python2.7/site-packages/_emerge/depgraph.py", line 4100, in _resolve
    if not self._create_graph():
  File "/usr/lib64/python2.7/site-packages/_emerge/depgraph.py", line 2401, in _create_graph
    allow_unsatisfied=allow_unsatisfied):
  File "/usr/lib64/python2.7/site-packages/_emerge/depgraph.py", line 3112, in _add_pkg_deps
    allow_unsatisfied):
  File "/usr/lib64/python2.7/site-packages/_emerge/depgraph.py", line 3128, in _add_pkg_dep_string
    allow_unsatisfied)
  File "/usr/lib64/python2.7/site-packages/_emerge/depgraph.py", line 3208, in _wrapped_add_pkg_dep_string
    pkg, dep_priority, root_config, selected_atoms[pkg]):
  File "/usr/lib64/python2.7/site-packages/_emerge/depgraph.py", line 3407, in _minimize_children
    root_config.root, atom, parent=parent)
  File "/usr/lib64/python2.7/site-packages/_emerge/depgraph.py", line 5364, in _select_pkg_highest_available
    ret = self._select_pkg_highest_available_imp(root, atom, onlydeps=onlydeps, parent=parent)
  File "/usr/lib64/python2.7/site-packages/_emerge/depgraph.py", line 5576, in _select_pkg_highest_available_imp
    root, atom, onlydeps=onlydeps, parent=parent)
  File "/usr/lib64/python2.7/site-packages/_emerge/depgraph.py", line 5872, in _wrapped_select_pkg_highest_available_imp
    onlydeps=onlydeps):
  File "/usr/lib64/python2.7/site-packages/_emerge/depgraph.py", line 5282, in _iter_match_pkgs_atom
    installed=installed, onlydeps=onlydeps, myrepo=repo)
  File "/usr/lib64/python2.7/site-packages/_emerge/depgraph.py", line 6580, in _pkg
    if not self._pkg_visibility_check(pkg) and \
  File "/usr/lib64/python2.7/site-packages/_emerge/depgraph.py", line 5620, in _pkg_visibility_check
    if pkg.visible:
  File "/usr/lib64/python2.7/site-packages/_emerge/Package.py", line 177, in visible
    self._visible = self._eval_visiblity(self.masks)
  File "/usr/lib64/python2.7/site-packages/_emerge/Package.py", line 171, in masks
    self._masks = self._eval_masks()
  File "/usr/lib64/python2.7/site-packages/_emerge/Package.py", line 403, in _eval_masks
    self.cpv, self._metadata)
  File "/usr/lib64/python2.7/site-packages/portage/package/ebuild/config.py", line 2041, in _getMissingLicenses
    cpv, metadata["USE"], metadata["LICENSE"], metadata["SLOT"], metadata.get('repository'))
  File "/usr/lib64/python2.7/site-packages/_emerge/Package.py", line 872, in __getitem__
    v = self._pkg._init_use()
  File "/usr/lib64/python2.7/site-packages/_emerge/Package.py", line 664, in _init_use
    use_str = self._get_pkgsettings()["PORTAGE_USE"]
  File "/usr/lib64/python2.7/site-packages/_emerge/Package.py", line 639, in _get_pkgsettings
    pkgsettings.setcpv(self)
  File "/usr/lib64/python2.7/site-packages/portage/package/ebuild/config.py", line 1384, in wrapper
    return f(self, *args, **kwargs)
  File "/usr/lib64/python2.7/site-packages/portage/package/ebuild/config.py", line 1559, in setcpv
    self.puse = self._use_manager.getPUSE(cpv_slot)
  File "/usr/lib64/python2.7/site-packages/portage/package/ebuild/_config/UseManager.py", line 555, in getPUSE
    puse_matches = ordered_by_atom_specificity(cpdict, pkg)
  File "/usr/lib64/python2.7/site-packages/portage/package/ebuild/_config/helper.py", line 34, in ordered_by_atom_specificity
    bestmatch = best_match_to_list(pkg, keys)
  File "/usr/lib64/python2.7/site-packages/portage/dep/__init__.py", line 2058, in best_match_to_list
    for x in match_to_list(mypkg, mylist):
  File "/usr/lib64/python2.7/site-packages/portage/dep/__init__.py", line 2026, in match_to_list
    if x not in matches and match_from_list(x, pkgs):
  File "/usr/lib64/python2.7/site-packages/portage/dep/__init__.py", line 2341, in match_from_list
    use = getattr(x, "use", None)
  File "/usr/lib64/python2.7/site-packages/_emerge/Package.py", line 633, in use
    self._init_use()
  File "/usr/lib64/python2.7/site-packages/_emerge/Package.py", line 664, in _init_use
    use_str = self._get_pkgsettings()["PORTAGE_USE"]
  File "/usr/lib64/python2.7/site-packages/_emerge/Package.py", line 639, in _get_pkgsettings
    pkgsettings.setcpv(self)
  File "/usr/lib64/python2.7/site-packages/portage/package/ebuild/config.py", line 1381, in wrapper
    raise AssertionError('setcpv recursion detected')
AssertionError: setcpv recursion detected


here my make.conf
Code:
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /etc/make.conf.example for a more detailed example.
CFLAGS="-m64 -mfpmath=sse -O2  -march=native -funroll-loops -pipe"
CXXFLAGS="${CFLAGS}"
CHOST="x86_64-pc-linux-gnu"
MAKEOPTS="-j3"
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo "
USE="legacy-systray pulse llvm-shared-lib glamor qt4 qt3support libav xorg libkms acl kms gbm webkit xmp mysql udisks consolekit gtk gtk3 hwdb pkcs11 uim canna gstreamer custom-optimization sqlite cgi cli apache2 fpm vidix cuda libmpg2 bluray script gd _with_ cdda run-as-root cddb dts dvb musepack wma-fixed tk mng gcj jbootstrap aac aacplus faac ssse3 speex policykit cairo gudev python device-mapper consolekit ogg vorbis png truetype declarative apng minizip extras userlocales sql svg opengl unicode dbus -gnome -nano kde dvd alsa cdr X mmx 3dnow a52 acc acpi aim alsa canna cups crypt encode win32codecs firebird firefox flac fontconfig gimp ipod jpeg lame matroska mp3 mpeg xvid rdesktop smartcard sse sse2 threads unicode x264 xft"
VIDEO_CARDS="nvidia"
INPUT_DEVICES="evdev keyboard mouse"
ALSA_CARDS="intel8x0"
PORTDIR_OVERLAY="/usr/local/crossdev"
LINGUAS="de en ja"
ACCEPT_KEYWORDS="~arm x86 ~x86"
ACCEPT_LICENSE="*"
PORTDIR="/usr/portage"
LC_MESSAGES=C
USE_PYTHON='3.5'
PORTDIR_OVERLAY=/usr/local
PYTHON_TARGETS="python3_5 python2_7"
PYTHON_SINGLE_TARGET="python3_5"
EMERGE_DEFAULT_OPTS="--changed-deps --changed-use --backtrack=30 --autounmask=y --autounmask-write=y"
L10N="de"


so how to solve this errors.

thx sebastian
Back to top
View user's profile Send private message
Perfect Gentleman
l33t
l33t


Joined: 18 May 2014
Posts: 947

PostPosted: Tue Sep 27, 2016 12:43 pm    Post subject: Reply with quote

Code:
rm -r /usr/portage
that is what worked for me
Back to top
View user's profile Send private message
dantrell
l33t
l33t


Joined: 01 Jun 2007
Posts: 720
Location: Earth

PostPosted: Tue Sep 27, 2016 1:06 pm    Post subject: Reply with quote

Perfect Gentleman wrote:
Code:
rm -r /usr/portage
that is what worked for me

For the record, if you are ever in a position where deleting /usr/portage seems like a solution keep in mind that it will not only delete your portage tree but also your distfiles and your packages (if you enabled --buildpkg) since by default the latter two reside in that directory.
_________________
Dantrell B.
Back to top
View user's profile Send private message
stewes
n00b
n00b


Joined: 27 Sep 2016
Posts: 4

PostPosted: Tue Sep 27, 2016 1:33 pm    Post subject: Reply with quote

thx for the answers,

so i renamed the protage directory and performed an

emerge --sync && emerge -upv --deep --with-bdeps=y @world

but nothing changed. May it be some installed overlay error ? But at first the overlays worked propper.
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10459
Location: Somewhere over Atlanta, Georgia

PostPosted: Tue Sep 27, 2016 5:06 pm    Post subject: Reply with quote

Can you emerge anything successfully? For instance, does
Code:
emerge -1v portage
succeed? If not, please post the output.

Also, code tags are appreciated for increased readability. I've edited your original post to include them.

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
stewes
n00b
n00b


Joined: 27 Sep 2016
Posts: 4

PostPosted: Tue Sep 27, 2016 6:12 pm    Post subject: Reply with quote

hi john,

i think i can emerge files without depencies. So as you suggestet i tried:
Code:

emerge -1v --ask virtual/jdk

that's the outputt

http://pastebin.com/18vDyQtc


after that i used a package without depencies

Code:

emerge -1v dev-libs/gecode


and the output

http://pastebin.com/iivTCu5j


might it help if i clean out /etc/portage ? I realy do not like this idea, because it was so much effort to get it right.

sebastian


Last edited by stewes on Tue Sep 27, 2016 6:31 pm; edited 1 time in total
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10459
Location: Somewhere over Atlanta, Georgia

PostPosted: Tue Sep 27, 2016 6:15 pm    Post subject: Reply with quote

You'll have to use a pastebin for logs. The Gentoo Forums have truncated your log.

Also, can you try the emerge of portage I recommended and let me know what happened, please?

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
Siarhei
n00b
n00b


Joined: 10 Jan 2016
Posts: 38
Location: Minsk

PostPosted: Wed Sep 28, 2016 4:50 pm    Post subject: I have the same problem Reply with quote

Hello everyone! I have the same problem. I can't install programs or update my system:
https://paste.pound-python.org/show/syyXWM2pU7BLJbCteaTC/
Recompile only portage:
Code:

emerge -av1 sys-apps/portage

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ~] sys-apps/portage-2.3.1::gentoo  USE="(ipc) xattr -build -doc -epydoc (-selinux)" LINGUAS="ru" PYTHON_TARGETS="python2_7 python3_4 -pypy (-python3_3) -python3_5" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB

Would you like to merge these packages? [Yes/No]

My free space:
Code:

Файловая система 1K-блоков Использовано  Доступно Использовано% Cмонтировано в
udev                 10240            4     10236            1% /dev
/dev/sda7         20658884     18684480   1974404           91% /
tmpfs              1632800         3144   1629656            1% /run
shm                8163992       132096   8031896            2% /dev/shm
cgroup_root          10240            0     10240            0% /sys/fs/cgroup
cachedir              4096            4      4092            1% /lib64/splash/cache
/dev/sda1            62193        10439     48543           18% /boot
/dev/sda8        157360096    141330016  16030080           90% /home
/dev/sda2         55775224     17232428  38542796           31% /home/Windows
/dev/sda5         74348788     57879520  16469268           78% /home/Media
/dev/sdb1         58054884        53064  55029764            1% /home/Music
/dev/sdb3        731027952    681939876  11930908           99% /home/MEDIA
/dev/sdb2        253131772    187107820  66023952           74% /home/Game
/dev/sdb4        729842232    555649208 137096064           81% /home/MEDIA_2
/dev/sdb5        154248196     94875416  51514348           65% /home/MEDIA_3
none               8163992            8   8163984            1% /run/user/1000


Help me please :( . I don't know what happened with my system. Sorry for my english.
I would be grateful for the help.
Back to top
View user's profile Send private message
Siarhei
n00b
n00b


Joined: 10 Jan 2016
Posts: 38
Location: Minsk

PostPosted: Wed Sep 28, 2016 6:01 pm    Post subject: Re: I have the same problem Reply with quote

Siarhei wrote:
Hello everyone! I have the same problem. I can't install programs or update my system:
https://paste.pound-python.org/show/syyXWM2pU7BLJbCteaTC/
Recompile only portage:
Code:

emerge -av1 sys-apps/portage

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ~] sys-apps/portage-2.3.1::gentoo  USE="(ipc) xattr -build -doc -epydoc (-selinux)" LINGUAS="ru" PYTHON_TARGETS="python2_7 python3_4 -pypy (-python3_3) -python3_5" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB

Would you like to merge these packages? [Yes/No]

My free space:
Code:

Файловая система 1K-блоков Использовано  Доступно Использовано% Cмонтировано в
udev                 10240            4     10236            1% /dev
/dev/sda7         20658884     18684480   1974404           91% /
tmpfs              1632800         3144   1629656            1% /run
shm                8163992       132096   8031896            2% /dev/shm
cgroup_root          10240            0     10240            0% /sys/fs/cgroup
cachedir              4096            4      4092            1% /lib64/splash/cache
/dev/sda1            62193        10439     48543           18% /boot
/dev/sda8        157360096    141330016  16030080           90% /home
/dev/sda2         55775224     17232428  38542796           31% /home/Windows
/dev/sda5         74348788     57879520  16469268           78% /home/Media
/dev/sdb1         58054884        53064  55029764            1% /home/Music
/dev/sdb3        731027952    681939876  11930908           99% /home/MEDIA
/dev/sdb2        253131772    187107820  66023952           74% /home/Game
/dev/sdb4        729842232    555649208 137096064           81% /home/MEDIA_2
/dev/sdb5        154248196     94875416  51514348           65% /home/MEDIA_3
none               8163992            8   8163984            1% /run/user/1000


Help me please :( . I don't know what happened with my system. Sorry for my english.
I would be grateful for the help.


All they helped with the solution to my problem. Need portage 2.3.1
Back to top
View user's profile Send private message
stewes
n00b
n00b


Joined: 27 Sep 2016
Posts: 4

PostPosted: Thu Sep 29, 2016 8:48 am    Post subject: Reply with quote

thx everyone for your help and sugestions :P

unfavourable i had to cleanout my /etc/portage directory. After restoring overlays and building a new package.use und it content portage works. System updating with portage works fine, but why i don't know. So some non portage relatet bug are present .. that's live
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