peterjrichens / recipe_manager Goto Github PK
View Code? Open in Web Editor NEWTelegram bot recipe manager and culinary assistant
Telegram bot recipe manager and culinary assistant
I can't Load recipes.csv into mysql db:
Base.metadata.create_all(self.engine)
File "/home/osboxes/efor/local/lib/python2.7/site-packages/sqlalchemy/sql/schema.py", line 3949, in create_all
tables=tables)
File "/home/osboxes/efor/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1929, in _run_visitor
conn._run_visitor(visitorcallable, element, **kwargs)
File "/home/osboxes/efor/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1538, in _run_visitor
**kwargs).traverse_single(element)
File "/home/osboxes/efor/local/lib/python2.7/site-packages/sqlalchemy/sql/visitors.py", line 121, in traverse_single
return meth(obj, **kw)
File "/home/osboxes/efor/local/lib/python2.7/site-packages/sqlalchemy/sql/ddl.py", line 733, in visit_metadata
_is_metadata_operation=True)
File "/home/osboxes/efor/local/lib/python2.7/site-packages/sqlalchemy/sql/visitors.py", line 121, in traverse_single
return meth(obj, **kw)
File "/home/osboxes/efor/local/lib/python2.7/site-packages/sqlalchemy/sql/ddl.py", line 767, in visit_table
include_foreign_key_constraints=include_foreign_key_constraints
File "/home/osboxes/efor/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 945, in execute
return meth(self, multiparams, params)
File "/home/osboxes/efor/local/lib/python2.7/site-packages/sqlalchemy/sql/ddl.py", line 68, in _execute_on_connection
return connection._execute_ddl(self, multiparams, params)
File "/home/osboxes/efor/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 996, in _execute_ddl
if not self.schema_for_object.is_default else None)
File "<string>", line 1, in <lambda>
File "/home/osboxes/efor/local/lib/python2.7/site-packages/sqlalchemy/sql/elements.py", line 436, in compile
return self._compiler(dialect, bind=bind, **kw)
File "/home/osboxes/efor/local/lib/python2.7/site-packages/sqlalchemy/sql/ddl.py", line 26, in _compiler
return dialect.ddl_compiler(dialect, self, **kw)
File "/home/osboxes/efor/local/lib/python2.7/site-packages/sqlalchemy/sql/compiler.py", line 216, in __init__
self.string = self.process(self.statement, **compile_kwargs)
File "/home/osboxes/efor/local/lib/python2.7/site-packages/sqlalchemy/sql/compiler.py", line 242, in process
return obj._compiler_dispatch(self, **kwargs)
File "/home/osboxes/efor/local/lib/python2.7/site-packages/sqlalchemy/sql/visitors.py", line 81, in _compiler_dispatch
return meth(self, **kw)
File "/home/osboxes/efor/local/lib/python2.7/site-packages/sqlalchemy/sql/compiler.py", line 2349, in visit_create_table
(table.description, column.name, ce.args[0])
File "/home/osboxes/efor/local/lib/python2.7/site-packages/sqlalchemy/util/compat.py", line 203, in raise_from_cause
reraise(type(exception), exception, tb=exc_tb, cause=cause)
File "/home/osboxes/efor/local/lib/python2.7/site-packages/sqlalchemy/sql/compiler.py", line 2338, in visit_create_table
and not first_pk)
File "/home/osboxes/efor/local/lib/python2.7/site-packages/sqlalchemy/sql/compiler.py", line 242, in process
return obj._compiler_dispatch(self, **kwargs)
File "/home/osboxes/efor/local/lib/python2.7/site-packages/sqlalchemy/sql/visitors.py", line 81, in _compiler_dispatch
return meth(self, **kw)
File "/home/osboxes/efor/local/lib/python2.7/site-packages/sqlalchemy/sql/compiler.py", line 2369, in visit_create_column
first_pk=first_pk
File "/home/osboxes/efor/local/lib/python2.7/site-packages/sqlalchemy/dialects/mysql/base.py", line 994, in get_column_specification
column.type, type_expression=column)
File "/home/osboxes/efor/local/lib/python2.7/site-packages/sqlalchemy/sql/compiler.py", line 290, in process
return type_._compiler_dispatch(self, **kw)
File "/home/osboxes/efor/local/lib/python2.7/site-packages/sqlalchemy/sql/visitors.py", line 81, in _compiler_dispatch
return meth(self, **kw)
File "/home/osboxes/efor/local/lib/python2.7/site-packages/sqlalchemy/sql/compiler.py", line 2783, in visit_string
return self.visit_VARCHAR(type_, **kw)
File "/home/osboxes/efor/local/lib/python2.7/site-packages/sqlalchemy/dialects/mysql/base.py", line 1375, in visit_VARCHAR
self.dialect.name)
sqlalchemy.exc.CompileError: (in table 'recipes', column 'name'): VARCHAR requires a length on dialect mysql
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.