You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
执行语句: datafaker mysql mysql+mysqldb://root:root@localhost:3306/test user 100 --meta meta.txt
错误信息:
Exception in thread Thread-5:
Traceback (most recent call last):
File "C:\Python39\lib\threading.py", line 973, in _bootstrap_inner
self.run()
File "C:\Python39\lib\threading.py", line 910, in run
self._target(*self._args, **self._kwargs)
File "C:\Python39\lib\site-packages\datafaker\dbs\basedb.py", line 122, in save
self.save_data(lines)
File "C:\Python39\lib\site-packages\datafaker\dbs\rdbdb.py", line 26, in save_data
self.save_other_rdb(lines, names_format, column_names)
File "C:\Python39\lib\site-packages\datafaker\dbs\rdbdb.py", line 42, in save_other_rdb
self.session.execute(sql)
File "C:\Python39\lib\site-packages\sqlalchemy\orm\session.py", line 1268, in execute
return self._connection_for_bind(bind, close_with_result=True).execute(
File "C:\Python39\lib\site-packages\sqlalchemy\engine\base.py", line 988, in execute
return meth(self, multiparams, params)
File "C:\Python39\lib\site-packages\sqlalchemy\sql\elements.py", line 287, in _execute_on_connection
return connection._execute_clauseelement(self, multiparams, params)
File "C:\Python39\lib\site-packages\sqlalchemy\engine\base.py", line 1101, in _execute_clauseelement
ret = self._execute_context(
File "C:\Python39\lib\site-packages\sqlalchemy\engine\base.py", line 1252, in _execute_context
self._handle_dbapi_exception(
File "C:\Python39\lib\site-packages\sqlalchemy\engine\base.py", line 1475, in _handle_dbapi_exception
util.reraise(*exc_info)
File "C:\Python39\lib\site-packages\sqlalchemy\util\compat.py", line 153, in reraise
raise value
File "C:\Python39\lib\site-packages\sqlalchemy\engine\base.py", line 1248, in _execute_context
self.dialect.do_execute(
File "C:\Python39\lib\site-packages\sqlalchemy\engine\default.py", line 552, in do_execute
cursor.execute(statement, parameters)
File "C:\Python39\lib\site-packages\MySQLdb\cursors.py", line 188, in execute
query = query.encode(db.encoding)
File "C:\Python39\lib\encodings\cp1252.py", line 12, in encode
return codecs.charmap_encode(input,errors,encoding_table)
UnicodeEncodeError: 'charmap' codec can't encode characters in position 43-44: character maps to
The text was updated successfully, but these errors were encountered:
执行语句: datafaker mysql mysql+mysqldb://root:root@localhost:3306/test user 100 --meta meta.txt
错误信息:
Exception in thread Thread-5:
Traceback (most recent call last):
File "C:\Python39\lib\threading.py", line 973, in _bootstrap_inner
self.run()
File "C:\Python39\lib\threading.py", line 910, in run
self._target(*self._args, **self._kwargs)
File "C:\Python39\lib\site-packages\datafaker\dbs\basedb.py", line 122, in save
self.save_data(lines)
File "C:\Python39\lib\site-packages\datafaker\dbs\rdbdb.py", line 26, in save_data
self.save_other_rdb(lines, names_format, column_names)
File "C:\Python39\lib\site-packages\datafaker\dbs\rdbdb.py", line 42, in save_other_rdb
self.session.execute(sql)
File "C:\Python39\lib\site-packages\sqlalchemy\orm\session.py", line 1268, in execute
return self._connection_for_bind(bind, close_with_result=True).execute(
File "C:\Python39\lib\site-packages\sqlalchemy\engine\base.py", line 988, in execute
return meth(self, multiparams, params)
File "C:\Python39\lib\site-packages\sqlalchemy\sql\elements.py", line 287, in _execute_on_connection
return connection._execute_clauseelement(self, multiparams, params)
File "C:\Python39\lib\site-packages\sqlalchemy\engine\base.py", line 1101, in _execute_clauseelement
ret = self._execute_context(
File "C:\Python39\lib\site-packages\sqlalchemy\engine\base.py", line 1252, in _execute_context
self._handle_dbapi_exception(
File "C:\Python39\lib\site-packages\sqlalchemy\engine\base.py", line 1475, in _handle_dbapi_exception
util.reraise(*exc_info)
File "C:\Python39\lib\site-packages\sqlalchemy\util\compat.py", line 153, in reraise
raise value
File "C:\Python39\lib\site-packages\sqlalchemy\engine\base.py", line 1248, in _execute_context
self.dialect.do_execute(
File "C:\Python39\lib\site-packages\sqlalchemy\engine\default.py", line 552, in do_execute
cursor.execute(statement, parameters)
File "C:\Python39\lib\site-packages\MySQLdb\cursors.py", line 188, in execute
query = query.encode(db.encoding)
File "C:\Python39\lib\encodings\cp1252.py", line 12, in encode
return codecs.charmap_encode(input,errors,encoding_table)
UnicodeEncodeError: 'charmap' codec can't encode characters in position 43-44: character maps to
The text was updated successfully, but these errors were encountered: