Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Emerge error
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
mruano
n00b
n00b


Joined: 25 Aug 2003
Posts: 10

PostPosted: Thu Sep 11, 2003 9:45 am    Post subject: Emerge error Reply with quote

I get this error in every emerge action:

Code:

Traceback (most recent call last):
  File "/usr/bin/emerge", line 1862, in ?
    print "\n!!! Regular expression error in \"%s\": %s" % ( mysearch, comment )
  File "/usr/bin/emerge", line 1138, in merge
    print red("***")+" Please update portage to the above version before proceeding."
  File "/usr/lib/python2.2/site-packages/portage.py", line 1492, in doebuild
    mymfiles=listdir(pbasedir,recursive=1,filesonly=1,ignorecvs=1,EmptyOnError=1)
  File "/usr/lib/python2.2/site-packages/portage.py", line 1600, in merge
    if mydo=="depend":
  File "/usr/lib/python2.2/site-packages/portage.py", line 4172, in merge
    for x in string.split(settings["CONFIG_PROTECT_MASK"]):
  File "/usr/lib/python2.2/site-packages/portage.py", line 3940, in treewalk
    mylist=string.split(mylist)
  File "/usr/lib/python2.2/site-packages/portage.py", line 361, in env_update
    self.okeys.remove(mykey)
  File "/usr/lib/python2.2/site-packages/portage.py", line 605, in getconfig
    myline=string.split(x)
  File "/usr/lib/python2.2/shlex.py", line 74, in get_token
    raw = self.read_token()
  File "/usr/lib/python2.2/shlex.py", line 144, in read_token
    raise ValueError, "No closing quotation"
ValueError: No closing quotation


I have seen in the Forum similar errors, and have tried to aply those solutions to mine, but it didn't work.
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Sun Sep 14, 2003 8:28 am    Post subject: Reply with quote

Posting what the other solutions were might be helpful. First thing I'd suggest is portage/sys-apps/portage/files/README.RESCUE
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
sdk
n00b
n00b


Joined: 26 Mar 2003
Posts: 58
Location: Russia, Rostov-on-Don

PostPosted: Thu Oct 09, 2003 9:01 pm    Post subject: Reply with quote

I have that porblem too. Just tried to follow README.RESQUE. No luck. Problem still remains. Bug in portage?
_________________
Sorry for bad English, my $native_language = $perl
Back to top
View user's profile Send private message
Genone
Retired Dev
Retired Dev


Joined: 14 Mar 2003
Posts: 9527
Location: beyond the rim

PostPosted: Thu Oct 09, 2003 11:46 pm    Post subject: Reply with quote

Likely a problem with file in /etc/env.d/ or /etc/profile.env, try
Code:
env-update
source /etc/profile
Back to top
View user's profile Send private message
sdk
n00b
n00b


Joined: 26 Mar 2003
Posts: 58
Location: Russia, Rostov-on-Don

PostPosted: Fri Oct 10, 2003 4:16 pm    Post subject: Reply with quote

env-update immediatly gives me:

Code:

Traceback (most recent call last):
  File "/usr/sbin/env-update", line 10, in ?
    portage.env_update()
  File "/usr/lib/python2.2/site-packages/portage.py", line 445, in env_update
    myconfig=getconfig(root+"etc/env.d/"+x)
  File "/usr/lib/python2.2/site-packages/portage.py", line 693, in getconfig
    val=lex.get_token()
  File "/usr/lib/python2.2/shlex.py", line 74, in get_token
    raw = self.read_token()
  File "/usr/lib/python2.2/shlex.py", line 144, in read_token
    raise ValueError, "No closing quotation"
ValueError: No closing quotation


So what can I do now? I think this isolates the problem. Earlier I thought that emerge is broken somehow, but now it seems that trouble comes from env-update.

Any clues?

TIA.
Dmitry.
_________________
Sorry for bad English, my $native_language = $perl
Back to top
View user's profile Send private message
sdk
n00b
n00b


Joined: 26 Mar 2003
Posts: 58
Location: Russia, Rostov-on-Don

PostPosted: Fri Oct 10, 2003 4:24 pm    Post subject: Reply with quote

Uppss. I was wrong.
That's not only env-update problem, because emerging any package (portage for example) gives the folowing error:
Code:

Traceback (most recent call last):
  File "/usr/bin/emerge", line 2073, in ?
    mydepgraph.merge(mydepgraph.altlist())
  File "/usr/bin/emerge", line 1288, in merge
    retval=portage.doebuild(y,"merge",myroot,edebug)
  File "/usr/lib/python2.2/site-packages/portage.py", line 1793, in doebuild
    return merge(settings["CATEGORY"],settings["PF"],settings["D"],settings["BUILDDIR"]+"/build-info",myroot,myebuild=settings["EBUILD"])
  File "/usr/lib/python2.2/site-packages/portage.py", line 1915, in merge
    return mylink.merge(pkgloc,infloc,myroot,myebuild)
  File "/usr/lib/python2.2/site-packages/portage.py", line 4775, in merge
    return self.treewalk(mergeroot,myroot,inforoot,myebuild)
  File "/usr/lib/python2.2/site-packages/portage.py", line 4502, in treewalk
    env_update(makelinks=0)
  File "/usr/lib/python2.2/site-packages/portage.py", line 445, in env_update
    myconfig=getconfig(root+"etc/env.d/"+x)
  File "/usr/lib/python2.2/site-packages/portage.py", line 693, in getconfig
    val=lex.get_token()
  File "/usr/lib/python2.2/shlex.py", line 74, in get_token
    raw = self.read_token()
  File "/usr/lib/python2.2/shlex.py", line 144, in read_token
    raise ValueError, "No closing quotation"
ValueError: No closing quotation


So it seems that error is in shlex python module. Anyone had it fixed?
_________________
Sorry for bad English, my $native_language = $perl
Back to top
View user's profile Send private message
Genone
Retired Dev
Retired Dev


Joined: 14 Mar 2003
Posts: 9527
Location: beyond the rim

PostPosted: Fri Oct 10, 2003 6:53 pm    Post subject: Reply with quote

As I said it's probably a syntax error in one of your config files, so the parser that reads this files fails. There is not much we can do about this.
Back to top
View user's profile Send private message
sdk
n00b
n00b


Joined: 26 Mar 2003
Posts: 58
Location: Russia, Rostov-on-Don

PostPosted: Sat Oct 11, 2003 11:34 am    Post subject: Reply with quote

And is there a way to find this error?
May be there is a particular place to look for an error?
Or (God help me) I should examine all files in /etc to find it?
_________________
Sorry for bad English, my $native_language = $perl
Back to top
View user's profile Send private message
sdk
n00b
n00b


Joined: 26 Mar 2003
Posts: 58
Location: Russia, Rostov-on-Don

PostPosted: Sat Oct 11, 2003 11:43 am    Post subject: Reply with quote

I found it!

Thanks for all your help.
I hacked portage.py so it printed me a file in which an error was found (simply by adding print x after line 445).
I had a string
Code:

LANG="ru_RU.KOI8-R

in my 00basic file. It missed double quote at the end :).

Thanks again for pointers!
_________________
Sorry for bad English, my $native_language = $perl
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