Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

emerge: KeyError (dev-perl/DateTime-0.2901)

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
37 posts
  • 1
  • 2
  • Next
Author
Message
Mad_Jester
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 85
Joined: Thu Jan 08, 2004 5:07 am

emerge: KeyError (dev-perl/DateTime-0.2901)

  • Quote

Post by Mad_Jester » Wed Jan 18, 2006 12:36 am

After doing an emerge sync, I am getting this error everytime I try to run emerge. Can someone tell me what is wrong here?

emerge -V


Performing Global Updates: /usr/portage/profiles/updates/1Q-2006
(Could take a couple of minutes if you have a lot of binary packages.)
.='update pass' *='binary update' @='/var/db move'
s='/var/db SLOT move' S='binary SLOT move' p='update /etc/portage/package.*'
........Traceback (most recent call last):
File "/usr/bin/emerge", line 10, in ?
import portage
File "/usr/lib/portage/pym/portage.py", line 7480, in ?
do_upgrade(mykey)
File "/usr/lib/portage/pym/portage.py", line 7372, in do_upgrade
db["/"]["vartree"].dbapi.move_ent(mysplit)
File "/usr/lib/portage/pym/portage.py", line 4683, in move_ent
origmatches=self.match(origcp,use_cache=0)
File "/usr/lib/portage/pym/portage.py", line 4829, in match
return match_from_list(mydep,self.cp_list(mykey,use_cache=use_cache))
File "/usr/lib/portage/pym/portage.py", line 4134, in match_from_list
raise KeyError, "Specific key requires an operator (%s) (try adding an '=')" % (mydep)
KeyError: "Specific key requires an operator (dev-perl/DateTime-0.2901) (try adding an '=')"

Edit: Changed title from '"emerge errors" and stuck temporarily. --Maedhros
Top
mattjgalloway
l33t
l33t
Posts: 761
Joined: Tue Mar 16, 2004 10:07 am
Location: Coventry, UK
Contact:
Contact mattjgalloway
Website

  • Quote

Post by mattjgalloway » Wed Jan 18, 2006 12:37 am

Yep I get this too.

Oh dear, something is fooked here! NOT GOOD!

Lol wow we must have literally updated our portage at the same time as I just found your post 1 minute after you posted it! I'm in the process of trying to sort it out. I think I may be onto something and I'll let you know.

By the way, I am AMD64.
AMD64 3200+, 1024MB RAM, Gentoo Linux
MacBook Core Duo, 1024MB RAM, Leopard
Top
m0rpheus13
n00b
n00b
Posts: 3
Joined: Wed Jan 18, 2006 12:41 am

  • Quote

Post by m0rpheus13 » Wed Jan 18, 2006 12:43 am

i just started getting the same errors... anyone know of a fix?
Top
micmac
l33t
l33t
Posts: 996
Joined: Fri Nov 28, 2003 8:38 pm

  • Quote

Post by micmac » Wed Jan 18, 2006 12:47 am

Haha, me too :) Can't do nothing:

Code: Select all

emerge sync


Performing Global Updates: /usr/portage/profiles/updates/1Q-2006
(Could take a couple of minutes if you have a lot of binary packages.)
  .='update pass'  *='binary update'  @='/var/db move'
  s='/var/db SLOT move' S='binary SLOT move' p='update /etc/portage/package.*'
........Traceback (most recent call last):
  File "/usr/bin/emerge", line 10, in ?
    import portage
  File "/usr/lib/portage/pym/portage.py", line 7480, in ?
    do_upgrade(mykey)
  File "/usr/lib/portage/pym/portage.py", line 7372, in do_upgrade
    db["/"]["vartree"].dbapi.move_ent(mysplit)
  File "/usr/lib/portage/pym/portage.py", line 4683, in move_ent
    origmatches=self.match(origcp,use_cache=0)
  File "/usr/lib/portage/pym/portage.py", line 4829, in match
    return match_from_list(mydep,self.cp_list(mykey,use_cache=use_cache))
  File "/usr/lib/portage/pym/portage.py", line 4134, in match_from_list
    raise KeyError, "Specific key requires an operator (%s) (try adding an '=')" % (mydep)
KeyError: "Specific key requires an operator (dev-perl/DateTime-0.2901) (try adding an '=')"
Poeple better not sync tonight until this gets fixed.
Last edited by micmac on Wed Jan 18, 2006 12:49 am, edited 1 time in total.
Top
mattjgalloway
l33t
l33t
Posts: 761
Joined: Tue Mar 16, 2004 10:07 am
Location: Coventry, UK
Contact:
Contact mattjgalloway
Website

  • Quote

Post by mattjgalloway » Wed Jan 18, 2006 12:48 am

Ok I have a kinda fix.

Do an emerge-webrsync and your portage will now work again as it reverts to one a few days ago. But it's definately NOT a complete fix as if you do an emerge sync again soon it'll mess up.

Gentoo really has made a mess up here as people will have serious problems if their servers 'emerge sync' every night.

Come on devs, this is serious, sort it please!
AMD64 3200+, 1024MB RAM, Gentoo Linux
MacBook Core Duo, 1024MB RAM, Leopard
Top
napgravy
n00b
n00b
User avatar
Posts: 5
Joined: Thu Jul 03, 2003 1:35 pm
Location: Calgary, AB

  • Quote

Post by napgravy » Wed Jan 18, 2006 12:54 am

Looks to be a problem in /usr/portage/profiles/updates/1Q-2006

I suspect the last line should read

Code: Select all

move =dev-perl/DateTime-0.2901 =dev-perl/DateTime-0.29.01
Instead of

Code: Select all

move dev-perl/DateTime-0.2901 dev-perl/DateTime-0.29.01
Making this change will allow portage to "work" - but until the mirrors get a proper 1Q-2006 file, you'll just be in the same boat after your next sync.

I could be way out to lunch here - I am not a portage guru.

nap
Top
Glorandar
n00b
n00b
Posts: 64
Joined: Sun Jun 15, 2003 7:21 pm
Location: Vancouver, BC, Canada

  • Quote

Post by Glorandar » Wed Jan 18, 2006 12:56 am

The file /usr/portage/profiles/updates/1Q-2006's last line (about moving perl) is badly formed.

I just deleted that last line, so that 1Q-2006 now contains:

Code: Select all

slotmove dev-util/gambas 0 1
move dev-libs/wefts dev-cpp/libwefts
move dev-libs/mxmlplus dev-cpp/libmxmlplus
slotmove =gnome-extra/libgtkhtml-2* 1 2
slotmove =gnome-extra/gtkhtml-1* 0 1
move gnome-extra/libgtkhtml gnome-extra/gtkhtml
move dev-util/screem app-editors/screem
Now my portage is back to normal.

I suspect there will be an update to that file soon... :-)
----- Glorandar
Top
tommoyer324
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 104
Joined: Mon Jun 06, 2005 1:42 am
Location: USA

  • Quote

Post by tommoyer324 » Wed Jan 18, 2006 1:00 am

I too had the same problem. The post above about adding the equal sign works as a temporary fix. At least until they get things sorted out.
Top
mattjgalloway
l33t
l33t
Posts: 761
Joined: Tue Mar 16, 2004 10:07 am
Location: Coventry, UK
Contact:
Contact mattjgalloway
Website

  • Quote

Post by mattjgalloway » Wed Jan 18, 2006 1:01 am

Seems like they are fixing it as we speak, wow I love Gentoo!

I'm emerge syncing to see if it works now.

Devs you rock.
AMD64 3200+, 1024MB RAM, Gentoo Linux
MacBook Core Duo, 1024MB RAM, Leopard
Top
Genone
Retired Dev
Retired Dev
User avatar
Posts: 9656
Joined: Fri Mar 14, 2003 6:02 pm
Location: beyond the rim

  • Quote

Post by Genone » Wed Jan 18, 2006 1:02 am

Fixed it in the tree, should hit rsync in the next hour, you'll have to remove /usr/portage/profiles/updates/1Q-2006 manually though before syncing.
Will kick the dev who did that hard :evil:
Last edited by Genone on Wed Jan 18, 2006 1:04 am, edited 1 time in total.
Top
jstubbs
Retired Dev
Retired Dev
User avatar
Posts: 126
Joined: Sat Jul 05, 2003 2:35 am
Location: Tokyo

  • Quote

Post by jstubbs » Wed Jan 18, 2006 1:02 am

In the file /usr/portage/profiles/updates/1Q-2006 remove the line:

move dev-perl/DateTime-0.2901 dev-perl/DateTime-0.29.01

Forwarding the bug to the person responsible now.
Top
NightMonkey
Guru
Guru
User avatar
Posts: 360
Joined: Fri Mar 21, 2003 10:07 am
Location: Philadelphia, PA

  • Quote

Post by NightMonkey » Wed Jan 18, 2006 1:04 am

Same problem. = sign change appears to work.
:D
Top
dufeu
l33t
l33t
User avatar
Posts: 927
Joined: Fri Aug 30, 2002 2:59 pm
Location: US-FL-EST

  • Quote

Post by dufeu » Wed Jan 18, 2006 1:08 am

Genone wrote:Fixed it in the tree, should hit rsync in the next hour, you'll have to remove /usr/portage/profiles/updates/1Q-2006 manually though before syncing.
Will kick the dev who did that hard :evil:
:-D

No need to kick the dev hard. Finding the fix in the Forums within 60 seconds of encountering it makes up for alot. Just kick the responsible dev a little bit. ;-D
People whom think M$ is mediocre, don't know the half of it.
Top
derk
Guru
Guru
Posts: 347
Joined: Mon Mar 10, 2003 10:10 pm
Location: St Thomas Ontario

  • Quote

Post by derk » Wed Jan 18, 2006 1:08 am

yep the "emerge-webrsync" does the trick .

how many people caught by this are running portage-2.1_pre3-r1 does it also effect earlier version.

I filed bug #119352 for this problem. ... but by the time I returned here fixes and work arounds abound ...
Last edited by derk on Wed Jan 18, 2006 1:11 am, edited 1 time in total.
Top
mattjgalloway
l33t
l33t
Posts: 761
Joined: Tue Mar 16, 2004 10:07 am
Location: Coventry, UK
Contact:
Contact mattjgalloway
Website

  • Quote

Post by mattjgalloway » Wed Jan 18, 2006 1:09 am

Yes I must say this is a complete testament to the fact that open source software works. This would have taken a closed source OS like Windows about a week to fix. You Gentoo devs updated the mirrors within a few minutes of finding the bug. I'm impressed.
AMD64 3200+, 1024MB RAM, Gentoo Linux
MacBook Core Duo, 1024MB RAM, Leopard
Top
micmac
l33t
l33t
Posts: 996
Joined: Fri Nov 28, 2003 8:38 pm

  • Quote

Post by micmac » Wed Jan 18, 2006 1:10 am

jstubbs wrote:In the file /usr/portage/profiles/updates/1Q-2006 remove the line:

move dev-perl/DateTime-0.2901 dev-perl/DateTime-0.29.01

Forwarding the bug to the person responsible now.
Be kind :) It's just a typo. portage should be able to handle that. It's not the guys fault that it apparently can't.

Cheers ;)

mic
Top
fraterm
n00b
n00b
User avatar
Posts: 54
Joined: Tue Apr 23, 2002 2:56 pm
Location: Pflugerville, TX
Contact:
Contact fraterm
Website

  • Quote

Post by fraterm » Wed Jan 18, 2006 1:14 am

dufeu wrote:
Genone wrote:Fixed it in the tree, should hit rsync in the next hour, you'll have to remove /usr/portage/profiles/updates/1Q-2006 manually though before syncing.
Will kick the dev who did that hard :evil:
:-D

No need to kick the dev hard. Finding the fix in the Forums within 60 seconds of encountering it makes up for alot. Just kick the responsible dev a little bit. ;-D
I agree, only a small tap is necessary.
What, me hurry?

Sitey sites:
http://fraterm.deviantart.com
http://www.approachzero.net
Top
rsa4046
l33t
l33t
User avatar
Posts: 660
Joined: Mon Feb 07, 2005 12:13 am
Location: The Big H, a bit SSW

  • Quote

Post by rsa4046 » Wed Jan 18, 2006 1:22 am

