I get the following error when trying to create_all() in a sqlite database:
TypeError: _compiler_dispatch() missing 1 required positional argument: 
'visitor'

Looking at annotation.py and visitors.py, all instances of 
_compiler_dispatch() do indeed appear to expect a 'visitor' argument, which 
is not provided in the type_._compiler_dispatch() call from 
TypeCompiler.process() in line 266 of compiler.py. The end of the traceback 
is below.

I'm using SQLAlchemy 0.9.4, Python 3.4.0, and alchy 0.11.2.

Thanks,

Seth
...

C:\Python34\lib\site-packages\sqlalchemy\sql\visitors.py in 
_compiler_dispatch(self, visitor, **kw)
     77                     raise exc.UnsupportedCompilationError(visitor, 
cls)
     78                 else:
---> 79                     return meth(self, **kw)
     80         else:
     81             # The optimization opportunity is lost for this case 
because the

C:\Python34\lib\site-packages\sqlalchemy\sql\compiler.py in 
visit_create_column(self, create, first_pk)
   2368         text = self.get_column_specification(
   2369                         column,
-> 2370                         first_pk=first_pk
   2371                     )
   2372         const = " ".join(self.process(constraint) \

C:\Python34\lib\site-packages\sqlalchemy\dialects\sqlite\base.py in 
get_column_specification(self, column, **kwargs)
    538
    539     def get_column_specification(self, column, **kwargs):
--> 540         coltype = self.dialect.type_compiler.process(column.type)
    541         colspec = self.preparer.format_column(column) + " " + 
coltype
    542         default = self.get_column_default_string(column)

C:\Python34\lib\site-packages\sqlalchemy\sql\compiler.py in process(self, 
type_)
    264
    265     def process(self, type_):
--> 266         return type_._compiler_dispatch(self)
    267
    268

C:\Python34\lib\site-packages\sqlalchemy\sql\visitors.py in 
_compiler_dispatch(self, visitor, **kw)
     77                     raise exc.UnsupportedCompilationError(visitor, 
cls)
     78                 else:
---> 79                     return meth(self, **kw)
     80         else:
     81             # The optimization opportunity is lost for this case 
because the

C:\Python34\lib\site-packages\sqlalchemy\sql\compiler.py in 
visit_type_decorator(self, type_)
   2755
   2756     def visit_type_decorator(self, type_):
-> 2757         return self.process(type_.type_engine(self.dialect))
   2758
   2759     def visit_user_defined(self, type_):

C:\Python34\lib\site-packages\sqlalchemy\sql\compiler.py in process(self, 
type_)
    264
    265     def process(self, type_):
--> 266         return type_._compiler_dispatch(self)
    267
    268

TypeError: _compiler_dispatch() missing 1 required positional argument: 
'visitor'

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sqlalchemy+unsubscr...@googlegroups.com.
To post to this group, send email to sqlalchemy@googlegroups.com.
Visit this group at http://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.

Reply via email to