Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- D:\Daria\Python\Python\pytest1\env\Scripts\python.exe D:/Daria/Python/Python/pytest1/check_db_connection.py
- Traceback (most recent call last):
- GET CONNECTION FROM THE LOCAL POOL
- File "D:\Daria\Python\Python\pytest1\env\lib\site-packages\pymysql\converters.py", line 20, in escape_item
- SELECT `g`.`group_id`, `g`.`group_name`, `g`.`group_header`, `g`.`group_footer`
- encoder = mapping[text_type]
- FROM `group_list` `g`
- KeyError: <class 'str'>
- WHERE `g`.`group_id` = %s
- During handling of the above exception, another exception occurred:
- ['161']
- Traceback (most recent call last):
- File "D:/Daria/Python/Python/pytest1/check_db_connection.py", line 9, in <module>
- l = db.get_contacts_in_group(Group(id='161'))
- SELECT `T1`.`id`
- File "<string>", line 2, in get_contacts_in_group
- FROM `address_in_groups` `T1`
- File "D:\Daria\Python\Python\pytest1\env\lib\site-packages\pony\orm\core.py", line 460, in new_func
- try: return func(*args, **kwargs)
- File "D:\Daria\Python\Python\pytest1\fixture\orm.py", line 73, in get_contacts_in_group
- return self.convert_contacts_to_model(orm_group.contacts)
- File "D:\Daria\Python\Python\pytest1\fixture\orm.py", line 62, in convert_contacts_to_model
- WHERE `T1`.`group_id` = %s
- [161]
- ROLLBACK
- RELEASE CONNECTION
- return list(map(convert, contacts))
- File "<string>", line 2, in __iter__
- File "D:\Daria\Python\Python\pytest1\env\lib\site-packages\pony\utils\utils.py", line 58, in cut_traceback
- return func(*args, **kwargs)
- File "D:\Daria\Python\Python\pytest1\env\lib\site-packages\pony\orm\core.py", line 3137, in __iter__
- return iter(wrapper.copy())
- File "<string>", line 2, in copy
- File "D:\Daria\Python\Python\pytest1\env\lib\site-packages\pony\utils\utils.py", line 58, in cut_traceback
- return func(*args, **kwargs)
- File "D:\Daria\Python\Python\pytest1\env\lib\site-packages\pony\orm\core.py", line 3026, in copy
- return wrapper._attr_.copy(wrapper._obj_)
- File "D:\Daria\Python\Python\pytest1\env\lib\site-packages\pony\orm\core.py", line 2775, in copy
- if setdata is None or not setdata.is_fully_loaded: setdata = attr.load(obj)
- File "D:\Daria\Python\Python\pytest1\env\lib\site-packages\pony\orm\core.py", line 2704, in load
- cursor = database._exec_sql(sql, arguments)
- File "D:\Daria\Python\Python\pytest1\env\lib\site-packages\pony\orm\core.py", line 820, in _exec_sql
- connection = cache.reconnect(e)
- File "D:\Daria\Python\Python\pytest1\env\lib\site-packages\pony\orm\core.py", line 1625, in reconnect
- if not provider.should_reconnect(exc): reraise(*sys.exc_info())
- File "D:\Daria\Python\Python\pytest1\env\lib\site-packages\pony\utils\utils.py", line 87, in reraise
- try: raise exc.with_traceback(tb)
- File "D:\Daria\Python\Python\pytest1\env\lib\site-packages\pony\orm\core.py", line 818, in _exec_sql
- try: new_id = provider.execute(cursor, sql, arguments, returning_id)
- File "<string>", line 2, in execute
- File "D:\Daria\Python\Python\pytest1\env\lib\site-packages\pony\orm\dbapiprovider.py", line 50, in wrap_dbapi_exceptions
- return func(provider, *args, **kwargs)
- File "D:\Daria\Python\Python\pytest1\env\lib\site-packages\pony\orm\dbapiprovider.py", line 255, in execute
- else: cursor.execute(sql, arguments)
- File "D:\Daria\Python\Python\pytest1\env\lib\site-packages\pymysql\cursors.py", line 168, in execute
- query = self.mogrify(query, args)
- File "D:\Daria\Python\Python\pytest1\env\lib\site-packages\pymysql\cursors.py", line 147, in mogrify
- query = query % self._escape_args(args, conn)
- File "D:\Daria\Python\Python\pytest1\env\lib\site-packages\pymysql\cursors.py", line 122, in _escape_args
- return tuple(conn.literal(arg) for arg in args)
- File "D:\Daria\Python\Python\pytest1\env\lib\site-packages\pymysql\cursors.py", line 122, in <genexpr>
- return tuple(conn.literal(arg) for arg in args)
- File "D:\Daria\Python\Python\pytest1\env\lib\site-packages\pymysql\connections.py", line 469, in literal
- return self.escape(obj, self.encoders)
- File "D:\Daria\Python\Python\pytest1\env\lib\site-packages\pymysql\connections.py", line 462, in escape
- return converters.escape_item(obj, self.charset, mapping=mapping)
- File "D:\Daria\Python\Python\pytest1\env\lib\site-packages\pymysql\converters.py", line 22, in escape_item
- raise TypeError("no default type converter defined")
- TypeError: no default type converter defined
- Process finished with exit code 1
Add Comment
Please, Sign In to add comment