rubber crashing on file.close()
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Rubber |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Hi
Working on 2.6.35-gentoo-r12, python 2.6.6, dev-tex/
Rubber is crashing on a simple tex example with the following error
$ rubber test_document
Traceback (most recent call last):
File "/usr/bin/rubber", line 4, in <module>
sys.
File "/usr/lib/
return self.main(cmdline)
File "/usr/lib/
env.
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
function(
File "/usr/lib/
self.
File "/usr/lib/
file.close()
AttributeError: 'NoneType' object has no attribute 'close'
The problem is fixed with the attached patch.
Thanks
davide
Changed in rubber: | |
milestone: | 1.2 → none |
status: | Fix Committed → Fix Released |
I was getting the same error from the gedit LaTeX Plugin, in Ubuntu Lucid (10.04). Apparently there is no file latex.py in my file system. I found that it was caused by the extra trailing comma in " "\usepackage{ amsmath, bm,}". Removing the comma fixed the problem.