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 tristimulus_weighting_factors_ASTME202211(cmfs, illuminant, shape): """ Returns a table of tristimulus weighting factors for given colour matching functions and illuminant using practise *ASTM E2022-11* method [1]_. The computed table of tristimulus weighting factors should be used with spectra...
def tristimulus_weighting_factors_ASTME202211(cmfs, illuminant, shape): """ Returns a table of tristimulus weighting factors for given colour matching functions and illuminant using practise *ASTM E2022-11* method [1]_. The computed table of tristimulus weighting factors should be used with spectra...
https://github.com/colour-science/colour/issues/324
Traceback (most recent call last): File "test.py", line 84, in <module> plot.multi_spd_plot(spds, use_spds_colours=True) File "/Users/chandler/miniconda2/envs/py6s-env/lib/python2.7/site-packages/colour/plotting/colorimetry.py", line 215, in multi_spd_plot XYZ = spectral_to_XYZ(spd, cmfs, illuminant) / 100 File "/Users...
TypeError
def _alexa_wide_gamut_rgb_transfer_function( value, firmware="SUP 3.x", method="Linear Scene Exposure Factor", EI=800 ): """ Defines the *ALEXA Wide Gamut* colourspace transfer function. Parameters ---------- value : numeric value. firmware : unicode, optional {'SUP 3.x', 'S...
def _alexa_wide_gamut_rgb_transfer_function( value, firmware="SUP 3.x", method="Linear Scene Exposure Factor", EI=800 ): """ Defines the *ALEXA Wide Gamut* value colourspace transfer function. Parameters ---------- value : numeric value. firmware : unicode, optional {'SUP 3....
https://github.com/colour-science/colour/issues/157
--------------------------------------------------------------------------- PicklingError Traceback (most recent call last) <ipython-input-1-6796e1d3ddfb> in <module>() 61 # multi_process_colourspace_volume_MonteCarlo(colour.ADOBE_RGB_1998_COLOURSPACE, 10e3) 62 import pickle ---> 63 pickle.d...
PicklingError
def _alexa_wide_gamut_rgb_inverse_transfer_function( value, firmware="SUP 3.x", method="Linear Scene Exposure Factor", EI=800 ): """ Defines the *ALEXA Wide Gamut* colourspace inverse transfer function. Parameters ---------- value : numeric value. firmware : unicode, optional ...
def _alexa_wide_gamut_rgb_inverse_transfer_function( value, firmware="SUP 3.x", method="Linear Scene Exposure Factor", EI=800 ): """ Defines the *ALEXA Wide Gamut* value colourspace inverse transfer function. Parameters ---------- value : numeric value. firmware : unicode, optional ...
https://github.com/colour-science/colour/issues/157
--------------------------------------------------------------------------- PicklingError Traceback (most recent call last) <ipython-input-1-6796e1d3ddfb> in <module>() 61 # multi_process_colourspace_volume_MonteCarlo(colour.ADOBE_RGB_1998_COLOURSPACE, 10e3) 62 import pickle ---> 63 pickle.d...
PicklingError
async def _run( provider, # AWS profile, aws_access_key_id, aws_secret_access_key, aws_session_token, # Azure cli, user_account, user_account_browser, msi, service_principal, file_auth, tenant_id, subscription_ids, all_subscriptions, client_id, cli...
async def _run( provider, # AWS profile, aws_access_key_id, aws_secret_access_key, aws_session_token, # Azure cli, user_account, user_account_browser, msi, service_principal, file_auth, tenant_id, subscription_ids, all_subscriptions, client_id, cli...
https://github.com/nccgroup/ScoutSuite/issues/821
2020-07-24 03:56:32 ubuntu scout[3614] ERROR aad.py L30: Failed to retrieve user xxx-xxx-xxx-xxx-xxx: Resource 'xxx-xxxx-xxx-xxx-xxx-xx' does not exist or one of its queried reference-property objects are not present. Traceback (most recent call last): File "/home/victor/Documents/scout_59/ScoutSuite/ScoutSuite/provide...
azure.graphrbac.models.graph_error_py3.GraphErrorException
async def get_user(self, user_id): try: return await run_concurrently(lambda: self.get_client().users.get(user_id)) except Exception as e: print_exception("Failed to retrieve user {}: {}".format(user_id, e)) return None
async def get_user(self, user_id): try: return await run_concurrently(lambda: self.get_client().users.get(user_id)) except Exception as e: print_exception("Failed to retrieve user {}: {}".format(user_id, e)) return []
https://github.com/nccgroup/ScoutSuite/issues/821
2020-07-24 03:56:32 ubuntu scout[3614] ERROR aad.py L30: Failed to retrieve user xxx-xxx-xxx-xxx-xxx: Resource 'xxx-xxxx-xxx-xxx-xxx-xx' does not exist or one of its queried reference-property objects are not present. Traceback (most recent call last): File "/home/victor/Documents/scout_59/ScoutSuite/ScoutSuite/provide...
azure.graphrbac.models.graph_error_py3.GraphErrorException
def _match_rbac_roles_and_principals(self): """ Matches ARM role assignments to AAD service principals """ try: if "rbac" in self.service_list and "aad" in self.service_list: for subscription in self.services["rbac"]["subscriptions"]: for assignment in self.services["...
def _match_rbac_roles_and_principals(self): """ Matches ARM role assignments to AAD service principals """ if "rbac" in self.service_list and "aad" in self.service_list: for subscription in self.services["rbac"]["subscriptions"]: for assignment in self.services["rbac"]["subscriptions...
https://github.com/nccgroup/ScoutSuite/issues/821
2020-07-24 03:56:32 ubuntu scout[3614] ERROR aad.py L30: Failed to retrieve user xxx-xxx-xxx-xxx-xxx: Resource 'xxx-xxxx-xxx-xxx-xxx-xx' does not exist or one of its queried reference-property objects are not present. Traceback (most recent call last): File "/home/victor/Documents/scout_59/ScoutSuite/ScoutSuite/provide...
azure.graphrbac.models.graph_error_py3.GraphErrorException
async def fetch_additional_users(self, user_list): """ Special method to fetch additional users """ try: # fetch the users additional_users = Users(self.facade) await additional_users.fetch_additional_users(user_list) # add them to the resource and update count se...
async def fetch_additional_users(self, user_list): """ Special method to fetch additional users """ # fetch the users additional_users = Users(self.facade) await additional_users.fetch_additional_users(user_list) # add them to the resource and update count self["users"].update(additional...
https://github.com/nccgroup/ScoutSuite/issues/821
2020-07-24 03:56:32 ubuntu scout[3614] ERROR aad.py L30: Failed to retrieve user xxx-xxx-xxx-xxx-xxx: Resource 'xxx-xxxx-xxx-xxx-xxx-xx' does not exist or one of its queried reference-property objects are not present. Traceback (most recent call last): File "/home/victor/Documents/scout_59/ScoutSuite/ScoutSuite/provide...
azure.graphrbac.models.graph_error_py3.GraphErrorException
def assign_group_memberships(self): """ Assigns members to groups """ try: for group in self["groups"]: for user in self["users"]: if group in self["users"][user]["groups"]: self["groups"][group]["users"].append(user) except Exception as e: ...
def assign_group_memberships(self): """ Assigns members to groups """ for group in self["groups"]: for user in self["users"]: if group in self["users"][user]["groups"]: self["groups"][group]["users"].append(user)
https://github.com/nccgroup/ScoutSuite/issues/821
2020-07-24 03:56:32 ubuntu scout[3614] ERROR aad.py L30: Failed to retrieve user xxx-xxx-xxx-xxx-xxx: Resource 'xxx-xxxx-xxx-xxx-xxx-xx' does not exist or one of its queried reference-property objects are not present. Traceback (most recent call last): File "/home/victor/Documents/scout_59/ScoutSuite/ScoutSuite/provide...
azure.graphrbac.models.graph_error_py3.GraphErrorException
async def fetch_additional_users(self, user_list): """ Alternative method which only fetches defined users :param user_list: a list of the users to fetch and parse """ for user in user_list: raw_user = await self.facade.aad.get_user(user) if raw_user: id, user = await sel...
async def fetch_additional_users(self, user_list): """ Alternative method which only fetches defined users :param user_list: a list of the users to fetch and parse """ for user in user_list: raw_user = await self.facade.aad.get_user(user) id, user = await self._parse_user(raw_user) ...
https://github.com/nccgroup/ScoutSuite/issues/821
2020-07-24 03:56:32 ubuntu scout[3614] ERROR aad.py L30: Failed to retrieve user xxx-xxx-xxx-xxx-xxx: Resource 'xxx-xxxx-xxx-xxx-xxx-xx' does not exist or one of its queried reference-property objects are not present. Traceback (most recent call last): File "/home/victor/Documents/scout_59/ScoutSuite/ScoutSuite/provide...
azure.graphrbac.models.graph_error_py3.GraphErrorException
async def get_keys(self, region: str): try: keys = await AWSFacadeUtils.get_all_pages( "kms", region, self.session, "list_keys", "Keys" ) await get_and_set_concurrently( [ self._get_and_set_key_policy, self._get_and_set_key_metadata, ...
async def get_keys(self, region: str): try: keys = await AWSFacadeUtils.get_all_pages( "kms", region, self.session, "list_keys", "Keys" ) await get_and_set_concurrently( [ self._get_and_set_key_policy, self._get_and_set_key_metadata, ...
https://github.com/nccgroup/ScoutSuite/issues/697
Traceback (most recent call last): File "<redactedPath>env/lib/python3.7/site-packages/ScoutSuite/providers/aws/facade/kms.py", line 41, in _get_and_set_key_rotation_status lambda: client.get_key_rotation_status(KeyId=key['KeyId'])) File "<redactedPath>env/lib/python3.7/site-packages/ScoutSuite/providers/utils.py", lin...
botocore.exceptions.ClientError
async def fetch_all(self): raw_keys = await self.facade.kms.get_keys(self.region) for raw_key in raw_keys: key_id, key = await self._parse_key(raw_key) self[key_id] = key await self._fetch_children_of_all_resources( resources=self, scopes={ key_id: {"region": sel...
async def fetch_all(self): raw_keys = await self.facade.kms.get_keys(self.region) for raw_key in raw_keys: key_id, key = self._parse_key(raw_key) self[key_id] = key await self._fetch_children_of_all_resources( resources=self, scopes={ key_id: {"region": self.regi...
https://github.com/nccgroup/ScoutSuite/issues/697
Traceback (most recent call last): File "<redactedPath>env/lib/python3.7/site-packages/ScoutSuite/providers/aws/facade/kms.py", line 41, in _get_and_set_key_rotation_status lambda: client.get_key_rotation_status(KeyId=key['KeyId'])) File "<redactedPath>env/lib/python3.7/site-packages/ScoutSuite/providers/utils.py", lin...
botocore.exceptions.ClientError
async def _parse_key(self, raw_key): key_dict = {} key_dict["id"] = key_dict["name"] = raw_key.get("KeyId") key_dict["arn"] = raw_key.get("KeyArn") key_dict["policy"] = raw_key.get("policy") if "metadata" in raw_key: key_dict["creation_date"] = ( raw_key["metadata"]["KeyMetadata...
def _parse_key(self, raw_key): key_dict = {} key_dict["id"] = key_dict["name"] = raw_key.get("KeyId") key_dict["arn"] = raw_key.get("KeyArn") key_dict["rotation_enabled"] = ( raw_key["rotation_status"]["KeyRotationEnabled"] if "rotation_status" in raw_key else None ) key...
https://github.com/nccgroup/ScoutSuite/issues/697
Traceback (most recent call last): File "<redactedPath>env/lib/python3.7/site-packages/ScoutSuite/providers/aws/facade/kms.py", line 41, in _get_and_set_key_rotation_status lambda: client.get_key_rotation_status(KeyId=key['KeyId'])) File "<redactedPath>env/lib/python3.7/site-packages/ScoutSuite/providers/utils.py", lin...
botocore.exceptions.ClientError
def _parse_alias(self, raw_alias): alias_dict = { # all KMS Aliases are prefixed with alias/, so we'll strip that off "id": get_non_provider_id(raw_alias.get("AliasArn")), "name": raw_alias.get("AliasName").split("alias/", 1)[-1], "arn": raw_alias.get("AliasArn"), "key_id": r...
def _parse_alias(self, raw_alias): alias_dict = { # all KMS Aliases are prefixed with alias/, so we'll strip that off "id": get_non_provider_id(raw_alias.get("AliasArn")), "name": raw_alias.get("AliasName").split("alias/", 1)[-1], "arn": raw_alias.get("AliasArn"), "key_id": r...
https://github.com/nccgroup/ScoutSuite/issues/697
Traceback (most recent call last): File "<redactedPath>env/lib/python3.7/site-packages/ScoutSuite/providers/aws/facade/kms.py", line 41, in _get_and_set_key_rotation_status lambda: client.get_key_rotation_status(KeyId=key['KeyId'])) File "<redactedPath>env/lib/python3.7/site-packages/ScoutSuite/providers/utils.py", lin...
botocore.exceptions.ClientError
def _parse_bucket(self, raw_bucket): bucket_dict = {} bucket_dict["id"] = get_non_provider_id(raw_bucket.id) bucket_dict["name"] = raw_bucket.name bucket_dict["project_id"] = self.project_id bucket_dict["project_number"] = raw_bucket.project_number bucket_dict["creation_date"] = raw_bucket.time_...
def _parse_bucket(self, raw_bucket): bucket_dict = {} bucket_dict["id"] = get_non_provider_id(raw_bucket.id) bucket_dict["name"] = raw_bucket.name bucket_dict["project_id"] = self.project_id bucket_dict["project_number"] = raw_bucket.project_number bucket_dict["creation_date"] = raw_bucket.time_...
https://github.com/nccgroup/ScoutSuite/issues/673
2020-03-16` 17:43:42 renzo-latacora-work asyncio[17820] ERROR Task exception was never retrieved future: <Task finished coro=<Instances.fetch_all() done, defined at /home/user/Documents/scoutsuite/LatacoraScoutSuite/ScoutSuite/ScoutSuite/providers/gcp/resources/gce/instances.py:17> exception=KeyError('source')> Traceba...
KeyError
def put_cidr_name(current_config, path, current_path, resource_id, callback_args): """Add a display name for all known CIDRs.""" if "cidrs" in current_config: cidr_list = [] for cidr in current_config["cidrs"]: if type(cidr) == dict: cidr = cidr["CIDR"] i...
def put_cidr_name( aws_config, current_config, path, current_path, resource_id, callback_args ): """Add a display name for all known CIDRs.""" if "cidrs" in current_config: cidr_list = [] for cidr in current_config["cidrs"]: if type(cidr) == dict: cidr = cidr["CI...
https://github.com/nccgroup/ScoutSuite/issues/629
scout aws --ip-ranges ./ip-ranges-default2.json --ip-ranges-name-key name scout[78207] INFO Fetching resources for the ACM service scout[78207] INFO Fetching resources for the Lambda service scout[78207] INFO Fetching resources for the CloudFormation service scout[78207] INFO Fetching resources for the CloudTrail servi...
TypeError
def _parse_instance(self, raw_instance): instance_dict = {} instance_dict["id"] = get_non_provider_id(raw_instance["name"]) instance_dict["project_id"] = self.project_id instance_dict["name"] = raw_instance["name"] instance_dict["description"] = self._get_description(raw_instance) instance_dict[...
def _parse_instance(self, raw_instance): instance_dict = {} instance_dict["id"] = get_non_provider_id(raw_instance["name"]) instance_dict["project_id"] = self.project_id instance_dict["name"] = raw_instance["name"] instance_dict["description"] = self._get_description(raw_instance) instance_dict[...
https://github.com/nccgroup/ScoutSuite/issues/396
$ scout gcp --user-account Task exception was never retrieved future: <Task finished coro=<Instances.fetch_all() done, defined at /home/user/.local/lib/python3.7/site-packages/ScoutSuite/providers/gcp/resources/gce/instances.py:17> exception=KeyError('serviceAccounts')> Traceback (most recent call last): File "/home/us...
KeyError
def _has_full_access_to_all_cloud_apis(self, raw_instance): full_access_scope = "https://www.googleapis.com/auth/cloud-platform" return any( full_access_scope in service_account["scopes"] for service_account in raw_instance.get("serviceAccounts", []) )
def _has_full_access_to_all_cloud_apis(self, raw_instance): full_access_scope = "https://www.googleapis.com/auth/cloud-platform" return any( full_access_scope in service_account["scopes"] for service_account in raw_instance["serviceAccounts"] )
https://github.com/nccgroup/ScoutSuite/issues/396
$ scout gcp --user-account Task exception was never retrieved future: <Task finished coro=<Instances.fetch_all() done, defined at /home/user/.local/lib/python3.7/site-packages/ScoutSuite/providers/gcp/resources/gce/instances.py:17> exception=KeyError('serviceAccounts')> Traceback (most recent call last): File "/home/us...
KeyError
def _parse_instance(self, raw_instance): instance_dict = {} instance_dict["id"] = get_non_provider_id(raw_instance["name"]) instance_dict["project_id"] = self.project_id instance_dict["name"] = raw_instance["name"] instance_dict["description"] = self._get_description(raw_instance) instance_dict[...
def _parse_instance(self, raw_instance): instance_dict = {} instance_dict["id"] = get_non_provider_id(raw_instance["name"]) instance_dict["project_id"] = self.project_id instance_dict["name"] = raw_instance["name"] instance_dict["description"] = self._get_description(raw_instance) instance_dict[...
https://github.com/nccgroup/ScoutSuite/issues/396
$ scout gcp --user-account Task exception was never retrieved future: <Task finished coro=<Instances.fetch_all() done, defined at /home/user/.local/lib/python3.7/site-packages/ScoutSuite/providers/gcp/resources/gce/instances.py:17> exception=KeyError('serviceAccounts')> Traceback (most recent call last): File "/home/us...
KeyError
def __init__(self, metadata=None, thread_config=4, **kwargs): self.cloudformation = CloudFormationConfig( metadata["management"]["cloudformation"], thread_config ) self.cloudtrail = CloudTrailConfig( metadata["management"]["cloudtrail"], thread_config ) self.cloudwatch = CloudWatchCo...
def __init__(self, metadata=None, thread_config=4, **kwargs): self.cloudformation = CloudFormationConfig( metadata["management"]["cloudformation"], thread_config ) self.cloudtrail = CloudTrailConfig( metadata["management"]["cloudtrail"], thread_config ) self.cloudwatch = CloudWatchCo...
https://github.com/nccgroup/ScoutSuite/issues/24
File '/report/inc-awsconfig/exceptions.js' already exists. Do you want to overwrite it (y/n)? EOF when reading a lineCreating /report/report.html ... File '/report/report.html' already exists. Do you want to overwrite it (y/n)? Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/AWSScout2/o...
NameError
def preprocessing(self, ip_ranges=None, ip_ranges_name_key=None): """ Tweak the AWS config to match cross-service resources and clean any fetching artifacts :param ip_ranges: :param ip_ranges_name_key: :return: None """ ip_ranges = [] if ip_ranges is None else ip_ranges self._map_all_sg...
def preprocessing(self, ip_ranges=None, ip_ranges_name_key=None): """ Tweak the AWS config to match cross-service resources and clean any fetching artifacts :param ip_ranges: :param ip_ranges_name_key: :return: None """ ip_ranges = [] if ip_ranges is None else ip_ranges self._map_all_sg...
https://github.com/nccgroup/ScoutSuite/issues/24
File '/report/inc-awsconfig/exceptions.js' already exists. Do you want to overwrite it (y/n)? EOF when reading a lineCreating /report/report.html ... File '/report/report.html' already exists. Do you want to overwrite it (y/n)? Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/AWSScout2/o...
NameError
def parse_instance(self, global_params, region, reservation): """ Parse a single EC2 instance :param global_params: Parameters shared for all regions :param region: Name of the AWS region :param instance: Cluster """ for i in reservation["Instances"...
def parse_instance(self, global_params, region, reservation): """ Parse a single EC2 instance :param global_params: Parameters shared for all regions :param region: Name of the AWS region :param instance: Cluster """ for i in reservation["Instances"...
https://github.com/nccgroup/ScoutSuite/issues/24
File '/report/inc-awsconfig/exceptions.js' already exists. Do you want to overwrite it (y/n)? EOF when reading a lineCreating /report/report.html ... File '/report/report.html' already exists. Do you want to overwrite it (y/n)? Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/AWSScout2/o...
NameError
def __init__(self, metadata=None, thread_config=4, **kwargs): self.storageaccounts = StorageAccountsConfig(thread_config=thread_config) self.monitor = MonitorConfig(thread_config=thread_config) self.sqldatabase = SQLDatabaseConfig(thread_config=thread_config) self.securitycenter = SecurityCenterConfig(t...
def __init__(self, metadata=None, thread_config=4, **kwargs): self.storageaccounts = StorageAccountsConfig(thread_config=thread_config) self.monitor = MonitorConfig(thread_config=thread_config) self.sqldatabase = SQLDatabaseConfig(thread_config=thread_config) self.securitycenter = SecurityCenterConfig(t...
https://github.com/nccgroup/ScoutSuite/issues/24
File '/report/inc-awsconfig/exceptions.js' already exists. Do you want to overwrite it (y/n)? EOF when reading a lineCreating /report/report.html ... File '/report/report.html' already exists. Do you want to overwrite it (y/n)? Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/AWSScout2/o...
NameError
def azure_connect_service(service, credentials, region_name=None): try: if service == "storageaccounts": return StorageManagementClient( credentials.credentials, credentials.subscription_id ) elif service == "monitor": return MonitorManagementClien...
def azure_connect_service(service, credentials, region_name=None): try: if service == "storageaccounts": return StorageManagementClient( credentials.credentials, credentials.subscription_id ) elif service == "monitor": return MonitorManagementClien...
https://github.com/nccgroup/ScoutSuite/issues/24
File '/report/inc-awsconfig/exceptions.js' already exists. Do you want to overwrite it (y/n)? EOF when reading a lineCreating /report/report.html ... File '/report/report.html' already exists. Do you want to overwrite it (y/n)? Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/AWSScout2/o...
NameError
def __init__(self, metadata=None, thread_config=4, **kwargs): self.storageaccounts = StorageAccountsConfig(thread_config=thread_config) self.monitor = MonitorConfig(thread_config=thread_config) self.sqldatabase = SQLDatabaseConfig(thread_config=thread_config) self.securitycenter = SecurityCenterConfig(t...
def __init__(self, metadata=None, thread_config=4, **kwargs): self.storageaccounts = StorageAccountsConfig(thread_config=thread_config) self.monitor = MonitorConfig(thread_config=thread_config) self.sqldatabase = SQLDatabaseConfig(thread_config=thread_config) self.securitycenter = SecurityCenterConfig(t...
https://github.com/nccgroup/ScoutSuite/issues/24
File '/report/inc-awsconfig/exceptions.js' already exists. Do you want to overwrite it (y/n)? EOF when reading a lineCreating /report/report.html ... File '/report/report.html' already exists. Do you want to overwrite it (y/n)? Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/AWSScout2/o...
NameError
def azure_connect_service(service, credentials, region_name=None): try: if service == "storageaccounts": return StorageManagementClient( credentials.credentials, credentials.subscription_id ) elif service == "monitor": return MonitorManagementClien...
def azure_connect_service(service, credentials, region_name=None): try: if service == "storageaccounts": return StorageManagementClient( credentials.credentials, credentials.subscription_id ) elif service == "monitor": return MonitorManagementClien...
https://github.com/nccgroup/ScoutSuite/issues/24
File '/report/inc-awsconfig/exceptions.js' already exists. Do you want to overwrite it (y/n)? EOF when reading a lineCreating /report/report.html ... File '/report/report.html' already exists. Do you want to overwrite it (y/n)? Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/AWSScout2/o...
NameError
def output(self, outs, msg, display_id, cell_index): if self.clear_before_next_output: self.outputs = [] self.clear_before_next_output = False self.parent_header = msg["parent_header"] content = msg["content"] if "data" not in content: output = { "output_type": "strea...
def output(self, outs, msg, display_id, cell_index): if self.clear_before_next_output: self.outputs = [] self.clear_before_next_output = False self.parent_header = msg["parent_header"] content = msg["content"] if "data" not in content: output = { "output_type": "strea...
https://github.com/voila-dashboards/voila/issues/355
Traceback (most recent call last): ... File "/opt/anaconda3/lib/python3.7/site-packages/voila/execute.py", line 79, in set_state del self.executor.output_hook[self.msg_id] KeyError: 'e7108564-b1a38beaf451e1c7095357b2'
KeyError
def set_state(self, state): if "msg_id" in state: msg_id = state.get("msg_id") if msg_id: self.executor.register_output_hook(msg_id, self) self.msg_id = msg_id else: self.executor.remove_output_hook(self.msg_id, self) self.msg_id = msg_id
def set_state(self, state): if "msg_id" in state: msg_id = state.get("msg_id") if msg_id: self.executor.output_hook[msg_id] = self self.msg_id = msg_id else: del self.executor.output_hook[self.msg_id] self.msg_id = msg_id
https://github.com/voila-dashboards/voila/issues/355
Traceback (most recent call last): ... File "/opt/anaconda3/lib/python3.7/site-packages/voila/execute.py", line 79, in set_state del self.executor.output_hook[self.msg_id] KeyError: 'e7108564-b1a38beaf451e1c7095357b2'
KeyError
def preprocess(self, nb, resources, km=None): self.output_hook_stack = collections.defaultdict( list ) # maps to list of hooks, where the last is used self.output_objects = {} try: result = super(VoilaExecutePreprocessor, self).preprocess( nb, resources=resources, km=km ...
def preprocess(self, nb, resources, km=None): self.output_hook = {} self.output_objects = {} try: result = super(VoilaExecutePreprocessor, self).preprocess( nb, resources=resources, km=km ) except CellExecutionError as e: self.log.error(e) result = (nb, resour...
https://github.com/voila-dashboards/voila/issues/355
Traceback (most recent call last): ... File "/opt/anaconda3/lib/python3.7/site-packages/voila/execute.py", line 79, in set_state del self.executor.output_hook[self.msg_id] KeyError: 'e7108564-b1a38beaf451e1c7095357b2'
KeyError
def output(self, outs, msg, display_id, cell_index): parent_msg_id = msg["parent_header"].get("msg_id") if self.output_hook_stack[parent_msg_id]: hook = self.output_hook_stack[parent_msg_id][-1] hook.output(outs, msg, display_id, cell_index) return super(VoilaExecutePreprocessor, sel...
def output(self, outs, msg, display_id, cell_index): parent_msg_id = msg["parent_header"].get("msg_id") if parent_msg_id in self.output_hook: self.output_hook[parent_msg_id].output(outs, msg, display_id, cell_index) return super(VoilaExecutePreprocessor, self).output(outs, msg, display_id, c...
https://github.com/voila-dashboards/voila/issues/355
Traceback (most recent call last): ... File "/opt/anaconda3/lib/python3.7/site-packages/voila/execute.py", line 79, in set_state del self.executor.output_hook[self.msg_id] KeyError: 'e7108564-b1a38beaf451e1c7095357b2'
KeyError
def clear_output(self, outs, msg, cell_index): parent_msg_id = msg["parent_header"].get("msg_id") if self.output_hook_stack[parent_msg_id]: hook = self.output_hook_stack[parent_msg_id][-1] hook.clear_output(outs, msg, cell_index) return super(VoilaExecutePreprocessor, self).clear_out...
def clear_output(self, outs, msg, cell_index): parent_msg_id = msg["parent_header"].get("msg_id") if parent_msg_id in self.output_hook: self.output_hook[parent_msg_id].clear_output(outs, msg, cell_index) return super(VoilaExecutePreprocessor, self).clear_output(outs, msg, cell_index)
https://github.com/voila-dashboards/voila/issues/355
Traceback (most recent call last): ... File "/opt/anaconda3/lib/python3.7/site-packages/voila/execute.py", line 79, in set_state del self.executor.output_hook[self.msg_id] KeyError: 'e7108564-b1a38beaf451e1c7095357b2'
KeyError
def advanced_settings(): """Track the existence of <cleanonupdate>true</cleanonupdate> It is incompatible with plugin paths. """ if settings("useDirectPaths") != "0": return path = xbmc.translatePath("special://profile/") file = os.path.join(path, "advancedsettings.xml") try: ...
def advanced_settings(): """Track the existence of <cleanonupdate>true</cleanonupdate> It is incompatible with plugin paths. """ if settings("useDirectPaths") != "0": return path = xbmc.translatePath("special://profile/") file = os.path.join(path, "advancedsettings.xml") try: ...
https://github.com/jellyfin/jellyfin-kodi/issues/470
2021-02-14 03:15:59.646 T:1455395040 NOTICE: JELLYFIN.library -> ERROR::jellyfin_kodi/library.py:319 [Errno 21] Is a directory: u'/home/osmc/.kodi/userdata/' Traceback (most recent call last): File "jellyfin_kodi/library.py", line 315, in startup sync.libraries() File "jellyfin_kodi/full_sync.py", line 100, in librari...
IOError
def _add_editcontrol(self, x, y, height, width, password=False): kwargs = dict( label="", font="font13", textColor="FF00A4DC", disabledColor="FF888888", focusTexture="-", noFocusTexture="-", ) # TODO: Kodi 17 compat removal cleanup if kodi_version() < 18:...
def _add_editcontrol(self, x, y, height, width, password=False): kwargs = dict( label="User", font="font13", textColor="FF00A4DC", disabledColor="FF888888", focusTexture="-", noFocusTexture="-", ) # TODO: Kodi 17 compat removal cleanup if kodi_version() <...
https://github.com/jellyfin/jellyfin-kodi/issues/428
2020-11-20 11:12:04.823 T:29417 INFO <general>: JELLYFIN.database -> ERROR::jellyfin_kodi/database/__init__.py:163 type: <class 'sqlite3.OperationalError'> value: no such column: strFanart 2020-11-20 11:12:04.839 T:29417 INFO <general>: JELLYFIN.database -> ERROR::jellyfin_kodi/database/__init__.py:163 type: <cla...
sqlite3.OperationalError
def _add_editcontrol(self, x, y, height, width): control = xbmcgui.ControlEdit( 0, 0, 0, 0, label="", font="font13", textColor="FF00A4DC", disabledColor="FF888888", focusTexture="-", noFocusTexture="-", ) control.setPosition(x, ...
def _add_editcontrol(self, x, y, height, width): control = xbmcgui.ControlEdit( 0, 0, 0, 0, label="User", font="font13", textColor="FF00A4DC", disabledColor="FF888888", focusTexture="-", noFocusTexture="-", ) control.setPosition...
https://github.com/jellyfin/jellyfin-kodi/issues/428
2020-11-20 11:12:04.823 T:29417 INFO <general>: JELLYFIN.database -> ERROR::jellyfin_kodi/database/__init__.py:163 type: <class 'sqlite3.OperationalError'> value: no such column: strFanart 2020-11-20 11:12:04.839 T:29417 INFO <general>: JELLYFIN.database -> ERROR::jellyfin_kodi/database/__init__.py:163 type: <cla...
sqlite3.OperationalError
def __init__(self, server_id=None, api_client=None): self.server_id = server_id or None if not api_client: LOG.debug("No api client provided, attempting to use config file") jellyfin_client = Jellyfin(server_id).get_client() api_client = jellyfin_client.jellyfin addon_data = xbmc...
def __init__(self, server_id=None, api_client=None): self.server_id = server_id or None self.api_client = api_client self.server = self.api_client.config.data["auth.server"] self.stack = []
https://github.com/jellyfin/jellyfin-kodi/issues/428
2020-11-20 11:12:04.823 T:29417 INFO <general>: JELLYFIN.database -> ERROR::jellyfin_kodi/database/__init__.py:163 type: <class 'sqlite3.OperationalError'> value: no such column: strFanart 2020-11-20 11:12:04.839 T:29417 INFO <general>: JELLYFIN.database -> ERROR::jellyfin_kodi/database/__init__.py:163 type: <cla...
sqlite3.OperationalError
def update(self, *args): if self.version_id < 74: self.cursor.execute(QU.update_artist74, args) else: # No field for backdrops in Kodi 19, so we need to omit that here args = args[:3] + args[4:] self.cursor.execute(QU.update_artist82, args)
def update(self, *args): self.cursor.execute(QU.update_artist, args)
https://github.com/jellyfin/jellyfin-kodi/issues/428
2020-11-20 11:12:04.823 T:29417 INFO <general>: JELLYFIN.database -> ERROR::jellyfin_kodi/database/__init__.py:163 type: <class 'sqlite3.OperationalError'> value: no such column: strFanart 2020-11-20 11:12:04.839 T:29417 INFO <general>: JELLYFIN.database -> ERROR::jellyfin_kodi/database/__init__.py:163 type: <cla...
sqlite3.OperationalError
def event(method, data=None, sender=None, hexlify=False): """Data is a dictionary.""" data = data or {} sender = sender or "plugin.video.jellyfin" if hexlify: data = ensure_text(binascii.hexlify(ensure_binary(json.dumps(data)))) data = '"[%s]"' % json.dumps(data).replace('"', '\\"') L...
def event(method, data=None, sender=None, hexlify=False): """Data is a dictionary.""" data = data or {} sender = sender or "plugin.video.jellyfin" if hexlify: data = '\\"[\\"{0}\\"]\\"'.format(binascii.hexlify(json.dumps(data))) else: data = '"[%s]"' % json.dumps(data).replace('"', ...
https://github.com/jellyfin/jellyfin-kodi/issues/441
2020-12-09 21:34:39.454 T:3534 NOTICE: Creating InputStream 2020-12-09 21:34:47.723 T:3458 NOTICE: VideoInfoScanner: Starting scan .. 2020-12-09 21:34:47.728 T:3458 NOTICE: VideoInfoScanner: Finished scan. Scanning for video info took 00:00 2020-12-09 21:34:53.734 T:3534 NOTICE: Creating Demuxer 2020-12-09 21:34:54...
TypeError
def fast_sync(self): """Movie and userdata not provided by server yet.""" last_sync = settings("LastIncrementalSync") include = [] filters = ["tvshows", "boxsets", "musicvideos", "music", "movies"] sync = get_sync() LOG.info("--[ retrieve changes ] %s", last_sync) # Get the item type of eac...
def fast_sync(self): """Movie and userdata not provided by server yet.""" last_sync = settings("LastIncrementalSync") filters = ["tvshows", "boxsets", "musicvideos", "music", "movies"] sync = get_sync() LOG.info("--[ retrieve changes ] %s", last_sync) try: updated = [] userdata ...
https://github.com/jellyfin/jellyfin-kodi/issues/270
2020-04-08 20:06:13.443 T:140039749101312 NOTICE: JELLYFIN.objects.music -> ERROR::jellyfin_kodi/objects/music.py:392 'NoneType' object has no attribute '__getitem__' Traceback (most recent call last): File "jellyfin_kodi/objects/music.py", line 390, in song_artist_link temp_obj['ArtistId'] = self.jellyfin_db.get_item...
TypeError
def run(self): with Database("jellyfin") as jellyfindb: database = jellyfin_db.JellyfinDatabase(jellyfindb.cursor) while True: try: item_id = self.queue.get(timeout=1) except Queue.Empty: break try: media = databas...
def run(self): with Database("jellyfin") as jellyfindb: database = jellyfin_db.JellyfinDatabase(jellyfindb.cursor) while True: try: item_id = self.queue.get(timeout=1) except Queue.Empty: break try: media = databas...
https://github.com/jellyfin/jellyfin-kodi/issues/270
2020-04-08 20:06:13.443 T:140039749101312 NOTICE: JELLYFIN.objects.music -> ERROR::jellyfin_kodi/objects/music.py:392 'NoneType' object has no attribute '__getitem__' Traceback (most recent call last): File "jellyfin_kodi/objects/music.py", line 390, in song_artist_link temp_obj['ArtistId'] = self.jellyfin_db.get_item...
TypeError
def format(self, record): if record.pathname: record.pathname = ensure_text(record.pathname, get_filesystem_encoding()) self._gen_rel_path(record) # Call the original formatter class to do the grunt work result = logging.Formatter.format(self, record) return result
def format(self, record): if record.pathname: record.pathname = ensure_text(record.pathname, sys.getfilesystemencoding()) self._gen_rel_path(record) # Call the original formatter class to do the grunt work result = logging.Formatter.format(self, record) return result
https://github.com/jellyfin/jellyfin-kodi/issues/285
ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<-- - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS! Error Type: <type 'exceptions.TypeError'> Error Contents: decode() argument 1 must be string, not None Traceback (most recent call last): File "/storage/emulated/0/A...
TypeError
def formatException(self, exc_info): _pluginpath_real = os.path.realpath(__pluginpath__) res = [] for o in traceback.format_exception(*exc_info): o = ensure_text(o, get_filesystem_encoding()) if o.startswith(' File "'): # If this split can't handle your file names, you should ...
def formatException(self, exc_info): _pluginpath_real = os.path.realpath(__pluginpath__) res = [] for o in traceback.format_exception(*exc_info): o = ensure_text(o, sys.getfilesystemencoding()) if o.startswith(' File "'): # If this split can't handle your file names, you shoul...
https://github.com/jellyfin/jellyfin-kodi/issues/285
ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<-- - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS! Error Type: <type 'exceptions.TypeError'> Error Contents: decode() argument 1 must be string, not None Traceback (most recent call last): File "/storage/emulated/0/A...
TypeError
def mapping(self): """Load objects mapping.""" file_dir = os.path.dirname(ensure_text(__file__, get_filesystem_encoding())) with open(os.path.join(file_dir, "obj_map.json")) as infile: self.objects = json.load(infile)
def mapping(self): """Load objects mapping.""" file_dir = os.path.dirname(ensure_text(__file__, sys.getfilesystemencoding())) with open(os.path.join(file_dir, "obj_map.json")) as infile: self.objects = json.load(infile)
https://github.com/jellyfin/jellyfin-kodi/issues/285
ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<-- - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS! Error Type: <type 'exceptions.TypeError'> Error Contents: decode() argument 1 must be string, not None Traceback (most recent call last): File "/storage/emulated/0/A...
TypeError
def format(self, record): if record.pathname: record.pathname = ensure_text(record.pathname, sys.getfilesystemencoding()) self._gen_rel_path(record) # Call the original formatter class to do the grunt work result = logging.Formatter.format(self, record) return result
def format(self, record): self._gen_rel_path(record) # Call the original formatter class to do the grunt work result = logging.Formatter.format(self, record) return result
https://github.com/jellyfin/jellyfin-kodi/issues/273
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS! Error Type: <type 'exceptions.UnicodeDecodeError'> Error Contents: 'ascii' codec can't decode byte 0xcc in position 7: ordinal not in range(128) Traceback (most recent call last): File "C:\Users\��\AppData\Roaming\Kodi\addons\plugin.video.jellyfin\service.py", line 22, in...
UnicodeDecodeError
def formatException(self, exc_info): _pluginpath_real = os.path.realpath(__pluginpath__) res = [] for o in traceback.format_exception(*exc_info): o = ensure_text(o, sys.getfilesystemencoding()) if o.startswith(' File "'): # If this split can't handle your file names, you shoul...
def formatException(self, exc_info): _pluginpath_real = os.path.realpath(__pluginpath__) res = [] for o in traceback.format_exception(*exc_info): if o.startswith(' File "'): # If this split can't handle your file names, you should seriously consider renaming your files. fn ...
https://github.com/jellyfin/jellyfin-kodi/issues/273
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS! Error Type: <type 'exceptions.UnicodeDecodeError'> Error Contents: 'ascii' codec can't decode byte 0xcc in position 7: ordinal not in range(128) Traceback (most recent call last): File "C:\Users\��\AppData\Roaming\Kodi\addons\plugin.video.jellyfin\service.py", line 22, in...
UnicodeDecodeError
def mapping(self): """Load objects mapping.""" file_dir = os.path.dirname(ensure_text(__file__, sys.getfilesystemencoding())) with open(os.path.join(file_dir, "obj_map.json")) as infile: self.objects = json.load(infile)
def mapping(self): """Load objects mapping.""" with open(os.path.join(os.path.dirname(__file__), "obj_map.json")) as infile: self.objects = json.load(infile)
https://github.com/jellyfin/jellyfin-kodi/issues/273
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS! Error Type: <type 'exceptions.UnicodeDecodeError'> Error Contents: 'ascii' codec can't decode byte 0xcc in position 7: ordinal not in range(128) Traceback (most recent call last): File "C:\Users\��\AppData\Roaming\Kodi\addons\plugin.video.jellyfin\service.py", line 22, in...
UnicodeDecodeError
def _get_items(query, server_id=None): """query = { 'url': string, 'params': dict -- opt, include StartIndex to resume } """ items = {"Items": [], "TotalRecordCount": 0, "RestorePoint": {}} url = query["url"] query.setdefault("params", {}) params = query["params"] try: ...
def _get_items(query, server_id=None): """query = { 'url': string, 'params': dict -- opt, include StartIndex to resume } """ items = {"Items": [], "TotalRecordCount": 0, "RestorePoint": {}} url = query["url"] query.setdefault("params", {}) params = query["params"] try: ...
https://github.com/jellyfin/jellyfin-kodi/issues/216
2020-02-27 16:39:00.274 T:20092 NOTICE: JELLYFIN.full_sync -> ERROR::jellyfin_kodi\full_sync.py:240 year is out of range Traceback (most recent call last): File "jellyfin_kodi\full_sync.py", line 231, in process_library media[library['CollectionType']](library) File "jellyfin_kodi\helper\wrapper.py", line 40, in wrappe...
ValueError
def get_root(app, request=None): """Return a tuple composed of ``(root, closer)`` when provided a :term:`router` instance as the ``app`` argument. The ``root`` returned is the application root object. The ``closer`` returned is a callable (accepting no arguments) that should be called when your sc...
def get_root(app, request=None): """Return a tuple composed of ``(root, closer)`` when provided a :term:`router` instance as the ``app`` argument. The ``root`` returned is the application root object. The ``closer`` returned is a callable (accepting no arguments) that should be called when your sc...
https://github.com/Pylons/pyramid/issues/3262
# bin/pshell mything/development.ini Python 3.5.2 (default, Nov 23 2017, 16:37:01) [GCC 5.4.0 20160609] on linux Type "help" for more information. Environment: app The WSGI application. registry Active Pyramid registry. request Active request object. root Root of the default resource tree. ro...
AttributeError
def closer(): ctx.end()
def closer(request=request): # keep request alive via this function default app.threadlocal_manager.pop()
https://github.com/Pylons/pyramid/issues/3262
# bin/pshell mything/development.ini Python 3.5.2 (default, Nov 23 2017, 16:37:01) [GCC 5.4.0 20160609] on linux Type "help" for more information. Environment: app The WSGI application. registry Active Pyramid registry. request Active request object. root Root of the default resource tree. ro...
AttributeError
def prepare(request=None, registry=None): """This function pushes data onto the Pyramid threadlocal stack (request and registry), making those objects 'current'. It returns a dictionary useful for bootstrapping a Pyramid application in a scripting environment. ``request`` is passed to the :app:`Py...
def prepare(request=None, registry=None): """This function pushes data onto the Pyramid threadlocal stack (request and registry), making those objects 'current'. It returns a dictionary useful for bootstrapping a Pyramid application in a scripting environment. ``request`` is passed to the :app:`Py...
https://github.com/Pylons/pyramid/issues/3262
# bin/pshell mything/development.ini Python 3.5.2 (default, Nov 23 2017, 16:37:01) [GCC 5.4.0 20160609] on linux Type "help" for more information. Environment: app The WSGI application. registry Active Pyramid registry. request Active request object. root Root of the default resource tree. ro...
AttributeError
def closer(): ctx.end()
def closer(): threadlocal_manager.pop()
https://github.com/Pylons/pyramid/issues/3262
# bin/pshell mything/development.ini Python 3.5.2 (default, Nov 23 2017, 16:37:01) [GCC 5.4.0 20160609] on linux Type "help" for more information. Environment: app The WSGI application. registry Active Pyramid registry. request Active request object. root Root of the default resource tree. ro...
AttributeError
def __init__( self, secret, cookie_name="auth_tkt", secure=False, include_ip=False, timeout=None, reissue_time=None, max_age=None, http_only=False, path="/", wild_domain=True, hashalg="md5", parent_domain=False, domain=None, ): serializer = SimpleSerializer() ...
def __init__( self, secret, cookie_name="auth_tkt", secure=False, include_ip=False, timeout=None, reissue_time=None, max_age=None, http_only=False, path="/", wild_domain=True, hashalg="md5", parent_domain=False, domain=None, ): serializer = _SimpleSerializer()...
https://github.com/Pylons/pyramid/issues/3112
import pyramid.viewderivers Traceback (most recent call last): File "<stdin>", line 1, in <module> File ".../lib/python2.7/site-packages/pyramid/viewderivers.py", line 31, in <module> from pyramid.config.util import ( File ".../lib/python2.7/site-packages/pyramid/config/__init__.py", line 78, in <module> from pyramid.c...
ImportError
def _apply_view_derivers(self, info): # These derivers are not really derivers and so have fixed order outer_derivers = [ ("attr_wrapped_view", attr_wrapped_view), ("predicated_view", predicated_view), ] view = info.original_view derivers = self.registry.getUtility(IViewDerivers) ...
def _apply_view_derivers(self, info): d = pyramid.viewderivers # These derivers are not really derivers and so have fixed order outer_derivers = [ ("attr_wrapped_view", d.attr_wrapped_view), ("predicated_view", d.predicated_view), ] view = info.original_view derivers = self.reg...
https://github.com/Pylons/pyramid/issues/3112
import pyramid.viewderivers Traceback (most recent call last): File "<stdin>", line 1, in <module> File ".../lib/python2.7/site-packages/pyramid/viewderivers.py", line 31, in <module> from pyramid.config.util import ( File ".../lib/python2.7/site-packages/pyramid/config/__init__.py", line 78, in <module> from pyramid.c...
ImportError
def __init__( self, cookie_name="csrf_token", secure=False, httponly=False, domain=None, max_age=None, path="/", ): serializer = SimpleSerializer() self.cookie_profile = CookieProfile( cookie_name=cookie_name, secure=secure, max_age=max_age, httponly=h...
def __init__( self, cookie_name="csrf_token", secure=False, httponly=False, domain=None, max_age=None, path="/", ): serializer = _SimpleSerializer() self.cookie_profile = CookieProfile( cookie_name=cookie_name, secure=secure, max_age=max_age, httponly=...
https://github.com/Pylons/pyramid/issues/3112
import pyramid.viewderivers Traceback (most recent call last): File "<stdin>", line 1, in <module> File ".../lib/python2.7/site-packages/pyramid/viewderivers.py", line 31, in <module> from pyramid.config.util import ( File ".../lib/python2.7/site-packages/pyramid/config/__init__.py", line 78, in <module> from pyramid.c...
ImportError
def __init__(self, predicate): self.predicate = predicate
def __init__(self, val, config): if is_nonstr_iter(val): self.val = set(val) else: self.val = set((val,))
https://github.com/Pylons/pyramid/issues/3112
import pyramid.viewderivers Traceback (most recent call last): File "<stdin>", line 1, in <module> File ".../lib/python2.7/site-packages/pyramid/viewderivers.py", line 31, in <module> from pyramid.config.util import ( File ".../lib/python2.7/site-packages/pyramid/config/__init__.py", line 78, in <module> from pyramid.c...
ImportError
def text(self): return self._notted_text(self.predicate.text())
def text(self): return "effective_principals = %s" % sorted(list(self.val))
https://github.com/Pylons/pyramid/issues/3112
import pyramid.viewderivers Traceback (most recent call last): File "<stdin>", line 1, in <module> File ".../lib/python2.7/site-packages/pyramid/viewderivers.py", line 31, in <module> from pyramid.config.util import ( File ".../lib/python2.7/site-packages/pyramid/config/__init__.py", line 78, in <module> from pyramid.c...
ImportError
def __call__(self, context, request): result = self.predicate(context, request) phash = self.phash() if phash: result = not result return result
def __call__(self, context, request): req_principals = request.effective_principals if is_nonstr_iter(req_principals): rpset = set(req_principals) if self.val.issubset(rpset): return True return False
https://github.com/Pylons/pyramid/issues/3112
import pyramid.viewderivers Traceback (most recent call last): File "<stdin>", line 1, in <module> File ".../lib/python2.7/site-packages/pyramid/viewderivers.py", line 31, in <module> from pyramid.config.util import ( File ".../lib/python2.7/site-packages/pyramid/config/__init__.py", line 78, in <module> from pyramid.c...
ImportError
def phash(self): return self._notted_text(self.predicate.phash())
def phash(self): # This isn't actually a predicate, it's just a infodict modifier that # injects ``traverse`` into the matchdict. As a result, we don't # need to update the hash. return ""
https://github.com/Pylons/pyramid/issues/3112
import pyramid.viewderivers Traceback (most recent call last): File "<stdin>", line 1, in <module> File ".../lib/python2.7/site-packages/pyramid/viewderivers.py", line 31, in <module> from pyramid.config.util import ( File ".../lib/python2.7/site-packages/pyramid/config/__init__.py", line 78, in <module> from pyramid.c...
ImportError
def __init__( self, default_before=LAST, default_after=None, first=FIRST, last=LAST, ): self.names = [] self.req_before = set() self.req_after = set() self.name2before = {} self.name2after = {} self.name2val = {} self.order = [] self.default_before = default_before ...
def __init__(self, file, line, function, src): self.file = file self.line = line self.function = function self.src = src
https://github.com/Pylons/pyramid/issues/3112
import pyramid.viewderivers Traceback (most recent call last): File "<stdin>", line 1, in <module> File ".../lib/python2.7/site-packages/pyramid/viewderivers.py", line 31, in <module> from pyramid.config.util import ( File ".../lib/python2.7/site-packages/pyramid/config/__init__.py", line 78, in <module> from pyramid.c...
ImportError
def execute_actions(self, clear=True, introspector=None): """Execute the configuration actions This calls the action callables after resolving conflicts For example: >>> output = [] >>> def f(*a, **k): ... output.append(('f', a, k)) >>> context = ActionState() >>> context.actions =...
def execute_actions(self, clear=True, introspector=None): """Execute the configuration actions This calls the action callables after resolving conflicts For example: >>> output = [] >>> def f(*a, **k): ... output.append(('f', a, k)) >>> context = ActionState() >>> context.actions =...
https://github.com/Pylons/pyramid/issues/2697
Traceback (most recent call last): File "demo2.py", line 27, in <module> config.commit() File "/Users/dstufft/.virtualenvs/tmp-afd03b5a92f8d7f/lib/python3.5/site-packages/pyramid/config/__init__.py", line 654, in commit self.action_state.execute_actions(introspector=self.introspector) File "/Users/dstufft/.virtualenvs/...
pyramid.exceptions.ConfigurationError
def resolveConflicts(actions, state=None): """Resolve conflicting actions Given an actions list, identify and try to resolve conflicting actions. Actions conflict if they have the same non-None discriminator. Conflicting actions can be resolved if the include path of one of the actions is a prefix...
def resolveConflicts(actions): """Resolve conflicting actions Given an actions list, identify and try to resolve conflicting actions. Actions conflict if they have the same non-None discriminator. Conflicting actions can be resolved if the include path of one of the actions is a prefix of the inclu...
https://github.com/Pylons/pyramid/issues/2697
Traceback (most recent call last): File "demo2.py", line 27, in <module> config.commit() File "/Users/dstufft/.virtualenvs/tmp-afd03b5a92f8d7f/lib/python3.5/site-packages/pyramid/config/__init__.py", line 654, in commit self.action_state.execute_actions(introspector=self.introspector) File "/Users/dstufft/.virtualenvs/...
pyramid.exceptions.ConfigurationError
def orderandpos(v): n, v = v return (v["order"] or 0, n)
def orderandpos(v): n, v = v if not isinstance(v, dict): # old-style tuple action v = expand_action(*v) return (v["order"] or 0, n)
https://github.com/Pylons/pyramid/issues/2697
Traceback (most recent call last): File "demo2.py", line 27, in <module> config.commit() File "/Users/dstufft/.virtualenvs/tmp-afd03b5a92f8d7f/lib/python3.5/site-packages/pyramid/config/__init__.py", line 654, in commit self.action_state.execute_actions(introspector=self.introspector) File "/Users/dstufft/.virtualenvs/...
pyramid.exceptions.ConfigurationError
def orderonly(v): n, v = v return v["order"] or 0
def orderonly(v): n, v = v if not isinstance(v, dict): # old-style tuple action v = expand_action(*v) return v["order"] or 0
https://github.com/Pylons/pyramid/issues/2697
Traceback (most recent call last): File "demo2.py", line 27, in <module> config.commit() File "/Users/dstufft/.virtualenvs/tmp-afd03b5a92f8d7f/lib/python3.5/site-packages/pyramid/config/__init__.py", line 654, in commit self.action_state.execute_actions(introspector=self.introspector) File "/Users/dstufft/.virtualenvs/...
pyramid.exceptions.ConfigurationError
def bypath(ainfo): path, i = ainfo[1]["includepath"], ainfo[0] return path, order, i
def bypath(ainfo): path, order, i = ainfo[2]["includepath"], ainfo[0], ainfo[1] return path, order, i
https://github.com/Pylons/pyramid/issues/2697
Traceback (most recent call last): File "demo2.py", line 27, in <module> config.commit() File "/Users/dstufft/.virtualenvs/tmp-afd03b5a92f8d7f/lib/python3.5/site-packages/pyramid/config/__init__.py", line 654, in commit self.action_state.execute_actions(introspector=self.introspector) File "/Users/dstufft/.virtualenvs/...
pyramid.exceptions.ConfigurationError
def __init__(self): # keep a set of resolved discriminators to test against to ensure # that a new action does not conflict with something already executed self.resolved_ainfos = {} # actions left over from a previous iteration self.remaining_actions = [] # after executing an action we memoize...
def __init__(self): # NB "actions" is an API, dep'd upon by pyramid_zcml's load_zcml func self.actions = [] self._seen_files = set()
https://github.com/Pylons/pyramid/issues/2697
Traceback (most recent call last): File "demo2.py", line 27, in <module> config.commit() File "/Users/dstufft/.virtualenvs/tmp-afd03b5a92f8d7f/lib/python3.5/site-packages/pyramid/config/__init__.py", line 654, in commit self.action_state.execute_actions(introspector=self.introspector) File "/Users/dstufft/.virtualenvs/...
pyramid.exceptions.ConfigurationError
def install_centos_new( args: CommandLineArguments, root: str, epel_release: int ) -> List[str]: # Repos for CentOS 8 and later gpgpath = "/etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial" gpgurl = "https://www.centos.org/keys/RPM-GPG-KEY-CentOS-Official" epel_gpgpath = f"/etc/pki/rpm-gpg/RPM-GPG-KEY-EP...
def install_centos_new( args: CommandLineArguments, root: str, epel_release: int ) -> List[str]: # Repos for CentOS 8 and later gpgpath = "/etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial" gpgurl = "https://www.centos.org/keys/RPM-GPG-KEY-CentOS-Official" epel_gpgpath = f"/etc/pki/rpm-gpg/RPM-GPG-KEY-EP...
https://github.com/systemd/mkosi/issues/561
... ‣ Mounting API VFS... ‣ Mounting API VFS complete. CentOS-8 - AppStream 8.3 MB/s | 6.2 MB 00:00 CentOS-8 - Base ...
subprocess.CalledProcessError
def __init__(self, backend, rsa_cdata, evp_pkey): res = backend._lib.RSA_check_key(rsa_cdata) if res != 1: errors = backend._consume_errors_with_text() raise ValueError("Invalid private key", errors) self._backend = backend self._rsa_cdata = rsa_cdata self._evp_pkey = evp_pkey ...
def __init__(self, backend, rsa_cdata, evp_pkey): self._backend = backend self._rsa_cdata = rsa_cdata self._evp_pkey = evp_pkey n = self._backend._ffi.new("BIGNUM **") self._backend._lib.RSA_get0_key( self._rsa_cdata, n, self._backend._ffi.NULL, self._backend._ffi.NU...
https://github.com/pyca/cryptography/issues/4706
Traceback (most recent call last): File "bad_crypto.py", line 5, in <module> jwt.encode({}, my_key, algorithm='RS256') File "/Users/matt/.pyenv/versions/apidev/lib/python3.5/site-packages/jwt/api_jwt.py", line 65, in encode json_payload, key, algorithm, headers, json_encoder File "/Users/matt/.pyenv/versions/apidev/lib...
AssertionError
def _openssh_public_key_bytes(self, key): if isinstance(key, rsa.RSAPublicKey): public_numbers = key.public_numbers() return b"ssh-rsa " + base64.b64encode( ssh._ssh_write_string(b"ssh-rsa") + ssh._ssh_write_mpint(public_numbers.e) + ssh._ssh_write_mpint(public_nu...
def _openssh_public_key_bytes(self, key): if isinstance(key, rsa.RSAPublicKey): public_numbers = key.public_numbers() return b"ssh-rsa " + base64.b64encode( ssh._ssh_write_string(b"ssh-rsa") + ssh._ssh_write_mpint(public_numbers.e) + ssh._ssh_write_mpint(public_nu...
https://github.com/pyca/cryptography/issues/4808
print(key.__class__) <class 'cryptography.hazmat.backends.openssl.ed25519._Ed25519PublicKey'> key.public_bytes(Encoding.OpenSSH, PublicFormat.OpenSSH) Traceback (most recent call last): File "/usr/lib/python3.6/code.py", line 91, in runcode exec(code, self.locals) File "<console>", line 1, in <module> File "/home/rich...
AssertionError
def __init__(self, oid, value): if not isinstance(oid, ObjectIdentifier): raise TypeError("oid argument must be an ObjectIdentifier instance.") if not isinstance(value, six.text_type): raise TypeError("value argument must be a text type.") if oid == NameOID.COUNTRY_NAME and len(value.encod...
def __init__(self, oid, value): if not isinstance(oid, ObjectIdentifier): raise TypeError("oid argument must be an ObjectIdentifier instance.") if not isinstance(value, six.text_type): raise TypeError("value argument must be a text type.") if oid == NameOID.COUNTRY_NAME and len(value.encod...
https://github.com/pyca/cryptography/issues/3649
Traceback (most recent call last): File "openssl_error.py", line 19, in <module> cert = builder.sign(private_key, hashes.SHA256(), default_backend()) File "/home/ubuntu/.local/lib/python2.7/site-packages/cryptography/x509/base.py", line 564, in sign return backend.create_x509_certificate(self, private_key, algorithm) F...
cryptography.exceptions.InternalError
def load_ssh_public_key(data, backend): key_parts = data.split(b" ", 2) if len(key_parts) < 2: raise ValueError("Key is not in the proper format or contains extra data.") key_type = key_parts[0] if key_type == b"ssh-rsa": loader = _load_ssh_rsa_public_key elif key_type == b"ssh-ds...
def load_ssh_public_key(data, backend): key_parts = data.split(b" ") if len(key_parts) != 2 and len(key_parts) != 3: raise ValueError("Key is not in the proper format or contains extra data.") key_type = key_parts[0] if key_type == b"ssh-rsa": loader = _load_ssh_rsa_public_key eli...
https://github.com/pyca/cryptography/issues/2199
from cryptography.hazmat import backends from cryptography.hazmat.primitives import serialization key=open('test_key.pub') keyval = key.read() serialization.load_ssh_public_key(keyval, backends.default_backend()) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/mike/.venvs/openstack/li...
ValueError
def encode_example(self, audio_or_path_or_fobj): if isinstance(audio_or_path_or_fobj, (np.ndarray, list)): return audio_or_path_or_fobj elif isinstance(audio_or_path_or_fobj, six.string_types): filename = audio_or_path_or_fobj file_format = self._file_format or filename.split(".")[-1] ...
def encode_example(self, audio_or_path_or_fobj): if isinstance(audio_or_path_or_fobj, (np.ndarray, list)): return audio_or_path_or_fobj elif isinstance(audio_or_path_or_fobj, six.string_types): filename = audio_or_path_or_fobj file_format = self._file_format or filename.split(".")[-1] ...
https://github.com/tensorflow/datasets/issues/2513
2020-10-02 00:20:54.722953: I tensorflow_io/core/kernels/cpu_check.cc:128] Your CPU supports instructions that this TensorFlow IO binary was not compiled to use: AVX2 FMA Running tests under Python 3.7.8: /opt/conda/bin/python3 [ RUN ] AudioSetTest.test_baseclass INFO:tensorflow:time(__main__.AudioSetTest.test_bas...
RuntimeError
def as_dataframe( ds: tf.data.Dataset, ds_info: Optional[dataset_info.DatasetInfo] = None, ) -> StyledDataFrame: """Convert the dataset into a pandas dataframe. Warning: The dataframe will be loaded entirely in memory, you may want to call `tfds.as_dataframe` on a subset of the data instead: `...
def as_dataframe( ds: tf.data.Dataset, ds_info: Optional[dataset_info.DatasetInfo] = None, ) -> StyledDataFrame: """Convert the dataset into a pandas dataframe. Warning: The dataframe will be loaded entirely in memory, you may want to call `tfds.as_dataframe` on a subset of the data instead: `...
https://github.com/tensorflow/datasets/issues/2476
Traceback (most recent call last): File "mnist_test.py", line 31, in <module> df = tfds.as_dataframe(ds_test.take(10), ds_info) File "/home/ubuntu/miniconda3/envs/tensorflow/lib/python3.8/site-packages/tensorflow_datasets/core/as_dataframe.py", line 192, in as_dataframe columns = _make_columns(ds.element_spec, ds_info=...
TypeError
def show_examples( ds: tf.data.Dataset, ds_info: dataset_info.DatasetInfo, **options_kwargs: Any ): """Visualize images (and labels) from an image classification dataset. This function is for interactive use (Colab, Jupyter). It displays and return a plot of (rows*columns) images from a tf.data.Dataset...
def show_examples( ds: tf.data.Dataset, ds_info: dataset_info.DatasetInfo, **options_kwargs: Any ): """Visualize images (and labels) from an image classification dataset. This function is for interactive use (Colab, Jupyter). It displays and return a plot of (rows*columns) images from a tf.data.Dataset...
https://github.com/tensorflow/datasets/issues/2476
Traceback (most recent call last): File "mnist_test.py", line 31, in <module> df = tfds.as_dataframe(ds_test.take(10), ds_info) File "/home/ubuntu/miniconda3/envs/tensorflow/lib/python3.8/site-packages/tensorflow_datasets/core/as_dataframe.py", line 192, in as_dataframe columns = _make_columns(ds.element_spec, ds_info=...
TypeError
def __init__(self, num_classes, **kwargs): self.num_classes = num_classes if "version" not in kwargs: kwargs["version"] = tfds.core.Version("1.2.0") super(VisualDomainDecathlonConfig, self).__init__(**kwargs)
def __init__(self, num_classes, **kwargs): self.num_classes = num_classes if "version" not in kwargs: kwargs["version"] = tfds.core.Version("1.1.0") super(VisualDomainDecathlonConfig, self).__init__(**kwargs)
https://github.com/tensorflow/datasets/issues/1978
{ "nbformat": 4, "nbformat_minor": 0, "metadata": { "colab": { "name": "Chapter9.ipynb의 사본", "provenance": [], "collapsed_sections": [], "toc_visible": true, "include_colab_link": true }, "kernelspec": { "name": "python3", "display_name": "Python 3" }, ...
NonMatchingChecksumError
def _split_generators(self, dl_manager): downloaded_dirs = dl_manager.download( { "img_align_celeba": IMG_ALIGNED_DATA, "list_eval_partition": EVAL_LIST, "list_attr_celeba": ATTR_DATA, "landmarks_celeba": LANDMARKS_DATA, } ) # Load all images ...
def _split_generators(self, dl_manager): downloaded_dirs = dl_manager.download( { "img_align_celeba": IMG_ALIGNED_DATA, "list_eval_partition": EVAL_LIST, "list_attr_celeba": ATTR_DATA, "landmarks_celeba": LANDMARKS_DATA, } ) # Load all images ...
https://github.com/tensorflow/datasets/issues/1901
AssertionError Traceback (most recent call last) <ipython-input-1-0cac24b5abed> in <module> 1 import tensorflow_datasets as tfds 2 ----> 3 ds, ds_info = tfds.load("caltech_birds2011", with_info=True) 4 print(ds_info) ~\Desktop\TF_TFDS\datasets\tensorflow_datasets\core\api_...
AssertionError
def _generate_examples(self, images, annotations, subdir, image_ids): """Yields images and annotations. Args: images: object that iterates over the archive of images. annotations: object that iterates over the archive of annotations. subdir: subdirectory from which to extract images and annot...
def _generate_examples(self, images, annotations, subdir, image_ids): """Yields images and annotations. Args: images: object that iterates over the archive of images. annotations: object that iterates over the archive of annotations. subdir: subdirectory from which to extract images and annot...
https://github.com/tensorflow/datasets/issues/1901
AssertionError Traceback (most recent call last) <ipython-input-1-0cac24b5abed> in <module> 1 import tensorflow_datasets as tfds 2 ----> 3 ds, ds_info = tfds.load("caltech_birds2011", with_info=True) 4 print(ds_info) ~\Desktop\TF_TFDS\datasets\tensorflow_datasets\core\api_...
AssertionError
def _build_splits(devkit): """Splits the train data into train/val/test by video. Ensures that images from the same video do not traverse the splits. Args: devkit: object that iterates over the devkit archive. Returns: train_images: File ids for the training set images. validation_i...
def _build_splits(devkit): """Splits the train data into train/val/test by video. Ensures that images from the same video do not traverse the splits. Args: devkit: object that iterates over the devkit archive. Returns: train_images: File ids for the training set images. validation_i...
https://github.com/tensorflow/datasets/issues/1901
AssertionError Traceback (most recent call last) <ipython-input-1-0cac24b5abed> in <module> 1 import tensorflow_datasets as tfds 2 ----> 3 ds, ds_info = tfds.load("caltech_birds2011", with_info=True) 4 print(ds_info) ~\Desktop\TF_TFDS\datasets\tensorflow_datasets\core\api_...
AssertionError
def _split_generators(self, dl_manager): iris_file = dl_manager.download(IRIS_URL) all_lines = tf.io.gfile.GFile(iris_file).read().splitlines() records = [l for l in all_lines if l] # get rid of empty lines # Specify the splits return [ tfds.core.SplitGenerator( name=tfds.Split...
def _split_generators(self, dl_manager): iris_file = dl_manager.download(IRIS_URL) all_lines = tf.io.gfile.GFile(iris_file).read().split("\n") records = [l for l in all_lines if l] # get rid of empty lines # Specify the splits return [ tfds.core.SplitGenerator( name=tfds.Split....
https://github.com/tensorflow/datasets/issues/1901
AssertionError Traceback (most recent call last) <ipython-input-1-0cac24b5abed> in <module> 1 import tensorflow_datasets as tfds 2 ----> 3 ds, ds_info = tfds.load("caltech_birds2011", with_info=True) 4 print(ds_info) ~\Desktop\TF_TFDS\datasets\tensorflow_datasets\core\api_...
AssertionError
def _split_generators(self, dl_manager): """Returns SplitGenerators.""" cfg = self.builder_config download_urls = {cfg.name: "/".join([_DOWNLOAD_URL, "data", cfg.name + ".jsonl"])} downloaded_files = dl_manager.download_and_extract(download_urls) return [ tfds.core.SplitGenerator( ...
def _split_generators(self, dl_manager): """Returns SplitGenerators.""" cfg = self.builder_config download_urls = {cfg.name: os.path.join(_DOWNLOAD_URL, "data", cfg.name + ".jsonl")} downloaded_files = dl_manager.download_and_extract(download_urls) return [ tfds.core.SplitGenerator( ...
https://github.com/tensorflow/datasets/issues/1901
AssertionError Traceback (most recent call last) <ipython-input-1-0cac24b5abed> in <module> 1 import tensorflow_datasets as tfds 2 ----> 3 ds, ds_info = tfds.load("caltech_birds2011", with_info=True) 4 print(ds_info) ~\Desktop\TF_TFDS\datasets\tensorflow_datasets\core\api_...
AssertionError
def _split_generators(self, dl_manager): """Returns SplitGenerators.""" del dl_manager # Unused lang = self._builder_config.language return [ tfds.core.SplitGenerator( name=tfds.Split.TRAIN, gen_kwargs={ "filepaths": os.path.join( _...
def _split_generators(self, dl_manager): """Returns SplitGenerators.""" del dl_manager # Unused lang = self._builder_config.language return [ tfds.core.SplitGenerator( name=tfds.Split.TRAIN, gen_kwargs={ "filepaths": "%s/train/%s_examples-*" % (_DATA_D...
https://github.com/tensorflow/datasets/issues/1901
AssertionError Traceback (most recent call last) <ipython-input-1-0cac24b5abed> in <module> 1 import tensorflow_datasets as tfds 2 ----> 3 ds, ds_info = tfds.load("caltech_birds2011", with_info=True) 4 print(ds_info) ~\Desktop\TF_TFDS\datasets\tensorflow_datasets\core\api_...
AssertionError
def _parse_parallel_sentences(f1, f2): """Returns examples from parallel SGML or text files, which may be gzipped.""" def _parse_text(path): """Returns the sentences from a single text file, which may be gzipped.""" split_path = path.split(".") if split_path[-1] == "gz": la...
def _parse_parallel_sentences(f1, f2): """Returns examples from parallel SGML or text files, which may be gzipped.""" def _parse_text(path): """Returns the sentences from a single text file, which may be gzipped.""" split_path = path.split(".") if split_path[-1] == "gz": la...
https://github.com/tensorflow/datasets/issues/1901
AssertionError Traceback (most recent call last) <ipython-input-1-0cac24b5abed> in <module> 1 import tensorflow_datasets as tfds 2 ----> 3 ds, ds_info = tfds.load("caltech_birds2011", with_info=True) 4 print(ds_info) ~\Desktop\TF_TFDS\datasets\tensorflow_datasets\core\api_...
AssertionError
def _parse_text(path): """Returns the sentences from a single text file, which may be gzipped.""" split_path = path.split(".") if split_path[-1] == "gz": lang = split_path[-2] with tf.io.gfile.GFile(path, "rb") as f, gzip.GzipFile(fileobj=f) as g: return g.read().decode("utf-8")...
def _parse_text(path): """Returns the sentences from a single text file, which may be gzipped.""" split_path = path.split(".") if split_path[-1] == "gz": lang = split_path[-2] with tf.io.gfile.GFile(path, "rb") as f, gzip.GzipFile(fileobj=f) as g: return g.read().decode("utf-8")...
https://github.com/tensorflow/datasets/issues/1901
AssertionError Traceback (most recent call last) <ipython-input-1-0cac24b5abed> in <module> 1 import tensorflow_datasets as tfds 2 ----> 3 ds, ds_info = tfds.load("caltech_birds2011", with_info=True) 4 print(ds_info) ~\Desktop\TF_TFDS\datasets\tensorflow_datasets\core\api_...
AssertionError
def _parse_frde_bitext(fr_path, de_path): with tf.io.gfile.GFile(fr_path) as f: fr_sentences = f.read().splitlines() with tf.io.gfile.GFile(de_path) as f: de_sentences = f.read().splitlines() assert len(fr_sentences) == len(de_sentences), ( "Sizes do not match: %d vs %d for %s vs %s....
def _parse_frde_bitext(fr_path, de_path): with tf.io.gfile.GFile(fr_path) as f: fr_sentences = f.read().split("\n") with tf.io.gfile.GFile(de_path) as f: de_sentences = f.read().split("\n") assert len(fr_sentences) == len(de_sentences), ( "Sizes do not match: %d vs %d for %s vs %s." ...
https://github.com/tensorflow/datasets/issues/1901
AssertionError Traceback (most recent call last) <ipython-input-1-0cac24b5abed> in <module> 1 import tensorflow_datasets as tfds 2 ----> 3 ds, ds_info = tfds.load("caltech_birds2011", with_info=True) 4 print(ds_info) ~\Desktop\TF_TFDS\datasets\tensorflow_datasets\core\api_...
AssertionError
def _normpath(path): path = os.path.normpath(path) if ( path.startswith(".") or os.path.isabs(path) or path.endswith("~") or os.path.basename(path).startswith(".") ): return None return path
def _normpath(path): path = os.path.normpath(path) if path.startswith(".") or os.path.isabs(path): raise UnsafeArchiveError("Archive at %s is not safe." % path) if path.endswith("~") or os.path.basename(path).startswith("."): return None return path
https://github.com/tensorflow/datasets/issues/267
Dl Completed...: 0 url [00:00, ? url/s] Dl Size...: 0 MiB [00:00, ? MiB/s] Dl Completed...: 0%| | 0/1 [00:00<?, ? url/s] Dl Size...: 0 MiB [00:00, ? MiB/s] Dl Completed...: 0%| | 0/1 [00:00<?, ? url/s] Dl Size...: 0 MiB [00:00, ? MiB/s] Dl Completed...: 100%|██████████| 1/1 [00:01<00...
UnsafeArchiveError
def open_browser(): # Child process time.sleep(0.5) webbrowser.open("http://localhost:%d/en/latest/index.html" % PORT, new=2)
def open_browser(): # Child process time.sleep(0.5) webbrowser.open("http://localhost:%d/en/latest/index.html" % PORT, new="tab")
https://github.com/bokeh/bokeh/issues/10105
Exception in thread Thread-2: Traceback (most recent call last): File "/home/p-himik/soft/miniconda3/envs/bokeh-dev/lib/python3.7/threading.py", line 917, in _bootstrap_inner self.run() File "/home/p-himik/soft/miniconda3/envs/bokeh-dev/lib/python3.7/threading.py", line 865, in run self._target(*self._args, **self._kwa...
webbrowser.Error
async def connect(self): log.info("WebSocket connection opened") subprotocols = self.scope["subprotocols"] if len(subprotocols) != 2 or subprotocols[0] != "bokeh": self.close() raise RuntimeError("Subprotocol header is not 'bokeh'") token = subprotocols[1] if token is None: ...
async def connect(self): log.info("WebSocket connection opened") subprotocols = self.scope["subprotocols"] if len(subprotocols) != 2 or subprotocols[0] != "bokeh": self.close() raise RuntimeError("Subprotocol header is not 'bokeh'") token = subprotocols[1] if token is None: ...
https://github.com/bokeh/bokeh/issues/9938
Traceback (most recent call last): File "/Users/simon/anaconda3/lib/python3.6/site-packages/tornado/websocket.py", line 956, in _accept_connection open_result = handler.open(*handler.open_args, **handler.open_kwargs) File "/Users/simon/anaconda3/lib/python3.6/site-packages/bokeh/server/views/ws.py", line 135, in open r...
bokeh.protocol.exceptions.ProtocolError
def open(self): """Initialize a connection to a client. Returns: None """ log.info("WebSocket connection opened") token = self._token if self.selected_subprotocol != "bokeh": self.close() raise ProtocolError("Subprotocol header is not 'bokeh'") elif token is None: ...
def open(self): """Initialize a connection to a client. Returns: None """ log.info("WebSocket connection opened") token = self._token if self.selected_subprotocol != "bokeh": self.close() raise ProtocolError("Subprotocol header is not 'bokeh'") elif token is None: ...
https://github.com/bokeh/bokeh/issues/9938
Traceback (most recent call last): File "/Users/simon/anaconda3/lib/python3.6/site-packages/tornado/websocket.py", line 956, in _accept_connection open_result = handler.open(*handler.open_args, **handler.open_kwargs) File "/Users/simon/anaconda3/lib/python3.6/site-packages/bokeh/server/views/ws.py", line 135, in open r...
bokeh.protocol.exceptions.ProtocolError
def generate_jwt_token( session_id: str, secret_key: Optional[bytes] = settings.secret_key_bytes(), signed: bool = settings.sign_sessions(), extra_payload: Optional[Dict[str, Any]] = None, expiration: int = 300, ) -> str: """Generates a JWT token given a session_id and additional payload. A...
def generate_jwt_token( session_id: str, secret_key: Optional[bytes] = settings.secret_key_bytes(), signed: bool = settings.sign_sessions(), extra_payload: Optional[Dict[str, Any]] = None, expiration: int = 300, ) -> str: """Generates a JWT token given a session_id and additional payload. A...
https://github.com/bokeh/bokeh/issues/9938
Traceback (most recent call last): File "/Users/simon/anaconda3/lib/python3.6/site-packages/tornado/websocket.py", line 956, in _accept_connection open_result = handler.open(*handler.open_args, **handler.open_kwargs) File "/Users/simon/anaconda3/lib/python3.6/site-packages/bokeh/server/views/ws.py", line 135, in open r...
bokeh.protocol.exceptions.ProtocolError
def set_select(self, selector, updates): """Update objects that match a given selector with the specified attribute/value updates. Args: selector (JSON-like query dictionary) : you can query by type or by name,i e.g. ``{"type": HoverTool}``, ``{"name": "mycircle"}`` updates ...
def set_select(self, selector, updates): """Update objects that match a given selector with the specified attribute/value updates. Args: selector (JSON-like query dictionary) : you can query by type or by name,i e.g. ``{"type": HoverTool}``, ``{"name": "mycircle"}`` updates ...
https://github.com/bokeh/bokeh/issues/9245
Traceback (most recent call last): File "set_select_plot.py", line 81, in <module> plot_width=500, File "env\lib\site-packages\bokeh-1.3.4-py3.7.egg\bokeh\model.py", line 628, in set_select for obj in self.select(selector): File "env\lib\site-packages\bokeh-1.3.4-py3.7.egg\bokeh\core\query.py", line 87, in <genexpr> re...
AttributeError
def set_select(self, selector, updates): """Update objects that match a given selector with the specified attribute/value updates. Args: selector (JSON-like) : updates (dict) : Returns: None """ if isclass(selector) and issubclass(selector, Model): selector = d...
def set_select(self, selector, updates): """Update objects that match a given selector with the specified attribute/value updates. Args: selector (JSON-like) : updates (dict) : Returns: None """ for obj in self.select(selector): for key, val in updates.items():...
https://github.com/bokeh/bokeh/issues/9245
Traceback (most recent call last): File "set_select_plot.py", line 81, in <module> plot_width=500, File "env\lib\site-packages\bokeh-1.3.4-py3.7.egg\bokeh\model.py", line 628, in set_select for obj in self.select(selector): File "env\lib\site-packages\bokeh-1.3.4-py3.7.egg\bokeh\core\query.py", line 87, in <genexpr> re...
AttributeError
def detect_phantomjs(version: str = "2.1") -> str: """Detect if PhantomJS is avaiable in PATH, at a minimum version. Args: version (str, optional) : Required minimum version for PhantomJS (mostly for testing) Returns: str, path to PhantomJS """ if settings.phantomjs_pa...
def detect_phantomjs(version: str = "2.1") -> str: """Detect if PhantomJS is avaiable in PATH, at a minimum version. Args: version (str, optional) : Required minimum version for PhantomJS (mostly for testing) Returns: str, path to PhantomJS """ if settings.phantomjs_pa...
https://github.com/bokeh/bokeh/issues/9579
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/savalek/.local/lib/python3.6/site-packages/bokeh/io/export.py", line 97, in export_png image = get_screenshot_as_png(obj, height=height, width=width, driver=webdriver, timeout=timeout) File "/home/savalek/.local/lib/python3.6/site-packag...
RuntimeError
def unlisten(self): """Stop listening on ports. The server will no longer be usable after calling this function. Returns: None """ yield self._http.close_all_connections() self._http.stop()
def unlisten(self): """Stop listening on ports. The server will no longer be usable after calling this function. Returns: None """ self._http.close_all_connections() self._http.stop()
https://github.com/bokeh/bokeh/issues/8719
-- Docs: https://docs.pytest.org/en/latest/warnings.html ----------- generated xml file: C:\projects\bokeh\test_results.xml ------------ = 1 failed, 3444 passed, 1 skipped, 981 deselected, 78 warnings in 241.84 seconds = Task was destroyed but it is pending! task: <Task pending coro=<RequestHandler._execute() running a...
RuntimeError
def decode_base64_dict(data): """Decode a base64 encoded array into a NumPy array. Args: data (dict) : encoded array data to decode Data should have the format encoded by :func:`encode_base64_dict`. Returns: np.ndarray """ b64 = base64.b64decode(data["__ndarray__"]) array...
def decode_base64_dict(data): """Decode a base64 encoded array into a NumPy array. Args: data (dict) : encoded array data to decode Data should have the format encoded by :func:`encode_base64_dict`. Returns: np.ndarray """ b64 = base64.b64decode(data["__ndarray__"]) array...
https://github.com/bokeh/bokeh/issues/8232
2018-09-10 19:07:29,992 Exception in callback functools.partial(<function wrap.<locals>.null_wrapper at 0x1202aa6a8>, <Future finished exception=ValueError('assignment destination is read-only',)>) Traceback (most recent call last): File "/Users/bryanv/anaconda/lib/python3.6/site-packages/tornado/ioloop.py", line 759, ...
AttributeError
def start(self): if self._started: raise RuntimeError("called start() twice on _AsyncPeriodic") self._started = True def invoke(): # important to start the sleep before starting callback # so any initial time spent in callback "counts against" # the period. sleep_fut...
def start(self): if self._started: raise RuntimeError("called start() twice on _AsyncPeriodic") self._started = True def invoke(): # important to start the sleep before starting callback # so any initial time spent in callback "counts against" # the period. sleep_fut...
https://github.com/bokeh/bokeh/issues/8232
2018-09-10 19:07:29,992 Exception in callback functools.partial(<function wrap.<locals>.null_wrapper at 0x1202aa6a8>, <Future finished exception=ValueError('assignment destination is read-only',)>) Traceback (most recent call last): File "/Users/bryanv/anaconda/lib/python3.6/site-packages/tornado/ioloop.py", line 759, ...
AttributeError
def on_done(future): if not self._stopped: self._loop.add_future(invoke(), on_done) ex = future.exception() if ex is not None: log.error("Error thrown from periodic callback:") if six.PY2: lines = format_exception(*future.exc_info()) else: lines = form...
def on_done(future): if not self._stopped: self._loop.add_future(invoke(), on_done) if future.exception() is not None: log.error("Error thrown from periodic callback:") log.error("".join(format_exception(*future.exc_info())))
https://github.com/bokeh/bokeh/issues/8232
2018-09-10 19:07:29,992 Exception in callback functools.partial(<function wrap.<locals>.null_wrapper at 0x1202aa6a8>, <Future finished exception=ValueError('assignment destination is read-only',)>) Traceback (most recent call last): File "/Users/bryanv/anaconda/lib/python3.6/site-packages/tornado/ioloop.py", line 759, ...
AttributeError
def modify_document(self, doc): """ """ module = self._runner.new_module() # If no module was returned it means the code runner has some permanent # unfixable problem, e.g. the configured source code has a syntax error if module is None: return # One reason modules are stored is to pr...
def modify_document(self, doc): """ """ if self.failed: return module = self._runner.new_module() # One reason modules are stored is to prevent the module # from being gc'd before the document is. A symptom of a # gc'd module is that its globals become None. Additionally # stored m...
https://github.com/bokeh/bokeh/issues/8034
(venv) $ bokeh serve myapp.py 2018-06-27 12:59:45,343 Starting Bokeh server version 0.13.0 (running on Tornado 5.0.1) 2018-06-27 12:59:45,345 Bokeh app running at: http://localhost:5006/myapp 2018-06-27 12:59:45,345 Starting Bokeh server with process id: 13979 0.5604607908584933 2018-06-27 13:00:06,274 200 GET /myapp (...
Exception
def __init__(self, source, path, argv): """ Args: source (str) : python source code path (str) : a filename to use in any debugging or error output argv (list[str]) : a list of string arguments to make available as ``sys.argv`` when the code executes """ self._per...
def __init__(self, source, path, argv): """ Args: source (str) : python source code path (str) : a filename to use in any debugging or error output argv (list[str]) : a list of string arguments to make available as ``sys.argv`` when the code executes """ self._fai...
https://github.com/bokeh/bokeh/issues/8034
(venv) $ bokeh serve myapp.py 2018-06-27 12:59:45,343 Starting Bokeh server version 0.13.0 (running on Tornado 5.0.1) 2018-06-27 12:59:45,345 Bokeh app running at: http://localhost:5006/myapp 2018-06-27 12:59:45,345 Starting Bokeh server with process id: 13979 0.5604607908584933 2018-06-27 13:00:06,274 200 GET /myapp (...
Exception
def error(self): """If code execution fails, may contain a related error message.""" return self._error if self._permanent_error is None else self._permanent_error
def error(self): """If code execution fails, may contain a related error message.""" return self._error
https://github.com/bokeh/bokeh/issues/8034
(venv) $ bokeh serve myapp.py 2018-06-27 12:59:45,343 Starting Bokeh server version 0.13.0 (running on Tornado 5.0.1) 2018-06-27 12:59:45,345 Bokeh app running at: http://localhost:5006/myapp 2018-06-27 12:59:45,345 Starting Bokeh server with process id: 13979 0.5604607908584933 2018-06-27 13:00:06,274 200 GET /myapp (...
Exception
def error_detail(self): """If code execution fails, may contain a traceback or other details.""" return ( self._error_detail if self._permanent_error_detail is None else self._permanent_error_detail )
def error_detail(self): """If code execution fails, may contain a traceback or other details.""" return self._error_detail
https://github.com/bokeh/bokeh/issues/8034
(venv) $ bokeh serve myapp.py 2018-06-27 12:59:45,343 Starting Bokeh server version 0.13.0 (running on Tornado 5.0.1) 2018-06-27 12:59:45,345 Bokeh app running at: http://localhost:5006/myapp 2018-06-27 12:59:45,345 Starting Bokeh server with process id: 13979 0.5604607908584933 2018-06-27 13:00:06,274 200 GET /myapp (...
Exception
def failed(self): """``True`` if code execution failed""" return self._failed or self._code is None
def failed(self): """``True`` if code execution failed""" return self._failed
https://github.com/bokeh/bokeh/issues/8034
(venv) $ bokeh serve myapp.py 2018-06-27 12:59:45,343 Starting Bokeh server version 0.13.0 (running on Tornado 5.0.1) 2018-06-27 12:59:45,345 Bokeh app running at: http://localhost:5006/myapp 2018-06-27 12:59:45,345 Starting Bokeh server with process id: 13979 0.5604607908584933 2018-06-27 13:00:06,274 200 GET /myapp (...
Exception
def new_module(self): """Make a fresh module to run in. Returns: Module """ self.reset_run_errors() if self._code is None: return None module_name = "bk_script_" + make_id().replace("-", "") module = ModuleType(str(module_name)) # str needed for py2.7 module.__dict__...
def new_module(self): """Make a fresh module to run in. Returns: Module """ if self.failed: return None module_name = "bk_script_" + make_id().replace("-", "") module = ModuleType(str(module_name)) # str needed for py2.7 module.__dict__["__file__"] = os.path.abspath(self....
https://github.com/bokeh/bokeh/issues/8034
(venv) $ bokeh serve myapp.py 2018-06-27 12:59:45,343 Starting Bokeh server version 0.13.0 (running on Tornado 5.0.1) 2018-06-27 12:59:45,345 Bokeh app running at: http://localhost:5006/myapp 2018-06-27 12:59:45,345 Starting Bokeh server with process id: 13979 0.5604607908584933 2018-06-27 13:00:06,274 200 GET /myapp (...
Exception
def run(self, module, post_check): """Execute the configured source code in a module and run any post checks. Args: module (Module) : a module to execute the configured code in. post_check(callable) : a function that can raise an exception if expected post-conditions are not me...
def run(self, module, post_check): """Execute the configured source code in a module and run any post checks. Args: module (Module) : a module to execute the configured code in. post_check(callable) : a function that can raise an exception if expected post-conditions are not me...
https://github.com/bokeh/bokeh/issues/8034
(venv) $ bokeh serve myapp.py 2018-06-27 12:59:45,343 Starting Bokeh server version 0.13.0 (running on Tornado 5.0.1) 2018-06-27 12:59:45,345 Bokeh app running at: http://localhost:5006/myapp 2018-06-27 12:59:45,345 Starting Bokeh server with process id: 13979 0.5604607908584933 2018-06-27 13:00:06,274 200 GET /myapp (...
Exception