grok is not compatible with martian 0.9.4 and up.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
grok |
Invalid
|
Undecided
|
Brandon Rhodes |
Bug Description
Please check http://
the change log explicitly mentions that the methods mentioned in the
traceback below has been removed.
Highly, amusing:
>> import grok
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/
from grok.components import Model, Adapter, MultiAdapter, View
File "/home/
from grok import interfaces, formlib, util
File "/home/
from martian.util import class_annotation, methods_from_class, scan_for_classes
ImportError: cannot import name class_annotation
Changed in grok: | |
assignee: | nobody → brandon-rhodes |
milestone: | none → 1.0 |
On 7 Jun 2008, at 14:04 , Andreas Kostyrka wrote: andreas/ customers/ gsc/lib/ python2. 5/site- packages/ 12.1-py2. 5.egg/grok/ __init_ _.py", line 33, in <module> andreas/ customers/ gsc/lib/ python2. 5/site- packages/ 12.1-py2. 5.egg/grok/ components. py", line 56, in <module> andreas/ customers/ gsc/lib/ python2. 5/site- packages/ 12.1-py2. 5.egg/grok/ util.py" , line 28, in <module>
>>> import grok
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> File "/home/
> grok-0.
> from grok.components import Model, Adapter, MultiAdapter, View
> File "/home/
> grok-0.
> from grok import interfaces, formlib, util
> File "/home/
> grok-0.
> from martian.util import class_annotation, methods_from_class,
> scan_for_classes
> ImportError: cannot import name class_annotation
Right, grok 0.12.x isn't compatible with martian >= 0.9.4, which is grok.zope. org/releaseinfo /grok-0. 12.1.cfg)
why it pins down the martian version to 0.9.3 (see http://
.
From your traceback above I deduct you installed grok into site- grok.zope. org/documentati on/
packages, probably using easy_install. This is not the typical way to
install grok! As you can read at http://
book, the recommended way is to easy_install grokproject and then
create a new sandbox with grokproject. This will also download the
most recent grok *and* the correct versions according to the version
file (see link above).