Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 1274 - Missing HOSTNAME environment variable causes python errors
Summary: Missing HOSTNAME environment variable causes python errors
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-03-20 22:02 UTC by Robert Blyler
Modified: 2003-02-04 19:42 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 Robert Blyler 2002-03-20 22:02:25 UTC
Hey folks, I don't know if this is really a bug per se. I've noticed a few of my
python programs having problems because there was no HOSTNAME environment
variable set. This causes the python os.environ['HOSTNAME'] to fail with no such
key. Easily fixed by me but I'm wondering if it might be causing headaches for
someone else.

Regards,

Trilliji
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2002-03-21 17:08:10 UTC
What should it be set to ? the whole hostname (foo.bar.net) or just the
prefix (foo) ?
Comment 2 Martin Schlemmer (RETIRED) gentoo-dev 2002-03-24 03:14:53 UTC
Fixed on CVS.