Problem generating documentation for google app engine SDK datastore.

5 views
Skip to first unread message

blep

unread,
Aug 4, 2008, 6:23:12 PM8/4/08
to Apydia
When I try to generate the documentation I run into the exception
below. Notes that I'm a true newcomer with this tool.
apydia_dev_appserver.py is just a wrapper that adds a few entry to
sys.path to find app engine SDK modules.
python apydia_dev_appserver.py google.appengine.api.datastore
[snip, lot of analysis traces]
2008-08-04 23:56:20,026 DEBUG base: 'D:\\wut\\prg\\google_appengine\
\google', abspath: 'D:\\wut\\prg\\googl
e_appengine\\google\\appengine\\api\\yaml_errors.py'
2008-08-04 23:56:20,026 DEBUG generating "apydocs
\google.appengine.api.datastore.html"
2008-08-04 23:56:20,026 DEBUG generating "apydocs
\google.appengine.api.datastore.Entity.html"
Traceback (most recent call last):
File "apydia_dev_appserver.py", line 54, in <module>
load_entry_point('Apydia==0.0.2', 'console_scripts', 'apydia')()
File "c:\python25\lib\site-packages\Apydia-0.0.2-py2.5.egg\apydia
\command.py", line 259, in main
project.generate()
File "c:\python25\lib\site-packages\Apydia-0.0.2-py2.5.egg\apydia
\project.py", line 91, in generate
generator.generate(module)
File "c:\python25\lib\site-packages\Apydia-0.0.2-py2.5.egg\apydia
\generator.py", line 56, in generate
self.generate(member)
File "c:\python25\lib\site-packages\Apydia-0.0.2-py2.5.egg\apydia
\generator.py", line 69, in generate
outfile.write(stream.render(self.options.format))
File "build\bdist.win32\egg\genshi\core.py", line 179, in render
File "build\bdist.win32\egg\genshi\output.py", line 60, in encode
File "build\bdist.win32\egg\genshi\output.py", line 311, in __call__
File "build\bdist.win32\egg\genshi\output.py", line 592, in __call__
File "build\bdist.win32\egg\genshi\output.py", line 698, in __call__
File "build\bdist.win32\egg\genshi\output.py", line 532, in __call__
File "build\bdist.win32\egg\genshi\core.py", line 283, in _ensure
File "build\bdist.win32\egg\genshi\template\base.py", line 569, in
_include
File "build\bdist.win32\egg\genshi\template\markup.py", line 279, in
_match
File "build\bdist.win32\egg\genshi\template\base.py", line 569, in
_include
File "build\bdist.win32\egg\genshi\template\markup.py", line 245, in
_match
File "build\bdist.win32\egg\genshi\template\markup.py", line 234, in
_strip
File "build\bdist.win32\egg\genshi\template\base.py", line 543, in
_exec
File "build\bdist.win32\egg\genshi\template\base.py", line 533, in
_eval
File "build\bdist.win32\egg\genshi\template\base.py", line 496, in
_eval
File "build\bdist.win32\egg\genshi\template\base.py", line 557, in
_flatten
File "build\bdist.win32\egg\genshi\template\base.py", line 272, in
_apply_directives
File "build\bdist.win32\egg\genshi\template\directives.py", line
411, in __call__
File "build\bdist.win32\egg\genshi\template\base.py", line 286, in
_eval_expr
File "build\bdist.win32\egg\genshi\template\eval.py", line 180, in
evaluate
File "C:\Python25\lib\site-packages\apydia-0.0.2-py2.5.egg\apydia
\themes\default\master.html", line 28, in <
Expression u'details_link and link_desc.details'>
<li py:if="details_link and link_desc.details">
File "build\bdist.win32\egg\genshi\template\eval.py", line 321, in
lookup_attr
File "build\bdist.win32\egg\genshi\template\eval.py", line 405, in
undefined
genshi.template.eval.UndefinedError: <apydia.descriptors.MethodDesc
object at 0x013A58F0> has no member named
"details"

Is this a bug or am I doing something wrong ?

Daniel Haus

unread,
Aug 5, 2008, 2:16:55 AM8/5/08
to apy...@googlegroups.com
Am 05.08.2008 um 00:23 schrieb blep:

> genshi.template.eval.UndefinedError: <apydia.descriptors.MethodDesc
> object at 0x013A58F0> has no member named
> "details"
>
> Is this a bug or am I doing something wrong ?

Try using Genshi 0.4.4 (instead of Genshi 0.5.x).

Greetings,
Daniel

--
Daniel Haus
http://ematia.de

Andi Albrecht

unread,
Aug 5, 2008, 2:30:19 AM8/5/08
to apy...@googlegroups.com
Setting the lookup_errors option to 'lenient'
(http://genshi.edgewall.org/wiki/Documentation/0.5.x/plugin.html#genshi-lookup-errors)
should work too.

blep

unread,
Aug 5, 2008, 3:56:25 AM8/5/08
to Apydia
On 5 août, 08:16, Daniel Haus <daniel.h...@gmail.com> wrote:
> Am 05.08.2008 um 00:23 schrieb blep:
>
> > genshi.template.eval.UndefinedError: <apydia.descriptors.MethodDesc
> > object at 0x013A58F0> has no member named
> > "details"
>
> > Is this a bug or am I doing something wrong ?
>
> Try using Genshi 0.4.4 (instead of Genshi 0.5.x).

How do I do that knowing that I used easyinstall to install apydia ?
(require.txt has Genshi >= 0.4.4)
Is there a way to uninstall it ?


> Greetings,
> Daniel
>
> --
> Daniel Haushttp://ematia.de

blep

unread,
Aug 5, 2008, 3:58:19 AM8/5/08
to Apydia

On 5 août, 08:30, "Andi Albrecht" <albrecht.a...@googlemail.com>
wrote:
> Setting the lookup_errors option to 'lenient'
> (http://genshi.edgewall.org/wiki/Documentation/0.5.x/plugin.html#gensh...)
> should work too.

Where can I do that? I haven't find any MarkupTemplate instantiation I
could pass this parameter to...

Daniel Haus

unread,
Aug 5, 2008, 4:03:06 AM8/5/08
to apy...@googlegroups.com
Am 05.08.2008 um 09:56 schrieb blep:

> On 5 août, 08:16, Daniel Haus <daniel.h...@gmail.com> wrote:
>> Am 05.08.2008 um 00:23 schrieb blep:
>>
>>> genshi.template.eval.UndefinedError: <apydia.descriptors.MethodDesc
>>> object at 0x013A58F0> has no member named
>>> "details"
>>
>>> Is this a bug or am I doing something wrong ?
>>
>> Try using Genshi 0.4.4 (instead of Genshi 0.5.x).
>
> How do I do that knowing that I used easyinstall to install apydia ?
> (require.txt has Genshi >= 0.4.4)
> Is there a way to uninstall it ?


I'm sorry, putting a ">=" was a bit careless, back then, when
Genshi 0.4.4 was the latest version. It did work then, of course.

To downgrade to 0.4.4 just issue "easy_install Genshi==0.4.4"
and all should work fine.

Sorry for the trouble!

blep

unread,
Aug 5, 2008, 10:58:57 AM8/5/08
to Apydia

On 5 août, 10:03, Daniel Haus <daniel.h...@gmail.com> wrote:
> Am 05.08.2008 um 09:56 schrieb blep:
>
> > On 5 août, 08:16, Daniel Haus <daniel.h...@gmail.com> wrote:
> >> Am 05.08.2008 um 00:23 schrieb blep:
>
> >>> genshi.template.eval.UndefinedError: <apydia.descriptors.MethodDesc
> >>> object at 0x013A58F0> has no member named
> >>> "details"
>
> >>> Is this a bug or am I doing something wrong ?
>
> >> Try using Genshi 0.4.4 (instead of Genshi 0.5.x).
>
> > How do I do that knowing that I used easyinstall to install apydia ?
> > (require.txt has Genshi >= 0.4.4)
> > Is there a way to uninstall it ?
>
> I'm sorry, putting a ">=" was a bit careless, back then, when
> Genshi 0.4.4 was the latest version. It did work then, of course.

I would say optimistic rather than careless ;-)

> To downgrade to 0.4.4 just issue "easy_install Genshi==0.4.4"
> and all should work fine.

Works great, thanks!
Reply all
Reply to author
Forward
0 new messages