Various AttributeError crashes introspecting C module
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pydoctor |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
I was getting an AttributeError running Pydoctor on the “subvertpy” package. Version 0.5b1 failed but 0.4 was fine. I tracked the issue down and it was caused somewhere between Bazaar revision 590.1.2 “rip out . . . mess” and 590.1.5 “plan vs reality fixes” (590.1.1 was fine; 1.2-1.4 gave other errors; 1.5 gave the AttributeError)
This was the end of the traceback:
File "/home/
names = mod.contents.keys() + mod._localNameT
AttributeError: 'function' object has no attribute 'keys'
Anyway I think I fixed that one by changing that line as below. This is just a stab in the dark though; I might be completely wrong!
names = mod.contents.keys() + _localNameToFul
Now I get a crash further on. Here is a copy of the log. It looks like the “bases” and “baseobjects” attributes haven’t been added to the “cls” object.
There are two print() calls I added in this log just before the crash
[vadmium@localhost pydoctor]$ make -C ~/proj/
/home/abs/
adding directory /media/
<module 'subvertpy.client' from '/media/
<module 'subvertpy.repos' from '/media/
56 modules and packages discovered <module 'subvertpy._ra' from '/media/
116 modules and packages discovered <module 'subvertpy.wc' from '/media/
137 modules and packages discovered/
warnings.
17/17 modules processed 2 warnings
writing html to apidocs using pydoctor.
starting ModuleIndexPage ... took 0.240938s
starting ClassIndexPage ... <class 'pydoctor.
['__class__', '__delattr__', '__dict__', '__doc__', '__format__', '__getattribute__', '__getstate__', '__hash__', '__init__', '__module__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', '_localNameToFu
Traceback (most recent call last):
File "/home/
sys.
File "/home/
writer.
File "/home/
f.write(
File "/usr/lib/
list(
File "/usr/lib/
rest = [ iter([partialfl
File "/usr/lib/
return flattener(obj, context)
File "/usr/lib/
synchronous
File "<string>", line 2, in raiseException
nevow._
<pydoctor.
['<!DOCTYPE html\n PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"\n "DTD/xhtml1-
File "/home/
File "/usr/lib/
element = stack[-1].next()
File "/usr/lib/
result = renderFactory.
File "/home/
for b, o in findRootClasses
File "/home/
if cls.bases:
AttributeError: 'ZopeInterfaceC
make: *** [pydoctor] Error 1
[Exit 2]
[vadmium@localhost pydoctor]$
summary: |
- Various AssertionError crashes introspecting C module + Various AttributeError crashes introspecting C module |
description: | updated |
description: | updated |
Changed in pydoctor: | |
status: | Fix Committed → Fix Released |
Ah yes, all of that stuff changed recently. I'll have a look.