When I run the tutorial example "hello_world.py" using enaml 0.7.19 packaged with anaconda, it works fine. When I install enaml from the master branch (e.g. 2b2dfd6050b5190d1a251446b1c9dfc69b640525) at nucleic/enaml, I get this:
$ python hello_world.py
Traceback (most recent call last):
File "hello_world.py", line 25, in <module>
main()
File "hello_world.py", line 14, in main
from hello_world_view import Main
File "/home/warren/local_enaml/lib/python2.7/site-packages/enaml-0.8.0-py2.7-linux-x86_64.egg/enaml/core/import_hooks.py", line 143, in load_module
exec code in mod.__dict__
File "/home/warren/gitwork/nucleic_enaml/examples/tutorial/hello_world/hello_world_view.enaml", line 1, in
#------------------------------------------------------------------------------
File "/home/warren/local_enaml/lib/python2.7/site-packages/enaml-0.8.0-py2.7-linux-x86_64.egg/enaml/core/compiler_helpers.py", line 15, in <module>
from .declarative import Declarative, d_
File "/home/warren/local_enaml/lib/python2.7/site-packages/enaml-0.8.0-py2.7-linux-x86_64.egg/enaml/core/declarative.py", line 54, in <module>
class Declarative(Object):
File "/home/warren/local_enaml/lib/python2.7/site-packages/enaml-0.8.0-py2.7-linux-x86_64.egg/enaml/core/declarative_meta.py", line 123, in __new__
patch_d_member(value)
File "/home/warren/local_enaml/lib/python2.7/site-packages/enaml-0.8.0-py2.7-linux-x86_64.egg/enaml/core/declarative_meta.py", line 90, in patch_d_member
member.add_static_observer(declarative_change_handler)
TypeError: Error when calling the metaclass bases
Expected object of type `str`. Got object of type `function` instead.
I get the same error when running the widgets examples.
When I run the tutorial example "hello_world.py" using enaml 0.7.19 packaged with anaconda, it works fine. When I install enaml from the master branch (e.g. 2b2dfd6050b5190d1a251446b1c9dfc69b640525) at nucleic/enaml, I get this:
I get the same error when running the widgets examples.