mattjgalloway wrote:Yes I must say this is a complete testament to the fact that open source software works. This would have taken a closed source OS like Windows about a week to fix.
Aint that the truth --- make that 3-4 patches from WU within as many weeks just to finally get it right, with 20 reboots each time.
mattjgalloway wrote: You Gentoo devs updated the mirrors within a few minutes of finding the bug. I'm impressed.
Hats off to the devs. :D
Top
mattjgalloway
l33t
l33t
Posts: 761
Joined: Tue Mar 16, 2004 10:07 am
Location: Coventry, UK
Contact:
Contact mattjgalloway
Website

  • Quote

Post by mattjgalloway » Wed Jan 18, 2006 1:26 am

Yep if I could, I'd buy you all a pint.

Give yourselves a round of applause guys!
AMD64 3200+, 1024MB RAM, Gentoo Linux
MacBook Core Duo, 1024MB RAM, Leopard
Top
Genone
Retired Dev
Retired Dev
User avatar
Posts: 9656
Joined: Fri Mar 14, 2003 6:02 pm
Location: beyond the rim

  • Quote

Post by Genone » Wed Jan 18, 2006 1:31 am

FYI: It is not a typo, adding a = will make the error message go away, however that entry would still be broken and not work.
The dev simply assumed that something works and didn't do any research while what he intended defintely doesn't work.
Last edited by Genone on Wed Jan 18, 2006 1:41 am, edited 1 time in total.
Top
agent_jdh
Veteran
Veteran
Posts: 1783
Joined: Thu Aug 08, 2002 8:23 am
Location: Scotland

  • Quote

Post by agent_jdh » Wed Jan 18, 2006 1:41 am

Genone wrote:FYI: It is not a typo, adding a = will make the error message go away, however that entry would still broken and not work.
The dev simply assumed that something works and didn't do any research while what he intended defintely doesn't work.
So deleting the line is the correct fix? It seems to have worked here.
Jingle Jangle Jewellery
Top
Genone
Retired Dev
Retired Dev
User avatar
Posts: 9656
Joined: Fri Mar 14, 2003 6:02 pm
Location: beyond the rim

  • Quote

Post by Genone » Wed Jan 18, 2006 1:42 am

agent_jdh wrote:
Genone wrote:FYI: It is not a typo, adding a = will make the error message go away, however that entry would still broken and not work.
The dev simply assumed that something works and didn't do any research while what he intended defintely doesn't work.
So deleting the line is the correct fix? It seems to have worked here.
Yes. Adding a = in front doesn't break anything, that entry will simply not work as intended (which doesn't have any implications in this case)
Top
dufeu
l33t
l33t
User avatar
Posts: 927
Joined: Fri Aug 30, 2002 2:59 pm
Location: US-FL-EST

  • Quote

Post by dufeu » Wed Jan 18, 2006 1:43 am

Genone wrote:The dev simply assumed t ...
It did have that kind of feel to it. As a programmer in a dead legacy language, I understand the pitfalls of assumptions. You know: been there, done that, have the T-shirt/scars to prove it. :wink:

It took me one day to modify a legacy label printing program to add new functionality to it. It's taken me 8 working days to test it so far. I expect to be done testing tommorrow. Then I have to write some one off reports to show the effected products before and after.

One day of programming labor - Twelve days of testing and impact research. It's not always easy to test one's own work. But the company I work for would rather pay to get it right the first time than to have everyone disrupted. As a result, I'm pretty tolerant of other people's faux pax. Just so long as they don't let it happen again!

:P :P :P :P :P :P

Edit: BTW - thank you very, very much for the quick fix. 'Tis sincerely appreciated. :D
Last edited by dufeu on Wed Jan 18, 2006 1:47 am, edited 1 time in total.
People whom think M$ is mediocre, don't know the half of it.
Top
LostSon
Guru
Guru
User avatar
Posts: 514
Joined: Fri Nov 21, 2003 1:13 am
Location: Wisconsin
Contact:
Contact LostSon
Website

  • Quote

Post by LostSon » Wed Jan 18, 2006 1:46 am

whew came back today and thought something was seriously messed up, thanks for the quick fix!!
Top
BillyBob-SA1
n00b
n00b
User avatar
Posts: 53
Joined: Wed Nov 17, 2004 4:45 pm

  • Quote

Post by BillyBob-SA1 » Wed Jan 18, 2006 1:46 am

Well I am impressed so I will add another #1 disto vote here!
Top
Post Reply

37 posts
  • 1
  • 2
  • Next

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic