libreport version: 2.0.7
cmdline: /usr/bin/python -Es /usr/bin/sandbox -w 1600x1080 -X midori -p
reason: sandbox:316:__parse_options:AttributeError: Sandbox instance has no attribute 'dpi'
time: Tue 22 Nov 2011 02:38:12 PM MST
:sandbox:316:__parse_options:AttributeError: Sandbox instance has no attribute 'dpi'
:Traceback (most recent call last):
: File "/usr/bin/sandbox", line 487, in <module>
: rc = sandbox.main()
: File "/usr/bin/sandbox", line 472, in main
: File "/usr/bin/sandbox", line 316, in __parse_options
: dest="dpi", action="store",default=self.dpi,
:AttributeError: Sandbox instance has no attribute 'dpi'
:Local variables in innermost frame:
:usage: '\nsandbox [-h] [-c] [-l level ] [-[X|M] [-H homedir] [-T tempdir]] [-I includefile ] [-W windowmanager ] [ -w windowsize ] [[-i file ] ...] [ -t type ] command\n\nsandbox [-h] [-c] [-l level ] [-[X|M] [-H homedir] [-T tempdir]] [-I includefile ] [-W windowmanager ] [ -w windowsize ] [[-i file ] ...] [ -t type ] -S\n\nPolicy defines the following types for use with the -t:\n\tsandbox_x_t\n\tsandbox_min_t\n\tsandbox_net_t\n\tsandbox_web_t\n\tsandbox_t\n\n'
:self: <__main__.Sandbox instance at 0xbbf998>
:parser: <optparse.OptionParser instance at 0xc26a70>
:OptionParser: <class optparse.OptionParser at 0xd12530>
:types: '\nPolicy defines the following types for use with the -t:\n\tsandbox_x_t\n\tsandbox_min_t\n\tsandbox_net_t\n\tsandbox_web_t\n\tsandbox_t\n'
:sandbox -w 1600x1080 -X midori -p
What does /usr/bin/xrdb -query
OS Release: Fedora release 16 (Verne)
1. Have F15 installed
2. Install (not update) F16, keeping old /home
3. use sandbox command from bash history
Meaning, I am not sure if the command to cal has not changed between F15 and F16. If it is a PEBKAC, please excuse the noise.
Created attachment 536287 [details]
output of /usr/bin/xrdb -query
*** Bug 757370 has been marked as a duplicate of this bug. ***
*** Bug 757920 has been marked as a duplicate of this bug. ***
It seems xrdb doesn't contain this information anymore. It can be found from xdpyinfo.
% xdpyinfo| fgrep resolution
resolution: 96x96 dots per inch
As a hacked up workaround, you can add this to the sandbox script:
self.dpi='96' <--- Add this line
rc, out = commands.getstatusoutput("/usr/bin/xrdb -query")
if rc != 0:
Created attachment 538068 [details]
Patch that resolves this issue
Here's a patch that fixes the issue. I admit, how it finds the dpi info is a bit dodgy.
Created attachment 538088 [details]
A somewhat more python friendly patch
This patch does things in a more python friendly manner. On a very slow computer the user may notice a small window pop up and vanish while the dpi is calculated via tk. I'll leave it up to the author to decide how they want to approach this solution.
Seems to do it.
Fixed in policycoreutils-2.1.4-11.fc16
policycoreutils-2.1.4-12.fc16 has been submitted as an update for Fedora 16.
* should fix your issue,
* was pushed to the Fedora 16 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing policycoreutils-2.1.4-12.fc16'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
policycoreutils-2.1.4-12.fc16 has been pushed to the Fedora 16 stable repository. If problems still persist, please make note of it in this bug report.