[Paraview] Different Python startup error message
Shead, Timothy
tshead at sandia.gov
Wed Jul 30 10:38:11 EDT 2008
On 7/30/08 4:59 AM, "John Biddiscombe" <biddisco at cscs.ch> wrote:
> Eric
>
>> ... and gets to the "representations", crapping out with
>> "AttributeError: 'NoneType' object has no attribute
>> 'GetDocumentation'" when trying to process PointSpriteRepresentation
>> (from rendering.xml).
>>
>
> Thanks veryy much for this information. I spent a bit of time on it last
> week, desperately trying to find out why the point sprite representation
> causes this dodgyness. I failed. I ended up by having a single 2 line
> xml entry with nothing in it at all, and this caused the error. I tried
> cloning other ones and everything - but it seems like as soon as I add a
> new anything to the representations this error comes back.
>
> Can anyone tell me what the error really means?
>
> I tried adding methods for GetDocumentation, tried adding xml entries
> for doc, removing them, everything, but since I don't really know what
> the rror message is trying to tell me, I am clueless - what is the
> NoneType object referred to, and why is the doc not found?
Can't comment about the underlying problem, but "None" is the Python
equivalent of a NULL pointer - the "None" object is an instance of
"NoneType". The error is telling you that you're trying to call
GetDocumentation() on "None" - you'll want to check your preceding code to
see why you aren't getting the object that you expect.
Cheers,
Tim
--
Timothy M. Shead
Scalable Analytics & Visualization (1424)
Sandia National Laboratories
505-284-0139
More information about the ParaView
mailing list