[Grok-dev] Re: testing megrok.trails
Philipp von Weitershausen
philipp at weitershausen.de
Wed Jun 4 05:24:12 EDT 2008
Philipp von Weitershausen wrote:
> Brandon Craig Rhodes wrote:
>> Being at a conference has inspired me to dust of megrok.trails and see
>> if I can do an alpha release to at least get people trying out the
>> thing. Following our recent discussions here, I'm convinced that it's a
>> better fit for us that something like routes, since routes and other
>> similar URL writers would want to take away from Grok the selection of
>> which View is placed atop the model.
>>
>> So I just checked it out, then built it out, and upon running "bin/test"
>> am seeing the error:
>>
>> Module: megrok.trails.ftests.test_trails_functional
>>
>> Traceback (most recent call last):
>> File
>> "/home/brandon/src/megrok.trails/src/megrok/trails/__init__.py",
>> line 15, in ?
>> from megrok.trails.components import TrailHead, Trail
>> File
>> "/home/brandon/src/megrok.trails/src/megrok/trails/components.py",
>> line 17, in ?
>> import grok
>> File
>>
>> "/home/brandon/src/megrok.trails/eggs/tmp7ScxgA/grok-0.12.1-py2.4.egg/grok/__init__.py",
>>
>> line 33, in ?
>> File
>>
>> "/home/brandon/src/megrok.trails/eggs/tmp7ScxgA/grok-0.12.1-py2.4.egg/grok/components.py",
>>
>> line 56, in ?
>> File
>>
>> "/home/brandon/src/megrok.trails/eggs/tmp7ScxgA/grok-0.12.1-py2.4.egg/grok/util.py",
>>
>> line 28, in ?
>> ImportError: cannot import name class_annotation
>>
>> This feels familiar, like I've seen this error before, but I can't
>> remember where! Has anyone on the list seen this before?
>
> util.class_annotation was the old way of getting the information from a
> class that was stored there by a directive. We now use the directives
> themselves to do that.
>
> Please take a look at trunk/doc/upgrade.txt for a detailed description
> of how to change your code. Let me know if anything's missing, I'll
> gladly update that document.
I just now realized you're not working with the grok trunk, you're
working with a released version. That's a bit scary, it looks like grok
0.12.1 can't import class_annotation from martian.util. Are you perhaps
using a more recent version of martian than recommended for grok 0.12.x?
More information about the Grok-dev
mailing list