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 _update_block(blk): """ This method will construct any additional indices in a block resulting from the discretization of a ContinuousSet. For Block-derived components we check if the Block construct method has been overridden. If not then we update it like a regular block. If construct has ...
def _update_block(blk): """ This method will construct any additional indices in a block resulting from the discretization of a ContinuousSet. For Block-derived components we check if the Block construct method has been overridden. If not then we update it like a regular block. If construct has ...
https://github.com/Pyomo/pyomo/issues/353
$ python -i temp.py Traceback (most recent call last): File "temp.py", line 26, in <module> disc.apply_to(m, nfe=2) File "/home/blnicho/Research/pyomo/pyomo/core/base/plugin.py", line 334, in apply_to self._apply_to(model, **kwds) File "/home/blnicho/Research/pyomo/pyomo/dae/plugins/finitedifference.py", line 187, in _...
AttributeError
def _apply_to(self, instance, **kwds): """ Applies specified collocation transformation to a modeling instance Keyword Arguments: nfe The desired number of finite element points to be included in the discretization. ncp The desired number of collocation points ...
def _apply_to(self, instance, **kwds): """ Applies specified collocation transformation to a modeling instance Keyword Arguments: nfe The desired number of finite element points to be included in the discretization. ncp The desired number of collocation points ...
https://github.com/Pyomo/pyomo/issues/353
$ python -i temp.py Traceback (most recent call last): File "temp.py", line 26, in <module> disc.apply_to(m, nfe=2) File "/home/blnicho/Research/pyomo/pyomo/core/base/plugin.py", line 334, in apply_to self._apply_to(model, **kwds) File "/home/blnicho/Research/pyomo/pyomo/dae/plugins/finitedifference.py", line 187, in _...
AttributeError
def _transformBlock(self, block, currentds): self._fe = {} for ds in block.component_objects(ContinuousSet, descend_into=True): if currentds is None or currentds == ds.name: generate_finite_elements(ds, self._nfe[currentds]) if not ds.get_changed(): if len(ds) - 1...
def _transformBlock(self, block, currentds): self._fe = {} for ds in itervalues(block.component_map(ContinuousSet)): if currentds is None or currentds == ds.name: generate_finite_elements(ds, self._nfe[currentds]) if not ds.get_changed(): if len(ds) - 1 > self._nf...
https://github.com/Pyomo/pyomo/issues/353
$ python -i temp.py Traceback (most recent call last): File "temp.py", line 26, in <module> disc.apply_to(m, nfe=2) File "/home/blnicho/Research/pyomo/pyomo/core/base/plugin.py", line 334, in apply_to self._apply_to(model, **kwds) File "/home/blnicho/Research/pyomo/pyomo/dae/plugins/finitedifference.py", line 187, in _...
AttributeError
def _apply_to(self, instance, **kwds): """ Applies the transformation to a modeling instance Keyword Arguments: nfe The desired number of finite element points to be included in the discretization. wrt Indicates which ContinuousSet the transformation ...
def _apply_to(self, instance, **kwds): """ Applies the transformation to a modeling instance Keyword Arguments: nfe The desired number of finite element points to be included in the discretization. wrt Indicates which ContinuousSet the transformation ...
https://github.com/Pyomo/pyomo/issues/353
$ python -i temp.py Traceback (most recent call last): File "temp.py", line 26, in <module> disc.apply_to(m, nfe=2) File "/home/blnicho/Research/pyomo/pyomo/core/base/plugin.py", line 334, in apply_to self._apply_to(model, **kwds) File "/home/blnicho/Research/pyomo/pyomo/dae/plugins/finitedifference.py", line 187, in _...
AttributeError
def _transformBlock(self, block, currentds): self._fe = {} for ds in block.component_objects(ContinuousSet): if currentds is None or currentds == ds.name or currentds is ds: generate_finite_elements(ds, self._nfe[currentds]) if not ds.get_changed(): if len(ds) - 1...
def _transformBlock(self, block, currentds): self._fe = {} for ds in itervalues(block.component_map(ContinuousSet)): if currentds is None or currentds == ds.name: generate_finite_elements(ds, self._nfe[currentds]) if not ds.get_changed(): if len(ds) - 1 > self._nf...
https://github.com/Pyomo/pyomo/issues/353
$ python -i temp.py Traceback (most recent call last): File "temp.py", line 26, in <module> disc.apply_to(m, nfe=2) File "/home/blnicho/Research/pyomo/pyomo/core/base/plugin.py", line 334, in apply_to self._apply_to(model, **kwds) File "/home/blnicho/Research/pyomo/pyomo/dae/plugins/finitedifference.py", line 187, in _...
AttributeError
def expand_components(block): """ Loop over block components and try expanding them. If expansion fails then save the component and try again later. This function has some built-in robustness for block-hierarchical models with circular references but will not work for all cases. """ # Used ...
def expand_components(block): """ Loop over block components and try expanding them. If expansion fails then save the component and try again later. This function has some built-in robustness for block-hierarchical models with circular references but will not work for all cases. """ expansi...
https://github.com/Pyomo/pyomo/issues/353
$ python -i temp.py Traceback (most recent call last): File "temp.py", line 26, in <module> disc.apply_to(m, nfe=2) File "/home/blnicho/Research/pyomo/pyomo/core/base/plugin.py", line 334, in apply_to self._apply_to(model, **kwds) File "/home/blnicho/Research/pyomo/pyomo/dae/plugins/finitedifference.py", line 187, in _...
AttributeError
def update_contset_indexed_component(comp, expansion_map): """ Update any model components which are indexed by a ContinuousSet that has changed """ # This implemenation will *NOT* check for or update # components which use a ContinuousSet implicitly. ex) an # objective function which itera...
def update_contset_indexed_component(comp, expansion_map): """ Update any model components which are indexed by a ContinuousSet that has changed """ # This implemenation will *NOT* check for or update # components which use a ContinuousSet implicitly. ex) an # objective function which itera...
https://github.com/Pyomo/pyomo/issues/353
$ python -i temp.py Traceback (most recent call last): File "temp.py", line 26, in <module> disc.apply_to(m, nfe=2) File "/home/blnicho/Research/pyomo/pyomo/core/base/plugin.py", line 334, in apply_to self._apply_to(model, **kwds) File "/home/blnicho/Research/pyomo/pyomo/dae/plugins/finitedifference.py", line 187, in _...
AttributeError
def expand_components(block): """ Loop over block components and try expanding them. If expansion fails then save the component and try again later. This function has some built-in robustness for block-hierarchical models with circular references but will not work for all cases. """ # expan...
def expand_components(block): """ Loop over block components and try expanding them. If expansion fails then save the component and try again later. This function has some built-in robustness for block-hierarchical models with circular references but will not work for all cases. """ # Used ...
https://github.com/Pyomo/pyomo/issues/353
$ python -i temp.py Traceback (most recent call last): File "temp.py", line 26, in <module> disc.apply_to(m, nfe=2) File "/home/blnicho/Research/pyomo/pyomo/core/base/plugin.py", line 334, in apply_to self._apply_to(model, **kwds) File "/home/blnicho/Research/pyomo/pyomo/dae/plugins/finitedifference.py", line 187, in _...
AttributeError
def to_parquet( # pylint: disable=too-many-arguments,too-many-locals df: pd.DataFrame, path: str, index: bool = False, compression: Optional[str] = "snappy", max_rows_by_file: Optional[int] = None, use_threads: bool = True, boto3_session: Optional[boto3.Session] = None, s3_additional_kw...
def to_parquet( # pylint: disable=too-many-arguments,too-many-locals df: pd.DataFrame, path: str, index: bool = False, compression: Optional[str] = "snappy", max_rows_by_file: Optional[int] = None, use_threads: bool = True, boto3_session: Optional[boto3.Session] = None, s3_additional_kw...
https://github.com/awslabs/aws-data-wrangler/issues/549
Collecting awswrangler Downloading https://files.pythonhosted.org/packages/28/57/debf8f714d5b1a14ce39a6e8bbd1105beaab8490f96c2673fe04bf27cedb/awswrangler-2.4.0-py3-none-any.whl (171kB) Requirement already satisfied: pandas<1.3.0,>=1.1.0 in /usr/local/lib64/python3.7/site-packages (from awswrangler) Requirement already ...
OSError
def to_csv( # pylint: disable=too-many-arguments,too-many-locals,too-many-statements df: pd.DataFrame, path: str, sep: str = ",", index: bool = True, columns: Optional[List[str]] = None, use_threads: bool = True, boto3_session: Optional[boto3.Session] = None, s3_additional_kwargs: Optio...
def to_csv( # pylint: disable=too-many-arguments,too-many-locals,too-many-statements df: pd.DataFrame, path: str, sep: str = ",", index: bool = True, columns: Optional[List[str]] = None, use_threads: bool = True, boto3_session: Optional[boto3.Session] = None, s3_additional_kwargs: Optio...
https://github.com/awslabs/aws-data-wrangler/issues/549
Collecting awswrangler Downloading https://files.pythonhosted.org/packages/28/57/debf8f714d5b1a14ce39a6e8bbd1105beaab8490f96c2673fe04bf27cedb/awswrangler-2.4.0-py3-none-any.whl (171kB) Requirement already satisfied: pandas<1.3.0,>=1.1.0 in /usr/local/lib64/python3.7/site-packages (from awswrangler) Requirement already ...
OSError
def unload( sql: str, path: str, con: redshift_connector.Connection, iam_role: Optional[str] = None, aws_access_key_id: Optional[str] = None, aws_secret_access_key: Optional[str] = None, aws_session_token: Optional[str] = None, region: Optional[str] = None, max_file_size: Optional[fl...
def unload( sql: str, path: str, con: redshift_connector.Connection, iam_role: Optional[str] = None, aws_access_key_id: Optional[str] = None, aws_secret_access_key: Optional[str] = None, aws_session_token: Optional[str] = None, region: Optional[str] = None, max_file_size: Optional[fl...
https://github.com/awslabs/aws-data-wrangler/issues/505
--------------------------------------------------------------------------- ProgrammingError Traceback (most recent call last) <ipython-input-39-489fc07fb9d7> in <module> 2 3 ----> 4 wr.redshift.copy( 5 df=df, 6 path=path, ~/miniconda3/envs/leadgen/lib/python3.8/site-packages/awswrangl...
ProgrammingError
def copy( # pylint: disable=too-many-arguments df: pd.DataFrame, path: str, con: redshift_connector.Connection, table: str, schema: str, iam_role: Optional[str] = None, aws_access_key_id: Optional[str] = None, aws_secret_access_key: Optional[str] = None, aws_session_token: Optional[...
def copy( # pylint: disable=too-many-arguments df: pd.DataFrame, path: str, con: redshift_connector.Connection, table: str, schema: str, iam_role: Optional[str] = None, aws_access_key_id: Optional[str] = None, aws_secret_access_key: Optional[str] = None, aws_session_token: Optional[...
https://github.com/awslabs/aws-data-wrangler/issues/505
--------------------------------------------------------------------------- ProgrammingError Traceback (most recent call last) <ipython-input-39-489fc07fb9d7> in <module> 2 3 ----> 4 wr.redshift.copy( 5 df=df, 6 path=path, ~/miniconda3/envs/leadgen/lib/python3.8/site-packages/awswrangl...
ProgrammingError
def try_it( f: Callable[..., Any], ex: Any, ex_code: Optional[str] = None, base: float = 1.0, max_num_tries: int = 3, **kwargs: Any, ) -> Any: """Run function with decorrelated Jitter. Reference: https://aws.amazon.com/blogs/architecture/exponential-backoff-and-jitter/ """ delay...
def try_it( f: Callable[..., Any], ex: Any, base: float = 1.0, max_num_tries: int = 3, **kwargs: Any, ) -> Any: """Run function with decorrelated Jitter. Reference: https://aws.amazon.com/blogs/architecture/exponential-backoff-and-jitter/ """ delay: float = base for i in range(m...
https://github.com/awslabs/aws-data-wrangler/issues/465
Traceback (most recent call last): File "/usr/local/Cellar/python/3.7.8/Frameworks/Python.framework/Versions/3.7/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap self.run() File "/usr/local/Cellar/python/3.7.8/Frameworks/Python.framework/Versions/3.7/lib/python3.7/multiprocessing/process.py", line 99,...
botocore.exceptions.ClientError
def _start_query_execution( sql: str, wg_config: _WorkGroupConfig, database: Optional[str] = None, data_source: Optional[str] = None, s3_output: Optional[str] = None, workgroup: Optional[str] = None, encryption: Optional[str] = None, kms_key: Optional[str] = None, boto3_session: Opti...
def _start_query_execution( sql: str, wg_config: _WorkGroupConfig, database: Optional[str] = None, data_source: Optional[str] = None, s3_output: Optional[str] = None, workgroup: Optional[str] = None, encryption: Optional[str] = None, kms_key: Optional[str] = None, boto3_session: Opti...
https://github.com/awslabs/aws-data-wrangler/issues/465
Traceback (most recent call last): File "/usr/local/Cellar/python/3.7.8/Frameworks/Python.framework/Versions/3.7/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap self.run() File "/usr/local/Cellar/python/3.7.8/Frameworks/Python.framework/Versions/3.7/lib/python3.7/multiprocessing/process.py", line 99,...
botocore.exceptions.ClientError
def get_work_group( workgroup: str, boto3_session: Optional[boto3.Session] = None ) -> Dict[str, Any]: """Return information about the workgroup with the specified name. Parameters ---------- workgroup : str Work Group name. boto3_session : boto3.Session(), optional Boto3 Sessio...
def get_work_group( workgroup: str, boto3_session: Optional[boto3.Session] = None ) -> Dict[str, Any]: """Return information about the workgroup with the specified name. Parameters ---------- workgroup : str Work Group name. boto3_session : boto3.Session(), optional Boto3 Sessio...
https://github.com/awslabs/aws-data-wrangler/issues/465
Traceback (most recent call last): File "/usr/local/Cellar/python/3.7.8/Frameworks/Python.framework/Versions/3.7/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap self.run() File "/usr/local/Cellar/python/3.7.8/Frameworks/Python.framework/Versions/3.7/lib/python3.7/multiprocessing/process.py", line 99,...
botocore.exceptions.ClientError
def wait_query( query_execution_id: str, boto3_session: Optional[boto3.Session] = None ) -> Dict[str, Any]: """Wait for the query end. Parameters ---------- query_execution_id : str Athena query execution ID. boto3_session : boto3.Session(), optional Boto3 Session. The default b...
def wait_query( query_execution_id: str, boto3_session: Optional[boto3.Session] = None ) -> Dict[str, Any]: """Wait for the query end. Parameters ---------- query_execution_id : str Athena query execution ID. boto3_session : boto3.Session(), optional Boto3 Session. The default b...
https://github.com/awslabs/aws-data-wrangler/issues/465
Traceback (most recent call last): File "/usr/local/Cellar/python/3.7.8/Frameworks/Python.framework/Versions/3.7/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap self.run() File "/usr/local/Cellar/python/3.7.8/Frameworks/Python.framework/Versions/3.7/lib/python3.7/multiprocessing/process.py", line 99,...
botocore.exceptions.ClientError
def get_query_execution( query_execution_id: str, boto3_session: Optional[boto3.Session] = None ) -> Dict[str, Any]: """Fetch query execution details. https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/athena.html#Athena.Client.get_query_execution Parameters ---------- ...
def get_query_execution( query_execution_id: str, boto3_session: Optional[boto3.Session] = None ) -> Dict[str, Any]: """Fetch query execution details. https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/athena.html#Athena.Client.get_query_execution Parameters ---------- ...
https://github.com/awslabs/aws-data-wrangler/issues/465
Traceback (most recent call last): File "/usr/local/Cellar/python/3.7.8/Frameworks/Python.framework/Versions/3.7/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap self.run() File "/usr/local/Cellar/python/3.7.8/Frameworks/Python.framework/Versions/3.7/lib/python3.7/multiprocessing/process.py", line 99,...
botocore.exceptions.ClientError
def get_connection( name: str, catalog_id: Optional[str] = None, boto3_session: Optional[boto3.Session] = None, ) -> Dict[str, Any]: """Get Glue connection details. Parameters ---------- name : str Connection name. catalog_id : str, optional The ID of the Data Catalog fr...
def get_connection( name: str, catalog_id: Optional[str] = None, boto3_session: Optional[boto3.Session] = None, ) -> Dict[str, Any]: """Get Glue connection details. Parameters ---------- name : str Connection name. catalog_id : str, optional The ID of the Data Catalog fr...
https://github.com/awslabs/aws-data-wrangler/issues/465
Traceback (most recent call last): File "/usr/local/Cellar/python/3.7.8/Frameworks/Python.framework/Versions/3.7/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap self.run() File "/usr/local/Cellar/python/3.7.8/Frameworks/Python.framework/Versions/3.7/lib/python3.7/multiprocessing/process.py", line 99,...
botocore.exceptions.ClientError
def client(service_name: str, session: Optional[boto3.Session] = None) -> boto3.client: """Create a valid boto3.client.""" return ensure_session(session=session).client( service_name=service_name, use_ssl=True, config=botocore_config() )
def client(service_name: str, session: Optional[boto3.Session] = None) -> boto3.client: """Create a valid boto3.client.""" return ensure_session(session=session).client( service_name=service_name, use_ssl=True, config=botocore.config.Config( retries={"max_attempts": 5}, conne...
https://github.com/awslabs/aws-data-wrangler/issues/403
File "/glue/lib/installation/okra_datalake/scraping.py", line 235, in copy_files wr.s3.copy_objects(filtered_files, s3_src_dir, s3_dst_dir) File "/glue/lib/installation/awswrangler/s3/_copy.py", line 187, in copy_objects _copy_objects(batch=batch, use_threads=use_threads, boto3_session=session) File "/glue/lib/installa...
botocore.exceptions.InvalidRetryConfigurationError
def resource( service_name: str, session: Optional[boto3.Session] = None ) -> boto3.resource: """Create a valid boto3.resource.""" return ensure_session(session=session).resource( service_name=service_name, use_ssl=True, config=botocore_config() )
def resource( service_name: str, session: Optional[boto3.Session] = None ) -> boto3.resource: """Create a valid boto3.resource.""" return ensure_session(session=session).resource( service_name=service_name, use_ssl=True, config=botocore.config.Config( retries={"max_attemp...
https://github.com/awslabs/aws-data-wrangler/issues/403
File "/glue/lib/installation/okra_datalake/scraping.py", line 235, in copy_files wr.s3.copy_objects(filtered_files, s3_src_dir, s3_dst_dir) File "/glue/lib/installation/awswrangler/s3/_copy.py", line 187, in copy_objects _copy_objects(batch=batch, use_threads=use_threads, boto3_session=session) File "/glue/lib/installa...
botocore.exceptions.InvalidRetryConfigurationError
def _fetch_csv_result( query_metadata: _QueryMetadata, keep_files: bool, chunksize: Optional[int], use_threads: bool, boto3_session: boto3.Session, ) -> Union[pd.DataFrame, Iterator[pd.DataFrame]]: _chunksize: Optional[int] = chunksize if isinstance(chunksize, int) else None _logger.debug("_...
def _fetch_csv_result( query_metadata: _QueryMetadata, keep_files: bool, chunksize: Optional[int], use_threads: bool, boto3_session: boto3.Session, ) -> Union[pd.DataFrame, Iterator[pd.DataFrame]]: _chunksize: Optional[int] = chunksize if isinstance(chunksize, int) else None _logger.debug("_...
https://github.com/awslabs/aws-data-wrangler/issues/351
TypeError: Cannot cast array data from dtype('O') to dtype('float64') according to the rule 'safe' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "runner.py", line 35, in <module> }, {}) File "/Users/quarentine/dev/upside/ami-reports/report-generators/athen...
ValueError
def _get_table_input( database: str, table: str, boto3_session: Optional[boto3.Session], catalog_id: Optional[str] = None, ) -> Optional[Dict[str, Any]]: client_glue: boto3.client = _utils.client( service_name="glue", session=boto3_session ) args: Dict[str, str] = {} if catalog_i...
def _get_table_input( database: str, table: str, boto3_session: Optional[boto3.Session], catalog_id: Optional[str] = None, ) -> Optional[Dict[str, str]]: client_glue: boto3.client = _utils.client( service_name="glue", session=boto3_session ) args: Dict[str, str] = {} if catalog_i...
https://github.com/awslabs/aws-data-wrangler/issues/315
Traceback (most recent call last): File "./src/upload_data_to_s3.py", line 88, in <module> upload_local_files_to_dataset(full_refresh=False) File "./src/upload_data_to_s3.py", line 83, in upload_local_files_to_dataset partition_cols=['year']) File "/home/circleci/project/venv/lib/python3.7/site-packages/awswrangler/s3....
botocore.exceptions.ParamValidationError
def databases( limit: int = 100, catalog_id: Optional[str] = None, boto3_session: Optional[boto3.Session] = None, ) -> pd.DataFrame: """Get a Pandas DataFrame with all listed databases. Parameters ---------- limit : int, optional Max number of tables to be returned. catalog_id :...
def databases( limit: int = 100, catalog_id: Optional[str] = None, boto3_session: Optional[boto3.Session] = None, ) -> pd.DataFrame: """Get a Pandas DataFrame with all listed databases. Parameters ---------- limit : int, optional Max number of tables to be returned. catalog_id :...
https://github.com/awslabs/aws-data-wrangler/issues/294
wr.catalog.get_table_parameters(database="sa-m2", table="item") {'CrawlerSchemaDeserializerVersion': '1.0', 'CrawlerSchemaSerializerVersion': '1.0', 'UPDATED_BY_CRAWLER': 'sa-m2', 'averageRecordSize': '25', 'classification': 'parquet', 'compressionType': 'none', 'objectCount': '54', 'recordCount': '12349020', 'sizeKey'...
KeyError
def tables( limit: int = 100, catalog_id: Optional[str] = None, database: Optional[str] = None, search_text: Optional[str] = None, name_contains: Optional[str] = None, name_prefix: Optional[str] = None, name_suffix: Optional[str] = None, boto3_session: Optional[boto3.Session] = None, ) -...
def tables( limit: int = 100, catalog_id: Optional[str] = None, database: Optional[str] = None, search_text: Optional[str] = None, name_contains: Optional[str] = None, name_prefix: Optional[str] = None, name_suffix: Optional[str] = None, boto3_session: Optional[boto3.Session] = None, ) -...
https://github.com/awslabs/aws-data-wrangler/issues/294
wr.catalog.get_table_parameters(database="sa-m2", table="item") {'CrawlerSchemaDeserializerVersion': '1.0', 'CrawlerSchemaSerializerVersion': '1.0', 'UPDATED_BY_CRAWLER': 'sa-m2', 'averageRecordSize': '25', 'classification': 'parquet', 'compressionType': 'none', 'objectCount': '54', 'recordCount': '12349020', 'sizeKey'...
KeyError
def get_table_description( database: str, table: str, catalog_id: Optional[str] = None, boto3_session: Optional[boto3.Session] = None, ) -> Optional[str]: """Get table description. Parameters ---------- database : str Database name. table : str Table name. catalo...
def get_table_description( database: str, table: str, catalog_id: Optional[str] = None, boto3_session: Optional[boto3.Session] = None, ) -> str: """Get table description. Parameters ---------- database : str Database name. table : str Table name. catalog_id : str...
https://github.com/awslabs/aws-data-wrangler/issues/294
wr.catalog.get_table_parameters(database="sa-m2", table="item") {'CrawlerSchemaDeserializerVersion': '1.0', 'CrawlerSchemaSerializerVersion': '1.0', 'UPDATED_BY_CRAWLER': 'sa-m2', 'averageRecordSize': '25', 'classification': 'parquet', 'compressionType': 'none', 'objectCount': '54', 'recordCount': '12349020', 'sizeKey'...
KeyError
def _ensure_workgroup( session: boto3.Session, workgroup: Optional[str] = None ) -> Tuple[Optional[str], Optional[str], Optional[str]]: if workgroup is not None: res: Dict[str, Any] = get_work_group(workgroup=workgroup, boto3_session=session) config: Dict[str, Any] = res["WorkGroup"]["Configurat...
def _ensure_workgroup( session: boto3.Session, workgroup: Optional[str] = None ) -> Tuple[Optional[str], Optional[str], Optional[str]]: if workgroup: res: Dict[str, Any] = get_work_group(workgroup=workgroup, boto3_session=session) config: Dict[str, Any] = res["WorkGroup"]["Configuration"][ ...
https://github.com/awslabs/aws-data-wrangler/issues/159
Traceback (most recent call last): File "sample.py", line 6, in <module> workgroup="bar", File "/home/nagomiso/develop/.venv/lib/python3.7/site-packages/awswrangler/athena.py", line 408, in read_sql_query wg_s3_output, _, _ = _ensure_workgroup(session=session, workgroup=workgroup) File "/home/nagomiso/develop/.venv/lib...
KeyError
def _read_parquet_path( session_primitives: "SessionPrimitives", path: str, columns: Optional[List[str]] = None, filters: Optional[Union[List[Tuple[Any]], List[List[Tuple[Any]]]]] = None, procs_cpu_bound: Optional[int] = None, wait_objects: bool = False, wait_objects_timeout: Optional[float]...
def _read_parquet_path( session_primitives: "SessionPrimitives", path: str, columns: Optional[List[str]] = None, filters: Optional[Union[List[Tuple[Any]], List[List[Tuple[Any]]]]] = None, procs_cpu_bound: Optional[int] = None, wait_objects: bool = False, wait_objects_timeout: Optional[float]...
https://github.com/awslabs/aws-data-wrangler/issues/111
--------------------------------------------------------------------------- KeyError Traceback (most recent call last) ~/miniconda3/lib/python3.7/site-packages/pandas/core/indexes/base.py in get_loc(self, key, method, tolerance) 2896 try: -> 2897 return self....
KeyError
def __init__( self, filename, buffersize, decode_file=False, print_infos=False, fps=44100, nbytes=2, nchannels=2, ): # TODO bring FFMPEG_AudioReader more in line with FFMPEG_VideoReader # E.g. here self.pos is still 1-indexed. # (or have them inherit from a shared parent clas...
def __init__( self, filename, buffersize, decode_file=False, print_infos=False, fps=44100, nbytes=2, nchannels=2, ): # TODO bring FFMPEG_AudioReader more in line with FFMPEG_VideoReader # E.g. here self.pos is still 1-indexed. # (or have them inherit from a shared parent clas...
https://github.com/Zulko/moviepy/issues/1487
Exception ignored in: <bound method FFMPEG_AudioReader.__del__ of <moviepy.audio.io.readers.FFMPEG_AudioReader object at 0x7fc339261cf8>> Traceback (most recent call last): File "/home/vagrant/.tox/py36/lib/python3.6/site-packages/moviepy/audio/io/readers.py", line 264, in __del__ self.close() File "/home/vagrant/.tox/...
AttributeError
def _reset_state(self): """Reinitializes the state of the parser. Used internally at initialization and at the end of the parsing process. """ # could be 2 possible types of metadata: # - file_metadata: Metadata of the container. Here are the tags setted # by the user using `-metadata` ffm...
def _reset_state(self): """Reinitializes the state of the parser. Used internally at initialization and at the end of the parsing process. """ # could be 2 possible types of metadata: # - file_metadata: Metadata of the container. Here are the tags setted # by the user using `-metadata` ffm...
https://github.com/Zulko/moviepy/issues/1487
Exception ignored in: <bound method FFMPEG_AudioReader.__del__ of <moviepy.audio.io.readers.FFMPEG_AudioReader object at 0x7fc339261cf8>> Traceback (most recent call last): File "/home/vagrant/.tox/py36/lib/python3.6/site-packages/moviepy/audio/io/readers.py", line 264, in __del__ self.close() File "/home/vagrant/.tox/...
AttributeError
def parse(self): """Parses the information returned by FFmpeg in stderr executing their binary for a file with ``-i`` option and returns a dictionary with all data needed by MoviePy. """ # chapters by input file input_chapters = [] for line in self.infos.splitlines()[1:]: if ( ...
def parse(self): """Parses the information returned by FFmpeg in stderr executing their binary for a file with ``-i`` option and returns a dictionary with all data needed by MoviePy. """ result = { "video_found": False, "audio_found": False, "metadata": {}, "inputs": ...
https://github.com/Zulko/moviepy/issues/1487
Exception ignored in: <bound method FFMPEG_AudioReader.__del__ of <moviepy.audio.io.readers.FFMPEG_AudioReader object at 0x7fc339261cf8>> Traceback (most recent call last): File "/home/vagrant/.tox/py36/lib/python3.6/site-packages/moviepy/audio/io/readers.py", line 264, in __del__ self.close() File "/home/vagrant/.tox/...
AttributeError
def parse_video_stream_data(self, line): """Parses data from "Stream ... Video" line.""" global_data, stream_data = ({"video_found": True}, {}) try: match_video_size = re.search(r" (\d+)x(\d+)[,\s]", line) if match_video_size: # size, of the form 460x320 (w x h) stre...
def parse_video_stream_data(self, line): """Parses data from "Stream ... Video" line.""" global_data, stream_data = ({"video_found": True}, {}) try: match_video_size = re.search(r" (\d+)x(\d+)[,\s]", line) if match_video_size: # size, of the form 460x320 (w x h) stre...
https://github.com/Zulko/moviepy/issues/1487
Exception ignored in: <bound method FFMPEG_AudioReader.__del__ of <moviepy.audio.io.readers.FFMPEG_AudioReader object at 0x7fc339261cf8>> Traceback (most recent call last): File "/home/vagrant/.tox/py36/lib/python3.6/site-packages/moviepy/audio/io/readers.py", line 264, in __del__ self.close() File "/home/vagrant/.tox/...
AttributeError
def parse(self): """Parses the information returned by FFmpeg in stderr executing their binary for a file with ``-i`` option and returns a dictionary with all data needed by MoviePy. """ # chapters by input file input_chapters = [] for line in self.infos.splitlines()[1:]: if ( ...
def parse(self): """Parses the information returned by FFmpeg in stderr executing their binary for a file with ``-i`` option and returns a dictionary with all data needed by MoviePy. """ # chapters by input file input_chapters = [] for line in self.infos.splitlines()[1:]: if ( ...
https://github.com/Zulko/moviepy/issues/1487
Exception ignored in: <bound method FFMPEG_AudioReader.__del__ of <moviepy.audio.io.readers.FFMPEG_AudioReader object at 0x7fc339261cf8>> Traceback (most recent call last): File "/home/vagrant/.tox/py36/lib/python3.6/site-packages/moviepy/audio/io/readers.py", line 264, in __del__ self.close() File "/home/vagrant/.tox/...
AttributeError
def __init__( self, filename, buffersize, decode_file=False, print_infos=False, fps=44100, nbytes=2, nchannels=2, ): # TODO bring FFMPEG_AudioReader more in line with FFMPEG_VideoReader # E.g. here self.pos is still 1-indexed. # (or have them inherit from a shared parent clas...
def __init__( self, filename, buffersize, decode_file=False, print_infos=False, fps=44100, nbytes=2, nchannels=2, ): # TODO bring FFMPEG_AudioReader more in line with FFMPEG_VideoReader # E.g. here self.pos is still 1-indexed. # (or have them inherit from a shared parent clas...
https://github.com/Zulko/moviepy/issues/1487
Exception ignored in: <bound method FFMPEG_AudioReader.__del__ of <moviepy.audio.io.readers.FFMPEG_AudioReader object at 0x7fc339261cf8>> Traceback (most recent call last): File "/home/vagrant/.tox/py36/lib/python3.6/site-packages/moviepy/audio/io/readers.py", line 264, in __del__ self.close() File "/home/vagrant/.tox/...
AttributeError
def ffmpeg_parse_infos( filename, check_duration=True, fps_source="fps", decode_file=False, print_infos=False, ): """Get the information of a file using ffmpeg. Returns a dictionary with next fields: - ``"duration"`` - ``"metadata"`` - ``"inputs"`` - ``"video_found"`` -...
def ffmpeg_parse_infos( filename, check_duration=True, fps_source="fps", decode_file=False, print_infos=False, ): """Get the information of a file using ffmpeg. Returns a dictionary with next fields: - ``"duration"`` - ``"metadata"`` - ``"inputs"`` - ``"video_found"`` -...
https://github.com/Zulko/moviepy/issues/1487
Exception ignored in: <bound method FFMPEG_AudioReader.__del__ of <moviepy.audio.io.readers.FFMPEG_AudioReader object at 0x7fc339261cf8>> Traceback (most recent call last): File "/home/vagrant/.tox/py36/lib/python3.6/site-packages/moviepy/audio/io/readers.py", line 264, in __del__ self.close() File "/home/vagrant/.tox/...
AttributeError
def make_frame(t): """complicated, but must be able to handle the case where t is a list of the form sin(t)""" if isinstance(t, np.ndarray): array_inds = np.round(self.fps * t).astype(int) in_array = (array_inds >= 0) & (array_inds < len(self.array)) result = np.zeros((len(t), 2)) ...
def make_frame(t): played_parts = [clip.is_playing(t) for clip in self.clips] sounds = [ clip.get_frame(t - clip.start) * np.array([part]).T for clip, part in zip(self.clips, played_parts) if (part is not False) ] if isinstance(t, np.ndarray): zero = np.zeros((len(t), s...
https://github.com/Zulko/moviepy/issues/1457
Exception in thread Thread-1: Traceback (most recent call last): File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner self.run() File "/usr/lib/python3.8/threading.py", line 870, in run self._target(*self._args, **self._kwargs) File "<decorator-gen-126>", line 2, in preview File "./moviepy/decorators.p...
AttributeError
def __init__(self, clips): self.clips = clips self.nchannels = max(clip.nchannels for clip in self.clips) # self.duration is setted at AudioClip duration = None for end in self.ends: if end is None: break duration = max(end, duration or 0) # self.fps is setted at Au...
def __init__(self, clips): Clip.__init__(self) self.clips = clips ends = [clip.end for clip in self.clips] self.nchannels = max([clip.nchannels for clip in self.clips]) if not any([(end is None) for end in ends]): self.duration = max(ends) self.end = max(ends) def make_frame(t)...
https://github.com/Zulko/moviepy/issues/1457
Exception in thread Thread-1: Traceback (most recent call last): File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner self.run() File "/usr/lib/python3.8/threading.py", line 870, in run self._target(*self._args, **self._kwargs) File "<decorator-gen-126>", line 2, in preview File "./moviepy/decorators.p...
AttributeError
def concatenate_audioclips(clips): """Concatenates one AudioClip after another, in the order that are passed to ``clips`` parameter. Parameters ---------- clips List of audio clips, which will be played one after other. """ # start, end/start2, end2/start3... end starts_end = np....
def concatenate_audioclips(clips): """ The clip with the highest FPS will be the FPS of the result clip. """ durations = [clip.duration for clip in clips] timings = np.cumsum([0] + durations) # start times, and end time. newclips = [clip.with_start(t) for clip, t in zip(clips, timings)] re...
https://github.com/Zulko/moviepy/issues/1457
Exception in thread Thread-1: Traceback (most recent call last): File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner self.run() File "/usr/lib/python3.8/threading.py", line 870, in run self._target(*self._args, **self._kwargs) File "<decorator-gen-126>", line 2, in preview File "./moviepy/decorators.p...
AttributeError
def color_gradient( size, p1, p2=None, vector=None, radius=None, color_1=0.0, color_2=1.0, shape="linear", offset=0, ): """Draw a linear, bilinear, or radial gradient. The result is a picture of size ``size``, whose color varies gradually from color `color_1` in position...
def color_gradient( size, p1, p2=None, vector=None, radius=None, color_1=0.0, color_2=1.0, shape="linear", offset=0, ): """Draw a linear, bilinear, or radial gradient. The result is a picture of size ``size``, whose color varies gradually from color `color_1` in position...
https://github.com/Zulko/moviepy/issues/1256
Traceback (most recent call last): File "theend.py", line 34, in <module> video.write_videofile("theEnd.mp4") File "<decorator-gen-61>", line 2, in write_videofile File "/home/pandahub/.local/lib/python3.6/site-packages/moviepy/decorators.py", line 56, in requires_duration return f(clip, *a, **k) File "<decorator-gen-6...
TypeError
def audio_normalize(clip): """Return a clip whose volume is normalized to 0db. Return an audio (or video) clip whose audio volume is normalized so that the maximum volume is at 0db, the maximum achievable volume. Examples ======== >>> from moviepy.editor import * >>> videoclip = VideoFile...
def audio_normalize(clip): """Return a clip whose volume is normalized to 0db. Return an audio (or video) clip whose audio volume is normalized so that the maximum volume is at 0db, the maximum achievable volume. Examples ======== >>> from moviepy.editor import * >>> videoclip = VideoFile...
https://github.com/Zulko/moviepy/issues/1388
Traceback (most recent call last): File "test.py", line 141, in <module> ytclip = ytclip.subclip(0, 10).audio_normalize() File "<decorator-gen-96>", line 2, in audio_normalize File "/Users/xxx/lib/python3.7/site-packages/moviepy/decorators.py", line 70, in audio_video_fx newclip.audio = f(clip.audio, *a, **k) File "/U...
ZeroDivisionError
def fx(self, func, *args, **kwargs): """ Returns the result of ``func(self, *args, **kwargs)``. for instance >>> newclip = clip.fx(resize, 0.2, method="bilinear") is equivalent to >>> newclip = resize(clip, 0.2, method="bilinear") The motivation of fx is to keep the name of the effect n...
def fx(self, func, *args, **kwargs): """ Returns the result of ``func(self, *args, **kwargs)``. for instance >>> newclip = clip.fx(resize, 0.2, method='bilinear') is equivalent to >>> newclip = resize(clip, 0.2, method='bilinear') The motivation of fx is to keep the name of the effect n...
https://github.com/Zulko/moviepy/issues/1209
Traceback (most recent call last): File "<pyshell#5>", line 1, in <module> newclip.write_videofile(r"F:\video\WinBasedWorkHard_new.mp4") File "<decorator-gen-55>", line 2, in write_videofile File "C:\Program Files\Python37\lib\site-packages\moviepy\decorators.py", line 52, in requires_duration raise ValueError("Attribu...
ValueError
def __init__(self, size, color=None, ismask=False, duration=None): w, h = size if ismask: shape = (h, w) if color is None: color = 0 elif not np.isscalar(color): raise Exception("Color has to be a scalar when mask is true") else: if color is None: ...
def __init__(self, size, color=None, ismask=False, duration=None): w, h = size shape = (h, w) if np.isscalar(color) else (h, w, len(color)) super().__init__( np.tile(color, w * h).reshape(shape), ismask=ismask, duration=duration )
https://github.com/Zulko/moviepy/issues/1131
In [1]: from moviepy.editor import ColorClip In [2]: c = ColorClip((10,10), duration=1) --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-2-5c98bac84586> in <module> ----> 1 c = ColorClip((10,10), durat...
TypeError
def __init__(self, clips, size=None, bg_color=None, use_bgclip=False, ismask=False): if size is None: size = clips[0].size if use_bgclip and (clips[0].mask is None): transparent = False else: transparent = bg_color is None if bg_color is None: bg_color = 0.0 if ismask e...
def __init__(self, clips, size=None, bg_color=None, use_bgclip=False, ismask=False): if size is None: size = clips[0].size if use_bgclip and (clips[0].mask is None): transparent = False else: transparent = bg_color is None if bg_color is None: bg_color = 0.0 if ismask e...
https://github.com/Zulko/moviepy/issues/1131
In [1]: from moviepy.editor import ColorClip In [2]: c = ColorClip((10,10), duration=1) --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-2-5c98bac84586> in <module> ----> 1 c = ColorClip((10,10), durat...
TypeError
def pil_rotater(pic, angle, resample, expand): # Ensures that pic is of the correct type return np.array( Image.fromarray(np.array(pic).astype(np.uint8)).rotate( angle, expand=expand, resample=resample ) )
def pil_rotater(pic, angle, resample, expand): return np.array( Image.fromarray(pic).rotate(angle, expand=expand, resample=resample) )
https://github.com/Zulko/moviepy/issues/1140
Traceback (most recent call last): MoviePy\venv\lib\site-packages\PIL\Image.py", line 2680, in fromarray mode, rawmode = _fromarray_typemap[typekey] KeyError: ((1, 1, 3), '<i4') During handling of the above exception, another exception occurred: Traceback (most recent call last): rotation_test.py", line 10, in <modul...
KeyError
def get_frame(self, tt): buffersize = self.buffersize if isinstance(tt, np.ndarray): # lazy implementation, but should not cause problems in # 99.99 % of the cases # elements of t that are actually in the range of the # audio file. in_time = (tt >= 0) & (tt < self.durat...
def get_frame(self, tt): buffersize = self.buffersize if isinstance(tt, np.ndarray): # lazy implementation, but should not cause problems in # 99.99 % of the cases # elements of t that are actually in the range of the # audio file. in_time = (tt >= 0) & (tt < self.dura...
https://github.com/Zulko/moviepy/issues/246
IndexError Traceback (most recent call last) /home/xxx/venv/lib/python3.4/site-packages/moviepy/audio/io/readers.py in get_frame(self, tt) 186 indices = frames - self.buffer_startframe --> 187 result[in_time] = self.buffer[indices] 188 retur...
IndexError
def process_template(self, cfg, minimize=None): """ Process the Policy Sentry template as a dict. This auto-detects whether or not the file is in CRUD mode or Actions mode. Arguments: cfg: The loaded YAML as a dict. Must follow Policy Sentry dictated format. minimize: Minimize the resul...
def process_template(self, cfg, minimize=None): """ Process the Policy Sentry template as a dict. This auto-detects whether or not the file is in CRUD mode or Actions mode. Arguments: cfg: The loaded YAML as a dict. Must follow Policy Sentry dictated format. minimize: Minimize the resul...
https://github.com/salesforce/policy_sentry/issues/211
Traceback (most recent call last): File "./examples/library-usage/writing/write_policy_with_access_levels.py", line 18, in <module> policy = write_policy_with_template(crud_template) File "./policy_sentry/venv/lib/python3.8/site-packages/policy_sentry/command/write_policy.py", line 77, in write_policy_with_template pol...
IndexError
def transform_parameter(self): # Depreciated placeholders: # - $[taskcat_gets3contents] # - $[taskcat_geturl] for param_name, param_value in self._param_dict.items(): if isinstance(param_value, list): _results_list = [] _nested_param_dict = {} for idx, value i...
def transform_parameter(self): # Depreciated placeholders: # - $[taskcat_gets3contents] # - $[taskcat_geturl] for param_name, param_value in self._param_dict.items(): # Setting the instance variables to reflect key/value pair we're working on. self.param_name = param_name self.pa...
https://github.com/aws-quickstart/taskcat/issues/443
taskcat -d test run _ _ _ | |_ __ _ ___| | _____ __ _| |_ | __/ _` / __| |/ / __/ _` | __| | || (_| \__ \ < (_| (_| | |_ \__\__,_|___/_|\_\___\__,_|\__| version 0.9.8 /home/ubuntu/.local/lib/python3.6/site-packages/dataclasses_jsonschema/__init__.py:457: UserWarning: Unable to decode value f...
TypeError
def _template_url_to_path(self, template_url): # TODO: this code assumes a specific url schema, should rather attempt to # resolve values from params/defaults template_path = None if isinstance(template_url, dict): if "Fn::Sub" in template_url.keys(): if isinstance(template_url["Fn:...
def _template_url_to_path(self, template_url): # TODO: this code assumes a specific url schema, should rather attempt to # resolve values from params/defaults if isinstance(template_url, dict): if "Fn::Sub" in template_url.keys(): if isinstance(template_url["Fn::Sub"], str): ...
https://github.com/aws-quickstart/taskcat/issues/432
version 0.9.8 [ERROR ] : TypeError expected str, bytes or os.PathLike object, not dict_node Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/taskcat/_cli.py", line 70, in main cli.run() File "/usr/local/lib/python3.7/site-packages/taskcat/_cli_core.py", line 228, in run return getattr(co...
TypeError
def _get_relative_url(self, path: str) -> str: suffix = str(path).replace(str(self.project_root), "") url = self.url_prefix() + suffix return url
def _get_relative_url(self, path: str) -> str: if not self.url: return "" suffix = str(self.template_path).replace(str(self.project_root), "") suffix_length = len(suffix.lstrip("/").split("/")) url_prefix = "/".join(self.url.split("/")[0:-suffix_length]) suffix = str(path).replace(str(self.p...
https://github.com/aws-quickstart/taskcat/issues/432
version 0.9.8 [ERROR ] : TypeError expected str, bytes or os.PathLike object, not dict_node Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/taskcat/_cli.py", line 70, in main cli.run() File "/usr/local/lib/python3.7/site-packages/taskcat/_cli_core.py", line 228, in run return getattr(co...
TypeError
def __init__(self, param_dict, bucket_name, region, boto_client, az_excludes=None): self.regxfind = CommonTools.regxfind self._param_dict = param_dict _missing_params = [] for param_name, param_value in param_dict.items(): if param_value is None: _missing_params.append(param_name) ...
def __init__(self, param_dict, bucket_name, region, boto_client, az_excludes=None): self.regxfind = CommonTools.regxfind self._param_dict = param_dict self.results = {} self.mutated_params = {} self.param_name = None self.param_value = None self.bucket_name = bucket_name self._boto_clien...
https://github.com/aws-quickstart/taskcat/issues/391
[ERROR ] : TypeError expected string or bytes-like object Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/taskcat/_cli.py", line 70, in main cli.run() File "/usr/local/lib/python3.7/site-packages/taskcat/_cli_core.py", line 228, in run return getattr(command(), subcommand)(**args) File ...
TypeError
def _import_child( # pylint: disable=too-many-locals cls, stack_properties: dict, parent_stack: "Stack" ) -> Optional["Stack"]: url = "" for event in parent_stack.events(): if event.physical_id == stack_properties["StackId"] and event.properties: url = event.properties["TemplateURL"] ...
def _import_child( cls, stack_properties: dict, parent_stack: "Stack" ) -> Optional["Stack"]: url = "" for event in parent_stack.events(): if event.physical_id == stack_properties["StackId"] and event.properties: url = event.properties["TemplateURL"] if url.startswith(parent_stack.te...
https://github.com/aws-quickstart/taskcat/issues/366
[ERROR ] : TypeError write() argument must be str, not collections.OrderedDict Traceback (most recent call last): File "/home/ags/venv/venv-taskcat/lib/python3.6/site-packages/taskcat/_cli.py", line 66, in main cli.run() File "/home/ags/venv/venv-taskcat/lib/python3.6/site-packages/taskcat/_cli_core.py", line 228, in ...
TypeError
def _fetch_children(self) -> None: self._last_child_refresh = datetime.now() for page in self.client.get_paginator("describe_stacks").paginate(): for stack in page["Stacks"]: if self._children.filter(id=stack["StackId"]): continue if "ParentId" in stack.keys(): ...
def _fetch_children(self) -> None: self._last_child_refresh = datetime.now() for page in self.client.get_paginator("describe_stacks").paginate(): for stack in page["Stacks"]: if self._children.filter(id=stack["StackId"]): continue if "ParentId" in stack.keys(): ...
https://github.com/aws-quickstart/taskcat/issues/366
[ERROR ] : TypeError write() argument must be str, not collections.OrderedDict Traceback (most recent call last): File "/home/ags/venv/venv-taskcat/lib/python3.6/site-packages/taskcat/_cli.py", line 66, in main cli.run() File "/home/ags/venv/venv-taskcat/lib/python3.6/site-packages/taskcat/_cli_core.py", line 228, in ...
TypeError
def deep_cleanup(self, testdata_list): """ This function deletes the AWS resources which were not deleted by deleting CloudFormation stacks. :param testdata_list: List of TestData objects """ for test in testdata_list: failed_stack_ids = [] for stack in test.get_test_stacks(): ...
def deep_cleanup(self, testdata_list): """ This function deletes the AWS resources which were not deleted by deleting CloudFormation stacks. :param testdata_list: List of TestData objects """ for test in testdata_list: failed_stack_ids = [] for stack in test.get_test_stacks(): ...
https://github.com/aws-quickstart/taskcat/issues/194
22:49:35 [INFO ] :Few stacks failed to delete. Collecting resources for deep clean-up. 22:49:35 Traceback (most recent call last): 22:49:35 File "/var/lib/jenkins/.local/bin/taskcat", line 104, in <module> 22:49:35 main() 22:49:35 File "/var/lib/jenkins/.local/bin/taskcat", line 97, in main 22:49:35 tcat_...
TypeError
def collect_resources(self, testdata_list, logpath): """ This function collects the AWS resources information created by the CloudFormation stack for generating the report. :param testdata_list: List of TestData object :param logpath: Log file path """ resource = {} print(PrintMsg.INFO...
def collect_resources(self, testdata_list, logpath): """ This function collects the AWS resources information created by the CloudFormation stack for generating the report. :param testdata_list: List of TestData object :param logpath: Log file path """ resource = {} print(PrintMsg.INFO...
https://github.com/aws-quickstart/taskcat/issues/194
22:49:35 [INFO ] :Few stacks failed to delete. Collecting resources for deep clean-up. 22:49:35 Traceback (most recent call last): 22:49:35 File "/var/lib/jenkins/.local/bin/taskcat", line 104, in <module> 22:49:35 main() 22:49:35 File "/var/lib/jenkins/.local/bin/taskcat", line 97, in main 22:49:35 tcat_...
TypeError
def __init__(self, nametag="[taskcat]"): self.nametag = "{1}{0}{2}".format(nametag, PrintMsg.name_color, PrintMsg.rst_color) self.project = None self.owner = None self.banner = None self.capabilities = [] self.verbose = False self.config = "config.yml" self.test_region = [] self.s3bu...
def __init__(self, nametag="[taskcat]"): self.nametag = "{1}{0}{2}".format(nametag, PrintMsg.name_color, PrintMsg.rst_color) self.project = None self.owner = None self.banner = None self.capabilities = [] self.verbose = False self.config = "config.yml" self.test_region = [] self.s3bu...
https://github.com/aws-quickstart/taskcat/issues/155
·[0;30;43m[INFO ]·[0m :Creating bucket taskcat-tag-CfnLintDemo-0a074b3f in us-east-2 Traceback (most recent call last): File "/usr/local/bin/taskcat", line 79, in <module> main() File "/usr/local/bin/taskcat", line 65, in main tcat_instance.stage_in_s3(taskcat_cfg) File "/usr/local/lib/python3.6/site-packages/taskcat/s...
botocore.exceptions.ClientError
def stage_in_s3(self, taskcat_cfg): """ Upload templates and other artifacts to s3. This function creates the s3 bucket with name provided in the config yml file. If no bucket name provided, it creates the s3 bucket using project name provided in config yml file. And uploads the templates and other...
def stage_in_s3(self, taskcat_cfg): """ Upload templates and other artifacts to s3. This function creates the s3 bucket with name provided in the config yml file. If no bucket name provided, it creates the s3 bucket using project name provided in config yml file. And uploads the templates and other...
https://github.com/aws-quickstart/taskcat/issues/155
·[0;30;43m[INFO ]·[0m :Creating bucket taskcat-tag-CfnLintDemo-0a074b3f in us-east-2 Traceback (most recent call last): File "/usr/local/bin/taskcat", line 79, in <module> main() File "/usr/local/bin/taskcat", line 65, in main tcat_instance.stage_in_s3(taskcat_cfg) File "/usr/local/lib/python3.6/site-packages/taskcat/s...
botocore.exceptions.ClientError
def __init__(self, nametag="[taskcat]"): self.nametag = "{1}{0}{2}".format(nametag, PrintMsg.name_color, PrintMsg.rst_color) self.project = None self.owner = None self.banner = None self.capabilities = [] self.verbose = False self.config = "config.yml" self.test_region = [] self.s3bu...
def __init__(self, nametag="[taskcat]"): self.nametag = "{1}{0}{2}".format(nametag, PrintMsg.name_color, PrintMsg.rst_color) self.project = None self.owner = None self.banner = None self.capabilities = [] self.verbose = False self.config = "config.yml" self.test_region = [] self.s3bu...
https://github.com/aws-quickstart/taskcat/issues/155
·[0;30;43m[INFO ]·[0m :Creating bucket taskcat-tag-CfnLintDemo-0a074b3f in us-east-2 Traceback (most recent call last): File "/usr/local/bin/taskcat", line 79, in <module> main() File "/usr/local/bin/taskcat", line 65, in main tcat_instance.stage_in_s3(taskcat_cfg) File "/usr/local/lib/python3.6/site-packages/taskcat/s...
botocore.exceptions.ClientError
def stage_in_s3(self, taskcat_cfg): """ Upload templates and other artifacts to s3. This function creates the s3 bucket with name provided in the config yml file. If no bucket name provided, it creates the s3 bucket using project name provided in config yml file. And uploads the templates and other...
def stage_in_s3(self, taskcat_cfg): """ Upload templates and other artifacts to s3. This function creates the s3 bucket with name provided in the config yml file. If no bucket name provided, it creates the s3 bucket using project name provided in config yml file. And uploads the templates and other...
https://github.com/aws-quickstart/taskcat/issues/155
·[0;30;43m[INFO ]·[0m :Creating bucket taskcat-tag-CfnLintDemo-0a074b3f in us-east-2 Traceback (most recent call last): File "/usr/local/bin/taskcat", line 79, in <module> main() File "/usr/local/bin/taskcat", line 65, in main tcat_instance.stage_in_s3(taskcat_cfg) File "/usr/local/lib/python3.6/site-packages/taskcat/s...
botocore.exceptions.ClientError
def get_global_region(self, yamlcfg): """ Returns a list of regions defined under global region in the yml config file. :param yamlcfg: Content of the yml config file :return: List of regions """ g_regions = [] for keys in yamlcfg["global"].keys(): if "region" in keys: ...
def get_global_region(self, yamlcfg): """ Returns a list of regions defined under global region in the yml config file. :param yamlcfg: Content of the yml config file :return: List of regions """ g_regions = [] for keys in yamlcfg["global"].keys(): if "region" in keys: ...
https://github.com/aws-quickstart/taskcat/issues/155
·[0;30;43m[INFO ]·[0m :Creating bucket taskcat-tag-CfnLintDemo-0a074b3f in us-east-2 Traceback (most recent call last): File "/usr/local/bin/taskcat", line 79, in <module> main() File "/usr/local/bin/taskcat", line 65, in main tcat_instance.stage_in_s3(taskcat_cfg) File "/usr/local/lib/python3.6/site-packages/taskcat/s...
botocore.exceptions.ClientError
def validate_template(self, taskcat_cfg, test_list): """ Returns TRUE if all the template files are valid, otherwise FALSE. :param taskcat_cfg: TaskCat config object :param test_list: List of tests :return: TRUE if templates are valid, else FALSE """ # Load global regions self.set_test...
def validate_template(self, taskcat_cfg, test_list): """ Returns TRUE if all the template files are valid, otherwise FALSE. :param taskcat_cfg: TaskCat config object :param test_list: List of tests :return: TRUE if templates are valid, else FALSE """ # Load global regions self.set_test...
https://github.com/aws-quickstart/taskcat/issues/155
·[0;30;43m[INFO ]·[0m :Creating bucket taskcat-tag-CfnLintDemo-0a074b3f in us-east-2 Traceback (most recent call last): File "/usr/local/bin/taskcat", line 79, in <module> main() File "/usr/local/bin/taskcat", line 65, in main tcat_instance.stage_in_s3(taskcat_cfg) File "/usr/local/lib/python3.6/site-packages/taskcat/s...
botocore.exceptions.ClientError
def stackcreate(self, taskcat_cfg, test_list, sprefix): """ This function creates CloudFormation stack for the given tests. :param taskcat_cfg: TaskCat config as yaml object :param test_list: List of tests :param sprefix: Special prefix as string. Purpose of this param is to use it for tagging ...
def stackcreate(self, taskcat_cfg, test_list, sprefix): """ This function creates CloudFormation stack for the given tests. :param taskcat_cfg: TaskCat config as yaml object :param test_list: List of tests :param sprefix: Special prefix as string. Purpose of this param is to use it for tagging ...
https://github.com/aws-quickstart/taskcat/issues/155
·[0;30;43m[INFO ]·[0m :Creating bucket taskcat-tag-CfnLintDemo-0a074b3f in us-east-2 Traceback (most recent call last): File "/usr/local/bin/taskcat", line 79, in <module> main() File "/usr/local/bin/taskcat", line 65, in main tcat_instance.stage_in_s3(taskcat_cfg) File "/usr/local/lib/python3.6/site-packages/taskcat/s...
botocore.exceptions.ClientError
def validate_parameters(self, taskcat_cfg, test_list): """ This function validates the parameters file of the CloudFormation template. :param taskcat_cfg: TaskCat config yaml object :param test_list: List of tests :return: TRUPrintMsg.ERROR if the parameters file is valid, else FALSE """ f...
def validate_parameters(self, taskcat_cfg, test_list): """ This function validates the parameters file of the CloudFormation template. :param taskcat_cfg: TaskCat config yaml object :param test_list: List of tests :return: TRUPrintMsg.ERROR if the parameters file is valid, else FALSE """ f...
https://github.com/aws-quickstart/taskcat/issues/155
·[0;30;43m[INFO ]·[0m :Creating bucket taskcat-tag-CfnLintDemo-0a074b3f in us-east-2 Traceback (most recent call last): File "/usr/local/bin/taskcat", line 79, in <module> main() File "/usr/local/bin/taskcat", line 65, in main tcat_instance.stage_in_s3(taskcat_cfg) File "/usr/local/lib/python3.6/site-packages/taskcat/s...
botocore.exceptions.ClientError
def interface(self): parser = argparse.ArgumentParser( description=""" Multi-Region CloudFormation Test Deployment Tool) For more info see: http://taskcat.io """, prog="taskcat", prefix_chars="-", formatter_class=RawTextHelpFormatter, ) parser....
def interface(self): parser = argparse.ArgumentParser( description=""" Multi-Region CloudFormation Test Deployment Tool) For more info see: http://taskcat.io """, prog="taskcat", prefix_chars="-", formatter_class=RawTextHelpFormatter, ) parser....
https://github.com/aws-quickstart/taskcat/issues/155
·[0;30;43m[INFO ]·[0m :Creating bucket taskcat-tag-CfnLintDemo-0a074b3f in us-east-2 Traceback (most recent call last): File "/usr/local/bin/taskcat", line 79, in <module> main() File "/usr/local/bin/taskcat", line 65, in main tcat_instance.stage_in_s3(taskcat_cfg) File "/usr/local/lib/python3.6/site-packages/taskcat/s...
botocore.exceptions.ClientError
def __init__(self, boundaries, ncolors, clip=False, *, extend="neither"): """ Parameters ---------- boundaries : array-like Monotonically increasing sequence of at least 2 boundaries. ncolors : int Number of colors in the colormap to be used. clip : bool, optional If clip...
def __init__(self, boundaries, ncolors, clip=False, *, extend="neither"): """ Parameters ---------- boundaries : array-like Monotonically increasing sequence of boundaries ncolors : int Number of colors in the colormap to be used clip : bool, optional If clip is ``True``,...
https://github.com/matplotlib/matplotlib/issues/17579
--------------------------------------------------------------------------- ZeroDivisionError Traceback (most recent call last) <ipython-input-160-8a8135eaeb3c> in <module> 2 bounds = [0, 1] 3 norm = mpl.colors.BoundaryNorm(bounds, cmap.N) ----> 4 norm(0.5) /usr/local/lib/python3.6/dist-package...
ZeroDivisionError
def __call__(self, value, clip=None): if clip is None: clip = self.clip xx, is_scalar = self.process_value(value) mask = np.ma.getmaskarray(xx) # Fill masked values a value above the upper boundary xx = np.atleast_1d(xx.filled(self.vmax + 1)) if clip: np.clip(xx, self.vmin, self...
def __call__(self, value, clip=None): if clip is None: clip = self.clip xx, is_scalar = self.process_value(value) mask = np.ma.getmaskarray(xx) xx = np.atleast_1d(xx.filled(self.vmax + 1)) if clip: np.clip(xx, self.vmin, self.vmax, out=xx) max_col = self.Ncmap - 1 else: ...
https://github.com/matplotlib/matplotlib/issues/17579
--------------------------------------------------------------------------- ZeroDivisionError Traceback (most recent call last) <ipython-input-160-8a8135eaeb3c> in <module> 2 bounds = [0, 1] 3 norm = mpl.colors.BoundaryNorm(bounds, cmap.N) ----> 4 norm(0.5) /usr/local/lib/python3.6/dist-package...
ZeroDivisionError
def to_rgba(c, alpha=None): """ Convert *c* to an RGBA color. Parameters ---------- c : Matplotlib color or ``np.ma.masked`` alpha : scalar, optional If *alpha* is not ``None``, it forces the alpha value, except if *c* is ``"none"`` (case-insensitive), which always maps to ``(0...
def to_rgba(c, alpha=None): """ Convert *c* to an RGBA color. Parameters ---------- c : Matplotlib color alpha : scalar, optional If *alpha* is not ``None``, it forces the alpha value, except if *c* is ``"none"`` (case-insensitive), which always maps to ``(0, 0, 0, 0)``. R...
https://github.com/matplotlib/matplotlib/issues/14301
Traceback (most recent call last): File "D:\test.py", line 9, in <module> ax.scatter(x, y, edgecolor=c) File "C:\ProgramData\Miniconda3\lib\site-packages\matplotlib\__init__.py", line 1589, in inner return func(ax, *map(sanitize_sequence, args), **kwargs) File "C:\ProgramData\Miniconda3\lib\site-packages\matplotlib\axe...
ValueError
def _to_rgba_no_colorcycle(c, alpha=None): """Convert *c* to an RGBA color, with no support for color-cycle syntax. If *alpha* is not ``None``, it forces the alpha value, except if *c* is ``"none"`` (case-insensitive), which always maps to ``(0, 0, 0, 0)``. """ orig_c = c if c is np.ma.masked: ...
def _to_rgba_no_colorcycle(c, alpha=None): """Convert *c* to an RGBA color, with no support for color-cycle syntax. If *alpha* is not ``None``, it forces the alpha value, except if *c* is ``"none"`` (case-insensitive), which always maps to ``(0, 0, 0, 0)``. """ orig_c = c if isinstance(c, str):...
https://github.com/matplotlib/matplotlib/issues/14301
Traceback (most recent call last): File "D:\test.py", line 9, in <module> ax.scatter(x, y, edgecolor=c) File "C:\ProgramData\Miniconda3\lib\site-packages\matplotlib\__init__.py", line 1589, in inner return func(ax, *map(sanitize_sequence, args), **kwargs) File "C:\ProgramData\Miniconda3\lib\site-packages\matplotlib\axe...
ValueError
def to_rgba_array(c, alpha=None): """Convert *c* to a (n, 4) array of RGBA colors. If *alpha* is not ``None``, it forces the alpha value. If *c* is ``"none"`` (case-insensitive) or an empty list, an empty array is returned. If *c* is a masked array, an ndarray is returned with a (0, 0, 0, 0) row f...
def to_rgba_array(c, alpha=None): """Convert *c* to a (n, 4) array of RGBA colors. If *alpha* is not ``None``, it forces the alpha value. If *c* is ``"none"`` (case-insensitive) or an empty list, an empty array is returned. """ # Special-case inputs that are already arrays, for performance. (If t...
https://github.com/matplotlib/matplotlib/issues/14301
Traceback (most recent call last): File "D:\test.py", line 9, in <module> ax.scatter(x, y, edgecolor=c) File "C:\ProgramData\Miniconda3\lib\site-packages\matplotlib\__init__.py", line 1589, in inner return func(ax, *map(sanitize_sequence, args), **kwargs) File "C:\ProgramData\Miniconda3\lib\site-packages\matplotlib\axe...
ValueError
def draw(self, renderer): if not self.get_visible(): return self._update(renderer) # update the tick size = self._ticksize path_trans = self.get_transform() gc = renderer.new_gc() gc.set_foreground(self.get_markeredgecolor()) gc.set_linewidth(self.get_markeredgewidth()) gc.se...
def draw(self, renderer): if not self.get_visible(): return self._update(renderer) # update the tick size = self._ticksize path_trans = self.get_transform() gc = renderer.new_gc() gc.set_foreground(self.get_markeredgecolor()) gc.set_linewidth(self.get_markeredgewidth()) gc.se...
https://github.com/matplotlib/matplotlib/issues/12208
Traceback (most recent call last): File "/opt/anaconda2/envs/py2_conda52/lib/python2.7/site-packages/matplotlib/backends/backend_qt5.py", line 519, in _draw_idle self.draw() File "/opt/anaconda2/envs/py2_conda52/lib/python2.7/site-packages/matplotlib/backends/backend_agg.py", line 433, in draw self.figure.draw(self.ren...
TypeError
def _onKeyDown(self, evt): """Capture key press.""" key = self._get_key(evt) FigureCanvasBase.key_press_event(self, key, guiEvent=evt) if self: evt.Skip()
def _onKeyDown(self, evt): """Capture key press.""" key = self._get_key(evt) evt.Skip() FigureCanvasBase.key_press_event(self, key, guiEvent=evt)
https://github.com/matplotlib/matplotlib/issues/3690
[michael@localhost play]$ gdb --args python segfault-gui.py GNU gdb (GDB) Fedora 7.7.1-19.fc20 Copyright (C) 2014 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the e...
ImportError
def _onKeyUp(self, evt): """Release key.""" key = self._get_key(evt) FigureCanvasBase.key_release_event(self, key, guiEvent=evt) if self: evt.Skip()
def _onKeyUp(self, evt): """Release key.""" key = self._get_key(evt) evt.Skip() FigureCanvasBase.key_release_event(self, key, guiEvent=evt)
https://github.com/matplotlib/matplotlib/issues/3690
[michael@localhost play]$ gdb --args python segfault-gui.py GNU gdb (GDB) Fedora 7.7.1-19.fc20 Copyright (C) 2014 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the e...
ImportError
def errorbar( self, x, y, yerr=None, xerr=None, fmt="", ecolor=None, elinewidth=None, capsize=None, barsabove=False, lolims=False, uplims=False, xlolims=False, xuplims=False, errorevery=1, capthick=None, **kwargs, ): """ Plot an errorbar graph....
def errorbar( self, x, y, yerr=None, xerr=None, fmt="", ecolor=None, elinewidth=None, capsize=None, barsabove=False, lolims=False, uplims=False, xlolims=False, xuplims=False, errorevery=1, capthick=None, **kwargs, ): """ Plot an errorbar graph....
https://github.com/matplotlib/matplotlib/issues/9699
Traceback (most recent call last): File "legend_test.py", line 6, in <module> plt.legend() File "/usr/lib/python3/dist-packages/matplotlib/pyplot.py", line 3553, in legend ret = gca().legend(*args, **kwargs) File "/usr/lib/python3/dist-packages/matplotlib/axes/_axes.py", line 538, in legend self.legend_ = mlegend.Legen...
IndexError
def _autolev(self, N): """ Select contour levels to span the data. We need two more levels for filled contours than for line contours, because for the latter we need to specify the lower and upper boundary of each range. For example, a single contour boundary, say at z = 0, requires only on...
def _autolev(self, z, N): """ Select contour levels to span the data. We need two more levels for filled contours than for line contours, because for the latter we need to specify the lower and upper boundary of each range. For example, a single contour boundary, say at z = 0, requires only ...
https://github.com/matplotlib/matplotlib/issues/6270
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-13-37a1d06c84a1> in <module>() 30 # the label 31 plt.figure() ---> 32 CS = plt.contour(X, Y, Z,locator=matplotlib.ticker.LinearLocator(10)) 33 plt.clabel...
TypeError
def _contour_level_args(self, z, args): """ Determine the contour levels and store in self.levels. """ if self.filled: fn = "contourf" else: fn = "contour" self._auto = False if self.levels is None: if len(args) == 0: lev = self._autolev(7) else: ...
def _contour_level_args(self, z, args): """ Determine the contour levels and store in self.levels. """ if self.filled: fn = "contourf" else: fn = "contour" self._auto = False if self.levels is None: if len(args) == 0: lev = self._autolev(z, 7) else...
https://github.com/matplotlib/matplotlib/issues/6270
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-13-37a1d06c84a1> in <module>() 30 # the label 31 plt.figure() ---> 32 CS = plt.contour(X, Y, Z,locator=matplotlib.ticker.LinearLocator(10)) 33 plt.clabel...
TypeError
def _contour_args(self, args, kwargs): if self.filled: fn = "contourf" else: fn = "contour" Nargs = len(args) if Nargs <= 2: z = ma.asarray(args[0], dtype=np.float64) x, y = self._initialize_x_y(z) args = args[1:] elif Nargs <= 4: x, y, z = self._check...
def _contour_args(self, args, kwargs): if self.filled: fn = "contourf" else: fn = "contour" Nargs = len(args) if Nargs <= 2: z = ma.asarray(args[0], dtype=np.float64) x, y = self._initialize_x_y(z) args = args[1:] elif Nargs <= 4: x, y, z = self._check...
https://github.com/matplotlib/matplotlib/issues/6270
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-13-37a1d06c84a1> in <module>() 30 # the label 31 plt.figure() ---> 32 CS = plt.contour(X, Y, Z,locator=matplotlib.ticker.LinearLocator(10)) 33 plt.clabel...
TypeError
def quote_ps_string(s): "Quote dangerous characters of S for use in a PostScript string constant." s = s.replace(b"\\", b"\\\\") s = s.replace(b"(", b"\\(") s = s.replace(b")", b"\\)") s = s.replace(b"'", b"\\251") s = s.replace(b"`", b"\\301") s = re.sub(rb"[^ -~\n]", lambda x: rb"\%03o" % ...
def quote_ps_string(s): "Quote dangerous characters of S for use in a PostScript string constant." s = s.replace("\\", "\\\\") s = s.replace("(", "\\(") s = s.replace(")", "\\)") s = s.replace("'", "\\251") s = s.replace("`", "\\301") s = re.sub(r"[^ -~\n]", lambda x: r"\%03o" % ord(x.group(...
https://github.com/matplotlib/matplotlib/issues/6226
Traceback (most recent call last): File "/home/tps/PyCharmProjects/test/test_PlotWindow.py", line 323, in saveFigRButtonClicked savefig(fname) File "/usr/local/lib/python3.4/dist-packages/matplotlib/pyplot.py", line 688, in savefig res = fig.savefig(*args, **kwargs) File "/usr/local/lib/python3.4/dist-packages/matplotl...
TypeError
def scatter( self, x, y, s=None, c=None, marker="o", cmap=None, norm=None, vmin=None, vmax=None, alpha=None, linewidths=None, verts=None, edgecolors=None, **kwargs, ): """ Make a scatter plot of x vs y, where x and y are sequence like objects of th...
def scatter( self, x, y, s=None, c=None, marker="o", cmap=None, norm=None, vmin=None, vmax=None, alpha=None, linewidths=None, verts=None, edgecolors=None, **kwargs, ): """ Make a scatter plot of x vs y, where x and y are sequence like objects of th...
https://github.com/matplotlib/matplotlib/issues/6266
--------------------------------------------------------------------------- ValueError Traceback (most recent call last) C:\portabel\miniconda\envs\zalando\lib\site-packages\matplotlib\colors.py in to_rgba(self, arg, alpha) 367 raise ValueError( --> 368 ...
ValueError
def scatter( self, x, y, s=20, c=None, marker="o", cmap=None, norm=None, vmin=None, vmax=None, alpha=None, linewidths=None, verts=None, edgecolors=None, **kwargs, ): """ Make a scatter plot of x vs y, where x and y are sequence like objects of the ...
def scatter( self, x, y, s=20, c=None, marker="o", cmap=None, norm=None, vmin=None, vmax=None, alpha=None, linewidths=None, verts=None, edgecolors=None, **kwargs, ): """ Make a scatter plot of x vs y, where x and y are sequence like objects of the ...
https://github.com/matplotlib/matplotlib/issues/6266
--------------------------------------------------------------------------- ValueError Traceback (most recent call last) C:\portabel\miniconda\envs\zalando\lib\site-packages\matplotlib\colors.py in to_rgba(self, arg, alpha) 367 raise ValueError( --> 368 ...
ValueError
def __init__(self, o): """ Initialize the artist inspector with an :class:`~matplotlib.artist.Artist` or iterable of :class:`Artists`. If an iterable is used, we assume it is a homogeneous sequence (all :class:`Artists` are of the same type) and it is your responsibility to make sure this is so....
def __init__(self, o): """ Initialize the artist inspector with an :class:`~matplotlib.artist.Artist` or sequence of :class:`Artists`. If a sequence is used, we assume it is a homogeneous sequence (all :class:`Artists` are of the same type) and it is your responsibility to make sure this is so. ...
https://github.com/matplotlib/matplotlib/issues/6212
import matplotlib.pyplot as plt import itertools lines1 = plt.plot(range(3), range(3), range(5), range(5)) lines2 = plt.plot(range(4), range(4), range(6), range(6)) plt.setp(itertools.chain(lines1, lines2), color='red') Traceback (most recent call last): File "<ipython-input-6-2f274dd0d4c1>", line 1, in <module> plt.s...
TypeError
def setp(obj, *args, **kwargs): """ Set a property on an artist object. matplotlib supports the use of :func:`setp` ("set property") and :func:`getp` to set and get object properties, as well as to do introspection on the object. For example, to set the linestyle of a line to be dashed, you ca...
def setp(obj, *args, **kwargs): """ Set a property on an artist object. matplotlib supports the use of :func:`setp` ("set property") and :func:`getp` to set and get object properties, as well as to do introspection on the object. For example, to set the linestyle of a line to be dashed, you ca...
https://github.com/matplotlib/matplotlib/issues/6212
import matplotlib.pyplot as plt import itertools lines1 = plt.plot(range(3), range(3), range(5), range(5)) lines2 = plt.plot(range(4), range(4), range(6), range(6)) plt.setp(itertools.chain(lines1, lines2), color='red') Traceback (most recent call last): File "<ipython-input-6-2f274dd0d4c1>", line 1, in <module> plt.s...
TypeError
def remove(self): for c in cbook.flatten(self, scalarp=lambda x: isinstance(x, martist.Artist)): c.remove() if self._remove_method: self._remove_method(self)
def remove(self): for c in self: c.remove() if self._remove_method: self._remove_method(self)
https://github.com/matplotlib/matplotlib/issues/5692
In [7]: c = ax.stem([1,2],[2,1]) In [8]: c.remove() --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-8-dbc7beefa92d> in <module>() ----> 1 c.remove() python2.7/site-packages/matplotlib/container.pyc i...
TypeError
def figure_edit(axes, parent=None): """Edit matplotlib figure options""" sep = (None, None) # separator has_curve = len(axes.get_lines()) > 0 # Get / General xmin, xmax = axes.get_xlim() ymin, ymax = axes.get_ylim() general = [ ("Title", axes.get_title()), sep, (No...
def figure_edit(axes, parent=None): """Edit matplotlib figure options""" sep = (None, None) # separator has_curve = len(axes.get_lines()) > 0 # Get / General xmin, xmax = axes.get_xlim() ymin, ymax = axes.get_ylim() general = [ ("Title", axes.get_title()), sep, (No...
https://github.com/matplotlib/matplotlib/issues/4323
$ ipython --pylab Python 3.4.3 (default, Mar 25 2015, 17:13:50) Type "copyright", "credits" or "license" for more information. IPython 3.0.0 -- An enhanced Interactive Python. ? -> Introduction and overview of IPython's features. %quickref -> Quick reference. help -> Python's own help system. object? ->...
IndexError
def make_image(self, magnification=1.0): if self._A is None: raise RuntimeError("You must first set the image array") fc = self.axes.patch.get_facecolor() bg = mcolors.colorConverter.to_rgba(fc, 0) bg = (np.array(bg) * 255).astype(np.uint8) l, b, r, t = self.axes.bbox.extents width = (ro...
def make_image(self, magnification=1.0): if self._A is None: raise RuntimeError("You must first set the image array") fc = self.axes.patch.get_facecolor() bg = mcolors.colorConverter.to_rgba(fc, 0) bg = (np.array(bg) * 255).astype(np.uint8) l, b, r, t = self.axes.bbox.extents width = (ro...
https://github.com/matplotlib/matplotlib/issues/4227
Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/matplotlib/backends/backend_qt5.py", line 341, in resizeEvent self.draw() File "/usr/lib/python2.7/site-packages/matplotlib/backends/backend_qt5agg.py", line 143, in draw FigureCanvasAgg.draw(self) File "/usr/lib/python2.7/site-packages/matplotli...
TypeError
def eventplot( self, positions, orientation="horizontal", lineoffsets=1, linelengths=1, linewidths=None, colors=None, linestyles="solid", **kwargs, ): """ Plot identical parallel lines at specific positions. Call signature:: eventplot(positions, orientation='horiz...
def eventplot( self, positions, orientation="horizontal", lineoffsets=1, linelengths=1, linewidths=None, colors=None, linestyles="solid", **kwargs, ): """ Plot identical parallel lines at specific positions. Call signature:: eventplot(positions, orientation='horiz...
https://github.com/matplotlib/matplotlib/issues/3728
In [1]: events = np.random.exponential(0.5, size=100) In [2]: plt.eventplot(events) --------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-2-51aef4c82a54> in <module>() ----> 1 plt.eventplot(events) /usr/li...
ValueError
def _init(self): if True: # not self._initialized: if not self.Q._initialized: self.Q._init() self._set_transform() _pivot = self.Q.pivot self.Q.pivot = self.pivot[self.labelpos] # Hack: save and restore the Umask _mask = self.Q.Umask self.Q.Umask...
def _init(self): if True: # not self._initialized: self._set_transform() _pivot = self.Q.pivot self.Q.pivot = self.pivot[self.labelpos] # Hack: save and restore the Umask _mask = self.Q.Umask self.Q.Umask = ma.nomask self.verts = self.Q._make_verts(np.array([...
https://github.com/matplotlib/matplotlib/issues/2616
Exception in Tkinter callback Traceback (most recent call last): File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 1437, in __call__ return self.func(*args) File "/usr/lib/pymodules/python2.7/matplotlib/backends/backend_tkagg.py", line 236, in resize self.show() File "/usr/lib/pymodules/python2.7/matplotlib/backends/ba...
TypeError
def _init(self): """ Initialization delayed until first draw; allow time for axes setup. """ # It seems that there are not enough event notifications # available to have this work on an as-needed basis at present. if True: # not self._initialized: trans = self._set_transform() ...
def _init(self): """ Initialization delayed until first draw; allow time for axes setup. """ # It seems that there are not enough event notifications # available to have this work on an as-needed basis at present. if True: # not self._initialized: trans = self._set_transform() ...
https://github.com/matplotlib/matplotlib/issues/2616
Exception in Tkinter callback Traceback (most recent call last): File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 1437, in __call__ return self.func(*args) File "/usr/lib/pymodules/python2.7/matplotlib/backends/backend_tkagg.py", line 236, in resize self.show() File "/usr/lib/pymodules/python2.7/matplotlib/backends/ba...
TypeError
def figimage( self, X, xo=0, yo=0, alpha=None, norm=None, cmap=None, vmin=None, vmax=None, origin=None, **kwargs, ): """ Adds a non-resampled image to the figure. call signatures:: figimage(X, **kwargs) adds a non-resampled array *X* to the figure. ...
def figimage( self, X, xo=0, yo=0, alpha=None, norm=None, cmap=None, vmin=None, vmax=None, origin=None, **kwargs, ): """ Adds a non-resampled image to the figure. call signatures:: figimage(X, **kwargs) adds a non-resampled array *X* to the figure. ...
https://github.com/matplotlib/matplotlib/issues/1747
Traceback (most recent call last): File "<pyshell#6>", line 1, in <module> caption.remove() File "C:\Programme\Python27\lib\site-packages\matplotlib\artist.py", line 134, in remove raise NotImplementedError('cannot remove artist') NotImplementedError: cannot remove artist
NotImplementedError
def text(self, x, y, s, *args, **kwargs): """ Add text to figure. Call signature:: text(x, y, s, fontdict=None, **kwargs) Add text to figure at location *x*, *y* (relative 0-1 coords). See :func:`~matplotlib.pyplot.text` for the meaning of the other arguments. kwargs control the :c...
def text(self, x, y, s, *args, **kwargs): """ Add text to figure. Call signature:: text(x, y, s, fontdict=None, **kwargs) Add text to figure at location *x*, *y* (relative 0-1 coords). See :func:`~matplotlib.pyplot.text` for the meaning of the other arguments. kwargs control the :c...
https://github.com/matplotlib/matplotlib/issues/1747
Traceback (most recent call last): File "<pyshell#6>", line 1, in <module> caption.remove() File "C:\Programme\Python27\lib\site-packages\matplotlib\artist.py", line 134, in remove raise NotImplementedError('cannot remove artist') NotImplementedError: cannot remove artist
NotImplementedError
def find_previous_method( self, base_method, top_method, pre_method_list, visited_methods=None ): """ Find the previous method based on base method before top method. This will append the method into pre_method_list. :param base_method: the base function which needs to be searched. :param top_m...
def find_previous_method(self, base_method, top_method, pre_method_list): """ Find the previous method based on base method before top method. This will append the method into pre_method_list. :param base_method: the base function which needs to be searched. :param top_method: the top-level functio...
https://github.com/quark-engine/quark-engine/issues/46
Traceback (most recent call last): File "/Users/nick/Desktop/quark-engine/quark/Objects/xrule.py", line 71, in find_previous_method item, top_method, pre_method_list) File "/Users/nick/Desktop/quark-engine/quark/Objects/xrule.py", line 71, in find_previous_method item, top_method, pre_method_list) File "/Users/nick/Des...
RecursionError
def find_f_previous_method(self, base, top): """ Find the previous method based on base method before top method. This will append the method into self.pre_method0 :param base: :param top: :return: None """ method_set = self.upperFunc(base[0], base[1]) if method_set is not Non...
def find_f_previous_method(self, base, top): """ Find the previous method based on base method before top method. This will append the method into self.pre_method0 :param base: :param top: :return: None """ method_set = self.upperFunc(base[0], base[1]) if method_set is not Non...
https://github.com/quark-engine/quark-engine/issues/18
Traceback (most recent call last): File "main.py", line 172, in find_f_previous_method self.find_f_previous_method(item, top) File "main.py", line 172, in find_f_previous_method self.find_f_previous_method(item, top) File "main.py", line 172, in find_f_previous_method self.find_f_previous_method(item, top) [Previous li...
RecursionError
def find_s_previous_method(self, base, top): """ Find the previous method based on base method before top method. This will append the method into self.pre_method1 :param base: :param top: :return: None """ method_set = self.upperFunc(base[0], base[1]) if method_set is not Non...
def find_s_previous_method(self, base, top): """ Find the previous method based on base method before top method. This will append the method into self.pre_method1 :param base: :param top: :return: None """ method_set = self.upperFunc(base[0], base[1]) if method_set is not Non...
https://github.com/quark-engine/quark-engine/issues/18
Traceback (most recent call last): File "main.py", line 172, in find_f_previous_method self.find_f_previous_method(item, top) File "main.py", line 172, in find_f_previous_method self.find_f_previous_method(item, top) File "main.py", line 172, in find_f_previous_method self.find_f_previous_method(item, top) [Previous li...
RecursionError
def compare(self, action: int, checksum: bytes) -> bool: if self.action != action or self.checksum != checksum: return False if utime.ticks_ms() >= self.deadline: if self.workflow is not None: # We crossed the deadline, kill the running confirmation # workflow. `self.work...
def compare(self, action: int, checksum: bytes) -> bool: if self.action != action or self.checksum != checksum: return False if utime.ticks_ms() >= self.deadline: if self.workflow is not None: loop.close(self.workflow) return False return True
https://github.com/trezor/trezor-firmware/issues/448
Traceback (most recent call last): File "/home/andrew/firmware/core/src/apps/webauthn/__init__.py", line 329, in handle_reports File "/home/andrew/firmware/core/src/apps/webauthn/__init__.py", line 468, in dispatch_cmd File "/home/andrew/firmware/core/src/apps/webauthn/__init__.py", line 541, in msg_register File "/hom...
AttributeError
def setup(self, action: int, checksum: bytes, app_id: bytes) -> bool: if workflow.tasks or self.workflow: # If any other workflow is running, we bail out. return False self.action = action self.checksum = checksum self.app_id = app_id self.confirmed = None self.workflow = self....
def setup(self, action: int, checksum: bytes, app_id: bytes) -> bool: if workflow.workflows: return False self.action = action self.checksum = checksum self.app_id = app_id self.confirmed = None self.workflow = self.confirm_workflow() loop.schedule(self.workflow) return True
https://github.com/trezor/trezor-firmware/issues/448
Traceback (most recent call last): File "/home/andrew/firmware/core/src/apps/webauthn/__init__.py", line 329, in handle_reports File "/home/andrew/firmware/core/src/apps/webauthn/__init__.py", line 468, in dispatch_cmd File "/home/andrew/firmware/core/src/apps/webauthn/__init__.py", line 541, in msg_register File "/hom...
AttributeError
def get(self, request, *args, **kwargs): self.object = self.get_object() return super().get(request, *args, **kwargs)
def get(self, request, *args, **kwargs): order = request.GET.get("order", "") if not ( (not order.startswith("-") or order.count("-") == 1) and (order.lstrip("-") in self.all_sorts) ): order = self.get_default_sort_order(request) self.order = order return super(QueryStringSo...
https://github.com/DMOJ/online-judge/issues/1006
Traceback (most recent call last): File "/code/site/siteenv/lib/python3.6/site-packages/django/db/backends/utils.py", line 64, in execute return self.cursor.execute(sql, params) File "/code/site/siteenv/lib/python3.6/site-packages/django/db/backends/mysql/base.py", line 101, in execute return self.cursor.execute(query,...
MySQLdb._exceptions.DataError
def render(self, name, value, attrs=None, renderer=None): text = super(TextInput, self).render(name, value, attrs) return mark_safe( text + format_html( """\ <a href="#" onclick="return false;" class="button" id="id_{0}_regen">Regenerate</a> <script type="text/javascript"> (function ...
def render(self, name, value, attrs=None): text = super(TextInput, self).render(name, value, attrs) return mark_safe( text + format_html( """\ <a href="#" onclick="return false;" class="button" id="id_{0}_regen">Regenerate</a> <script type="text/javascript"> (function ($) {{ $(do...
https://github.com/DMOJ/online-judge/issues/1042
Traceback (most recent call last): File "/code/dmoj-virtenv3/lib/python3.5/site-packages/django/core/handlers/exception.py", line 34, in inner response = get_response(request) File "/code/dmoj-virtenv3/lib/python3.5/site-packages/django/core/handlers/base.py", line 156, in _get_response response = self.process_exceptio...
TypeError
def _preheat(schema_name: str) -> "GraphQLSchema": """ Loads the SDL and converts it to a GraphQLSchema instance before baking each registered objects of this schema. :param schema_name: name of the schema to treat :type schema_name: str :return: a pre-baked GraphQLSchema instance :rtype: Gr...
def _preheat(schema_name: str) -> "GraphQLSchema": """ Loads the SDL and converts it to a GraphQLSchema instance before baking each registered objects of this schema. :param schema_name: name of the schema to treat :type schema_name: str :return: a pre-baked GraphQLSchema instance :rtype: Gr...
https://github.com/tartiflette/tartiflette/issues/292
Traceback (most recent call last): File "/Users/morse/.pyenv/versions/3.7.2/lib/python3.7/site-packages/tartiflette/schema/schema.py", line 348, in get_field_by_name return self.type_definitions[parent_name].find_field(field_name) File "/Users/morse/.pyenv/versions/3.7.2/lib/python3.7/site-packages/tartiflette/types/ob...
KeyError
def _validate_non_empty_object(self) -> List[str]: """ Validates that object types implement at least one fields. :return: a list of errors :rtype: List[str] """ errors = [] for type_name, gql_type in self.type_definitions.items(): if isinstance(gql_type, GraphQLObjectType) and not [...
def _validate_non_empty_object(self) -> List[str]: """ Validates that object types implement at least one fields. :return: a list of errors :rtype: List[str] """ errors = [] for type_name, gql_type in self.type_definitions.items(): if ( isinstance(gql_type, GraphQLObjectT...
https://github.com/tartiflette/tartiflette/issues/292
Traceback (most recent call last): File "/Users/morse/.pyenv/versions/3.7.2/lib/python3.7/site-packages/tartiflette/schema/schema.py", line 348, in get_field_by_name return self.type_definitions[parent_name].find_field(field_name) File "/Users/morse/.pyenv/versions/3.7.2/lib/python3.7/site-packages/tartiflette/types/ob...
KeyError
async def bake( self, custom_default_resolver: Optional[Callable] = None, custom_default_type_resolver: Optional[Callable] = None, ) -> None: """ Bake the final schema (it should not change after this) used for execution. :param custom_default_resolver: callable that will replace the builtin...
async def bake( self, custom_default_resolver: Optional[Callable] = None, custom_default_type_resolver: Optional[Callable] = None, ) -> None: """ Bake the final schema (it should not change after this) used for execution. :param custom_default_resolver: callable that will replace the builtin...
https://github.com/tartiflette/tartiflette/issues/292
Traceback (most recent call last): File "/Users/morse/.pyenv/versions/3.7.2/lib/python3.7/site-packages/tartiflette/schema/schema.py", line 348, in get_field_by_name return self.type_definitions[parent_name].find_field(field_name) File "/Users/morse/.pyenv/versions/3.7.2/lib/python3.7/site-packages/tartiflette/types/ob...
KeyError
def register_sdl( schema_name: str, sdl: Union[str, List[str], GraphQLSchema], exclude_builtins_scalars: Optional[List[str]] = None, ) -> None: SchemaRegistry._schemas.setdefault(schema_name, {}) # Maybe read them one and use them a lot :p sdl_files_list = _get_builtins_sdl_files(exclude_builti...
def register_sdl( schema_name: str, sdl: Union[str, List[str], GraphQLSchema], exclude_builtins_scalars: Optional[List[str]] = None, ) -> None: SchemaRegistry._schemas.setdefault(schema_name, {}) # Maybe read them one and use them a lot :p sdl_files_list = _get_builtins_sdl_files(exclude_builti...
https://github.com/tartiflette/tartiflette/issues/201
Traceback (most recent call last): File "/home/bkc/PythonEnvironments/SFI.Projects.EntryWizard/bin/manifest-graphql", line 11, in <module> load_entry_point('entry-wizard', 'console_scripts', 'manifest-graphql')() File "/home/bkc/src/SFI/SFI.Projects.EntryWizard/entry_wizard/manifest_system/scripts/graphql_server.py", l...
lark.exceptions.UnexpectedToken
def __call__(self, implementation): if not iscoroutinefunction(implementation.on_field_execution): raise NonAwaitableDirective("%s is not awaitable" % repr(implementation)) SchemaRegistry.register_directive(self._schema_name, self) self._implementation = implementation return implementation
def __call__(self, implementation): if not iscoroutinefunction(implementation.on_execution): raise NonAwaitableDirective("%s is not awaitable" % repr(implementation)) SchemaRegistry.register_directive(self._schema_name, self) self._implementation = implementation return implementation
https://github.com/tartiflette/tartiflette/issues/133
Traceback (most recent call last): File "/usr/local/lib/python3.7/runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "/usr/local/lib/python3.7/runpy.py", line 85, in _run_code exec(code, run_globals) File "/usr/src/app/***/__main__.py", line 10, in <module> sys.exit(run()) File "/usr/src/app/***/app...
tartiflette.types.exceptions.tartiflette.UnexpectedASTNode
async def create_source_event_stream( self, execution_ctx: ExecutionContext, request_ctx: Optional[Dict[str, Any]], parent_result: Optional[Any] = None, ): if not self.subscribe: raise GraphQLError( "Can't execute a subscription query on a field which doesn't " "provi...
async def create_source_event_stream( self, execution_ctx: ExecutionContext, request_ctx: Optional[Dict[str, Any]], parent_result: Optional[Any] = None, ): if not self.subscribe: raise GraphQLError( "Can't execute a subscription query on a field which doesn't " "provi...
https://github.com/tartiflette/tartiflette/issues/133
Traceback (most recent call last): File "/usr/local/lib/python3.7/runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "/usr/local/lib/python3.7/runpy.py", line 85, in _run_code exec(code, run_globals) File "/usr/src/app/***/__main__.py", line 10, in <module> sys.exit(run()) File "/usr/src/app/***/app...
tartiflette.types.exceptions.tartiflette.UnexpectedASTNode