Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 21165 - Emerge as a cron job
Summary: Emerge as a cron job
Status: RESOLVED DUPLICATE of bug 18780
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-17 12:50 UTC by Rob Kruus
Modified: 2011-10-30 22:19 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 Rob Kruus 2003-05-17 12:50:59 UTC
I have run an update of xfce-cvs as a cron job and I am getting the following error (repeated for each module in the ebuild) (portage-2.0.48_pre6):

Traceback (most recent call last):
  File "/usr/bin/emerge", line 276, in ?
    emergelog("Started emerge on: "+time.strftime("%b %d, %Y %H:%M:%S", time.localtime()))
  File "/usr/bin/emerge", line 186, in emergelog
    xtermTitle(mystr)
  File "/usr/lib/python2.2/site-packages/output.py", line 34, in xtermTitle
    myt=os.environ["TERM"]
  File "/usr/lib/python2.2/UserDict.py", line 14, in __getitem__
    def __getitem__(self, key): return self.data[key]
KeyError: TERM
Error in sys.exitfunc:
Traceback (most recent call last):
  File "/usr/lib/python2.2/atexit.py", line 20, in _run_exitfuncs
    apply(func, targs, kargs)
  File "/usr/bin/emerge", line 201, in emergeexit
    emergelog(" *** terminating.")
  File "/usr/bin/emerge", line 186, in emergelog
    xtermTitle(mystr)
  File "/usr/lib/python2.2/site-packages/output.py", line 34, in xtermTitle
    myt=os.environ["TERM"]
  File "/usr/lib/python2.2/UserDict.py", line 14, in __getitem__
    def __getitem__(self, key): return self.data[key]
KeyError: TERM
Traceback (most recent call last):
  File "/usr/bin/emerge", line 276, in ?
    emergelog("Started emerge on: "+time.strftime("%b %d, %Y %H:%M:%S", time.localtime()))
  File "/usr/bin/emerge", line 186, in emergelog
    xtermTitle(mystr)
  File "/usr/lib/python2.2/site-packages/output.py", line 34, in xtermTitle
    myt=os.environ["TERM"]
  File "/usr/lib/python2.2/UserDict.py", line 14, in __getitem__
    def __getitem__(self, key): return self.data[key]
KeyError: TERM
Error in sys.exitfunc:
Traceback (most recent call last):
  File "/usr/lib/python2.2/atexit.py", line 20, in _run_exitfuncs
    apply(func, targs, kargs)
  File "/usr/bin/emerge", line 201, in emergeexit
    emergelog(" *** terminating.")
  File "/usr/bin/emerge", line 186, in emergelog
    xtermTitle(mystr)
  File "/usr/lib/python2.2/site-packages/output.py", line 34, in xtermTitle
    myt=os.environ["TERM"]
  File "/usr/lib/python2.2/UserDict.py", line 14, in __getitem__
    def __getitem__(self, key): return self.data[key]
KeyError: TERM

My guess is because as it is running a cron job, there is no open terminal, so it pukes when trying to set the terminal title....
Comment 1 Rob Kruus 2003-05-17 12:54:04 UTC
Oops, just found  #18780, and kind of had the same thoughts (though I only run this once a week).
Comment 2 Martin Holzer (RETIRED) gentoo-dev 2003-05-18 13:28:12 UTC

*** This bug has been marked as a duplicate of 18780 ***