after_merge
stringlengths
28
79.6k
before_merge
stringlengths
20
79.6k
url
stringlengths
38
71
full_traceback
stringlengths
43
922k
traceback_type
stringclasses
555 values
def is_disconnect(self, e, connection, cursor): if isinstance(e, self.dbapi.Error): code = e.args[0] if code in { "08S01", "01000", "01002", "08003", "08007", "08S02", "08001", "HYT00", "HY010...
def is_disconnect(self, e, connection, cursor): if isinstance(e, self.dbapi.Error): code = e.args[0] if code in ( "08S01", "01002", "08003", "08007", "08S02", "08001", "HYT00", "HY010", "10054...
https://github.com/sqlalchemy/sqlalchemy/issues/5646
restart done? Traceback (most recent call last): File "C:\Users\xxx\PycharmProjects\sqlalchemy_bug\.venv\lib\site-packages\sqlalchemy\engine\base.py", line 1276, in _execute_context self.dialect.do_execute( File "C:\Users\xxx\PycharmProjects\sqlalchemy_bug\.venv\lib\site-packages\sqlalchemy\engine\default.py", line 593...
pyodbc.Error
def fetchone(self, result, dbapi_cursor, hard_close=False): if not self._rowbuffer: self._buffer_rows(result, dbapi_cursor) if not self._rowbuffer: try: result._soft_close(hard=hard_close) except BaseException as e: self.handle_exception(result...
def fetchone(self, result, dbapi_cursor, hard_close=False): if not self._rowbuffer: self._buffer_rows(result, dbapi_cursor) if not self._rowbuffer: try: result._soft_close(hard=hard_close) except BaseException as e: self.handle_exception(result...
https://github.com/sqlalchemy/sqlalchemy/issues/5642
Traceback (most recent call last): File "<private>/venv/lib/python3.8/site-packages/sqlalchemy/engine/cursor.py", line 1093, in fetchmany buf.extend(dbapi_cursor.fetchmany(size - lb)) KeyboardInterrupt During handling of the above exception, another exception occurred: Traceback (most recent call last): ... File "<pr...
TypeError
def fetchmany(self, result, dbapi_cursor, size=None): if size is None: return self.fetchall(result, dbapi_cursor) buf = list(self._rowbuffer) lb = len(buf) if size > lb: try: buf.extend(dbapi_cursor.fetchmany(size - lb)) except BaseException as e: self.ha...
def fetchmany(self, result, dbapi_cursor, size=None): if size is None: return self.fetchall(result, dbapi_cursor) buf = list(self._rowbuffer) lb = len(buf) if size > lb: try: buf.extend(dbapi_cursor.fetchmany(size - lb)) except BaseException as e: self.ha...
https://github.com/sqlalchemy/sqlalchemy/issues/5642
Traceback (most recent call last): File "<private>/venv/lib/python3.8/site-packages/sqlalchemy/engine/cursor.py", line 1093, in fetchmany buf.extend(dbapi_cursor.fetchmany(size - lb)) KeyboardInterrupt During handling of the above exception, another exception occurred: Traceback (most recent call last): ... File "<pr...
TypeError
def _sql_message(self, as_unicode): util = _preloaded.preloaded.sql_util details = [self._message(as_unicode=as_unicode)] if self.statement: if not as_unicode and not compat.py3k: stmt_detail = "[SQL: %s]" % compat.safe_bytestring(self.statement) else: stmt_detail = ...
def _sql_message(self, as_unicode): from sqlalchemy.sql import util details = [self._message(as_unicode=as_unicode)] if self.statement: if not as_unicode and not compat.py3k: stmt_detail = "[SQL: %s]" % compat.safe_bytestring(self.statement) else: stmt_detail = "[SQL...
https://github.com/sqlalchemy/sqlalchemy/issues/5632
Exception ignored in: <generator object it at 0x7f6aefc9a4a0> Traceback (most recent call last): File "run.py", line 36, in it File ".../python3.8/site-packages/sqlalchemy/engine/base.py", line 1781, in __exit__ File ".../python3.8/site-packages/sqlalchemy/engine/base.py", line 1753, in rollback File ".../python3.8/sit...
sqlalchemy.exc.ProgrammingError
def _message(self, as_unicode=compat.py3k): # rules: # # 1. under py2k, for __str__ return single string arg as it was # given without converting to unicode. for __unicode__ # do a conversion but check that it's not unicode already just in # case # # 2. under py3k, single arg string wil...
def _message(self, as_unicode=compat.py3k): # rules: # # 1. under py2k, for __str__ return single string arg as it was # given without converting to unicode. for __unicode__ # do a conversion but check that it's not unicode already just in # case # # 2. under py3k, single arg string wil...
https://github.com/sqlalchemy/sqlalchemy/issues/5599
from sqlalchemy.exc import SQLAlchemyError class Foo(object): ... pass str(SQLAlchemyError(Foo())) Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: __str__ returned non-string (type Foo)
TypeError
def _adapt_to_context(self, context): """When using a cached Compiled construct that has a _result_map, for a new statement that used the cached Compiled, we need to ensure the keymap has the Column objects from our new statement as keys. So here we rewrite keymap with new entries for the new columns ...
def _adapt_to_context(self, context): """When using a cached Compiled construct that has a _result_map, for a new statement that used the cached Compiled, we need to ensure the keymap has the Column objects from our new statement as keys. So here we rewrite keymap with new entries for the new columns ...
https://github.com/sqlalchemy/sqlalchemy/issues/5559
2020-09-05 14:00:42,711 INFO sqlalchemy.engine.Engine SELECT users.id, teams.id FROM users LEFT OUTER JOIN teams ON teams.id = users.team_id 2020-09-05 14:00:42,711 INFO sqlalchemy.engine.Engine [generated in 0.00025s] {} 1 2020-09-05 14:00:42,712 INFO sqlalchemy.engine.Engine SELECT users.id, teams.id FROM users LEFT ...
sqlalchemy.exc.InvalidRequestError
def __init__(self, parent, cursor_description): context = parent.context dialect = context.dialect self._tuplefilter = None self._translated_indexes = None self.case_sensitive = dialect.case_sensitive self._safe_for_cache = False if context.result_column_struct: ( result...
def __init__(self, parent, cursor_description): context = parent.context dialect = context.dialect self._tuplefilter = None self._translated_indexes = None self.case_sensitive = dialect.case_sensitive self._safe_for_cache = False if context.result_column_struct: ( result...
https://github.com/sqlalchemy/sqlalchemy/issues/5559
2020-09-05 14:00:42,711 INFO sqlalchemy.engine.Engine SELECT users.id, teams.id FROM users LEFT OUTER JOIN teams ON teams.id = users.team_id 2020-09-05 14:00:42,711 INFO sqlalchemy.engine.Engine [generated in 0.00025s] {} 1 2020-09-05 14:00:42,712 INFO sqlalchemy.engine.Engine SELECT users.id, teams.id FROM users LEFT ...
sqlalchemy.exc.InvalidRequestError
def _merge_cursor_description( self, context, cursor_description, result_columns, num_ctx_cols, cols_are_ordered, textual_ordered, loose_column_name_matching, ): """Merge a cursor.description with compiled result column information. There are at least four separate strategies us...
def _merge_cursor_description( self, context, cursor_description, result_columns, num_ctx_cols, cols_are_ordered, textual_ordered, loose_column_name_matching, ): """Merge a cursor.description with compiled result column information. There are at least four separate strategies us...
https://github.com/sqlalchemy/sqlalchemy/issues/5559
2020-09-05 14:00:42,711 INFO sqlalchemy.engine.Engine SELECT users.id, teams.id FROM users LEFT OUTER JOIN teams ON teams.id = users.team_id 2020-09-05 14:00:42,711 INFO sqlalchemy.engine.Engine [generated in 0.00025s] {} 1 2020-09-05 14:00:42,712 INFO sqlalchemy.engine.Engine SELECT users.id, teams.id FROM users LEFT ...
sqlalchemy.exc.InvalidRequestError
def _merge_textual_cols_by_position(self, context, cursor_description, result_columns): num_ctx_cols = len(result_columns) if result_columns else None if num_ctx_cols > len(cursor_description): util.warn( "Number of columns in textual SQL (%d) is " "smaller than number of column...
def _merge_textual_cols_by_position(self, context, cursor_description, result_columns): num_ctx_cols = len(result_columns) if result_columns else None if num_ctx_cols > len(cursor_description): util.warn( "Number of columns in textual SQL (%d) is " "smaller than number of column...
https://github.com/sqlalchemy/sqlalchemy/issues/5559
2020-09-05 14:00:42,711 INFO sqlalchemy.engine.Engine SELECT users.id, teams.id FROM users LEFT OUTER JOIN teams ON teams.id = users.team_id 2020-09-05 14:00:42,711 INFO sqlalchemy.engine.Engine [generated in 0.00025s] {} 1 2020-09-05 14:00:42,712 INFO sqlalchemy.engine.Engine SELECT users.id, teams.id FROM users LEFT ...
sqlalchemy.exc.InvalidRequestError
def _merge_cols_by_name( self, context, cursor_description, result_columns, loose_column_name_matching, ): dialect = context.dialect case_sensitive = dialect.case_sensitive match_map = self._create_description_match_map( result_columns, case_sensitive, loose_column_name_matching ...
def _merge_cols_by_name( self, context, cursor_description, result_columns, loose_column_name_matching, ): dialect = context.dialect case_sensitive = dialect.case_sensitive match_map = self._create_description_match_map( result_columns, case_sensitive, loose_column_name_matching ...
https://github.com/sqlalchemy/sqlalchemy/issues/5559
2020-09-05 14:00:42,711 INFO sqlalchemy.engine.Engine SELECT users.id, teams.id FROM users LEFT OUTER JOIN teams ON teams.id = users.team_id 2020-09-05 14:00:42,711 INFO sqlalchemy.engine.Engine [generated in 0.00025s] {} 1 2020-09-05 14:00:42,712 INFO sqlalchemy.engine.Engine SELECT users.id, teams.id FROM users LEFT ...
sqlalchemy.exc.InvalidRequestError
def _create_description_match_map( cls, result_columns, case_sensitive=True, loose_column_name_matching=False, ): """when matching cursor.description to a set of names that are present in a Compiled object, as is the case with TextualSelect, get all the names we expect might match those in c...
def _create_description_match_map( cls, result_columns, case_sensitive=True, loose_column_name_matching=False, ): """when matching cursor.description to a set of names that are present in a Compiled object, as is the case with TextualSelect, get all the names we expect might match those in c...
https://github.com/sqlalchemy/sqlalchemy/issues/5559
2020-09-05 14:00:42,711 INFO sqlalchemy.engine.Engine SELECT users.id, teams.id FROM users LEFT OUTER JOIN teams ON teams.id = users.team_id 2020-09-05 14:00:42,711 INFO sqlalchemy.engine.Engine [generated in 0.00025s] {} 1 2020-09-05 14:00:42,712 INFO sqlalchemy.engine.Engine SELECT users.id, teams.id FROM users LEFT ...
sqlalchemy.exc.InvalidRequestError
def _merge_cols_by_none(self, context, cursor_description): for ( idx, colname, untranslated, coltype, ) in self._colnames_from_description(context, cursor_description): yield ( idx, None, colname, sqltypes.NULLTYPE, ...
def _merge_cols_by_none(self, context, cursor_description): for ( idx, colname, untranslated, coltype, ) in self._colnames_from_description(context, cursor_description): yield idx, colname, sqltypes.NULLTYPE, coltype, None, untranslated
https://github.com/sqlalchemy/sqlalchemy/issues/5559
2020-09-05 14:00:42,711 INFO sqlalchemy.engine.Engine SELECT users.id, teams.id FROM users LEFT OUTER JOIN teams ON teams.id = users.team_id 2020-09-05 14:00:42,711 INFO sqlalchemy.engine.Engine [generated in 0.00025s] {} 1 2020-09-05 14:00:42,712 INFO sqlalchemy.engine.Engine SELECT users.id, teams.id FROM users LEFT ...
sqlalchemy.exc.InvalidRequestError
def __getstate__(self): return { "_keymap": { key: (rec[MD_INDEX], rec[MD_RESULT_MAP_INDEX], _UNPICKLED, key) for key, rec in self._keymap.items() if isinstance(key, util.string_types + util.int_types) }, "_keys": self._keys, "case_sensitive": self...
def __getstate__(self): return { "_keymap": { key: (rec[MD_INDEX], _UNPICKLED, key) for key, rec in self._keymap.items() if isinstance(key, util.string_types + util.int_types) }, "_keys": self._keys, "case_sensitive": self.case_sensitive, "...
https://github.com/sqlalchemy/sqlalchemy/issues/5559
2020-09-05 14:00:42,711 INFO sqlalchemy.engine.Engine SELECT users.id, teams.id FROM users LEFT OUTER JOIN teams ON teams.id = users.team_id 2020-09-05 14:00:42,711 INFO sqlalchemy.engine.Engine [generated in 0.00025s] {} 1 2020-09-05 14:00:42,712 INFO sqlalchemy.engine.Engine SELECT users.id, teams.id FROM users LEFT ...
sqlalchemy.exc.InvalidRequestError
def __setstate__(self, state): self._processors = [None for _ in range(len(state["_keys"]))] self._keymap = state["_keymap"] self._keymap_by_result_column_idx = { rec[MD_RESULT_MAP_INDEX]: rec for rec in self._keymap.values() } self._keys = state["_keys"] self.case_sensitive = state["ca...
def __setstate__(self, state): self._processors = [None for _ in range(len(state["_keys"]))] self._keymap = state["_keymap"] self._keys = state["_keys"] self.case_sensitive = state["case_sensitive"] if state["_translated_indexes"]: self._translated_indexes = state["_translated_indexes"] ...
https://github.com/sqlalchemy/sqlalchemy/issues/5559
2020-09-05 14:00:42,711 INFO sqlalchemy.engine.Engine SELECT users.id, teams.id FROM users LEFT OUTER JOIN teams ON teams.id = users.team_id 2020-09-05 14:00:42,711 INFO sqlalchemy.engine.Engine [generated in 0.00025s] {} 1 2020-09-05 14:00:42,712 INFO sqlalchemy.engine.Engine SELECT users.id, teams.id FROM users LEFT ...
sqlalchemy.exc.InvalidRequestError
def create_async_engine(*arg, **kw): """Create a new async engine instance. Arguments passed to :func:`_asyncio.create_async_engine` are mostly identical to those passed to the :func:`_sa.create_engine` function. The specified dialect must be an asyncio-compatible dialect such as :ref:`dialect-post...
def create_async_engine(*arg, **kw): """Create a new async engine instance. Arguments passed to :func:`_asyncio.create_async_engine` are mostly identical to those passed to the :func:`_sa.create_engine` function. The specified dialect must be an asyncio-compatible dialect such as :ref:`dialect-post...
https://github.com/sqlalchemy/sqlalchemy/issues/5529
In [1]: from sqlalchemy.ext.asyncio import create_async_engine In [2]: await create_async_engine(server_side_cursors=True) --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) <ipython-input-2-2bcff6ed9bdc> in <module> -...
AttributeError
def _generate_path( self, path, attr, for_strategy, wildcard_key, raiseerr=True, polymorphic_entity_context=None, ): existing_of_type = self._of_type self._of_type = None if raiseerr and not path.has_entity: if isinstance(path, TokenRegistry): raise sa_exc.Arg...
def _generate_path( self, path, attr, for_strategy, wildcard_key, raiseerr=True, polymorphic_entity_context=None, ): existing_of_type = self._of_type self._of_type = None if raiseerr and not path.has_entity: if isinstance(path, TokenRegistry): raise sa_exc.Arg...
https://github.com/sqlalchemy/sqlalchemy/issues/4589
Traceback (most recent call last): File "/bugreport/test_orm_changed.py", line 73, in <module> print s.query(Foo).options(joinedload('bar').load_only('biz')).first() File "/lib/python2.7/site-packages/sqlalchemy/orm/query.py", line 1358, in options return self._options(False, *args) File "<string>", line 2, in _options...
AttributeError
def _generate_path(self, path, attr, for_strategy, wildcard_key, raiseerr=True): existing_of_type = self._of_type self._of_type = None if raiseerr and not path.has_entity: if isinstance(path, TokenRegistry): raise sa_exc.ArgumentError( "Wildcard token cannot be followed b...
def _generate_path(self, path, attr, for_strategy, wildcard_key, raiseerr=True): existing_of_type = self._of_type self._of_type = None if raiseerr and not path.has_entity: if isinstance(path, TokenRegistry): raise sa_exc.ArgumentError( "Wildcard token cannot be followed b...
https://github.com/sqlalchemy/sqlalchemy/issues/4589
Traceback (most recent call last): File "/bugreport/test_orm_changed.py", line 73, in <module> print s.query(Foo).options(joinedload('bar').load_only('biz')).first() File "/lib/python2.7/site-packages/sqlalchemy/orm/query.py", line 1358, in options return self._options(False, *args) File "<string>", line 2, in _options...
AttributeError
def __init__(self, dialect, connection, checkfirst=False, **kwargs): super(ENUM.EnumDropper, self).__init__(connection, **kwargs) self.checkfirst = checkfirst
def __init__(self, *enums, **kw): """Construct an :class:`_postgresql.ENUM`. Arguments are the same as that of :class:`_types.Enum`, but also including the following parameters. :param create_type: Defaults to True. Indicates that ``CREATE TYPE`` should be emitted, after optionally check...
https://github.com/sqlalchemy/sqlalchemy/issues/5520
Traceback (most recent call last): File "/usr/local/anaconda3/envs/datacat/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 1277, in _execute_context self.dialect.do_execute( File "/usr/local/anaconda3/envs/datacat/lib/python3.8/site-packages/sqlalchemy/engine/default.py", line 593, in do_execute cursor.exe...
sqlalchemy.exc.ProgrammingError
def create(self, bind=None, checkfirst=True): """Emit ``CREATE TYPE`` for this :class:`_postgresql.ENUM`. If the underlying dialect does not support PostgreSQL CREATE TYPE, no action is taken. :param bind: a connectable :class:`_engine.Engine`, :class:`_engine.Connection`, or similar object t...
def create(self, bind=None, checkfirst=True): """Emit ``CREATE TYPE`` for this :class:`_postgresql.ENUM`. If the underlying dialect does not support PostgreSQL CREATE TYPE, no action is taken. :param bind: a connectable :class:`_engine.Engine`, :class:`_engine.Connection`, or similar object t...
https://github.com/sqlalchemy/sqlalchemy/issues/5520
Traceback (most recent call last): File "/usr/local/anaconda3/envs/datacat/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 1277, in _execute_context self.dialect.do_execute( File "/usr/local/anaconda3/envs/datacat/lib/python3.8/site-packages/sqlalchemy/engine/default.py", line 593, in do_execute cursor.exe...
sqlalchemy.exc.ProgrammingError
def drop(self, bind=None, checkfirst=True): """Emit ``DROP TYPE`` for this :class:`_postgresql.ENUM`. If the underlying dialect does not support PostgreSQL DROP TYPE, no action is taken. :param bind: a connectable :class:`_engine.Engine`, :class:`_engine.Connection`, or similar object to emit...
def drop(self, bind=None, checkfirst=True): """Emit ``DROP TYPE`` for this :class:`_postgresql.ENUM`. If the underlying dialect does not support PostgreSQL DROP TYPE, no action is taken. :param bind: a connectable :class:`_engine.Engine`, :class:`_engine.Connection`, or similar object to emit...
https://github.com/sqlalchemy/sqlalchemy/issues/5520
Traceback (most recent call last): File "/usr/local/anaconda3/envs/datacat/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 1277, in _execute_context self.dialect.do_execute( File "/usr/local/anaconda3/envs/datacat/lib/python3.8/site-packages/sqlalchemy/engine/default.py", line 593, in do_execute cursor.exe...
sqlalchemy.exc.ProgrammingError
def _on_table_create(self, target, bind, checkfirst=False, **kw): if ( checkfirst or (not self.metadata and not kw.get("_is_metadata_operation", False)) ) and not self._check_for_name_in_memos(checkfirst, kw): self.create(bind=bind, checkfirst=checkfirst)
def _on_table_create(self, target, bind, checkfirst=False, **kw): if ( checkfirst or (not self.metadata and not kw.get("_is_metadata_operation", False)) and not self._check_for_name_in_memos(checkfirst, kw) ): self.create(bind=bind, checkfirst=checkfirst)
https://github.com/sqlalchemy/sqlalchemy/issues/5520
Traceback (most recent call last): File "/usr/local/anaconda3/envs/datacat/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 1277, in _execute_context self.dialect.do_execute( File "/usr/local/anaconda3/envs/datacat/lib/python3.8/site-packages/sqlalchemy/engine/default.py", line 593, in do_execute cursor.exe...
sqlalchemy.exc.ProgrammingError
def __init__(self, dialect, connection, checkfirst=False, **kwargs): super(ENUM.EnumDropper, self).__init__(connection, **kwargs) self.checkfirst = checkfirst
def __init__( self, isolation_level=None, json_serializer=None, json_deserializer=None, **kwargs ): default.DefaultDialect.__init__(self, **kwargs) self.isolation_level = isolation_level self._json_deserializer = json_deserializer self._json_serializer = json_serializer
https://github.com/sqlalchemy/sqlalchemy/issues/5520
Traceback (most recent call last): File "/usr/local/anaconda3/envs/datacat/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 1277, in _execute_context self.dialect.do_execute( File "/usr/local/anaconda3/envs/datacat/lib/python3.8/site-packages/sqlalchemy/engine/default.py", line 593, in do_execute cursor.exe...
sqlalchemy.exc.ProgrammingError
def visit_enum(self, enum): if not self._can_drop_enum(enum): return self.connection.execute(DropEnumType(enum))
def visit_enum(self, type_, **kw): if not type_.native_enum or not self.dialect.supports_native_enum: return super(PGTypeCompiler, self).visit_enum(type_, **kw) else: return self.visit_ENUM(type_, **kw)
https://github.com/sqlalchemy/sqlalchemy/issues/5520
Traceback (most recent call last): File "/usr/local/anaconda3/envs/datacat/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 1277, in _execute_context self.dialect.do_execute( File "/usr/local/anaconda3/envs/datacat/lib/python3.8/site-packages/sqlalchemy/engine/default.py", line 593, in do_execute cursor.exe...
sqlalchemy.exc.ProgrammingError
def post_create_table(self, table): """Build table-level CREATE options like ENGINE and COLLATE.""" table_opts = [] opts = dict( (k[len(self.dialect.name) + 1 :].upper(), v) for k, v in table.kwargs.items() if k.startswith("%s_" % self.dialect.name) ) if table.comment is n...
def post_create_table(self, table): """Build table-level CREATE options like ENGINE and COLLATE.""" table_opts = [] opts = dict( (k[len(self.dialect.name) + 1 :].upper(), v) for k, v in table.kwargs.items() if k.startswith("%s_" % self.dialect.name) ) if table.comment is n...
https://github.com/sqlalchemy/sqlalchemy/issues/5411
/tmp/sqlalchemybug/env/bin/python /tmp/sqlalchemybug/test_bug.py 2020-06-20 11:18:15,850 INFO sqlalchemy.engine.base.Engine SHOW VARIABLES LIKE 'sql_mode' 2020-06-20 11:18:15,850 INFO sqlalchemy.engine.base.Engine () 2020-06-20 11:18:15,851 INFO sqlalchemy.engine.base.Engine SHOW VARIABLES LIKE 'lower_case_table_names'...
AssertionError
def create_connect_args(self, url): opts = url.translate_connect_args(username="user") opts.update(url.query) keys = opts query = url.query connect_args = {} for param in ("ansi", "unicode_results", "autocommit"): if param in keys: connect_args[param] = util.asbool(keys.po...
def create_connect_args(self, url): opts = url.translate_connect_args(username="user") opts.update(url.query) keys = opts query = url.query connect_args = {} for param in ("ansi", "unicode_results", "autocommit"): if param in keys: connect_args[param] = util.asbool(keys.po...
https://github.com/sqlalchemy/sqlalchemy/issues/5373
InterfaceError Traceback (most recent call last) /opt/conda/lib/python3.7/site-packages/sqlalchemy/engine/base.py in _wrap_pool_connect(self, fn, connection) 2344 try: -> 2345 return fn() 2346 except dialect.dbapi.Error as e: /opt/conda/lib/python3.7/site-packages...
InterfaceError
def check_quote(token): if ";" in str(token): token = "{%s}" % token.replace("}", "}}") return token
def check_quote(token): if ";" in str(token): token = "'%s'" % token return token
https://github.com/sqlalchemy/sqlalchemy/issues/5373
InterfaceError Traceback (most recent call last) /opt/conda/lib/python3.7/site-packages/sqlalchemy/engine/base.py in _wrap_pool_connect(self, fn, connection) 2344 try: -> 2345 return fn() 2346 except dialect.dbapi.Error as e: /opt/conda/lib/python3.7/site-packages...
InterfaceError
def is_disconnect(self, e, connection, cursor): if isinstance(e, self.dbapi.Error): code = e.args[0] if code in ( "08S01", "01002", "08003", "08007", "08S02", "08001", "HYT00", "HY010", "10054...
def is_disconnect(self, e, connection, cursor): if isinstance(e, self.dbapi.Error): for code in ( "08S01", "01002", "08003", "08007", "08S02", "08001", "HYT00", "HY010", "10054", ): ...
https://github.com/sqlalchemy/sqlalchemy/issues/5359
Traceback (most recent call last): File "/home/knutj/python_venvs/notifier/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1209, in _execute_context conn = self._revalidate_connection() File "/home/knutj/python_venvs/notifier/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 473, in _revalidate_...
sqlalchemy.exc.InvalidRequestError
def __init__(self, iterable=None): self._members = dict() if iterable: self.update(iterable)
def __init__(self, iterable=None): self._members = dict() if iterable: for o in iterable: self.add(o)
https://github.com/sqlalchemy/sqlalchemy/issues/5304
Traceback (most recent call last): File "sandbox/sqlalchemy_collections.py", line 29, in <module> parent.children = [ File "/Users/james/Projects/new-realtimerail/.pyenv/lib/python3.8/site-packages/sqlalchemy/orm/attributes.py", line 271, in __set__ self.impl.set( File "/Users/james/Projects/new-realtimerail/.pyenv/lib...
NotImplementedError
def issubset(self, iterable): other = self.__class__(iterable) if len(self) > len(other): return False for m in itertools_filterfalse( other._members.__contains__, iter(self._members.keys()) ): return False return True
def issubset(self, iterable): other = type(self)(iterable) if len(self) > len(other): return False for m in itertools_filterfalse( other._members.__contains__, iter(self._members.keys()) ): return False return True
https://github.com/sqlalchemy/sqlalchemy/issues/5304
Traceback (most recent call last): File "sandbox/sqlalchemy_collections.py", line 29, in <module> parent.children = [ File "/Users/james/Projects/new-realtimerail/.pyenv/lib/python3.8/site-packages/sqlalchemy/orm/attributes.py", line 271, in __set__ self.impl.set( File "/Users/james/Projects/new-realtimerail/.pyenv/lib...
NotImplementedError
def issuperset(self, iterable): other = self.__class__(iterable) if len(self) < len(other): return False for m in itertools_filterfalse( self._members.__contains__, iter(other._members.keys()) ): return False return True
def issuperset(self, iterable): other = type(self)(iterable) if len(self) < len(other): return False for m in itertools_filterfalse( self._members.__contains__, iter(other._members.keys()) ): return False return True
https://github.com/sqlalchemy/sqlalchemy/issues/5304
Traceback (most recent call last): File "sandbox/sqlalchemy_collections.py", line 29, in <module> parent.children = [ File "/Users/james/Projects/new-realtimerail/.pyenv/lib/python3.8/site-packages/sqlalchemy/orm/attributes.py", line 271, in __set__ self.impl.set( File "/Users/james/Projects/new-realtimerail/.pyenv/lib...
NotImplementedError
def union(self, iterable): result = self.__class__() members = self._members result._members.update(members) result._members.update((id(obj), obj) for obj in iterable) return result
def union(self, iterable): result = type(self)() # testlib.pragma exempt:__hash__ members = self._member_id_tuples() other = _iter_id(iterable) result._members.update(self._working_set(members).union(other)) return result
https://github.com/sqlalchemy/sqlalchemy/issues/5304
Traceback (most recent call last): File "sandbox/sqlalchemy_collections.py", line 29, in <module> parent.children = [ File "/Users/james/Projects/new-realtimerail/.pyenv/lib/python3.8/site-packages/sqlalchemy/orm/attributes.py", line 271, in __set__ self.impl.set( File "/Users/james/Projects/new-realtimerail/.pyenv/lib...
NotImplementedError
def update(self, iterable): self._members.update((id(obj), obj) for obj in iterable)
def update(self, iterable): self._members = self.union(iterable)._members
https://github.com/sqlalchemy/sqlalchemy/issues/5304
Traceback (most recent call last): File "sandbox/sqlalchemy_collections.py", line 29, in <module> parent.children = [ File "/Users/james/Projects/new-realtimerail/.pyenv/lib/python3.8/site-packages/sqlalchemy/orm/attributes.py", line 271, in __set__ self.impl.set( File "/Users/james/Projects/new-realtimerail/.pyenv/lib...
NotImplementedError
def difference(self, iterable): result = self.__class__() members = self._members other = {id(obj) for obj in iterable} result._members.update(((k, v) for k, v in members.items() if k not in other)) return result
def difference(self, iterable): result = type(self)() # testlib.pragma exempt:__hash__ members = self._member_id_tuples() other = _iter_id(iterable) result._members.update(self._working_set(members).difference(other)) return result
https://github.com/sqlalchemy/sqlalchemy/issues/5304
Traceback (most recent call last): File "sandbox/sqlalchemy_collections.py", line 29, in <module> parent.children = [ File "/Users/james/Projects/new-realtimerail/.pyenv/lib/python3.8/site-packages/sqlalchemy/orm/attributes.py", line 271, in __set__ self.impl.set( File "/Users/james/Projects/new-realtimerail/.pyenv/lib...
NotImplementedError
def intersection(self, iterable): result = self.__class__() members = self._members other = {id(obj) for obj in iterable} result._members.update((k, v) for k, v in members.items() if k in other) return result
def intersection(self, iterable): result = type(self)() # testlib.pragma exempt:__hash__ members = self._member_id_tuples() other = _iter_id(iterable) result._members.update(self._working_set(members).intersection(other)) return result
https://github.com/sqlalchemy/sqlalchemy/issues/5304
Traceback (most recent call last): File "sandbox/sqlalchemy_collections.py", line 29, in <module> parent.children = [ File "/Users/james/Projects/new-realtimerail/.pyenv/lib/python3.8/site-packages/sqlalchemy/orm/attributes.py", line 271, in __set__ self.impl.set( File "/Users/james/Projects/new-realtimerail/.pyenv/lib...
NotImplementedError
def symmetric_difference(self, iterable): result = self.__class__() members = self._members other = {id(obj): obj for obj in iterable} result._members.update(((k, v) for k, v in members.items() if k not in other)) result._members.update(((k, v) for k, v in other.items() if k not in members)) ret...
def symmetric_difference(self, iterable): result = type(self)() # testlib.pragma exempt:__hash__ members = self._member_id_tuples() other = _iter_id(iterable) result._members.update(self._working_set(members).symmetric_difference(other)) return result
https://github.com/sqlalchemy/sqlalchemy/issues/5304
Traceback (most recent call last): File "sandbox/sqlalchemy_collections.py", line 29, in <module> parent.children = [ File "/Users/james/Projects/new-realtimerail/.pyenv/lib/python3.8/site-packages/sqlalchemy/orm/attributes.py", line 271, in __set__ self.impl.set( File "/Users/james/Projects/new-realtimerail/.pyenv/lib...
NotImplementedError
def _join_determine_implicit_left_side(self, left, right, onclause): """When join conditions don't express the left side explicitly, determine if an existing FROM or entity in this query can serve as the left hand side. """ # when we are here, it means join() was called without an ORM- # speci...
def _join_determine_implicit_left_side(self, left, right, onclause): """When join conditions don't express the left side explicitly, determine if an existing FROM or entity in this query can serve as the left hand side. """ # when we are here, it means join() was called without an ORM- # speci...
https://github.com/sqlalchemy/sqlalchemy/issues/5194
Traceback (most recent call last): File "/home/mahenzon/.PyCharm2019.2/config/scratches/scratch_32.py", line 283, in <module> main() File "/home/mahenzon/.PyCharm2019.2/config/scratches/scratch_32.py", line 279, in main run_cte_query() File "/home/mahenzon/.PyCharm2019.2/config/scratches/scratch_32.py", line 269, in ru...
sqlalchemy.exc.InvalidRequestError
def __init__(self, query, column, namespace=None): self.expr = column self.namespace = namespace search_entities = True check_column = False if isinstance(column, util.string_types): util.warn_deprecated( "Plain string expression passed to Query() should be " "explic...
def __init__(self, query, column, namespace=None): self.expr = column self.namespace = namespace search_entities = True check_column = False if isinstance(column, util.string_types): util.warn_deprecated( "Plain string expression passed to Query() should be " "explic...
https://github.com/sqlalchemy/sqlalchemy/issues/5194
Traceback (most recent call last): File "/home/mahenzon/.PyCharm2019.2/config/scratches/scratch_32.py", line 283, in <module> main() File "/home/mahenzon/.PyCharm2019.2/config/scratches/scratch_32.py", line 279, in main run_cte_query() File "/home/mahenzon/.PyCharm2019.2/config/scratches/scratch_32.py", line 269, in ru...
sqlalchemy.exc.InvalidRequestError
def entity_zero_or_selectable(self): if self.entity_zero is not None: return self.entity_zero elif self.actual_froms: return self.actual_froms[0] else: return None
def entity_zero_or_selectable(self): if self.entity_zero is not None: return self.entity_zero elif self.actual_froms: return list(self.actual_froms)[0] else: return None
https://github.com/sqlalchemy/sqlalchemy/issues/5194
Traceback (most recent call last): File "/home/mahenzon/.PyCharm2019.2/config/scratches/scratch_32.py", line 283, in <module> main() File "/home/mahenzon/.PyCharm2019.2/config/scratches/scratch_32.py", line 279, in main run_cte_query() File "/home/mahenzon/.PyCharm2019.2/config/scratches/scratch_32.py", line 269, in ru...
sqlalchemy.exc.InvalidRequestError
def setup_entity(self, ext_info, aliased_adapter): if "selectable" not in self.__dict__: self.selectable = ext_info.selectable if set(self.actual_froms).intersection(ext_info.selectable._from_objects): self.froms.add(ext_info.selectable)
def setup_entity(self, ext_info, aliased_adapter): if "selectable" not in self.__dict__: self.selectable = ext_info.selectable if self.actual_froms.intersection(ext_info.selectable._from_objects): self.froms.add(ext_info.selectable)
https://github.com/sqlalchemy/sqlalchemy/issues/5194
Traceback (most recent call last): File "/home/mahenzon/.PyCharm2019.2/config/scratches/scratch_32.py", line 283, in <module> main() File "/home/mahenzon/.PyCharm2019.2/config/scratches/scratch_32.py", line 279, in main run_cte_query() File "/home/mahenzon/.PyCharm2019.2/config/scratches/scratch_32.py", line 269, in ru...
sqlalchemy.exc.InvalidRequestError
def _setup_crud_params(compiler, stmt, local_stmt_type, **kw): restore_isinsert = compiler.isinsert restore_isupdate = compiler.isupdate restore_isdelete = compiler.isdelete should_restore = ( (restore_isinsert or restore_isupdate or restore_isdelete) or len(compiler.stack) > 1 ...
def _setup_crud_params(compiler, stmt, local_stmt_type, **kw): restore_isinsert = compiler.isinsert restore_isupdate = compiler.isupdate restore_isdelete = compiler.isdelete should_restore = (restore_isinsert or restore_isupdate or restore_isdelete) or len( compiler.stack ) > 1 if loca...
https://github.com/sqlalchemy/sqlalchemy/issues/5181
python ref_cte.py Traceback (most recent call last): File "ref_cte.py", line 28, in <module> test_pg_example_one() File "ref_cte.py", line 23, in test_pg_example_one c = stmt.compile(dialect=dialect) File "<string>", line 1, in <lambda> File "/Users/xtof/Documents/Dev/Python/bug-sa/venv/lib/python3.7/site-packages/sqla...
AttributeError
def __init__( self, key, value=NO_ARG, type_=None, unique=False, required=NO_ARG, quote=None, callable_=None, expanding=False, isoutparam=False, literal_execute=False, _compared_to_operator=None, _compared_to_type=None, ): r"""Produce a "bound expression". ...
def __init__( self, key, value=NO_ARG, type_=None, unique=False, required=NO_ARG, quote=None, callable_=None, expanding=False, isoutparam=False, literal_execute=False, _compared_to_operator=None, _compared_to_type=None, ): r"""Produce a "bound expression". ...
https://github.com/sqlalchemy/sqlalchemy/issues/4837
Traceback (most recent call last): File "/Users/yuany/tmp/special_chars.py", line 14, in <module> engine.execute(select(['*']).where(table.c[colname] > 1)) File "/Users/yuany/envs/dbe/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 2144, in execute return connection.execute(statement, *multiparams, **param...
KeyError
def __init__( self, key, value=NO_ARG, type_=None, unique=False, required=NO_ARG, quote=None, callable_=None, expanding=False, isoutparam=False, _compared_to_operator=None, _compared_to_type=None, ): r"""Produce a "bound expression". The return value is an in...
def __init__( self, key, value=NO_ARG, type_=None, unique=False, required=NO_ARG, quote=None, callable_=None, expanding=False, isoutparam=False, _compared_to_operator=None, _compared_to_type=None, ): r"""Produce a "bound expression". The return value is an in...
https://github.com/sqlalchemy/sqlalchemy/issues/4837
Traceback (most recent call last): File "/Users/yuany/tmp/special_chars.py", line 14, in <module> engine.execute(select(['*']).where(table.c[colname] > 1)) File "/Users/yuany/envs/dbe/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 2144, in execute return connection.execute(statement, *multiparams, **param...
KeyError
def create_engine(url, **kwargs): """Create a new :class:`.Engine` instance. The standard calling form is to send the URL as the first positional argument, usually a string that indicates database dialect and connection arguments:: engine = create_engine("postgresql://scott:tiger@localhost/te...
def create_engine(url, **kwargs): """Create a new :class:`.Engine` instance. The standard calling form is to send the URL as the first positional argument, usually a string that indicates database dialect and connection arguments:: engine = create_engine("postgresql://scott:tiger@localhost/te...
https://github.com/sqlalchemy/sqlalchemy/issues/4807
Traceback (most recent call last): File "sandbox.py", line 54, in <module> print(engine.execute(product.select().where(product.c.id == 709765476)).fetchall()) File "/Users/vm/ws/app/env/lib/python3.7/site-packages/sqlalchemy/engine/result.py", line 170, in __repr__ return repr(sql_util._repr_row(self)) File "/Users/vm/...
TypeError
def exec_once(self, *args, **kw): """Execute this event, but only if it has not been executed already for this collection.""" if not self._exec_once: self._exec_once_impl(False, *args, **kw)
def exec_once(self, *args, **kw): """Execute this event, but only if it has not been executed already for this collection.""" if not self._exec_once: with self._exec_once_mutex: if not self._exec_once: try: self(*args, **kw) finally: ...
https://github.com/sqlalchemy/sqlalchemy/issues/4807
Traceback (most recent call last): File "sandbox.py", line 54, in <module> print(engine.execute(product.select().where(product.c.id == 709765476)).fetchall()) File "/Users/vm/ws/app/env/lib/python3.7/site-packages/sqlalchemy/engine/result.py", line 170, in __repr__ return repr(sql_util._repr_row(self)) File "/Users/vm/...
TypeError
def listen(self, *args, **kw): once = kw.pop("once", False) once_unless_exception = kw.pop("_once_unless_exception", False) named = kw.pop("named", False) target, identifier, fn = ( self.dispatch_target, self.identifier, self._listen_fn, ) dispatch_collection = getattr(...
def listen(self, *args, **kw): once = kw.pop("once", False) named = kw.pop("named", False) target, identifier, fn = ( self.dispatch_target, self.identifier, self._listen_fn, ) dispatch_collection = getattr(target.dispatch, identifier) adjusted_fn = dispatch_collection....
https://github.com/sqlalchemy/sqlalchemy/issues/4807
Traceback (most recent call last): File "sandbox.py", line 54, in <module> print(engine.execute(product.select().where(product.c.id == 709765476)).fetchall()) File "/Users/vm/ws/app/env/lib/python3.7/site-packages/sqlalchemy/engine/result.py", line 170, in __repr__ return repr(sql_util._repr_row(self)) File "/Users/vm/...
TypeError
def __connect(self, first_connect_check=False): pool = self.__pool # ensure any existing connection is removed, so that if # creator fails, this attribute stays None self.connection = None try: self.starttime = time.time() connection = pool._invoke_creator(self) pool.logger....
def __connect(self, first_connect_check=False): pool = self.__pool # ensure any existing connection is removed, so that if # creator fails, this attribute stays None self.connection = None try: self.starttime = time.time() connection = pool._invoke_creator(self) pool.logger....
https://github.com/sqlalchemy/sqlalchemy/issues/4807
Traceback (most recent call last): File "sandbox.py", line 54, in <module> print(engine.execute(product.select().where(product.c.id == 709765476)).fetchall()) File "/Users/vm/ws/app/env/lib/python3.7/site-packages/sqlalchemy/engine/result.py", line 170, in __repr__ return repr(sql_util._repr_row(self)) File "/Users/vm/...
TypeError
def only_once(fn, retry_on_exception): """Decorate the given function to be a no-op after it is called exactly once.""" once = [fn] def go(*arg, **kw): # strong reference fn so that it isn't garbage collected, # which interferes with the event system's expectations strong_fn = ...
def only_once(fn): """Decorate the given function to be a no-op after it is called exactly once.""" once = [fn] def go(*arg, **kw): # strong reference fn so that it isn't garbage collected, # which interferes with the event system's expectations strong_fn = fn # noqa i...
https://github.com/sqlalchemy/sqlalchemy/issues/4807
Traceback (most recent call last): File "sandbox.py", line 54, in <module> print(engine.execute(product.select().where(product.c.id == 709765476)).fetchall()) File "/Users/vm/ws/app/env/lib/python3.7/site-packages/sqlalchemy/engine/result.py", line 170, in __repr__ return repr(sql_util._repr_row(self)) File "/Users/vm/...
TypeError
def go(*arg, **kw): # strong reference fn so that it isn't garbage collected, # which interferes with the event system's expectations strong_fn = fn # noqa if once: once_fn = once.pop() try: return once_fn(*arg, **kw) except: if retry_on_exception: ...
def go(*arg, **kw): # strong reference fn so that it isn't garbage collected, # which interferes with the event system's expectations strong_fn = fn # noqa if once: once_fn = once.pop() return once_fn(*arg, **kw)
https://github.com/sqlalchemy/sqlalchemy/issues/4807
Traceback (most recent call last): File "sandbox.py", line 54, in <module> print(engine.execute(product.select().where(product.c.id == 709765476)).fetchall()) File "/Users/vm/ws/app/env/lib/python3.7/site-packages/sqlalchemy/engine/result.py", line 170, in __repr__ return repr(sql_util._repr_row(self)) File "/Users/vm/...
TypeError
def create(self, name_or_url, **kwargs): # create url.URL object u = url.make_url(name_or_url) plugins = u._instantiate_plugins(kwargs) u.query.pop("plugin", None) kwargs.pop("plugins", None) entrypoint = u._get_entrypoint() dialect_cls = entrypoint.get_dialect_cls(u) if kwargs.pop("...
def create(self, name_or_url, **kwargs): # create url.URL object u = url.make_url(name_or_url) plugins = u._instantiate_plugins(kwargs) u.query.pop("plugin", None) kwargs.pop("plugins", None) entrypoint = u._get_entrypoint() dialect_cls = entrypoint.get_dialect_cls(u) if kwargs.pop("...
https://github.com/sqlalchemy/sqlalchemy/issues/4807
Traceback (most recent call last): File "sandbox.py", line 54, in <module> print(engine.execute(product.select().where(product.c.id == 709765476)).fetchall()) File "/Users/vm/ws/app/env/lib/python3.7/site-packages/sqlalchemy/engine/result.py", line 170, in __repr__ return repr(sql_util._repr_row(self)) File "/Users/vm/...
TypeError
def slice(self, start, stop): """Computes the "slice" of the :class:`.Query` represented by the given indices and returns the resulting :class:`.Query`. The start and stop indices behave like the argument to Python's built-in :func:`range` function. This method provides an alternative to using ``LI...
def slice(self, start, stop): """Computes the "slice" of the :class:`.Query` represented by the given indices and returns the resulting :class:`.Query`. The start and stop indices behave like the argument to Python's built-in :func:`range` function. This method provides an alternative to using ``LI...
https://github.com/sqlalchemy/sqlalchemy/issues/4803
/home/artslob/.virtualenvs/sqlalchemy-bug-report/bin/python /home/artslob/projects/python/sqlalchemy-bug-report/main.py 2019-08-11 12:57:29,715 INFO sqlalchemy.engine.base.Engine select version() 2019-08-11 12:57:29,716 INFO sqlalchemy.engine.base.Engine {} 2019-08-11 12:57:29,717 INFO sqlalchemy.engine.base.Engine sel...
TypeError
def _to_schema_column_or_string(element): if element is None: return element elif hasattr(element, "__clause_element__"): element = element.__clause_element__() if not isinstance(element, util.string_types + (ColumnElement,)): msg = "Element %r is not a string name or column element"...
def _to_schema_column_or_string(element): if hasattr(element, "__clause_element__"): element = element.__clause_element__() if not isinstance(element, util.string_types + (ColumnElement,)): msg = "Element %r is not a string name or column element" raise exc.ArgumentError(msg % element) ...
https://github.com/sqlalchemy/sqlalchemy/issues/4778
Traceback (most recent call last): File "temp.py", line 24, in <module> Base.metadata.create_all(engine) File "/home/jmabey/Code/bug/env/lib/python3.7/site-packages/sqlalchemy/sql/schema.py", line 4287, in create_all ddl.SchemaGenerator, self, checkfirst=checkfirst, tables=tables File "/home/jmabey/Code/bug/env/lib/pyt...
AttributeError
def _set_parent(self, table): for col in self._col_expressions(table): if col is not None: self.columns.add(col)
def _set_parent(self, table): for col in self._pending_colargs: if isinstance(col, util.string_types): col = table.c[col] self.columns.add(col)
https://github.com/sqlalchemy/sqlalchemy/issues/4778
Traceback (most recent call last): File "temp.py", line 24, in <module> Base.metadata.create_all(engine) File "/home/jmabey/Code/bug/env/lib/python3.7/site-packages/sqlalchemy/sql/schema.py", line 4287, in create_all ddl.SchemaGenerator, self, checkfirst=checkfirst, tables=tables File "/home/jmabey/Code/bug/env/lib/pyt...
AttributeError
def __init__(self, name, *expressions, **kw): r"""Construct an index object. :param name: The name of the index :param \*expressions: Column expressions to include in the index. The expressions are normally instances of :class:`.Column`, but may also be arbitrary SQL expressions ...
def __init__(self, name, *expressions, **kw): r"""Construct an index object. :param name: The name of the index :param \*expressions: Column expressions to include in the index. The expressions are normally instances of :class:`.Column`, but may also be arbitrary SQL expressions ...
https://github.com/sqlalchemy/sqlalchemy/issues/4778
Traceback (most recent call last): File "temp.py", line 24, in <module> Base.metadata.create_all(engine) File "/home/jmabey/Code/bug/env/lib/python3.7/site-packages/sqlalchemy/sql/schema.py", line 4287, in create_all ddl.SchemaGenerator, self, checkfirst=checkfirst, tables=tables File "/home/jmabey/Code/bug/env/lib/pyt...
AttributeError
def _set_parent(self, table): ColumnCollectionMixin._set_parent(self, table) if self.table is not None and table is not self.table: raise exc.ArgumentError( "Index '%s' is against table '%s', and " "cannot be associated with table '%s'." % (self.name, self.table.desc...
def _set_parent(self, table): ColumnCollectionMixin._set_parent(self, table) if self.table is not None and table is not self.table: raise exc.ArgumentError( "Index '%s' is against table '%s', and " "cannot be associated with table '%s'." % (self.name, self.table.desc...
https://github.com/sqlalchemy/sqlalchemy/issues/4778
Traceback (most recent call last): File "temp.py", line 24, in <module> Base.metadata.create_all(engine) File "/home/jmabey/Code/bug/env/lib/python3.7/site-packages/sqlalchemy/sql/schema.py", line 4287, in create_all ddl.SchemaGenerator, self, checkfirst=checkfirst, tables=tables File "/home/jmabey/Code/bug/env/lib/pyt...
AttributeError
def __init__(self, name, *expressions, **kw): r"""Construct an index object. :param name: The name of the index :param \*expressions: Column expressions to include in the index. The expressions are normally instances of :class:`.Column`, but may also be arbitrary SQL expressions ...
def __init__(self, name, *expressions, **kw): r"""Construct an index object. :param name: The name of the index :param \*expressions: Column expressions to include in the index. The expressions are normally instances of :class:`.Column`, but may also be arbitrary SQL expressions ...
https://github.com/sqlalchemy/sqlalchemy/issues/4778
Traceback (most recent call last): File "temp.py", line 24, in <module> Base.metadata.create_all(engine) File "/home/jmabey/Code/bug/env/lib/python3.7/site-packages/sqlalchemy/sql/schema.py", line 4287, in create_all ddl.SchemaGenerator, self, checkfirst=checkfirst, tables=tables File "/home/jmabey/Code/bug/env/lib/pyt...
AttributeError
def create_proxied_attribute(descriptor): """Create an QueryableAttribute / user descriptor hybrid. Returns a new QueryableAttribute type that delegates descriptor behavior and getattr() to the given descriptor. """ # TODO: can move this to descriptor_props if the need for this # function is r...
def create_proxied_attribute(descriptor): """Create an QueryableAttribute / user descriptor hybrid. Returns a new QueryableAttribute type that delegates descriptor behavior and getattr() to the given descriptor. """ # TODO: can move this to descriptor_props if the need for this # function is r...
https://github.com/sqlalchemy/sqlalchemy/issues/4767
from depth import Child Child.parent.__name__ Traceback (most recent call last): File "<stdin>", line 1, in <module> File ".../site-packages/sqlalchemy/orm/attributes.py", line 306, in __getattr__ return getattr(self.comparator, attribute) File ".../site-packages/sqlalchemy/orm/attributes.py", line 306, in __getattr__ ...
RuntimeError
def __getattr__(self, attribute): """Delegate __getattr__ to the original descriptor and/or comparator.""" try: return getattr(descriptor, attribute) except AttributeError: if attribute == "comparator": raise AttributeError("comparator") try: # comparator ...
def __getattr__(self, attribute): """Delegate __getattr__ to the original descriptor and/or comparator.""" try: return getattr(descriptor, attribute) except AttributeError: try: return getattr(self.comparator, attribute) except AttributeError: raise Attri...
https://github.com/sqlalchemy/sqlalchemy/issues/4767
from depth import Child Child.parent.__name__ Traceback (most recent call last): File "<stdin>", line 1, in <module> File ".../site-packages/sqlalchemy/orm/attributes.py", line 306, in __getattr__ return getattr(self.comparator, attribute) File ".../site-packages/sqlalchemy/orm/attributes.py", line 306, in __getattr__ ...
RuntimeError
def set_isolation_level(self, connection, level): level = level.replace("_", " ") if level not in self._isolation_lookup: raise exc.ArgumentError( "Invalid value '%s' for isolation_level. " "Valid isolation levels for %s are %s" % (level, self.name, ", ".join(self._is...
def set_isolation_level(self, connection, level): level = level.replace("_", " ") if level not in self._isolation_lookup: raise exc.ArgumentError( "Invalid value '%s' for isolation_level. " "Valid isolation levels for %s are %s" % (level, self.name, ", ".join(self._is...
https://github.com/sqlalchemy/sqlalchemy/issues/4536
from sqlalchemy import create_engine engine= create_engine("ConnectionUrl") conn = engine.connect() conn = engine.connect() conn.execution_options( ... isolation_level="SNAPSHOT") <sqlalchemy.engine.base.Connection object at 0x000002269FE28F28> conn.execute("SELECT TOP 10 * FROM Staging.CoreRespdet"...
pyodbc.ProgrammingError
def should_evaluate_none(self, value): self.none_as_null = not value
def should_evaluate_none(self): return not self.none_as_null
https://github.com/sqlalchemy/sqlalchemy/issues/4485
AttributeError Traceback (most recent call last) /src/local_dev/shell_context.pyc in <module>() ----> 1 test_col.type = test_col.type.evaluates_none() /home/.venv/local/lib/python2.7/site-packages/sqlalchemy/sql/type_api.pyc in evaluates_none(self) 204 """ 205 typ = self.copy...
AttributeError
def _generate_path(self, path, attr, wildcard_key, raiseerr=True): existing_of_type = self._of_type self._of_type = None if raiseerr and not path.has_entity: if isinstance(path, TokenRegistry): raise sa_exc.ArgumentError( "Wildcard token cannot be followed by another ent...
def _generate_path(self, path, attr, wildcard_key, raiseerr=True): self._of_type = None if raiseerr and not path.has_entity: if isinstance(path, TokenRegistry): raise sa_exc.ArgumentError( "Wildcard token cannot be followed by another entity" ) else: ...
https://github.com/sqlalchemy/sqlalchemy/issues/4400
root@ac36af00d6f9:/service# python main.py Traceback (most recent call last): File "/usr/local/lib/python3.5/site-packages/sqlalchemy/orm/strategy_options.py", line 194, in _generate_path attr = getattr(path.entity.class_, attr) AttributeError: type object 'Parent' has no attribute 'ext' During handling of the above e...
AttributeError
def parse_path(path): """Parse a dataset's identifier or path into its parts Parameters ---------- path : str or path-like object The path to be parsed. Returns ------- ParsedPath or UnparsedPath Notes ----- When legacy GDAL filenames are encountered, they will be retu...
def parse_path(path): """Parse a dataset's identifier or path into its parts Parameters ---------- path : str or path-like object The path to be parsed. Returns ------- ParsedPath or UnparsedPath Notes ----- When legacy GDAL filenames are encountered, they will be retu...
https://github.com/Toblerity/Fiona/issues/742
mkdir !test copy test.geojson !test\test.geojson python Python 3.6.5 |Anaconda, Inc.| (default, Mar 29 2018, 13:32:41) [MSC v.1900 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. import fiona with fiona.open("!test\test.geojson") as src: ... src.crs ... Traceback (mo...
fiona._err.CPLE_OpenFailedError
def __init__( self, path, mode="r", driver=None, schema=None, crs=None, encoding=None, layer=None, vsi=None, archive=None, enabled_drivers=None, crs_wkt=None, **kwargs, ): """The required ``path`` is the absolute or relative path to a file, such as '/data/test...
def __init__( self, path, mode="r", driver=None, schema=None, crs=None, encoding=None, layer=None, vsi=None, archive=None, enabled_drivers=None, crs_wkt=None, **kwargs, ): """The required ``path`` is the absolute or relative path to a file, such as '/data/test...
https://github.com/Toblerity/Fiona/issues/512
name = 'Rhône-Alpes' name 'Rhône-Alpes' import json json.dumps(name) '"Rh\\u00f4ne-Alpes"' name_utf8 = name.encode('utf-8') name_utf8 b'Rh\xc3\xb4ne-Alpes' name_utf8.decode('Windows-1252') 'Rhône-Alpes' name_utf8.decode('ascii') Traceback (most recent call last): File "<stdin>", line 1, in <module> UnicodeDecodeError:...
UnicodeDecodeError
def open( path, mode="r", driver=None, schema=None, crs=None, encoding=None, layer=None, vfs=None, enabled_drivers=None, crs_wkt=None, **kwargs, ): """Open file at ``path`` in ``mode`` "r" (read), "a" (append), or "w" (write) and return a ``Collection`` object. I...
def open( path, mode="r", driver=None, schema=None, crs=None, encoding=None, layer=None, vfs=None, enabled_drivers=None, crs_wkt=None, ): """Open file at ``path`` in ``mode`` "r" (read), "a" (append), or "w" (write) and return a ``Collection`` object. In write mode, ...
https://github.com/Toblerity/Fiona/issues/388
WARNING:Fiona:CPLE_NotSupported in dataset /app/tmp/filegdb-bug/test.gdb does not support layer creation option ENCODING ERROR:Fiona:CPLE_AppDefined in Failed at writing Row to Table in CreateFeature. (The spatial index grid size is invalid.) ERROR:fio:Exception caught during processing Traceback (most recent call last...
RuntimeError
def _git_toplevel(path): try: with open(os.devnull, "wb") as devnull: out = subprocess.check_output( ["git", "rev-parse", "--show-toplevel"], cwd=(path or "."), universal_newlines=True, stderr=devnull, ) trace("f...
def _git_toplevel(path): try: with open(os.devnull, "wb") as devnull: out = subprocess.check_output( ["git", "rev-parse", "--show-toplevel"], cwd=(path or "."), universal_newlines=True, stderr=devnull, ) return o...
https://github.com/pypa/setuptools_scm/issues/298
/usr/lib64/python3.7/distutils/dist.py:274: UserWarning: Unknown distribution option: 'test_requires' warnings.warn(msg) /home/laura/dev/libs/rio-redis/.eggs/setuptools_scm-3.0.6-py3.7.egg/setuptools_scm/version.py:191: UserWarning: meta invoked without explicit configuration, will use defaults where required. "meta in...
tarfile.EmptyHeaderError
def _git_ls_files_and_dirs(toplevel): # use git archive instead of git ls-file to honor # export-ignore git attribute cmd = ["git", "archive", "--prefix", toplevel + os.path.sep, "HEAD"] proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, cwd=toplevel) try: return _git_interpret_archive(pro...
def _git_ls_files_and_dirs(toplevel): # use git archive instead of git ls-file to honor # export-ignore git attribute cmd = ["git", "archive", "--prefix", toplevel + os.path.sep, "HEAD"] proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, cwd=toplevel) tf = tarfile.open(fileobj=proc.stdout, mode="r...
https://github.com/pypa/setuptools_scm/issues/298
/usr/lib64/python3.7/distutils/dist.py:274: UserWarning: Unknown distribution option: 'test_requires' warnings.warn(msg) /home/laura/dev/libs/rio-redis/.eggs/setuptools_scm-3.0.6-py3.7.egg/setuptools_scm/version.py:191: UserWarning: meta invoked without explicit configuration, will use defaults where required. "meta in...
tarfile.EmptyHeaderError
def parse(root, describe_command=DEFAULT_DESCRIBE, pre_parse=warn_on_shallow): """ :param pre_parse: experimental pre_parse action, may change at any time """ if not has_command("git"): return wd = GitWorkdir.from_potential_worktree(root) if wd is None: return if pre_parse: ...
def parse(root, describe_command=DEFAULT_DESCRIBE, pre_parse=warn_on_shallow): """ :param pre_parse: experimental pre_parse action, may change at any time """ if not has_command("git"): return wd = GitWorkdir.from_potential_worktree(root) if wd is None: return if pre_parse: ...
https://github.com/pypa/setuptools_scm/issues/266
looking for ep setuptools_scm.parse_scm_fallback . root '/Users/twall/plex/rd' looking for ep setuptools_scm.parse_scm /Users/twall/plex/rd found ep .git = setuptools_scm.git:parse cmd 'git rev-parse --show-toplevel' out b'/Users/twall/plex/rd\n' real root /Users/twall/plex/rd cmd 'git describe --dirty --tags --long --...
AssertionError
def tag_to_version(tag): """ take a tag that might be prefixed with a keyword and return only the version part """ trace("tag", tag) if "+" in tag: warnings.warn("tag %r will be stripped of the local component" % tag) tag = tag.split("+")[0] # lstrip the v because of py2/py3 diff...
def tag_to_version(tag): trace("tag", tag) if "+" in tag: warnings.warn("tag %r will be stripped of the local component" % tag) tag = tag.split("+")[0] # lstrip the v because of py2/py3 differences in setuptools # also required for old versions of setuptools version = tag.rsplit("-"...
https://github.com/pypa/setuptools_scm/issues/266
looking for ep setuptools_scm.parse_scm_fallback . root '/Users/twall/plex/rd' looking for ep setuptools_scm.parse_scm /Users/twall/plex/rd found ep .git = setuptools_scm.git:parse cmd 'git rev-parse --show-toplevel' out b'/Users/twall/plex/rd\n' real root /Users/twall/plex/rd cmd 'git describe --dirty --tags --long --...
AssertionError
def parse(root, describe_command=DEFAULT_DESCRIBE): if not has_command("git"): return wd = GitWorkdir(root) rev_node = wd.node() dirty = wd.is_dirty() if rev_node is None: return meta("0.0", distance=0, dirty=dirty) out, err, ret = do_ex(describe_command, root) if ret: ...
def parse(root, describe_command=DEFAULT_DESCRIBE): wd = GitWorkdir(root) rev_node = wd.node() dirty = wd.is_dirty() if rev_node is None: return meta("0.0", distance=0, dirty=dirty) out, err, ret = do_ex(describe_command, root) if ret: return meta( "0.0", ...
https://github.com/pypa/setuptools_scm/issues/81
Traceback (most recent call last): File "<string>", line 1, in <module> File "/tmp/pip-qg_odikh-build/setup.py", line 234, in <module> zip_safe=False) File "/usr/lib/python3.5/distutils/core.py", line 108, in setup _setup_distribution = dist = klass(attrs) File "/appenv/lib/python3.5/site-packages/setuptools/dist.py", ...
FileNotFoundError
def parse(root): if not has_command("hg"): return l = do("hg id -i -t", root).split() node = l.pop(0) tags = tags_to_versions(l) # filter tip in degraded mode on old setuptools tags = [x for x in tags if x != "tip"] dirty = node[-1] == "+" if tags: return meta(tags[0], di...
def parse(root): l = do("hg id -i -t", root).split() node = l.pop(0) tags = tags_to_versions(l) # filter tip in degraded mode on old setuptools tags = [x for x in tags if x != "tip"] dirty = node[-1] == "+" if tags: return meta(tags[0], dirty=dirty) if node.strip("+") == "0" * 1...
https://github.com/pypa/setuptools_scm/issues/81
Traceback (most recent call last): File "<string>", line 1, in <module> File "/tmp/pip-qg_odikh-build/setup.py", line 234, in <module> zip_safe=False) File "/usr/lib/python3.5/distutils/core.py", line 108, in setup _setup_distribution = dist = klass(attrs) File "/appenv/lib/python3.5/site-packages/setuptools/dist.py", ...
FileNotFoundError
def do_ex(cmd, cwd="."): trace("cmd", repr(cmd)) if not isinstance(cmd, (list, tuple)): cmd = shlex.split(cmd) p = _popen_pipes(cmd, cwd) out, err = p.communicate() if out: trace("out", repr(out)) if err: trace("err", repr(err)) if p.returncode: trace("ret", ...
def do_ex(cmd, cwd="."): trace("cmd", repr(cmd)) if not isinstance(cmd, (list, tuple)): cmd = shlex.split(cmd) p = subprocess.Popen( cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, cwd=str(cwd), env=_always_strings( dict( os.e...
https://github.com/pypa/setuptools_scm/issues/81
Traceback (most recent call last): File "<string>", line 1, in <module> File "/tmp/pip-qg_odikh-build/setup.py", line 234, in <module> zip_safe=False) File "/usr/lib/python3.5/distutils/core.py", line 108, in setup _setup_distribution = dist = klass(attrs) File "/appenv/lib/python3.5/site-packages/setuptools/dist.py", ...
FileNotFoundError
def parse(root, describe_command=DEFAULT_DESCRIBE): real_root, _, ret = do_ex("git rev-parse --show-toplevel", root) if ret: return trace("real root", real_root) if normcase(abspath(realpath(real_root))) != normcase(abspath(realpath(root))): return rev_node, _, ret = do_ex("git rev-p...
def parse(root, describe_command=DEFAULT_DESCRIBE): real_root, _, ret = do_ex("git rev-parse --show-toplevel", root) if ret: return trace("real root", real_root) if abspath(realpath(real_root)) != abspath(realpath(root)): return rev_node, _, ret = do_ex("git rev-parse --verify --quie...
https://github.com/pypa/setuptools_scm/issues/89
(env35) C:\Users\scrut\code\phi\auth [develop +0 ~4 -0 | +0 ~16 -0 !]> dir Directory: C:\Users\scrut\code\phi\auth Mode LastWriteTime Length Name ---- ------------- ------ ---- d----- 6/12/2016 12:38 PM .git d----- 6/12/2016 12:24 PM ...
LookupError
def parse(root): l = do("hg id -i -t", root).split() node = l.pop(0) tags = tags_to_versions(l) # filter tip in degraded mode on old setuptools tags = [x for x in tags if x != "tip"] dirty = node[-1] == "+" if tags: return meta(tags[0], dirty=dirty) if node.strip("+") == "0" * 1...
def parse(root): l = do("hg id -i -t", root).split() node = l.pop(0) tags = tags_to_versions(l) # filter tip in degraded mode on old setuptools tags = [x for x in tags if x != "tip"] dirty = node[-1] == "+" if tags: return meta(tags[0], dirty=dirty) if node.strip("+") == "0" * 1...
https://github.com/pypa/setuptools_scm/issues/72
$ python setup.py test Traceback (most recent call last): File "setup.py", line 61, in <module> setuptools.setup(**setup_params) File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/distutils/core.py", line 108, in setup _setup_distribution = dist = klass(attrs) File "/Library/Frameworks/Python.framewo...
LookupError
def load( cls, path: Union[str, pathlib.Path, io.BufferedIOBase], env: Optional[GymEnv] = None, device: Union[th.device, str] = "auto", **kwargs, ) -> "BaseAlgorithm": """ Load the model from a zip-file :param path: path to the file (or a file-like) where to load the agent from ...
def load( cls, path: Union[str, pathlib.Path, io.BufferedIOBase], env: Optional[GymEnv] = None, device: Union[th.device, str] = "auto", **kwargs, ) -> "BaseAlgorithm": """ Load the model from a zip-file :param path: path to the file (or a file-like) where to load the agent from ...
https://github.com/DLR-RM/stable-baselines3/issues/202
Box(36, 36, 4) Box(4, 36, 36) --------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-176-a54409b23a82> in <module> 1 model.save("custom_env") ----> 2 model = PPO.load("custom_env", custom_env) /opt/conda/li...
ValueError
def main(argv=None): if argv is None: argv = sys.argv[1:] formats = [ ("auto", "(default) detect file type automatically"), ("pe", "Windows PE file"), ("sc32", "32-bit shellcode"), ("sc64", "64-bit shellcode"), ("freeze", "features previously frozen by capa"), ...
def main(argv=None): if argv is None: argv = sys.argv[1:] formats = [ ("auto", "(default) detect file type automatically"), ("pe", "Windows PE file"), ("sc32", "32-bit shellcode"), ("sc64", "64-bit shellcode"), ("freeze", "features previously frozen by capa"), ...
https://github.com/fireeye/capa/issues/328
./capa ../temp/一202009253623543164364364534.exe loading : 100%|██████████████████████████████████████████████████████████████████████████████████████| 345/345 [00:02<00:00, 160.84 rules/s] matching: 100%|█████████████████████████████████████████████████████████████████████████████████████| 1592/1592 [00:28<00:00, 5...
UnicodeDecodeError
def slot_custom_context_menu_requested(self, pos): """slot connected to custom context menu request displays custom context menu to user containing action relevant to the item selected @param pos: cursor position """ model_index = self.indexAt(pos) if not model_index.isValid(): return...
def slot_custom_context_menu_requested(self, pos): """slot connected to custom context menu request displays custom context menu to user containing action relevant to the item selected @param pos: cursor position """ model_index = self.indexAt(pos) item = self.map_index_to_source_item(model_in...
https://github.com/fireeye/capa/issues/315
Traceback (most recent call last): File "c:\users\steve\source\repos\capa\capa\ida\plugin\view.py", line 257, in slot_custom_context_menu_requested item = self.map_index_to_source_item(model_index) File "c:\users\steve\source\repos\capa\capa\ida\plugin\view.py", line 104, in map_index_to_source_item raise ValueError("i...
ValueError
def get_shellcode_vw(sample, arch="auto", should_save=True): """ Return shellcode workspace using explicit arch or via auto detect """ import viv_utils with open(sample, "rb") as f: sample_bytes = f.read() if arch == "auto": # choose arch with most functions, idea by Jay G. ...
def get_shellcode_vw(sample, arch="auto"): """ Return shellcode workspace using explicit arch or via auto detect """ import viv_utils with open(sample, "rb") as f: sample_bytes = f.read() if arch == "auto": # choose arch with most functions, idea by Jay G. vw_cands = [] ...
https://github.com/fireeye/capa/issues/168
C:\tools\capa>capa-v1.0.0-win.exe -r capa-rules-master c:\windows\notepad.exe WARNING:capa:skipping non-.yml file: LICENSE.txt Unwind Info Version: 2 (bailing on .pdata) Traceback (most recent call last): File "capa\main.py", line 646, in <module> File "capa\main.py", line 532, in main File "capa\main.py", line 286, in...
IOError
def get_workspace(path, format, should_save=True): import viv_utils logger.debug("generating vivisect workspace for: %s", path) if format == "auto": if not is_supported_file_type(path): raise UnsupportedFormatError() vw = viv_utils.getWorkspace(path, should_save=should_save) ...
def get_workspace(path, format): import viv_utils logger.debug("generating vivisect workspace for: %s", path) if format == "auto": if not is_supported_file_type(path): raise UnsupportedFormatError() vw = viv_utils.getWorkspace(path) elif format == "pe": vw = viv_util...
https://github.com/fireeye/capa/issues/168
C:\tools\capa>capa-v1.0.0-win.exe -r capa-rules-master c:\windows\notepad.exe WARNING:capa:skipping non-.yml file: LICENSE.txt Unwind Info Version: 2 (bailing on .pdata) Traceback (most recent call last): File "capa\main.py", line 646, in <module> File "capa\main.py", line 532, in main File "capa\main.py", line 286, in...
IOError
def get_extractor_py2(path, format): import capa.features.extractors.viv vw = get_workspace(path, format, should_save=False) try: vw.saveWorkspace() except IOError: # see #168 for discussion around how to handle non-writable directories logger.info( "source director...
def get_extractor_py2(path, format): import capa.features.extractors.viv vw = get_workspace(path, format) return capa.features.extractors.viv.VivisectFeatureExtractor(vw, path)
https://github.com/fireeye/capa/issues/168
C:\tools\capa>capa-v1.0.0-win.exe -r capa-rules-master c:\windows\notepad.exe WARNING:capa:skipping non-.yml file: LICENSE.txt Unwind Info Version: 2 (bailing on .pdata) Traceback (most recent call last): File "capa\main.py", line 646, in <module> File "capa\main.py", line 532, in main File "capa\main.py", line 286, in...
IOError
def render_statement(ostream, match, statement, indent=0): ostream.write(" " * indent) if statement["type"] in ("and", "or", "optional"): ostream.write(statement["type"]) ostream.writeln(":") elif statement["type"] == "not": # this statement is handled specially in `render_match` us...
def render_statement(ostream, match, statement, indent=0): ostream.write(" " * indent) if statement["type"] in ("and", "or", "optional"): ostream.write(statement["type"]) ostream.writeln(":") elif statement["type"] == "not": # this statement is handled specially in `render_match` us...
https://github.com/fireeye/capa/issues/182
61 functions [00:00, 130.17 functions/s] Traceback (most recent call last): File "/usr/local/bin/capa", line 11, in <module> load_entry_point('flare-capa', 'console_scripts', 'capa')() File "/opt/capa/capa/main.py", line 581, in main print(capa.render.render_vverbose(meta, rules, capabilities)) File "/opt/capa/capa/ren...
TypeError
def render_rules(ostream, doc): """ like: ## rules check for OutputDebugString error namespace anti-analysis/anti-debugging/debugger-detection author michael.hunhoff@fireeye.com scope function mbc Anti-Behavioral Analysis::Detect Debugger::Output...
def render_rules(ostream, doc): """ like: ## rules check for OutputDebugString error namespace anti-analysis/anti-debugging/debugger-detection author michael.hunhoff@fireeye.com scope function mbc Anti-Behavioral Analysis::Detect Debugger::Output...
https://github.com/fireeye/capa/issues/182
61 functions [00:00, 130.17 functions/s] Traceback (most recent call last): File "/usr/local/bin/capa", line 11, in <module> load_entry_point('flare-capa', 'console_scripts', 'capa')() File "/opt/capa/capa/main.py", line 581, in main print(capa.render.render_vverbose(meta, rules, capabilities)) File "/opt/capa/capa/ren...
TypeError
def get_functions(self): import capa.features.extractors.ida.helpers as ida_helpers for f in ida_helpers.get_functions(ignore_thunks=True, ignore_libs=True): yield add_va_int_cast(f)
def get_functions(self): for f in capa.features.extractors.ida.helpers.get_functions( ignore_thunks=True, ignore_libs=True ): yield add_va_int_cast(f)
https://github.com/fireeye/capa/issues/93
IDAPython: Error while calling Python callback <OnCreate>: Traceback (most recent call last): File "ida_capa_explorer.py", line 99, in OnCreate self.load_capa_results() File "capa/capa/ida/ida_capa_explorer.py", line 342, in load_capa_results capabilities = capa.main.find_capabilities(rules, capa.features.extractors.id...
ImportError
def get_instructions(self, f, bb): import capa.features.extractors.ida.helpers as ida_helpers for insn in ida_helpers.get_instructions_in_range(bb.start_ea, bb.end_ea): yield add_va_int_cast(insn)
def get_instructions(self, f, bb): for insn in capa.features.extractors.ida.helpers.get_instructions_in_range( bb.start_ea, bb.end_ea ): yield add_va_int_cast(insn)
https://github.com/fireeye/capa/issues/93
IDAPython: Error while calling Python callback <OnCreate>: Traceback (most recent call last): File "ida_capa_explorer.py", line 99, in OnCreate self.load_capa_results() File "capa/capa/ida/ida_capa_explorer.py", line 342, in load_capa_results capabilities = capa.main.find_capabilities(rules, capa.features.extractors.id...
ImportError
def wrapped_strategy(self): if self.__wrapped_strategy is None: if not inspect.isfunction(self.__definition): raise InvalidArgument( ( "Excepted a definition to be a function but got %r of type" " %s instead." ) ...
def wrapped_strategy(self): if self.__wrapped_strategy is None: if not inspect.isfunction(self.__definition): raise InvalidArgument( ( "Excepted a definition to be a function but got %r of type" " %s instead." ) ...
https://github.com/HypothesisWorks/hypothesis/issues/2722
Traceback (most recent call last): File "<string>", line 1, in <module> File "...\hypothesis\strategies\_internal\strategies.py", line 314, in example example_generating_inner_function() File "...\hypothesis\strategies\_internal\strategies.py", line 302, in example_generating_inner_function @settings( File "...\hypothe...
AttributeError
def assert_can_release(): assert not IS_PULL_REQUEST, "Cannot release from pull requests"
def assert_can_release(): assert not IS_PULL_REQUEST, "Cannot release from pull requests" assert has_travis_secrets(), "Cannot release without travis secure vars"
https://github.com/HypothesisWorks/hypothesis/issues/2722
Traceback (most recent call last): File "<string>", line 1, in <module> File "...\hypothesis\strategies\_internal\strategies.py", line 314, in example example_generating_inner_function() File "...\hypothesis\strategies\_internal\strategies.py", line 302, in example_generating_inner_function @settings( File "...\hypothe...
AttributeError
def deploy(): print("Current head: ", HEAD) print("Current master:", MASTER) if not tools.is_ancestor(HEAD, MASTER): print("Not deploying due to not being on master") sys.exit(0) if "PYPI_TOKEN" not in os.environ: print("Running without access to secure variables, so no deploy...
def deploy(): print("Current head: ", HEAD) print("Current master:", MASTER) if not tools.is_ancestor(HEAD, MASTER): print("Not deploying due to not being on master") sys.exit(0) if not tools.has_travis_secrets(): print("Running without access to secure variables, so no deploy...
https://github.com/HypothesisWorks/hypothesis/issues/2722
Traceback (most recent call last): File "<string>", line 1, in <module> File "...\hypothesis\strategies\_internal\strategies.py", line 314, in example example_generating_inner_function() File "...\hypothesis\strategies\_internal\strategies.py", line 302, in example_generating_inner_function @settings( File "...\hypothe...
AttributeError
def upload_distribution(): """Upload the built package to crates.io.""" tools.assert_can_release() # Yes, cargo really will only look in this file. Yes this is terrible. # This only runs in CI, so we may be assumed to own it, but still. unlink_if_present(CARGO_CREDENTIALS) # symlink so that th...
def upload_distribution(): """Upload the built package to crates.io.""" tools.assert_can_release() # Yes, cargo really will only look in this file. Yes this is terrible. # This only runs on Travis, so we may be assumed to own it, but still. unlink_if_present(CARGO_CREDENTIALS) # symlink so tha...
https://github.com/HypothesisWorks/hypothesis/issues/2722
Traceback (most recent call last): File "<string>", line 1, in <module> File "...\hypothesis\strategies\_internal\strategies.py", line 314, in example example_generating_inner_function() File "...\hypothesis\strategies\_internal\strategies.py", line 302, in example_generating_inner_function @settings( File "...\hypothe...
AttributeError
def upload_distribution(): tools.assert_can_release() subprocess.check_call( [ sys.executable, "-m", "twine", "upload", "--skip-existing", "--username=__token__", os.path.join(DIST, "*"), ] ) # Construc...
def upload_distribution(): tools.assert_can_release() subprocess.check_call( [ sys.executable, "-m", "twine", "upload", "--skip-existing", "--config-file", tools.PYPIRC, os.path.join(DIST, "*"), ] ...
https://github.com/HypothesisWorks/hypothesis/issues/2722
Traceback (most recent call last): File "<string>", line 1, in <module> File "...\hypothesis\strategies\_internal\strategies.py", line 314, in example example_generating_inner_function() File "...\hypothesis\strategies\_internal\strategies.py", line 302, in example_generating_inner_function @settings( File "...\hypothe...
AttributeError
def execute_explicit_examples(state, wrapped_test, arguments, kwargs): original_argspec = getfullargspec(state.test) for example in reversed(getattr(wrapped_test, "hypothesis_explicit_examples", ())): example_kwargs = dict(original_argspec.kwonlydefaults or {}) if example.args: if l...
def execute_explicit_examples(state, wrapped_test, arguments, kwargs): original_argspec = getfullargspec(state.test) for example in reversed(getattr(wrapped_test, "hypothesis_explicit_examples", ())): example_kwargs = dict(original_argspec.kwonlydefaults or {}) if example.args: if l...
https://github.com/HypothesisWorks/hypothesis/issues/2696
Traceback (most recent call last): File "tmp.py", line 10, in <module> f() File "tmp.py", line 5, in f @hypothesis.settings(verbosity=hypothesis.Verbosity.quiet) File "/home/gram/.local/lib/python3.8/site-packages/hypothesis/core.py", line 1090, in wrapped_test errors = list( File "/home/gram/.local/lib/python3.8/site-...
IndexError
def get_entry_points(): yield from ()
def get_entry_points(): yield from pkg_resources.iter_entry_points("hypothesis")
https://github.com/HypothesisWorks/hypothesis/issues/2668
Traceback (most recent call last): File "/run/shm/bazel-sandbox.58afe50bce693a45c42be3530f1579c8f12116963ef7e303ad72c1a2b06ed6f2/processwrapper-sandbox/4962/execroot/__main__/bazel-out/k8-fastbuild/bin/perception/cloud/proto_format_test.runfiles/internal_pip_dependency_hypothesis/pypi__hypothesis/hypothesis/entry_point...
ImportError
def given( *_given_arguments: Union[SearchStrategy, InferType], **_given_kwargs: Union[SearchStrategy, InferType], ) -> Callable[[Callable[..., None]], Callable[..., None]]: """A decorator for turning a test function that accepts arguments into a randomized test. This is the main entry point to Hyp...
def given( *_given_arguments: Union[SearchStrategy, InferType], **_given_kwargs: Union[SearchStrategy, InferType], ) -> Callable[[Callable[..., None]], Callable[..., None]]: """A decorator for turning a test function that accepts arguments into a randomized test. This is the main entry point to Hyp...
https://github.com/HypothesisWorks/hypothesis/issues/2462
Traceback (most recent call last): File "/tests/common/test_components.py", line 91, in test__located_component_multiple_components_registration c1_name=registry_identifier_strategy(), File "/lib/python3.8/site-packages/hypothesis/core.py", line 1102, in wrapped_test raise the_error_hypothesis_found File "/tests/common...
TypeError
def resolve_Type(thing): if getattr(thing, "__args__", None) is None: return st.just(type) args = (thing.__args__[0],) if getattr(args[0], "__origin__", None) is typing.Union: args = args[0].__args__ elif hasattr(args[0], "__union_params__"): # pragma: no cover args = args[0].__...
def resolve_Type(thing): if thing.__args__ is None: return st.just(type) args = (thing.__args__[0],) if getattr(args[0], "__origin__", None) is typing.Union: args = args[0].__args__ elif hasattr(args[0], "__union_params__"): # pragma: no cover args = args[0].__union_params__ ...
https://github.com/HypothesisWorks/hypothesis/issues/2444
______________________________________________________ test_resolves_weird_types[typ0] _______________________________________________________ Traceback (most recent call last): File "/home/pviktori/dev/hypothesis/hypothesis-python/tests/cover/test_lookup.py", line 249, in test_resolves_weird_types from_type(typ).examp...
hypothesis.errors.ResolutionFailed
def cacheable(fn: T) -> T: @proxies(fn) def cached_strategy(*args, **kwargs): try: kwargs_cache_key = {(k, convert_value(v)) for k, v in kwargs.items()} except TypeError: return fn(*args, **kwargs) cache_key = (fn, tuple(map(convert_value, args)), frozenset(kwargs...
def cacheable(fn: T) -> T: @proxies(fn) def cached_strategy(*args, **kwargs): try: kwargs_cache_key = {(k, convert_value(v)) for k, v in kwargs.items()} except TypeError: return fn(*args, **kwargs) cache_key = (fn, tuple(map(convert_value, args)), frozenset(kwargs...
https://github.com/HypothesisWorks/hypothesis/issues/2433
File /.virtualenvs/schemathesis/lib/python3.8/site-packages/hypothesis/strategies/_internal/core.py", line 172, in cached_strategy E STRATEGY_CACHE[cache_key] = result E File "/.virtualenvs/schemathesis/lib/python3.8/site-packages/hypothesis/internal/cache.py", line 121, in __setitem__ E ...
AssertionError
def cached_strategy(*args, **kwargs): try: kwargs_cache_key = {(k, convert_value(v)) for k, v in kwargs.items()} except TypeError: return fn(*args, **kwargs) cache_key = (fn, tuple(map(convert_value, args)), frozenset(kwargs_cache_key)) cache = get_cache() try: if cache_key i...
def cached_strategy(*args, **kwargs): try: kwargs_cache_key = {(k, convert_value(v)) for k, v in kwargs.items()} except TypeError: return fn(*args, **kwargs) cache_key = (fn, tuple(map(convert_value, args)), frozenset(kwargs_cache_key)) try: if cache_key in STRATEGY_CACHE: ...
https://github.com/HypothesisWorks/hypothesis/issues/2433
File /.virtualenvs/schemathesis/lib/python3.8/site-packages/hypothesis/strategies/_internal/core.py", line 172, in cached_strategy E STRATEGY_CACHE[cache_key] = result E File "/.virtualenvs/schemathesis/lib/python3.8/site-packages/hypothesis/internal/cache.py", line 121, in __setitem__ E ...
AssertionError
def generate_new_examples(self): if Phase.generate not in self.settings.phases: return if self.interesting_examples: # The example database has failing examples from a previous run, # so we'd rather report that they're still failing ASAP than take # the time to look for additiona...
def generate_new_examples(self): if Phase.generate not in self.settings.phases: return if self.interesting_examples: # The example database has failing examples from a previous run, # so we'd rather report that they're still failing ASAP than take # the time to look for additiona...
https://github.com/HypothesisWorks/hypothesis/issues/1937
______________________ test_explore_an_arbitrary_language ______________________ [gw1] linux2 -- Python 2.7.14 /home/vsts/work/1/s/hypothesis-python/.tox/py27-full/bin/python Traceback (most recent call last): File "/home/vsts/work/1/s/hypothesis-python/tests/nocover/test_explore_arbitrary_languages.py", line 119, in t...
IndexError
def floats( min_value=None, # type: Real max_value=None, # type: Real allow_nan=None, # type: bool allow_infinity=None, # type: bool width=64, # type: int exclude_min=False, # type: bool exclude_max=False, # type: bool ): # type: (...) -> SearchStrategy[float] """Returns a str...
def floats( min_value=None, # type: Real max_value=None, # type: Real allow_nan=None, # type: bool allow_infinity=None, # type: bool width=64, # type: int exclude_min=False, # type: bool exclude_max=False, # type: bool ): # type: (...) -> SearchStrategy[float] """Returns a str...
https://github.com/HypothesisWorks/hypothesis/issues/1859
================================================================================================================================= FAILURES ================================================================================================================================= ___________________________________________________...
AssertionError
def next_up(value, width=64): """Return the first float larger than finite `val` - IEEE 754's `nextUp`. From https://stackoverflow.com/a/10426033, with thanks to Mark Dickinson. """ assert isinstance(value, float) if math.isnan(value) or (math.isinf(value) and value > 0): return value i...
def next_up(value, width=64): """Return the first float larger than finite `val` - IEEE 754's `nextUp`. From https://stackoverflow.com/a/10426033, with thanks to Mark Dickinson. """ assert isinstance(value, float) if math.isnan(value) or (math.isinf(value) and value > 0): return value i...
https://github.com/HypothesisWorks/hypothesis/issues/1859
================================================================================================================================= FAILURES ================================================================================================================================= ___________________________________________________...
AssertionError
def extract_lambda_source(f): """Extracts a single lambda expression from the string source. Returns a string indicating an unknown body if it gets confused in any way. This is not a good function and I am sorry for it. Forgive me my sins, oh lord """ argspec = getfullargspec(f) arg_strings...
def extract_lambda_source(f): """Extracts a single lambda expression from the string source. Returns a string indicating an unknown body if it gets confused in any way. This is not a good function and I am sorry for it. Forgive me my sins, oh lord """ argspec = getfullargspec(f) arg_strings...
https://github.com/HypothesisWorks/hypothesis/issues/1700
$ python3.6 -m pytest test2.py --tb=short pyenv-implicit: found multiple python3.6 in pyenv. Use version 3.6. ================================================================ test session starts ================================================================ platform darwin -- Python 3.6.5, pytest-4.0.2, py-1.7.0, plu...
ValueError
def given( *given_arguments, # type: Union[SearchStrategy, InferType] **given_kwargs, # type: Union[SearchStrategy, InferType] ): # type: (...) -> Callable[[Callable[..., None]], Callable[..., None]] """A decorator for turning a test function that accepts arguments into a randomized test. Thi...
def given( *given_arguments, # type: Union[SearchStrategy, InferType] **given_kwargs, # type: Union[SearchStrategy, InferType] ): # type: (...) -> Callable[[Callable[..., None]], Callable[..., None]] """A decorator for turning a test function that accepts arguments into a randomized test. Thi...
https://github.com/HypothesisWorks/hypothesis/issues/1648
Traceback (most recent call last): File "/home/jenkins/workspace/4485-S2JEK2AOWI4X57D@2/cryptography/.tox/py27/local/lib/python2.7/site-packages/pytest.py", line 77, in <module> raise SystemExit(pytest.main()) File "/home/jenkins/workspace/4485-S2JEK2AOWI4X57D@2/cryptography/.tox/py27/local/lib/python2.7/site-packages/...
SyntaxError
def __init__(self, max_length, draw_bytes): self.max_length = max_length self.is_find = False self._draw_bytes = draw_bytes self.overdraw = 0 self.level = 0 self.block_starts = {} self.blocks = [] self.buffer = bytearray() self.output = "" self.status = Status.VALID self.froz...
def __init__(self, max_length, draw_bytes): self.max_length = max_length self.is_find = False self._draw_bytes = draw_bytes self.overdraw = 0 self.level = 0 self.block_starts = {} self.blocks = [] self.buffer = bytearray() self.output = "" self.status = Status.VALID self.froz...
https://github.com/HypothesisWorks/hypothesis/issues/1299
File "/home/david/hypothesis/hypothesis-python/src/hypothesis/internal/conjecture/engine.py", line 1325, in greedy_shrink self.shrink_offset_pairs() File "/home/david/hypothesis/hypothesis-python/src/hypothesis/internal/conjecture/engine.py", line 1581, in shrink_offset_pairs block_val = int_from_block(j) File "/home/d...
IndexError
def write(self, string): self.__assert_not_frozen("write") self.__check_capacity(len(string)) assert isinstance(string, hbytes) original = self.index self.__write(string) self.forced_indices.update(hrange(original, self.index)) self.forced_blocks.add(len(self.blocks) - 1) return string
def write(self, string): self.__assert_not_frozen("write") self.__check_capacity(len(string)) assert isinstance(string, hbytes) original = self.index self.__write(string) self.forced_indices.update(hrange(original, self.index)) return string
https://github.com/HypothesisWorks/hypothesis/issues/1299
File "/home/david/hypothesis/hypothesis-python/src/hypothesis/internal/conjecture/engine.py", line 1325, in greedy_shrink self.shrink_offset_pairs() File "/home/david/hypothesis/hypothesis-python/src/hypothesis/internal/conjecture/engine.py", line 1581, in shrink_offset_pairs block_val = int_from_block(j) File "/home/d...
IndexError