Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 185479 - portage file not found exception / can not write to /etc
Summary: portage file not found exception / can not write to /etc
Status: RESOLVED CANTFIX
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: AMD64 Linux
: High critical (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-15 23:53 UTC by Sumit Khanna
Modified: 2007-07-16 05:47 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sumit Khanna 2007-07-15 23:53:49 UTC
when I simply run "emerge" I get the following:

Traceback (most recent call last):
  File "/usr/bin/emerge", line 27, in ?
    import portage
  File "/usr/lib64/portage/pym/portage.py", line 8008
    except portageexception.FileNotFound:
                  ^
SyntaxError: invalid syntax
Exiting: Need write access to etc

I can't even do an emerge --info. According to epm -q, I am running portage-2.1.3_rc8


Reproducible: Always

Steps to Reproduce:
1.run emerge
2.
3.

Actual Results:  
Traceback (most recent call last):
  File "/usr/bin/emerge", line 27, in ?
    import portage
  File "/usr/lib64/portage/pym/portage.py", line 8008
    except portageexception.FileNotFound:
                  ^
SyntaxError: invalid syntax

Expected Results:  
emerge program executes
Comment 1 Kevin Lacquement 2007-07-16 00:51:35 UTC
Try the steps at http://www.gentoo.org/proj/en/portage/doc/manually-fixing-portage.xml

They should get you back up and running.
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2007-07-16 05:47:43 UTC
It should be portage_exception.FileNotFound, not the weird  thing you have there. Edit the fine in some editor and check your RAM/filesystem for errors.