gwibber/microblog/util/log.py fails if ~/.cache isn't already present
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Gwibber |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
With a brand new user on a Fedora 12 system, gwibber fails to start:
Traceback (most recent call last):
File "/usr/bin/gwibber", line 47, in <module>
from gwibber.
File "/usr/lib/
line 3, in <module>
import log
File "/usr/lib/
9, in <module>
mkdir(
OSError: [Errno 2] No such file or directory: '/home/
The reason is this:
cache_dir = realpath(
if not isdir(cache_dir):
mkdir(cache_dir)
The problem here is that this python code is trying to do the equivalent of:
# mkdir ~/.cache/gwibber
...when ~/.cache/ doesn't exist. You'd want to run mkdir -p in that instance,
which is os.makedirs() in python.
Attached is a patch which resolves this issue.
marking fixed since there is a branch linked that was merged.