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 login_check(): users = db.mgmt_users # validate username and password username = request.form.get("username") # get salt if users.find({"username": username}).count() > 0: if users.find({"username": username, "salt": {"$exists": True}}).count() > 0: salt = (list(users.find({"...
def login_check(): # validate username and password username = request.form.get("username") password = hashlib.sha256(bytes(request.form.get("password"), "utf-8")).hexdigest() person = User.get(username) if person and person.password == password: login_user(person) return render_tem...
https://github.com/cve-search/cve-search/issues/34
Starting vendor Traceback (most recent call last): ] 0/1440 File ".../cve-search/db_mgmt_vendorstatements.py", line 83, in <module> bulk.find({'id': statement['id']}).upsert().update({'id': statement['id']}, {"$set":{'statement': statement['statement'], 'id': statement['id'], 'organization': s...
TypeError
def importList(self, importFile): count = 0 # read each line from the import file and regex them to a cpe format try: for line in importFile: if self.insert(line): count += 1 if self.args.v: print("{:d} products added to the list".format(count)) ex...
def importList(self, importFile): count = 0 # read each line from the import file and regex them to a cpe format try: for line in open(importFile): if self.insert(line): count += 1 if self.args.v: print("{:d} products added to the list".format(count)) ...
https://github.com/cve-search/cve-search/issues/34
Starting vendor Traceback (most recent call last): ] 0/1440 File ".../cve-search/db_mgmt_vendorstatements.py", line 83, in <module> bulk.find({'id': statement['id']}).upsert().update({'id': statement['id']}, {"$set":{'statement': statement['statement'], 'id': statement['id'], 'organization': s...
TypeError
def process(self): if self.args.d: # drop the list self.dropCollection() elif self.args.i: # get import file textfile = self.args.i # check if the collection is empty count = self.countItems() if count > 0 and self.args.f is False: # not empty ...
def process(self): if self.args.d: # drop the list self.dropCollection() elif self.args.i: # get import file textfile = self.args.i # check if the collection is empty count = self.countItems() if count > 0 and self.args.f is False: # not empty ...
https://github.com/cve-search/cve-search/issues/34
Starting vendor Traceback (most recent call last): ] 0/1440 File ".../cve-search/db_mgmt_vendorstatements.py", line 83, in <module> bulk.find({'id': statement['id']}).upsert().update({'id': statement['id']}, {"$set":{'statement': statement['statement'], 'id': statement['id'], 'organization': s...
TypeError
def whitelistImport(force=None, path=None): file = request.files["file"] force = request.form.get("force") count = countWhitelist() if (count == 0) | (not count) | (force == "f"): dropWhitelist() importWhitelist(TextIOWrapper(file.stream)) status = ["wl_imported", "success"] ...
def whitelistImport(force=None, path=None): path = request.form.get("file") force = request.form.get("force") if matchFilePath(path): if os.path.isfile(path): count = countWhitelist() if (count == 0) | (not count) | (force == "f"): dropWhitelist() ...
https://github.com/cve-search/cve-search/issues/34
Starting vendor Traceback (most recent call last): ] 0/1440 File ".../cve-search/db_mgmt_vendorstatements.py", line 83, in <module> bulk.find({'id': statement['id']}).upsert().update({'id': statement['id']}, {"$set":{'statement': statement['statement'], 'id': statement['id'], 'organization': s...
TypeError
def whitelistExport(force=None, path=None): file = request.files["file"] filename = secure_filename(file.filename) force = request.form.get("force") if (force == "df") and (os.path.isfile(filename)): status = ["wl_file_already_exists", "warning"] else: if os.path.isfile(filename): ...
def whitelistExport(force=None, path=None): path = request.form.get("file") force = request.form.get("force") if matchFilePath(path): if (force == "df") and (os.path.isfile(path)): status = ["wl_file_already_exists", "warning"] else: if os.path.isfile(path): ...
https://github.com/cve-search/cve-search/issues/34
Starting vendor Traceback (most recent call last): ] 0/1440 File ".../cve-search/db_mgmt_vendorstatements.py", line 83, in <module> bulk.find({'id': statement['id']}).upsert().update({'id': statement['id']}, {"$set":{'statement': statement['statement'], 'id': statement['id'], 'organization': s...
TypeError
def blacklistImport(): file = request.files["file"] force = request.form.get("force") count = countBlacklist() if (count == 0) | (not count) | (force == "f"): dropBlacklist() importBlacklist(TextIOWrapper(file.stream)) status = ["bl_imported", "success"] else: status ...
def blacklistImport(): path = request.form.get("file") force = request.form.get("force") if matchFilePath(path): if os.path.isfile(path): count = countBlacklist() if (count == 0) | (not count) | (force == "f"): dropBlacklist() importBlacklist(p...
https://github.com/cve-search/cve-search/issues/34
Starting vendor Traceback (most recent call last): ] 0/1440 File ".../cve-search/db_mgmt_vendorstatements.py", line 83, in <module> bulk.find({'id': statement['id']}).upsert().update({'id': statement['id']}, {"$set":{'statement': statement['statement'], 'id': statement['id'], 'organization': s...
TypeError
def blacklistExport(): file = request.files["file"] filename = secure_filename(file.filename) force = request.form.get("force") if (force == "df") and (os.path.isfile(filename)): status = ["bl_file_already_exists", "warning"] else: if os.path.isfile(filename): os.remove(f...
def blacklistExport(): path = request.form.get("file") force = request.form.get("force") if matchFilePath(path): if (force == "df") and (os.path.isfile(path)): status = ["bl_file_already_exists", "warning"] else: if os.path.isfile(path): os.remove(path...
https://github.com/cve-search/cve-search/issues/34
Starting vendor Traceback (most recent call last): ] 0/1440 File ".../cve-search/db_mgmt_vendorstatements.py", line 83, in <module> bulk.find({'id': statement['id']}).upsert().update({'id': statement['id']}, {"$set":{'statement': statement['statement'], 'id': statement['id'], 'organization': s...
TypeError
def promptNewPass(): password = getpass.getpass("New password:") verify = getpass.getpass("Verify password:") if password != verify: sys.exit(exits["passwordMatch"]) return pbkdf2_sha256.encrypt(password, rounds=rounds, salt_size=saltLength)
def promptNewPass(): password = getpass.getpass("New password:") verify = getpass.getpass("Verify password:") if password != verify: sys.exit("The passwords don't match!") # generate new salt salt = os.urandom(32) keyset = {"password": buildPassword(password, salt=salt), "salt": salt} ...
https://github.com/cve-search/cve-search/issues/26
python3 ./db_mgmt.py -p Database population started Year 2002 imported. Traceback (most recent call last): File "./db_mgmt.py", line 186, in <module> ret = collection.insert(ch.cves) File "/usr/local/lib/python3.4/site-packages/pymongo/collection.py", line 410, in insert _check_write_command_response(results) F...
pymongo.errors.DuplicateKeyError
def masterLogin(): master = input("Master account username: ") if verifyPass(getpass.getpass("Master password:"), master): if collection.find({"username": master, "master": True}).count() == 0: sys.exit(exits["noMaster"]) else: sys.exit("Master user/password combination does not ...
def masterLogin(): master = input("Master account username: ") masterPass = buildPassword(getpass.getpass("Master password:"), user=master) if ( collection.find( {"username": master, "password": masterPass, "master": True} ).count() == 0 ): sys.exit("Master us...
https://github.com/cve-search/cve-search/issues/26
python3 ./db_mgmt.py -p Database population started Year 2002 imported. Traceback (most recent call last): File "./db_mgmt.py", line 186, in <module> ret = collection.insert(ch.cves) File "/usr/local/lib/python3.4/site-packages/pymongo/collection.py", line 410, in insert _check_write_command_response(results) F...
pymongo.errors.DuplicateKeyError
def isLastAdmin(user): if len(list(collection.find({"username": {"$ne": user}, "master": True}))) == 0: sys.exit(exits["lastMaster"])
def isLastAdmin(user): if len(list(collection.find({"username": {"$ne": user}, "master": True}))) == 0: sys.exit( "This user is the last admin in the database and thus can not be removed" )
https://github.com/cve-search/cve-search/issues/26
python3 ./db_mgmt.py -p Database population started Year 2002 imported. Traceback (most recent call last): File "./db_mgmt.py", line 186, in <module> ret = collection.insert(ch.cves) File "/usr/local/lib/python3.4/site-packages/pymongo/collection.py", line 410, in insert _check_write_command_response(results) F...
pymongo.errors.DuplicateKeyError
def login_check(): users = db.mgmt_users # validate username and password username = request.form.get("username") password = request.form.get("password") person = User.get(username) try: if person and pbkdf2_sha256.verify(password, person.password): login_user(person) ...
def login_check(): users = db.mgmt_users # validate username and password username = request.form.get("username") # get salt if users.find({"username": username}).count() > 0: if users.find({"username": username, "salt": {"$exists": True}}).count() > 0: salt = (list(users.find({"...
https://github.com/cve-search/cve-search/issues/26
python3 ./db_mgmt.py -p Database population started Year 2002 imported. Traceback (most recent call last): File "./db_mgmt.py", line 186, in <module> ret = collection.insert(ch.cves) File "/usr/local/lib/python3.4/site-packages/pymongo/collection.py", line 410, in insert _check_write_command_response(results) F...
pymongo.errors.DuplicateKeyError
def main(): print("%s (server) #v%s\n" % (NAME, VERSION)) parser = optparse.OptionParser(version=VERSION) parser.add_option( "-c", dest="config_file", default=CONFIG_FILE, help="Configuration file (default: '%s')" % os.path.split(CONFIG_FILE)[-1], ) options, _ = pars...
def main(): print("%s (server) #v%s\n" % (NAME, VERSION)) parser = optparse.OptionParser(version=VERSION) parser.add_option( "-c", dest="config_file", default=CONFIG_FILE, help="Configuration file (default: '%s')" % os.path.split(CONFIG_FILE)[-1], ) options, _ = pars...
https://github.com/stamparm/maltrail/issues/42
[i] starting HTTP server at 'http://0.0.0.0:8338/' [o] running... Traceback (most recent call last): File "/home/admin/maltrail/core/httpd.py", line 514, in _counts current = datetime.datetime.strptime(os.path.splitext(os.path.basename(filename))[0], DATE_FORMAT) File "/usr/lib/python2.7/_strptime.py", line 325, in _st...
ValueError
def fetch(): retval = {} content = retrieve_content(__url__) if __check__ in content: for match in re.finditer(r"(\d+\.\d+\.\d+\.\d+)/(\d+)", content): prefix, mask = match.groups() mask = int(mask) if MIN_BLACKLIST_MASK <= mask <= MAX_BLACKLIST_MASK: ...
def fetch(): retval = {} content = retrieve_content(__url__) if __check__ in content: for match in re.finditer(r"([\d.]+)/(\d+)", content): prefix, mask = match.groups() start_int = addr_to_int(prefix) & make_mask(int(mask)) end_int = start_int | ((1 << 32 - int(...
https://github.com/stamparm/maltrail/issues/3
[i] updating trails... [o] 'https://feodotracker.abuse.ch/blocklist/?download=domainblocklist' [!] something went wrong during remote data retrieval ('https://feodotracker.abuse.ch/blocklist/?download=domainblocklist') [o] 'https://www.badips.com/get/list/any/2?age=30d' [o] 'https://raw.githubusercontent.com/firehol/bl...
OverflowError
def get_announcements(self, courses, **kwargs): """ List announcements. :calls: `GET /api/v1/announcements \ <https://canvas.instructure.com/doc/api/announcements.html#method.announcements_api.index>`_ :param courses: Course ID(s) or <Course> objects to request announcements from. ...
def get_announcements(self, **kwargs): """ List announcements. :calls: `GET /api/v1/announcements \ <https://canvas.instructure.com/doc/api/announcements.html#method.announcements_api.index>`_ :rtype: :class:`canvasapi.paginated_list.PaginatedList` of :class:`canvas...
https://github.com/ucfopen/canvasapi/issues/420
--------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-15-667b0a4b45f2> in <module> 2 announcements = canvas.get_announcements(context_codes=['course_{}'.format(course_id)]) 3 a = announcements[0] ----> 4 a.u...
ValueError
def _parent_id(self): """ Return the id of the course or group that spawned this discussion topic. :rtype: int """ if hasattr(self, "course_id"): return self.course_id elif hasattr(self, "group_id"): return self.group_id elif hasattr(self, "context_code"): if self.co...
def _parent_id(self): """ Return the id of the course or group that spawned this discussion topic. :rtype: int """ if hasattr(self, "course_id"): return self.course_id elif hasattr(self, "group_id"): return self.group_id else: raise ValueError("Discussion Topic does ...
https://github.com/ucfopen/canvasapi/issues/420
--------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-15-667b0a4b45f2> in <module> 2 announcements = canvas.get_announcements(context_codes=['course_{}'.format(course_id)]) 3 a = announcements[0] ----> 4 a.u...
ValueError
def _parent_type(self): """ Return whether the discussion topic was spawned from a course or group. :rtype: str """ if hasattr(self, "course_id"): return "course" elif hasattr(self, "group_id"): return "group" elif hasattr(self, "context_code"): if self.context_code....
def _parent_type(self): """ Return whether the discussion topic was spawned from a course or group. :rtype: str """ if hasattr(self, "course_id"): return "course" elif hasattr(self, "group_id"): return "group" else: raise ValueError("Discussion Topic does not have a ...
https://github.com/ucfopen/canvasapi/issues/420
--------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-15-667b0a4b45f2> in <module> 2 announcements = canvas.get_announcements(context_codes=['course_{}'.format(course_id)]) 3 a = announcements[0] ----> 4 a.u...
ValueError
def __init__(self, base_url, access_token): """ :param base_url: The base URL of the Canvas instance's API. :type base_url: str :param access_token: The API key to authenticate requests with. :type access_token: str """ new_url = get_institution_url(base_url) if "api/v1" in base_url: ...
def __init__(self, base_url, access_token): """ :param base_url: The base URL of the Canvas instance's API. :type base_url: str :param access_token: The API key to authenticate requests with. :type access_token: str """ new_url = get_institution_url(base_url) if "api/v1" in base_url: ...
https://github.com/ucfopen/canvasapi/issues/301
Traceback (most recent call last): File "_test.py", line 42, in <module> course = canvas.get_course(COURSE_ID) File "<YANKED>canvasapi/canvas.py", line 603, in get_course "GET", uri_str.format(course_id), _kwargs=combine_kwargs(**kwargs) File "<YANKED>canvasapi/requester.py", line 191, in request "Headers: {headers}".f...
ValueError
def clean_headers(headers): """ Sanitize a dictionary containing HTTP headers of sensitive values. :param headers: The headers to sanitize. :type headers: dict :returns: A list of headers without sensitive information stripped out. :rtype: dict """ cleaned_headers = headers.copy() ...
def clean_headers(headers): """ Sanitize a dictionary containing HTTP headers of sensitive values. :param headers: The headers to sanitize. :type headers: dict :returns: A list of headers without sensitive information stripped out. :rtype: dict """ cleaned_headers = headers.copy() ...
https://github.com/ucfopen/canvasapi/issues/301
Traceback (most recent call last): File "_test.py", line 42, in <module> course = canvas.get_course(COURSE_ID) File "<YANKED>canvasapi/canvas.py", line 603, in get_course "GET", uri_str.format(course_id), _kwargs=combine_kwargs(**kwargs) File "<YANKED>canvasapi/requester.py", line 191, in request "Headers: {headers}".f...
ValueError
def create_external_tool( self, name, privacy_level, consumer_key, shared_secret, **kwargs ): """ Create an external tool in the current account. :calls: `POST /api/v1/accounts/:account_id/external_tools \ <https://canvas.instructure.com/doc/api/external_tools.html#method.external_tools...
def create_external_tool( self, name, privacy_level, consumer_key, shared_secret, **kwargs ): """ Create an external tool in the current account. :calls: `POST /api/v1/accounts/:account_id/external_tools \ <https://canvas.instructure.com/doc/api/external_tools.html#method.external_tools...
https://github.com/ucfopen/canvasapi/issues/249
tool = { "custom_fields": { "canvas_membership_roles": "$Canvas.membership.roles" }, "course_navigation": { "default": "disabled", "text": "Tool Name", "enabled": "true", "visibility": "admins", "label": "Course Emailer", "selection_width": 700, "selection_height": 800 }, "consumer_key": "override_me", "shared_secret":...
canvasapi.exceptions.BadRequest
def __init__(self, base_url, access_token): """ :param base_url: The base URL of the Canvas instance's API. :type base_url: str :param access_token: The API key to authenticate requests with. :type access_token: str """ new_url = get_institution_url(base_url) if "api/v1" in base_url: ...
def __init__(self, base_url, access_token): """ :param base_url: The base URL of the Canvas instance's API. :type base_url: str :param access_token: The API key to authenticate requests with. :type access_token: str """ new_url = get_institution_url(base_url) if "api/v1" in base_url: ...
https://github.com/ucfopen/canvasapi/issues/183
a.create_course(course={'name': 'JSA_TST1337_Jesse_McBride'}) Traceback (most recent call last): File "<console>", line 1, in <module> File "/usr/local/lib/python2.7/site-packages/canvasapi/account.py", line 77, in create_course return Course(self._requester, response.json()) File "/usr/local/lib/python2.7/site-package...
AttributeError
def _attach_v2_specs( task: _container_op.ContainerOp, component_spec: _structures.ComponentSpec, arguments: Mapping[str, Any], ) -> None: """Attaches v2 specs to a ContainerOp object. Args: task: The ContainerOp object to attach IR specs. component_spec: The component spec object. ...
def _attach_v2_specs( task: _container_op.ContainerOp, component_spec: _structures.ComponentSpec, arguments: Mapping[str, Any], ) -> None: """Attaches v2 specs to a ContainerOp object. Args: task: The ContainerOp object to attach IR specs. component_spec: The component spec object. ...
https://github.com/kubeflow/pipelines/issues/5263
�[34msample-test-bg6w4-565595884: �[0;32mhttps://raw.githubusercontent.com/kubeflow/pipelines/01a23ae8672d3b18e88adf3036071496aca3552d/components/gcp/bigquery/query/component.yaml�[0m in �[0;36mBigquery - Query�[0;34m(query, project_id, dataset_id, table_id, output_gcs_path, dataset_location, job_config)�[0m�[0m �[34ms...
31mAssertionError
def build_importer_spec( input_type_schema: str, pipeline_param_name: Optional[str] = None, constant_value: Optional[str] = None, ) -> pipeline_spec_pb2.PipelineDeploymentConfig.ImporterSpec: """Builds an importer executor spec. Args: input_type_schema: The type of the input artifact. p...
def build_importer_spec( input_type_schema: str, pipeline_param_name: Optional[str] = None, constant_value: Optional[str] = None, ) -> pipeline_spec_pb2.PipelineDeploymentConfig.ImporterSpec: """Builds an importer executor spec. Args: input_type_schema: The type of the input artifact. p...
https://github.com/kubeflow/pipelines/issues/5263
�[34msample-test-bg6w4-565595884: �[0;32mhttps://raw.githubusercontent.com/kubeflow/pipelines/01a23ae8672d3b18e88adf3036071496aca3552d/components/gcp/bigquery/query/component.yaml�[0m in �[0;36mBigquery - Query�[0;34m(query, project_id, dataset_id, table_id, output_gcs_path, dataset_location, job_config)�[0m�[0m �[34ms...
31mAssertionError
def _capture_function_code_using_source_copy(func) -> str: func_code = inspect.getsource(func) # Function might be defined in some indented scope (e.g. in another function). # We need to handle this and properly dedent the function source code func_code = textwrap.dedent(func_code) func_code_lines ...
def _capture_function_code_using_source_copy(func) -> str: import textwrap func_code = inspect.getsource(func) # Function might be defined in some indented scope (e.g. in another function). # We need to handle this and properly dedent the function source code func_code = textwrap.dedent(func_code)...
https://github.com/kubeflow/pipelines/issues/4849
Traceback (most recent call last): File "/opt/conda/lib/python3.8/site-packages/torch/_utils_internal.py", line 49, in get_source_lines_and_file sourcelines, file_lineno = inspect.getsourcelines(obj) File "/opt/conda/lib/python3.8/inspect.py", line 967, in getsourcelines lines, lnum = findsource(object) File "/opt/cond...
OSError
def _func_to_component_spec( func, extra_code="", base_image: str = None, packages_to_install: List[str] = None, modules_to_capture: List[str] = None, use_code_pickling=False, ) -> ComponentSpec: """Takes a self-contained python function and converts it to component. Args: func:...
def _func_to_component_spec( func, extra_code="", base_image: str = None, packages_to_install: List[str] = None, modules_to_capture: List[str] = None, use_code_pickling=False, ) -> ComponentSpec: """Takes a self-contained python function and converts it to component. Args: func:...
https://github.com/kubeflow/pipelines/issues/4849
Traceback (most recent call last): File "/opt/conda/lib/python3.8/site-packages/torch/_utils_internal.py", line 49, in get_source_lines_and_file sourcelines, file_lineno = inspect.getsourcelines(obj) File "/opt/conda/lib/python3.8/inspect.py", line 967, in getsourcelines lines, lnum = findsource(object) File "/opt/cond...
OSError
def build_python_component( component_func, target_image, base_image=None, dependency=[], staging_gcs_path=None, timeout=600, namespace=None, target_component_file=None, python_version="python3", ): """build_component automatically builds a container image for the component_func ...
def build_python_component( component_func, target_image, base_image=None, dependency=[], staging_gcs_path=None, timeout=600, namespace=None, target_component_file=None, python_version="python3", ): """build_component automatically builds a container image for the component_func ...
https://github.com/kubeflow/pipelines/issues/4849
Traceback (most recent call last): File "/opt/conda/lib/python3.8/site-packages/torch/_utils_internal.py", line 49, in get_source_lines_and_file sourcelines, file_lineno = inspect.getsourcelines(obj) File "/opt/conda/lib/python3.8/inspect.py", line 967, in getsourcelines lines, lnum = findsource(object) File "/opt/cond...
OSError
def batch_predict( project_id, model_path, input_paths, input_data_format, output_path, region, job_id_output_path, output_data_format=None, prediction_input=None, job_id_prefix=None, wait_interval=30, ): """Creates a MLEngine batch prediction job. Args: proj...
def batch_predict( project_id, model_path, input_paths, input_data_format, output_path, region, job_id_output_path, output_data_format=None, prediction_input=None, job_id_prefix=None, wait_interval=30, ): """Creates a MLEngine batch prediction job. Args: proj...
https://github.com/kubeflow/pipelines/issues/4430
INFO:root:Start KFP context with ID: 858b3ff01cdeed5c0b0b7fd9d2655641. Traceback (most recent call last): File "/usr/local/lib/python2.7/runpy.py", line 174, in _run_module_as_main "__main__", fname, loader, pkg_name) File "/usr/local/lib/python2.7/runpy.py", line 72, in _run_code exec code in run_globals File "/ml/kfp...
TypeError
def train( project_id, job_id_output_path, python_module=None, package_uris=None, region=None, args=None, job_dir=None, python_version=None, runtime_version=None, master_image_uri=None, worker_image_uri=None, training_input=None, job_id_prefix=None, job_id=None, ...
def train( project_id, job_id_output_path, python_module=None, package_uris=None, region=None, args=None, job_dir=None, python_version=None, runtime_version=None, master_image_uri=None, worker_image_uri=None, training_input=None, job_id_prefix=None, job_id=None, ...
https://github.com/kubeflow/pipelines/issues/4430
INFO:root:Start KFP context with ID: 858b3ff01cdeed5c0b0b7fd9d2655641. Traceback (most recent call last): File "/usr/local/lib/python2.7/runpy.py", line 174, in _run_module_as_main "__main__", fname, loader, pkg_name) File "/usr/local/lib/python2.7/runpy.py", line 72, in _run_code exec code in run_globals File "/ml/kfp...
TypeError
def create_version( model_name, deployemnt_uri=None, version_id=None, runtime_version=None, python_version=None, version=None, replace_existing=False, wait_interval=30, version_name_output_path="/tmp/kfp/output/ml_engine/version_name.txt", version_object_output_path="/tmp/kfp/out...
def create_version( model_name, deployemnt_uri=None, version_id=None, runtime_version=None, python_version=None, version=None, replace_existing=False, wait_interval=30, version_name_output_path="/tmp/kfp/output/ml_engine/version_name.txt", version_object_output_path="/tmp/kfp/out...
https://github.com/kubeflow/pipelines/issues/4291
Traceback (most recent call last): File "/usr/local/lib/python2.7/runpy.py", line 174, in _run_module_as_main "__main__", fname, loader, pkg_name) File "/usr/local/lib/python2.7/runpy.py", line 72, in _run_code exec code in run_globals File "/ml/kfp_component/launcher/__main__.py", line 34, in <module> main() File "/ml...
TypeError
def _load_config( self, host, client_id, namespace, other_client_id, other_client_secret, existing_token, proxy, ssl_ca_cert, ): config = kfp_server_api.configuration.Configuration() if proxy: # https://github.com/kubeflow/pipelines/blob/c6ac5e0b1fd991e19e96419f0f508...
def _load_config( self, host, client_id, namespace, other_client_id, other_client_secret, existing_token, proxy, ssl_ca_cert, ): config = kfp_server_api.configuration.Configuration() if proxy: # https://github.com/kubeflow/pipelines/blob/c6ac5e0b1fd991e19e96419f0f508...
https://github.com/kubeflow/pipelines/issues/4277
Traceback (most recent call last): File "../kubeflow-apply/kubeflow-apply.py", line 73, in <module> args.func() File "../kubeflow-apply/kubeflow-apply.py", line 33, in pipelines self.client.upload_pipeline(filename, name, description) File "/usr/local/lib/python3.8/site-packages/kfp/_client.py", line 723, in upload_pip...
urllib3.exceptions.LocationValueError
def _load_config( self, host, client_id, namespace, other_client_id, other_client_secret, existing_token, ): config = kfp_server_api.configuration.Configuration() host = host or "" # Preprocess the host endpoint to prevent some common user mistakes. if not client_id: ...
def _load_config( self, host, client_id, namespace, other_client_id, other_client_secret, existing_token, ): config = kfp_server_api.configuration.Configuration() host = host or "" # Preprocess the host endpoint to prevent some common user mistakes. # This should only be don...
https://github.com/kubeflow/pipelines/issues/4277
Traceback (most recent call last): File "../kubeflow-apply/kubeflow-apply.py", line 73, in <module> args.func() File "../kubeflow-apply/kubeflow-apply.py", line 33, in pipelines self.client.upload_pipeline(filename, name, description) File "/usr/local/lib/python3.8/site-packages/kfp/_client.py", line 723, in upload_pip...
urllib3.exceptions.LocationValueError
def create_run_from_pipeline_func( self, pipeline_func: Callable, arguments: Mapping[str, str], run_name=None, experiment_name=None, pipeline_conf: kfp.dsl.PipelineConf = None, namespace=None, ): """Runs pipeline on KFP-enabled Kubernetes cluster. This command compiles the pipeline f...
def create_run_from_pipeline_func( self, pipeline_func: Callable, arguments: Mapping[str, str], run_name=None, experiment_name=None, pipeline_conf: kfp.dsl.PipelineConf = None, namespace=None, ): """Runs pipeline on KFP-enabled Kubernetes cluster. This command compiles the pipeline f...
https://github.com/kubeflow/pipelines/issues/3630
AttributeError Traceback (most recent call last) <ipython-input-8-8ebf2be6196c> in <module> 1 client = kfp.Client(host='2c688415e5fe965e-dot-us-central2.pipelines.googleusercontent.com') ----> 2 client.wait_for_run_completion(run_id=run_result.run_id, timeout=36000) ~/Library/Python/3.7/lib/python/site-packages/kfp/_c...
AttributeError
def create_run_from_pipeline_package( self, pipeline_file: str, arguments: Mapping[str, str], run_name=None, experiment_name=None, namespace=None, ): """Runs pipeline on KFP-enabled Kubernetes cluster. This command compiles the pipeline function, creates or gets an experiment and submits...
def create_run_from_pipeline_package( self, pipeline_file: str, arguments: Mapping[str, str], run_name=None, experiment_name=None, namespace=None, ): """Runs pipeline on KFP-enabled Kubernetes cluster. This command compiles the pipeline function, creates or gets an experiment and submits...
https://github.com/kubeflow/pipelines/issues/3630
AttributeError Traceback (most recent call last) <ipython-input-8-8ebf2be6196c> in <module> 1 client = kfp.Client(host='2c688415e5fe965e-dot-us-central2.pipelines.googleusercontent.com') ----> 2 client.wait_for_run_completion(run_id=run_result.run_id, timeout=36000) ~/Library/Python/3.7/lib/python/site-packages/kfp/_c...
AttributeError
def wait_for_run_completion(self, timeout=None): timeout = timeout or datetime.timedelta.max return self._client.wait_for_run_completion(self.run_id, timeout)
def wait_for_run_completion(self, timeout=None): timeout = timeout or datetime.datetime.max - datetime.datetime.min return self._client.wait_for_run_completion(self.run_id, timeout)
https://github.com/kubeflow/pipelines/issues/3630
AttributeError Traceback (most recent call last) <ipython-input-8-8ebf2be6196c> in <module> 1 client = kfp.Client(host='2c688415e5fe965e-dot-us-central2.pipelines.googleusercontent.com') ----> 2 client.wait_for_run_completion(run_id=run_result.run_id, timeout=36000) ~/Library/Python/3.7/lib/python/site-packages/kfp/_c...
AttributeError
def create_artifact_with_type( store, uri: str, type_name: str, properties: dict = None, type_properties: dict = None, custom_properties: dict = None, ) -> metadata_store_pb2.Artifact: artifact_type = get_or_create_artifact_type( store=store, type_name=type_name, prop...
def create_artifact_with_type( store, uri: str, type_name: str, properties: dict = None, type_properties: dict = None, ) -> metadata_store_pb2.Artifact: artifact_type = get_or_create_artifact_type( store=store, type_name=type_name, properties=type_properties, ) ar...
https://github.com/kubeflow/pipelines/issues/3552
Kubernetes Pod event: MODIFIED file-passing-pipelines-mbzrz-3001099438 1555702 Traceback (most recent call last): File "/kfp/metadata_writer/metadata_writer.py", line 183, in <module> KFP_POD_NAME_EXECUTION_PROPERTY_NAME: pod_name, File "/kfp/metadata_writer/metadata_helpers.py", line 280, in create_new_execution_in_e...
TypeError
def create_execution_with_type( store, type_name: str, properties: dict = None, type_properties: dict = None, custom_properties: dict = None, ) -> metadata_store_pb2.Execution: execution_type = get_or_create_execution_type( store=store, type_name=type_name, properties=typ...
def create_execution_with_type( store, type_name: str, properties: dict = None, type_properties: dict = None, ) -> metadata_store_pb2.Execution: execution_type = get_or_create_execution_type( store=store, type_name=type_name, properties=type_properties, ) execution = ...
https://github.com/kubeflow/pipelines/issues/3552
Kubernetes Pod event: MODIFIED file-passing-pipelines-mbzrz-3001099438 1555702 Traceback (most recent call last): File "/kfp/metadata_writer/metadata_writer.py", line 183, in <module> KFP_POD_NAME_EXECUTION_PROPERTY_NAME: pod_name, File "/kfp/metadata_writer/metadata_helpers.py", line 280, in create_new_execution_in_e...
TypeError
def create_context_with_type( store, context_name: str, type_name: str, properties: dict = None, type_properties: dict = None, custom_properties: dict = None, ) -> metadata_store_pb2.Context: # ! Context_name must be unique context_type = get_or_create_context_type( store=store, ...
def create_context_with_type( store, context_name: str, type_name: str, properties: dict = None, type_properties: dict = None, ) -> metadata_store_pb2.Context: # ! Context_name must be unique context_type = get_or_create_context_type( store=store, type_name=type_name, ...
https://github.com/kubeflow/pipelines/issues/3552
Kubernetes Pod event: MODIFIED file-passing-pipelines-mbzrz-3001099438 1555702 Traceback (most recent call last): File "/kfp/metadata_writer/metadata_writer.py", line 183, in <module> KFP_POD_NAME_EXECUTION_PROPERTY_NAME: pod_name, File "/kfp/metadata_writer/metadata_helpers.py", line 280, in create_new_execution_in_e...
TypeError
def get_or_create_context_with_type( store, context_name: str, type_name: str, properties: dict = None, type_properties: dict = None, custom_properties: dict = None, ) -> metadata_store_pb2.Context: try: context = get_context_by_name(store, context_name) except: context =...
def get_or_create_context_with_type( store, context_name: str, type_name: str, properties: dict = None, type_properties: dict = None, ) -> metadata_store_pb2.Context: try: context = get_context_by_name(store, context_name) except: context = create_context_with_type( ...
https://github.com/kubeflow/pipelines/issues/3552
Kubernetes Pod event: MODIFIED file-passing-pipelines-mbzrz-3001099438 1555702 Traceback (most recent call last): File "/kfp/metadata_writer/metadata_writer.py", line 183, in <module> KFP_POD_NAME_EXECUTION_PROPERTY_NAME: pod_name, File "/kfp/metadata_writer/metadata_helpers.py", line 280, in create_new_execution_in_e...
TypeError
def create_new_execution_in_existing_context( store, execution_type_name: str, context_id: int, properties: dict = None, execution_type_properties: dict = None, custom_properties: dict = None, ) -> metadata_store_pb2.Execution: execution = create_execution_with_type( store=store, ...
def create_new_execution_in_existing_context( store, execution_type_name: str, context_id: int, properties: dict = None, execution_type_properties: dict = None, ) -> metadata_store_pb2.Execution: execution = create_execution_with_type( store=store, properties=properties, ...
https://github.com/kubeflow/pipelines/issues/3552
Kubernetes Pod event: MODIFIED file-passing-pipelines-mbzrz-3001099438 1555702 Traceback (most recent call last): File "/kfp/metadata_writer/metadata_writer.py", line 183, in <module> KFP_POD_NAME_EXECUTION_PROPERTY_NAME: pod_name, File "/kfp/metadata_writer/metadata_helpers.py", line 280, in create_new_execution_in_e...
TypeError
def create_new_artifact_event_and_attribution( store, execution_id: int, context_id: int, uri: str, type_name: str, event_type: metadata_store_pb2.Event.Type, properties: dict = None, artifact_type_properties: dict = None, custom_properties: dict = None, artifact_name_path: metad...
def create_new_artifact_event_and_attribution( store, execution_id: int, context_id: int, uri: str, type_name: str, event_type: metadata_store_pb2.Event.Type, properties: dict = None, artifact_type_properties: dict = None, artifact_name_path: metadata_store_pb2.Event.Path = None, ...
https://github.com/kubeflow/pipelines/issues/3552
Kubernetes Pod event: MODIFIED file-passing-pipelines-mbzrz-3001099438 1555702 Traceback (most recent call last): File "/kfp/metadata_writer/metadata_writer.py", line 183, in <module> KFP_POD_NAME_EXECUTION_PROPERTY_NAME: pod_name, File "/kfp/metadata_writer/metadata_helpers.py", line 280, in create_new_execution_in_e...
TypeError
def create_new_execution_in_existing_run_context( store, execution_type_name: str, context_id: int, pod_name: str, # TODO: Remove when UX stops relying on thsese properties pipeline_name: str = None, run_id: str = None, instance_id: str = None, custom_properties=None, ) -> metadata_s...
def create_new_execution_in_existing_run_context( store, execution_type_name: str, context_id: int, # TODO: Remove when UX stops relying on thsese properties pipeline_name: str = None, run_id: str = None, instance_id: str = None, custom_properties=None, ) -> metadata_store_pb2.Execution:...
https://github.com/kubeflow/pipelines/issues/3552
Kubernetes Pod event: MODIFIED file-passing-pipelines-mbzrz-3001099438 1555702 Traceback (most recent call last): File "/kfp/metadata_writer/metadata_writer.py", line 183, in <module> KFP_POD_NAME_EXECUTION_PROPERTY_NAME: pod_name, File "/kfp/metadata_writer/metadata_helpers.py", line 280, in create_new_execution_in_e...
TypeError
def resnet_train( project_id, output, region="us-central1", model="bolts", version="beta1", tf_version="1.12", train_csv="gs://bolts_image_dataset/bolt_images_train.csv", validation_csv="gs://bolts_image_dataset/bolt_images_validate.csv", labels="gs://bolts_image_dataset/labels.txt",...
def resnet_train( project_id, output, region="us-central1", model="bolts", version="beta1", tf_version="1.12", train_csv="gs://bolts_image_dataset/bolt_images_train.csv", validation_csv="gs://bolts_image_dataset/bolt_images_validate.csv", labels="gs://bolts_image_dataset/labels.txt",...
https://github.com/kubeflow/pipelines/issues/1142
Step 20/31 : RUN find . -maxdepth 2 -name '*.py' -type f | while read pipeline; do dsl-compile --py "$pipeline" --output "$pipeline.tar.gz"; done ---> Running in 3205bef0c5cb Traceback (most recent call last): File "/usr/local/bin/dsl-compile", line 10, in <module> sys.exit(main()) File "/usr/local/lib/python3.5/site-...
KeyError
def getFeed(urls): feedPosts = [] with FuturesSession() as session: futures = [ session.get( "{instance}{user}".format(instance=NITTERINSTANCE, user=u.username) ) for u in urls ] for future in as_completed(futures): res = fu...
def getFeed(urls): feedPosts = [] with FuturesSession() as session: futures = [ session.get( "{instance}{user}".format(instance=NITTERINSTANCE, user=u.username) ) for u in urls ] for future in as_completed(futures): res = fu...
https://github.com/ytorg/Yotter/issues/42
[2020-09-09 11:09:39,667] ERROR in app: Exception on /twitter [GET] Traceback (most recent call last): File "/home/ubuntu/Yotter/venv/lib/python3.8/site-packages/flask/app.py", line 2447, in wsgi_app response = self.full_dispatch_request() File "/home/ubuntu/Yotter/venv/lib/python3.8/site-packages/flask/app.py", line 1...
AttributeError
def getYoutubePosts(ids): videos = [] with FuturesSession() as session: futures = [ session.get( "https://www.youtube.com/feeds/videos.xml?channel_id={id}".format( id=id.channelId ) ) for id in ids ] ...
def getYoutubePosts(ids): videos = [] with FuturesSession() as session: futures = [ session.get( "https://www.youtube.com/feeds/videos.xml?channel_id={id}".format( id=id.channelId ) ) for id in ids ] ...
https://github.com/ytorg/Yotter/issues/44
Traceback (most recent call last): File "/home/ubuntu/Yotter/venv/lib/python3.8/site-packages/feedparser.py", line 398, in __getattr__ return self.__getitem__(key) File "/home/ubuntu/Yotter/venv/lib/python3.8/site-packages/feedparser.py", line 356, in __getitem__ return dict.__getitem__(self, key) KeyError: 'published_...
KeyError
async def on_close(response: Response) -> None: response.elapsed = datetime.timedelta(seconds=await timer.async_elapsed()) if hasattr(stream, "aclose"): with map_exceptions(HTTPCORE_EXC_MAP, request=request): await stream.aclose()
async def on_close(response: Response) -> None: response.elapsed = datetime.timedelta(seconds=await timer.async_elapsed()) if hasattr(stream, "aclose"): await stream.aclose()
https://github.com/encode/httpx/issues/1463
.tox/py38/lib/python3.8/site-packages/httpx/_client.py:1846: in __aexit__ await self.response.aclose() .tox/py38/lib/python3.8/site-packages/httpx/_models.py:1299: in aclose await self._on_close(self) .tox/py38/lib/python3.8/site-packages/httpx/_client.py:1513: in on_close await stream.aclose() .tox/py38/lib/python3.8/...
OSError
async def _send_single_request(self, request: Request, timeout: Timeout) -> Response: """ Sends a single request, without handling any redirections. """ transport = self._transport_for_url(request.url) timer = Timer() await timer.async_start() with map_exceptions(HTTPCORE_EXC_MAP, request=r...
async def _send_single_request(self, request: Request, timeout: Timeout) -> Response: """ Sends a single request, without handling any redirections. """ transport = self._transport_for_url(request.url) timer = Timer() await timer.async_start() with map_exceptions(HTTPCORE_EXC_MAP, request=r...
https://github.com/encode/httpx/issues/1463
.tox/py38/lib/python3.8/site-packages/httpx/_client.py:1846: in __aexit__ await self.response.aclose() .tox/py38/lib/python3.8/site-packages/httpx/_models.py:1299: in aclose await self._on_close(self) .tox/py38/lib/python3.8/site-packages/httpx/_client.py:1513: in on_close await stream.aclose() .tox/py38/lib/python3.8/...
OSError
def __init__( self, url: typing.Union["URL", str, RawURL] = "", params: QueryParamTypes = None ) -> None: if isinstance(url, (str, tuple)): if isinstance(url, tuple): raw_scheme, raw_host, port, raw_path = url scheme = raw_scheme.decode("ascii") host = raw_host.decode...
def __init__( self, url: typing.Union["URL", str, RawURL] = "", params: QueryParamTypes = None ) -> None: if isinstance(url, (str, tuple)): if isinstance(url, tuple): raw_scheme, raw_host, port, raw_path = url scheme = raw_scheme.decode("ascii") host = raw_host.decode...
https://github.com/encode/httpx/issues/1311
<Response [200]> <Response [200]> <Response [200 OK]> Traceback (most recent call last): File "/home/user/repos/lb-test/.venv/lib/python3.7/site-packages/httpx/_exceptions.py", line 339, in map_exceptions yield File "/home/user/repos/lb-test/.venv/lib/python3.7/site-packages/httpx/_client.py", line 858, in _send_single...
httpcore.ConnectError
def host(self) -> str: """ The URL host as a string. Always normlized to lowercase, and IDNA encoded. Examples: url = httpx.URL("http://www.EXAMPLE.org") assert url.host == "www.example.org" url = httpx.URL("http://中国.icom.museum") assert url.host == "xn--fiqs8s.icom.museum" url ...
def host(self) -> str: """ The URL host as a string. Always normlized to lowercase, and IDNA encoded. Examples: url = httpx.URL("http://www.EXAMPLE.org") assert url.host == "www.example.org" url = httpx.URL("http://中国.icom.museum") assert url.host == "xn--fiqs8s.icom.museum" """ ...
https://github.com/encode/httpx/issues/1311
<Response [200]> <Response [200]> <Response [200 OK]> Traceback (most recent call last): File "/home/user/repos/lb-test/.venv/lib/python3.7/site-packages/httpx/_exceptions.py", line 339, in map_exceptions yield File "/home/user/repos/lb-test/.venv/lib/python3.7/site-packages/httpx/_client.py", line 858, in _send_single...
httpcore.ConnectError
def copy_with(self, **kwargs: typing.Any) -> "URL": """ Copy this URL, returning a new URL with some components altered. Accepts the same set of parameters as the components that are made available via properties on the `URL` class. For example: url = httpx.URL("https://www.example.com").copy_...
def copy_with(self, **kwargs: typing.Any) -> "URL": """ Copy this URL, returning a new URL with some components altered. Accepts the same set of parameters as the components that are made available via properties on the `URL` class. For example: url = httpx.URL("https://www.example.com").copy_...
https://github.com/encode/httpx/issues/1311
<Response [200]> <Response [200]> <Response [200 OK]> Traceback (most recent call last): File "/home/user/repos/lb-test/.venv/lib/python3.7/site-packages/httpx/_exceptions.py", line 339, in map_exceptions yield File "/home/user/repos/lb-test/.venv/lib/python3.7/site-packages/httpx/_client.py", line 858, in _send_single...
httpcore.ConnectError
def raw(self) -> typing.List[typing.Tuple[bytes, bytes]]: """ Returns a list of the raw header items, as byte pairs. """ return list(self._list)
def raw(self) -> typing.List[typing.Tuple[bytes, bytes]]: """ Returns a list of the raw header items, as byte pairs. May be mutated in-place. """ return self._list
https://github.com/encode/httpx/issues/1203
import httpx client = httpx.Client() request = client.build_request("GET", "https://google.com") requests.headers Headers({'host': 'google.com', 'user-agent': 'python-httpx/0.14.1', 'accept': '*/*', 'accept-encoding': 'gzip, deflate, br', 'connection': 'keep-alive'}) "host" in request.headers False request.headers.pop(...
KeyError
def prepare(self) -> None: for key, value in self.stream.get_headers().items(): # Ignore Transfer-Encoding if the Content-Length has been set explicitly. if key.lower() == "transfer-encoding" and "content-length" in self.headers: continue self.headers.setdefault(key, value) ...
def prepare(self) -> None: for key, value in self.stream.get_headers().items(): # Ignore Transfer-Encoding if the Content-Length has been set explicitly. if key.lower() == "transfer-encoding" and "content-length" in self.headers: continue self.headers.setdefault(key, value) ...
https://github.com/encode/httpx/issues/1203
import httpx client = httpx.Client() request = client.build_request("GET", "https://google.com") requests.headers Headers({'host': 'google.com', 'user-agent': 'python-httpx/0.14.1', 'accept': '*/*', 'accept-encoding': 'gzip, deflate, br', 'connection': 'keep-alive'}) "host" in request.headers False request.headers.pop(...
KeyError
def username(self) -> str: userinfo = self._uri_reference.userinfo or "" return unquote(userinfo.partition(":")[0])
def username(self) -> str: userinfo = self._uri_reference.userinfo or "" return userinfo.partition(":")[0]
https://github.com/encode/httpx/issues/328
import httpx httpx.URL("https://user@gmail.com:password@google.com") Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/sethmlarson/Desktop/http3/httpx/models.py", line 112, in __init__ raise InvalidURL("No host included in URL.") httpx.exceptions.InvalidURL: No host included in URL.
httpx.exceptions.InvalidURL
def password(self) -> str: userinfo = self._uri_reference.userinfo or "" return unquote(userinfo.partition(":")[2])
def password(self) -> str: userinfo = self._uri_reference.userinfo or "" return userinfo.partition(":")[2]
https://github.com/encode/httpx/issues/328
import httpx httpx.URL("https://user@gmail.com:password@google.com") Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/sethmlarson/Desktop/http3/httpx/models.py", line 112, in __init__ raise InvalidURL("No host included in URL.") httpx.exceptions.InvalidURL: No host included in URL.
httpx.exceptions.InvalidURL
def copy_with(self, **kwargs: typing.Any) -> "URL": if ( "username" in kwargs or "password" in kwargs or "host" in kwargs or "port" in kwargs ): host = kwargs.pop("host", self.host) port = kwargs.pop("port", self.port) username = quote(kwargs.pop("username...
def copy_with(self, **kwargs: typing.Any) -> "URL": if ( "username" in kwargs or "password" in kwargs or "host" in kwargs or "port" in kwargs ): host = kwargs.pop("host", self.host) port = kwargs.pop("port", self.port) username = kwargs.pop("username", sel...
https://github.com/encode/httpx/issues/328
import httpx httpx.URL("https://user@gmail.com:password@google.com") Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/sethmlarson/Desktop/http3/httpx/models.py", line 112, in __init__ raise InvalidURL("No host included in URL.") httpx.exceptions.InvalidURL: No host included in URL.
httpx.exceptions.InvalidURL
def join(self, url: URLTypes) -> "URL": """ Return an absolute URL, using this URL as the base. """ if self.is_relative_url: return URL(url) # We drop any fragment portion, because RFC 3986 strictly # treats URLs with a fragment portion as not being absolute URLs. base_uri = self._u...
def join(self, url: URLTypes) -> "URL": """ Return an absolute URL, using given this URL as the base. """ if self.is_relative_url: return URL(url) # We drop any fragment portion, because RFC 3986 strictly # treats URLs with a fragment portion as not being absolute URLs. base_uri = s...
https://github.com/encode/httpx/issues/328
import httpx httpx.URL("https://user@gmail.com:password@google.com") Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/sethmlarson/Desktop/http3/httpx/models.py", line 112, in __init__ raise InvalidURL("No host included in URL.") httpx.exceptions.InvalidURL: No host included in URL.
httpx.exceptions.InvalidURL
def init_pool_manager( self, proxy: typing.Optional[Proxy], ssl_context: ssl.SSLContext, num_pools: int, maxsize: int, block: bool, ) -> typing.Union[urllib3.PoolManager, urllib3.ProxyManager]: if proxy is None: return urllib3.PoolManager( ssl_context=ssl_context, ...
def init_pool_manager( self, proxy: typing.Optional[Proxy], ssl_context: ssl.SSLContext, num_pools: int, maxsize: int, block: bool, ) -> typing.Union[urllib3.PoolManager, urllib3.ProxyManager]: if proxy is None: return urllib3.PoolManager( ssl_context=ssl_context, ...
https://github.com/encode/httpx/issues/762
$ ipython3 -c 'import httpx; r = httpx.get("https://www.google.com")' parse_url http://127.0.0.1:1234 <class 'httpx.models.URL'> --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-1-d6fe3101235f> in <modu...
TypeError
def __init__(self) -> None: self.first_attempt = True self.decompressor = zlib.decompressobj()
def __init__(self) -> None: self.decompressor = zlib.decompressobj(-zlib.MAX_WBITS)
https://github.com/encode/httpx/issues/756
httpx.get('http://localhost:9999') Traceback (most recent call last): File "/Users/jamie/code/httpx/httpx/decoders.py", line 52, in decode return self.decompressor.decompress(data) zlib.error: Error -3 while decompressing data: invalid stored block lengths The above exception was the direct cause of the following exce...
zlib.error
def decode(self, data: bytes) -> bytes: was_first_attempt = self.first_attempt self.first_attempt = False try: return self.decompressor.decompress(data) except zlib.error as exc: if was_first_attempt: self.decompressor = zlib.decompressobj(-zlib.MAX_WBITS) return ...
def decode(self, data: bytes) -> bytes: try: return self.decompressor.decompress(data) except zlib.error as exc: raise DecodingError from exc
https://github.com/encode/httpx/issues/756
httpx.get('http://localhost:9999') Traceback (most recent call last): File "/Users/jamie/code/httpx/httpx/decoders.py", line 52, in decode return self.decompressor.decompress(data) zlib.error: Error -3 while decompressing data: invalid stored block lengths The above exception was the direct cause of the following exce...
zlib.error
def __init__( self, stream_reader: asyncio.StreamReader, stream_writer: asyncio.StreamWriter, ): self.stream_reader = stream_reader self.stream_writer = stream_writer self.read_lock = asyncio.Lock() self.write_lock = asyncio.Lock() self._inner: typing.Optional[SocketStream] = None
def __init__( self, stream_reader: asyncio.StreamReader, stream_writer: asyncio.StreamWriter, ): self.stream_reader = stream_reader self.stream_writer = stream_writer self.read_lock = asyncio.Lock() self._inner: typing.Optional[SocketStream] = None
https://github.com/encode/httpx/issues/551
Traceback (most recent call last): File "/Users/primoz/PycharmProjects/orange3-imageanalytics/example.py", line 57, in <module> asyncio.get_event_loop().run_until_complete(cl.embedd_batch()) File "/Users/primoz/miniconda3/lib/python3.7/asyncio/base_events.py", line 584, in run_until_complete return future.result() File...
AssertionError
async def write(self, data: bytes, timeout: Timeout) -> None: if not data: return try: async with self.write_lock: self.stream_writer.write(data) return await asyncio.wait_for( self.stream_writer.drain(), timeout.write_timeout ) except asy...
async def write(self, data: bytes, timeout: Timeout) -> None: if not data: return self.stream_writer.write(data) try: return await asyncio.wait_for(self.stream_writer.drain(), timeout.write_timeout) except asyncio.TimeoutError: raise WriteTimeout() from None
https://github.com/encode/httpx/issues/551
Traceback (most recent call last): File "/Users/primoz/PycharmProjects/orange3-imageanalytics/example.py", line 57, in <module> asyncio.get_event_loop().run_until_complete(cl.embedd_batch()) File "/Users/primoz/miniconda3/lib/python3.7/asyncio/base_events.py", line 584, in run_until_complete return future.result() File...
AssertionError
async def close(self) -> None: # NOTE: StreamWriter instances expose a '.wait_closed()' coroutine function, # but using it has caused compatibility issues with certain sites in # the past (see https://github.com/encode/httpx/issues/634), which is # why we don't call it here. # This is fine, though, ...
async def close(self) -> None: # NOTE: StreamWriter instances expose a '.wait_closed()' coroutine function, # but using it has caused compatibility issues with certain sites in # the past (see https://github.com/encode/httpx/issues/634), which is # why we don't call it here. # This is fine, though, ...
https://github.com/encode/httpx/issues/551
Traceback (most recent call last): File "/Users/primoz/PycharmProjects/orange3-imageanalytics/example.py", line 57, in <module> asyncio.get_event_loop().run_until_complete(cl.embedd_batch()) File "/Users/primoz/miniconda3/lib/python3.7/asyncio/base_events.py", line 584, in run_until_complete return future.result() File...
AssertionError
async def close(self) -> None: async with self.write_lock: await self.stream.aclose()
async def close(self) -> None: await self.stream.aclose()
https://github.com/encode/httpx/issues/551
Traceback (most recent call last): File "/Users/primoz/PycharmProjects/orange3-imageanalytics/example.py", line 57, in <module> asyncio.get_event_loop().run_until_complete(cl.embedd_batch()) File "/Users/primoz/miniconda3/lib/python3.7/asyncio/base_events.py", line 584, in run_until_complete return future.result() File...
AssertionError
def __init__(self) -> None: self._lock = trio.Lock()
def __init__(self) -> None: self._event = trio.Event()
https://github.com/encode/httpx/issues/551
Traceback (most recent call last): File "/Users/primoz/PycharmProjects/orange3-imageanalytics/example.py", line 57, in <module> asyncio.get_event_loop().run_until_complete(cl.embedd_batch()) File "/Users/primoz/miniconda3/lib/python3.7/asyncio/base_events.py", line 584, in run_until_complete return future.result() File...
AssertionError
async def acquire(self) -> None: await self._lock.acquire()
async def acquire(self, timeout: float = None) -> None: timeout = none_as_inf(timeout) with trio.move_on_after(timeout): await self.semaphore.acquire() return raise self.exc_class()
https://github.com/encode/httpx/issues/551
Traceback (most recent call last): File "/Users/primoz/PycharmProjects/orange3-imageanalytics/example.py", line 57, in <module> asyncio.get_event_loop().run_until_complete(cl.embedd_batch()) File "/Users/primoz/miniconda3/lib/python3.7/asyncio/base_events.py", line 584, in run_until_complete return future.result() File...
AssertionError
def release(self) -> None: self._lock.release()
def release(self) -> None: self.semaphore.release()
https://github.com/encode/httpx/issues/551
Traceback (most recent call last): File "/Users/primoz/PycharmProjects/orange3-imageanalytics/example.py", line 57, in <module> asyncio.get_event_loop().run_until_complete(cl.embedd_batch()) File "/Users/primoz/miniconda3/lib/python3.7/asyncio/base_events.py", line 584, in run_until_complete return future.result() File...
AssertionError
def __init__( self, socket: BaseSocketStream, backend: typing.Union[str, ConcurrencyBackend] = "auto", on_release: typing.Callable = None, ): self.socket = socket self.backend = lookup_backend(backend) self.on_release = on_release self.state = h2.connection.H2Connection(config=self.CONFI...
def __init__( self, socket: BaseSocketStream, backend: typing.Union[str, ConcurrencyBackend] = "auto", on_release: typing.Callable = None, ): self.socket = socket self.backend = lookup_backend(backend) self.on_release = on_release self.state = h2.connection.H2Connection(config=self.CONFI...
https://github.com/encode/httpx/issues/551
Traceback (most recent call last): File "/Users/primoz/PycharmProjects/orange3-imageanalytics/example.py", line 57, in <module> asyncio.get_event_loop().run_until_complete(cl.embedd_batch()) File "/Users/primoz/miniconda3/lib/python3.7/asyncio/base_events.py", line 584, in run_until_complete return future.result() File...
AssertionError
async def send(self, request: Request, timeout: Timeout = None) -> Response: timeout = Timeout() if timeout is None else timeout async with self.init_lock: if not self.sent_connection_init: # The very first stream is responsible for initiating the connection. await self.send_con...
async def send(self, request: Request, timeout: Timeout = None) -> Response: timeout = Timeout() if timeout is None else timeout if not self.init_started: # The very first stream is responsible for initiating the connection. self.init_started = True await self.send_connection_init(timeo...
https://github.com/encode/httpx/issues/551
Traceback (most recent call last): File "/Users/primoz/PycharmProjects/orange3-imageanalytics/example.py", line 57, in <module> asyncio.get_event_loop().run_until_complete(cl.embedd_batch()) File "/Users/primoz/miniconda3/lib/python3.7/asyncio/base_events.py", line 584, in run_until_complete return future.result() File...
AssertionError
def __init__( self, *, auth: AuthTypes = None, params: QueryParamTypes = None, headers: HeaderTypes = None, cookies: CookieTypes = None, verify: VerifyTypes = True, cert: CertTypes = None, http_versions: HTTPVersionTypes = None, proxies: ProxiesTypes = None, timeout: TimeoutT...
def __init__( self, *, auth: AuthTypes = None, params: QueryParamTypes = None, headers: HeaderTypes = None, cookies: CookieTypes = None, verify: VerifyTypes = True, cert: CertTypes = None, http_versions: HTTPVersionTypes = None, proxies: ProxiesTypes = None, timeout: TimeoutT...
https://github.com/encode/httpx/issues/376
SSL handshake failed on verifying the certificate protocol: <asyncio.sslproto.SSLProtocol object at 0x0000020CDCD7E470> transport: <_SelectorSocketTransport fd=768 read=polling write=<idle, bufsize=0>> Traceback (most recent call last): File "C:\Users\localhost\AppData\Local\Programs\Python\Python37\lib\asyncio\sslprot...
ssl.SSLCertVerificationError
async def _get_response( self, request: AsyncRequest, *, stream: bool = False, auth: AuthTypes = None, allow_redirects: bool = True, verify: VerifyTypes = None, cert: CertTypes = None, timeout: TimeoutTypes = None, trust_env: bool = None, ) -> AsyncResponse: if request.url.sc...
async def _get_response( self, request: AsyncRequest, *, stream: bool = False, auth: AuthTypes = None, allow_redirects: bool = True, verify: VerifyTypes = None, cert: CertTypes = None, timeout: TimeoutTypes = None, trust_env: bool = None, proxies: ProxiesTypes = None, ) -> As...
https://github.com/encode/httpx/issues/376
SSL handshake failed on verifying the certificate protocol: <asyncio.sslproto.SSLProtocol object at 0x0000020CDCD7E470> transport: <_SelectorSocketTransport fd=768 read=polling write=<idle, bufsize=0>> Traceback (most recent call last): File "C:\Users\localhost\AppData\Local\Programs\Python\Python37\lib\asyncio\sslprot...
ssl.SSLCertVerificationError
async def get( self, url: URLTypes, *, params: QueryParamTypes = None, headers: HeaderTypes = None, cookies: CookieTypes = None, stream: bool = False, auth: AuthTypes = None, allow_redirects: bool = True, cert: CertTypes = None, verify: VerifyTypes = None, timeout: Timeou...
async def get( self, url: URLTypes, *, params: QueryParamTypes = None, headers: HeaderTypes = None, cookies: CookieTypes = None, stream: bool = False, auth: AuthTypes = None, allow_redirects: bool = True, cert: CertTypes = None, verify: VerifyTypes = None, timeout: Timeou...
https://github.com/encode/httpx/issues/376
SSL handshake failed on verifying the certificate protocol: <asyncio.sslproto.SSLProtocol object at 0x0000020CDCD7E470> transport: <_SelectorSocketTransport fd=768 read=polling write=<idle, bufsize=0>> Traceback (most recent call last): File "C:\Users\localhost\AppData\Local\Programs\Python\Python37\lib\asyncio\sslprot...
ssl.SSLCertVerificationError
async def options( self, url: URLTypes, *, params: QueryParamTypes = None, headers: HeaderTypes = None, cookies: CookieTypes = None, stream: bool = False, auth: AuthTypes = None, allow_redirects: bool = True, cert: CertTypes = None, verify: VerifyTypes = None, timeout: Ti...
async def options( self, url: URLTypes, *, params: QueryParamTypes = None, headers: HeaderTypes = None, cookies: CookieTypes = None, stream: bool = False, auth: AuthTypes = None, allow_redirects: bool = True, cert: CertTypes = None, verify: VerifyTypes = None, timeout: Ti...
https://github.com/encode/httpx/issues/376
SSL handshake failed on verifying the certificate protocol: <asyncio.sslproto.SSLProtocol object at 0x0000020CDCD7E470> transport: <_SelectorSocketTransport fd=768 read=polling write=<idle, bufsize=0>> Traceback (most recent call last): File "C:\Users\localhost\AppData\Local\Programs\Python\Python37\lib\asyncio\sslprot...
ssl.SSLCertVerificationError
async def head( self, url: URLTypes, *, params: QueryParamTypes = None, headers: HeaderTypes = None, cookies: CookieTypes = None, stream: bool = False, auth: AuthTypes = None, allow_redirects: bool = False, # NOTE: Differs to usual default. cert: CertTypes = None, verify: Ve...
async def head( self, url: URLTypes, *, params: QueryParamTypes = None, headers: HeaderTypes = None, cookies: CookieTypes = None, stream: bool = False, auth: AuthTypes = None, allow_redirects: bool = False, # NOTE: Differs to usual default. cert: CertTypes = None, verify: Ve...
https://github.com/encode/httpx/issues/376
SSL handshake failed on verifying the certificate protocol: <asyncio.sslproto.SSLProtocol object at 0x0000020CDCD7E470> transport: <_SelectorSocketTransport fd=768 read=polling write=<idle, bufsize=0>> Traceback (most recent call last): File "C:\Users\localhost\AppData\Local\Programs\Python\Python37\lib\asyncio\sslprot...
ssl.SSLCertVerificationError
async def post( self, url: URLTypes, *, data: AsyncRequestData = None, files: RequestFiles = None, json: typing.Any = None, params: QueryParamTypes = None, headers: HeaderTypes = None, cookies: CookieTypes = None, stream: bool = False, auth: AuthTypes = None, allow_redire...
async def post( self, url: URLTypes, *, data: AsyncRequestData = None, files: RequestFiles = None, json: typing.Any = None, params: QueryParamTypes = None, headers: HeaderTypes = None, cookies: CookieTypes = None, stream: bool = False, auth: AuthTypes = None, allow_redire...
https://github.com/encode/httpx/issues/376
SSL handshake failed on verifying the certificate protocol: <asyncio.sslproto.SSLProtocol object at 0x0000020CDCD7E470> transport: <_SelectorSocketTransport fd=768 read=polling write=<idle, bufsize=0>> Traceback (most recent call last): File "C:\Users\localhost\AppData\Local\Programs\Python\Python37\lib\asyncio\sslprot...
ssl.SSLCertVerificationError
async def put( self, url: URLTypes, *, data: AsyncRequestData = None, files: RequestFiles = None, json: typing.Any = None, params: QueryParamTypes = None, headers: HeaderTypes = None, cookies: CookieTypes = None, stream: bool = False, auth: AuthTypes = None, allow_redirec...
async def put( self, url: URLTypes, *, data: AsyncRequestData = None, files: RequestFiles = None, json: typing.Any = None, params: QueryParamTypes = None, headers: HeaderTypes = None, cookies: CookieTypes = None, stream: bool = False, auth: AuthTypes = None, allow_redirec...
https://github.com/encode/httpx/issues/376
SSL handshake failed on verifying the certificate protocol: <asyncio.sslproto.SSLProtocol object at 0x0000020CDCD7E470> transport: <_SelectorSocketTransport fd=768 read=polling write=<idle, bufsize=0>> Traceback (most recent call last): File "C:\Users\localhost\AppData\Local\Programs\Python\Python37\lib\asyncio\sslprot...
ssl.SSLCertVerificationError
async def patch( self, url: URLTypes, *, data: AsyncRequestData = None, files: RequestFiles = None, json: typing.Any = None, params: QueryParamTypes = None, headers: HeaderTypes = None, cookies: CookieTypes = None, stream: bool = False, auth: AuthTypes = None, allow_redir...
async def patch( self, url: URLTypes, *, data: AsyncRequestData = None, files: RequestFiles = None, json: typing.Any = None, params: QueryParamTypes = None, headers: HeaderTypes = None, cookies: CookieTypes = None, stream: bool = False, auth: AuthTypes = None, allow_redir...
https://github.com/encode/httpx/issues/376
SSL handshake failed on verifying the certificate protocol: <asyncio.sslproto.SSLProtocol object at 0x0000020CDCD7E470> transport: <_SelectorSocketTransport fd=768 read=polling write=<idle, bufsize=0>> Traceback (most recent call last): File "C:\Users\localhost\AppData\Local\Programs\Python\Python37\lib\asyncio\sslprot...
ssl.SSLCertVerificationError
async def delete( self, url: URLTypes, *, data: AsyncRequestData = None, files: RequestFiles = None, json: typing.Any = None, params: QueryParamTypes = None, headers: HeaderTypes = None, cookies: CookieTypes = None, stream: bool = False, auth: AuthTypes = None, allow_redi...
async def delete( self, url: URLTypes, *, data: AsyncRequestData = None, files: RequestFiles = None, json: typing.Any = None, params: QueryParamTypes = None, headers: HeaderTypes = None, cookies: CookieTypes = None, stream: bool = False, auth: AuthTypes = None, allow_redi...
https://github.com/encode/httpx/issues/376
SSL handshake failed on verifying the certificate protocol: <asyncio.sslproto.SSLProtocol object at 0x0000020CDCD7E470> transport: <_SelectorSocketTransport fd=768 read=polling write=<idle, bufsize=0>> Traceback (most recent call last): File "C:\Users\localhost\AppData\Local\Programs\Python\Python37\lib\asyncio\sslprot...
ssl.SSLCertVerificationError
async def request( self, method: str, url: URLTypes, *, data: AsyncRequestData = None, files: RequestFiles = None, json: typing.Any = None, params: QueryParamTypes = None, headers: HeaderTypes = None, cookies: CookieTypes = None, stream: bool = False, auth: AuthTypes = No...
async def request( self, method: str, url: URLTypes, *, data: AsyncRequestData = None, files: RequestFiles = None, json: typing.Any = None, params: QueryParamTypes = None, headers: HeaderTypes = None, cookies: CookieTypes = None, stream: bool = False, auth: AuthTypes = No...
https://github.com/encode/httpx/issues/376
SSL handshake failed on verifying the certificate protocol: <asyncio.sslproto.SSLProtocol object at 0x0000020CDCD7E470> transport: <_SelectorSocketTransport fd=768 read=polling write=<idle, bufsize=0>> Traceback (most recent call last): File "C:\Users\localhost\AppData\Local\Programs\Python\Python37\lib\asyncio\sslprot...
ssl.SSLCertVerificationError
async def send( self, request: AsyncRequest, *, stream: bool = False, auth: AuthTypes = None, allow_redirects: bool = True, verify: VerifyTypes = None, cert: CertTypes = None, timeout: TimeoutTypes = None, trust_env: bool = None, ) -> AsyncResponse: return await self._get_res...
async def send( self, request: AsyncRequest, *, stream: bool = False, auth: AuthTypes = None, allow_redirects: bool = True, verify: VerifyTypes = None, cert: CertTypes = None, timeout: TimeoutTypes = None, trust_env: bool = None, proxies: ProxiesTypes = None, ) -> AsyncRespon...
https://github.com/encode/httpx/issues/376
SSL handshake failed on verifying the certificate protocol: <asyncio.sslproto.SSLProtocol object at 0x0000020CDCD7E470> transport: <_SelectorSocketTransport fd=768 read=polling write=<idle, bufsize=0>> Traceback (most recent call last): File "C:\Users\localhost\AppData\Local\Programs\Python\Python37\lib\asyncio\sslprot...
ssl.SSLCertVerificationError
def request( self, method: str, url: URLTypes, *, data: RequestData = None, files: RequestFiles = None, json: typing.Any = None, params: QueryParamTypes = None, headers: HeaderTypes = None, cookies: CookieTypes = None, stream: bool = False, auth: AuthTypes = None, all...
def request( self, method: str, url: URLTypes, *, data: RequestData = None, files: RequestFiles = None, json: typing.Any = None, params: QueryParamTypes = None, headers: HeaderTypes = None, cookies: CookieTypes = None, stream: bool = False, auth: AuthTypes = None, all...
https://github.com/encode/httpx/issues/376
SSL handshake failed on verifying the certificate protocol: <asyncio.sslproto.SSLProtocol object at 0x0000020CDCD7E470> transport: <_SelectorSocketTransport fd=768 read=polling write=<idle, bufsize=0>> Traceback (most recent call last): File "C:\Users\localhost\AppData\Local\Programs\Python\Python37\lib\asyncio\sslprot...
ssl.SSLCertVerificationError
def send( self, request: AsyncRequest, *, stream: bool = False, auth: AuthTypes = None, allow_redirects: bool = True, verify: VerifyTypes = None, cert: CertTypes = None, timeout: TimeoutTypes = None, trust_env: bool = None, ) -> Response: concurrency_backend = self.concurrenc...
def send( self, request: AsyncRequest, *, stream: bool = False, auth: AuthTypes = None, allow_redirects: bool = True, verify: VerifyTypes = None, cert: CertTypes = None, timeout: TimeoutTypes = None, trust_env: bool = None, proxies: ProxiesTypes = None, ) -> Response: con...
https://github.com/encode/httpx/issues/376
SSL handshake failed on verifying the certificate protocol: <asyncio.sslproto.SSLProtocol object at 0x0000020CDCD7E470> transport: <_SelectorSocketTransport fd=768 read=polling write=<idle, bufsize=0>> Traceback (most recent call last): File "C:\Users\localhost\AppData\Local\Programs\Python\Python37\lib\asyncio\sslprot...
ssl.SSLCertVerificationError
def get( self, url: URLTypes, *, params: QueryParamTypes = None, headers: HeaderTypes = None, cookies: CookieTypes = None, stream: bool = False, auth: AuthTypes = None, allow_redirects: bool = True, cert: CertTypes = None, verify: VerifyTypes = None, timeout: TimeoutTypes...
def get( self, url: URLTypes, *, params: QueryParamTypes = None, headers: HeaderTypes = None, cookies: CookieTypes = None, stream: bool = False, auth: AuthTypes = None, allow_redirects: bool = True, cert: CertTypes = None, verify: VerifyTypes = None, timeout: TimeoutTypes...
https://github.com/encode/httpx/issues/376
SSL handshake failed on verifying the certificate protocol: <asyncio.sslproto.SSLProtocol object at 0x0000020CDCD7E470> transport: <_SelectorSocketTransport fd=768 read=polling write=<idle, bufsize=0>> Traceback (most recent call last): File "C:\Users\localhost\AppData\Local\Programs\Python\Python37\lib\asyncio\sslprot...
ssl.SSLCertVerificationError
def options( self, url: URLTypes, *, params: QueryParamTypes = None, headers: HeaderTypes = None, cookies: CookieTypes = None, stream: bool = False, auth: AuthTypes = None, allow_redirects: bool = True, cert: CertTypes = None, verify: VerifyTypes = None, timeout: TimeoutT...
def options( self, url: URLTypes, *, params: QueryParamTypes = None, headers: HeaderTypes = None, cookies: CookieTypes = None, stream: bool = False, auth: AuthTypes = None, allow_redirects: bool = True, cert: CertTypes = None, verify: VerifyTypes = None, timeout: TimeoutT...
https://github.com/encode/httpx/issues/376
SSL handshake failed on verifying the certificate protocol: <asyncio.sslproto.SSLProtocol object at 0x0000020CDCD7E470> transport: <_SelectorSocketTransport fd=768 read=polling write=<idle, bufsize=0>> Traceback (most recent call last): File "C:\Users\localhost\AppData\Local\Programs\Python\Python37\lib\asyncio\sslprot...
ssl.SSLCertVerificationError
def head( self, url: URLTypes, *, params: QueryParamTypes = None, headers: HeaderTypes = None, cookies: CookieTypes = None, stream: bool = False, auth: AuthTypes = None, allow_redirects: bool = False, # NOTE: Differs to usual default. cert: CertTypes = None, verify: VerifyTy...
def head( self, url: URLTypes, *, params: QueryParamTypes = None, headers: HeaderTypes = None, cookies: CookieTypes = None, stream: bool = False, auth: AuthTypes = None, allow_redirects: bool = False, # NOTE: Differs to usual default. cert: CertTypes = None, verify: VerifyTy...
https://github.com/encode/httpx/issues/376
SSL handshake failed on verifying the certificate protocol: <asyncio.sslproto.SSLProtocol object at 0x0000020CDCD7E470> transport: <_SelectorSocketTransport fd=768 read=polling write=<idle, bufsize=0>> Traceback (most recent call last): File "C:\Users\localhost\AppData\Local\Programs\Python\Python37\lib\asyncio\sslprot...
ssl.SSLCertVerificationError
def post( self, url: URLTypes, *, data: RequestData = None, files: RequestFiles = None, json: typing.Any = None, params: QueryParamTypes = None, headers: HeaderTypes = None, cookies: CookieTypes = None, stream: bool = False, auth: AuthTypes = None, allow_redirects: bool =...
def post( self, url: URLTypes, *, data: RequestData = None, files: RequestFiles = None, json: typing.Any = None, params: QueryParamTypes = None, headers: HeaderTypes = None, cookies: CookieTypes = None, stream: bool = False, auth: AuthTypes = None, allow_redirects: bool =...
https://github.com/encode/httpx/issues/376
SSL handshake failed on verifying the certificate protocol: <asyncio.sslproto.SSLProtocol object at 0x0000020CDCD7E470> transport: <_SelectorSocketTransport fd=768 read=polling write=<idle, bufsize=0>> Traceback (most recent call last): File "C:\Users\localhost\AppData\Local\Programs\Python\Python37\lib\asyncio\sslprot...
ssl.SSLCertVerificationError
def put( self, url: URLTypes, *, data: RequestData = None, files: RequestFiles = None, json: typing.Any = None, params: QueryParamTypes = None, headers: HeaderTypes = None, cookies: CookieTypes = None, stream: bool = False, auth: AuthTypes = None, allow_redirects: bool = ...
def put( self, url: URLTypes, *, data: RequestData = None, files: RequestFiles = None, json: typing.Any = None, params: QueryParamTypes = None, headers: HeaderTypes = None, cookies: CookieTypes = None, stream: bool = False, auth: AuthTypes = None, allow_redirects: bool = ...
https://github.com/encode/httpx/issues/376
SSL handshake failed on verifying the certificate protocol: <asyncio.sslproto.SSLProtocol object at 0x0000020CDCD7E470> transport: <_SelectorSocketTransport fd=768 read=polling write=<idle, bufsize=0>> Traceback (most recent call last): File "C:\Users\localhost\AppData\Local\Programs\Python\Python37\lib\asyncio\sslprot...
ssl.SSLCertVerificationError
def patch( self, url: URLTypes, *, data: RequestData = None, files: RequestFiles = None, json: typing.Any = None, params: QueryParamTypes = None, headers: HeaderTypes = None, cookies: CookieTypes = None, stream: bool = False, auth: AuthTypes = None, allow_redirects: bool ...
def patch( self, url: URLTypes, *, data: RequestData = None, files: RequestFiles = None, json: typing.Any = None, params: QueryParamTypes = None, headers: HeaderTypes = None, cookies: CookieTypes = None, stream: bool = False, auth: AuthTypes = None, allow_redirects: bool ...
https://github.com/encode/httpx/issues/376
SSL handshake failed on verifying the certificate protocol: <asyncio.sslproto.SSLProtocol object at 0x0000020CDCD7E470> transport: <_SelectorSocketTransport fd=768 read=polling write=<idle, bufsize=0>> Traceback (most recent call last): File "C:\Users\localhost\AppData\Local\Programs\Python\Python37\lib\asyncio\sslprot...
ssl.SSLCertVerificationError
def delete( self, url: URLTypes, *, data: RequestData = None, files: RequestFiles = None, json: typing.Any = None, params: QueryParamTypes = None, headers: HeaderTypes = None, cookies: CookieTypes = None, stream: bool = False, auth: AuthTypes = None, allow_redirects: bool...
def delete( self, url: URLTypes, *, data: RequestData = None, files: RequestFiles = None, json: typing.Any = None, params: QueryParamTypes = None, headers: HeaderTypes = None, cookies: CookieTypes = None, stream: bool = False, auth: AuthTypes = None, allow_redirects: bool...
https://github.com/encode/httpx/issues/376
SSL handshake failed on verifying the certificate protocol: <asyncio.sslproto.SSLProtocol object at 0x0000020CDCD7E470> transport: <_SelectorSocketTransport fd=768 read=polling write=<idle, bufsize=0>> Traceback (most recent call last): File "C:\Users\localhost\AppData\Local\Programs\Python\Python37\lib\asyncio\sslprot...
ssl.SSLCertVerificationError
def _proxies_to_dispatchers( proxies: typing.Optional[ProxiesTypes], verify: VerifyTypes, cert: typing.Optional[CertTypes], timeout: TimeoutTypes, http_versions: typing.Optional[HTTPVersionTypes], pool_limits: PoolLimits, backend: ConcurrencyBackend, trust_env: bool, ) -> typing.Dict[str...
def _proxies_to_dispatchers( proxies: typing.Optional[ProxiesTypes], ) -> typing.Dict[str, AsyncDispatcher]: if proxies is None: return {} elif isinstance(proxies, (str, URL)): return {"all": _proxy_from_url(proxies)} elif isinstance(proxies, AsyncDispatcher): return {"all": prox...
https://github.com/encode/httpx/issues/376
SSL handshake failed on verifying the certificate protocol: <asyncio.sslproto.SSLProtocol object at 0x0000020CDCD7E470> transport: <_SelectorSocketTransport fd=768 read=polling write=<idle, bufsize=0>> Traceback (most recent call last): File "C:\Users\localhost\AppData\Local\Programs\Python\Python37\lib\asyncio\sslprot...
ssl.SSLCertVerificationError
def _proxy_from_url(url: URLTypes) -> AsyncDispatcher: nonlocal verify, cert, timeout, http_versions, pool_limits, backend, trust_env url = URL(url) if url.scheme in ("http", "https"): return HTTPProxy( url, verify=verify, cert=cert, timeout=timeout, ...
def _proxy_from_url(url: URLTypes) -> AsyncDispatcher: url = URL(url) if url.scheme in ("http", "https"): return HTTPProxy(url) raise ValueError(f"Unknown proxy for {url!r}")
https://github.com/encode/httpx/issues/376
SSL handshake failed on verifying the certificate protocol: <asyncio.sslproto.SSLProtocol object at 0x0000020CDCD7E470> transport: <_SelectorSocketTransport fd=768 read=polling write=<idle, bufsize=0>> Traceback (most recent call last): File "C:\Users\localhost\AppData\Local\Programs\Python\Python37\lib\asyncio\sslprot...
ssl.SSLCertVerificationError
def __init__( self, proxy_url: URLTypes, *, proxy_headers: HeaderTypes = None, proxy_mode: HTTPProxyMode = HTTPProxyMode.DEFAULT, verify: VerifyTypes = True, cert: CertTypes = None, trust_env: bool = None, timeout: TimeoutTypes = DEFAULT_TIMEOUT_CONFIG, pool_limits: PoolLimits = ...
def __init__( self, proxy_url: URLTypes, *, proxy_headers: HeaderTypes = None, proxy_mode: HTTPProxyMode = HTTPProxyMode.DEFAULT, verify: VerifyTypes = True, cert: CertTypes = None, timeout: TimeoutTypes = DEFAULT_TIMEOUT_CONFIG, pool_limits: PoolLimits = DEFAULT_POOL_LIMITS, bac...
https://github.com/encode/httpx/issues/376
SSL handshake failed on verifying the certificate protocol: <asyncio.sslproto.SSLProtocol object at 0x0000020CDCD7E470> transport: <_SelectorSocketTransport fd=768 read=polling write=<idle, bufsize=0>> Traceback (most recent call last): File "C:\Users\localhost\AppData\Local\Programs\Python\Python37\lib\asyncio\sslprot...
ssl.SSLCertVerificationError
def __init__( self, stream_reader: asyncio.StreamReader, stream_writer: asyncio.StreamWriter, timeout: TimeoutConfig, ): self.stream_reader = stream_reader self.stream_writer = stream_writer self.timeout = timeout self.read_lock = asyncio.Lock() self._inner: typing.Optional[SocketSt...
def __init__( self, stream_reader: asyncio.StreamReader, stream_writer: asyncio.StreamWriter, timeout: TimeoutConfig, ): self.stream_reader = stream_reader self.stream_writer = stream_writer self.timeout = timeout self._inner: typing.Optional[SocketStream] = None
https://github.com/encode/httpx/issues/527
Traceback (most recent call last): File "/Users/primoz/PycharmProjects/orange3-imageanalytics/example.py", line 63, in <module> asyncio.get_event_loop().run_until_complete(cl.embedd_batch()) File "/Users/primoz/miniconda3/lib/python3.7/asyncio/base_events.py", line 584, in run_until_complete return future.result() File...
RuntimeError
async def read( self, n: int, timeout: TimeoutConfig = None, flag: TimeoutFlag = None ) -> bytes: if timeout is None: timeout = self.timeout while True: # Check our flag at the first possible moment, and use a fine # grained retry loop if we're not yet in read-timeout mode. ...
async def read( self, n: int, timeout: TimeoutConfig = None, flag: TimeoutFlag = None ) -> bytes: if timeout is None: timeout = self.timeout while True: # Check our flag at the first possible moment, and use a fine # grained retry loop if we're not yet in read-timeout mode. ...
https://github.com/encode/httpx/issues/527
Traceback (most recent call last): File "/Users/primoz/PycharmProjects/orange3-imageanalytics/example.py", line 63, in <module> asyncio.get_event_loop().run_until_complete(cl.embedd_batch()) File "/Users/primoz/miniconda3/lib/python3.7/asyncio/base_events.py", line 584, in run_until_complete return future.result() File...
RuntimeError
def __init__( self, stream: typing.Union[trio.SocketStream, trio.SSLStream], timeout: TimeoutConfig, ) -> None: self.stream = stream self.timeout = timeout self.write_buffer = b"" self.read_lock = trio.Lock() self.write_lock = trio.Lock()
def __init__( self, stream: typing.Union[trio.SocketStream, trio.SSLStream], timeout: TimeoutConfig, ) -> None: self.stream = stream self.timeout = timeout self.write_buffer = b"" self.write_lock = trio.Lock()
https://github.com/encode/httpx/issues/527
Traceback (most recent call last): File "/Users/primoz/PycharmProjects/orange3-imageanalytics/example.py", line 63, in <module> asyncio.get_event_loop().run_until_complete(cl.embedd_batch()) File "/Users/primoz/miniconda3/lib/python3.7/asyncio/base_events.py", line 584, in run_until_complete return future.result() File...
RuntimeError
async def read( self, n: int, timeout: TimeoutConfig = None, flag: TimeoutFlag = None ) -> bytes: if timeout is None: timeout = self.timeout while True: # Check our flag at the first possible moment, and use a fine # grained retry loop if we're not yet in read-timeout mode. ...
async def read( self, n: int, timeout: TimeoutConfig = None, flag: TimeoutFlag = None ) -> bytes: if timeout is None: timeout = self.timeout while True: # Check our flag at the first possible moment, and use a fine # grained retry loop if we're not yet in read-timeout mode. ...
https://github.com/encode/httpx/issues/527
Traceback (most recent call last): File "/Users/primoz/PycharmProjects/orange3-imageanalytics/example.py", line 63, in <module> asyncio.get_event_loop().run_until_complete(cl.embedd_batch()) File "/Users/primoz/miniconda3/lib/python3.7/asyncio/base_events.py", line 584, in run_until_complete return future.result() File...
RuntimeError
def build_redirect_request( self, request: AsyncRequest, response: AsyncResponse ) -> AsyncRequest: method = self.redirect_method(request, response) url = self.redirect_url(request, response) headers = self.redirect_headers(request, url, method) # TODO: merge headers? content = self.redirect_conten...
def build_redirect_request( self, request: AsyncRequest, response: AsyncResponse ) -> AsyncRequest: method = self.redirect_method(request, response) url = self.redirect_url(request, response) headers = self.redirect_headers(request, url) # TODO: merge headers? content = self.redirect_content(reques...
https://github.com/encode/httpx/issues/309
DEBUG:asyncio:Using selector: KqueueSelector DEBUG:httpx.dispatch.connection_pool:new_connection connection=HTTPConnection(origin=Origin(scheme='http' host='127.0.0.1' port=8000)) DEBUG:httpx.dispatch.connection:start_connect host='127.0.0.1' port=8000 timeout=TimeoutConfig(timeout=5.0) DEBUG:httpx.dispatch.connection:...
h11._util.LocalProtocolError
def redirect_headers(self, request: AsyncRequest, url: URL, method: str) -> Headers: """ Return the headers that should be used for the redirect request. """ headers = Headers(request.headers) if url.origin != request.url.origin: # Strip Authorization headers when responses are redirected a...
def redirect_headers(self, request: AsyncRequest, url: URL) -> Headers: """ Strip Authorization headers when responses are redirected away from the origin. """ headers = Headers(request.headers) if url.origin != request.url.origin: del headers["Authorization"] del headers["host"]...
https://github.com/encode/httpx/issues/309
DEBUG:asyncio:Using selector: KqueueSelector DEBUG:httpx.dispatch.connection_pool:new_connection connection=HTTPConnection(origin=Origin(scheme='http' host='127.0.0.1' port=8000)) DEBUG:httpx.dispatch.connection:start_connect host='127.0.0.1' port=8000 timeout=TimeoutConfig(timeout=5.0) DEBUG:httpx.dispatch.connection:...
h11._util.LocalProtocolError
def import_user_module(args): module_path = getattr(args, "user_dir", None) if module_path is not None: module_path = os.path.abspath(args.user_dir) if not os.path.exists(module_path) and not os.path.isfile( os.path.dirname(module_path) ): fairseq_rel_path = os.pa...
def import_user_module(args): module_path = getattr(args, "user_dir", None) if module_path is not None: module_path = os.path.abspath(args.user_dir) if not os.path.exists(module_path): fairseq_rel_path = os.path.join(os.path.dirname(__file__), args.user_dir) if os.path.ex...
https://github.com/pytorch/fairseq/issues/3017
Traceback (most recent call last): File "/home/ubuntu/venv/bin/fairseq-preprocess", line 8, in <module> sys.exit(cli_main()) File "/home/ubuntu/venv/lib/python3.6/site-packages/fairseq_cli/preprocess.py", line 392, in cli_main parser = options.get_preprocessing_parser() File "/home/ubuntu/venv/lib/python3.6/site-packag...
FileNotFoundError
def reduce_metrics(logging_outputs) -> None: """Aggregate logging outputs from data parallel training.""" loss_sum = sum(log.get("loss", 0) for log in logging_outputs) ntokens = sum(log.get("ntokens", 0) for log in logging_outputs) sample_size = sum(log.get("sample_size", 0) for log in logging_outputs) ...
def reduce_metrics(logging_outputs) -> None: """Aggregate logging outputs from data parallel training.""" loss_sum = sum(log.get("loss", 0) for log in logging_outputs) ntokens = sum(log.get("ntokens", 0) for log in logging_outputs) sample_size = sum(log.get("sample_size", 0) for log in logging_outputs) ...
https://github.com/pytorch/fairseq/issues/2811
Traceback (most recent call last): File "/opt/conda/lib/python3.6/site-packages/torch/multiprocessing/spawn.py", line 20, in _wrap fn(i, *args) File "/workspace/fairseq/fairseq/distributed_utils.py", line 283, in distributed_main main(cfg, **kwargs) File "/workspace/fairseq/fairseq_cli/train.py", line 124, in main vali...
AttributeError
def zero_grad(self): """Clears the gradients of all optimized parameters.""" for p in self.fp16_params: p.grad = None if self.has_flat_params: if torch.is_tensor(self.fp32_params): self.fp32_params.grad.zero_() elif isinstance(self.fp32_params, dict): for fp32...
def zero_grad(self): """Clears the gradients of all optimized parameters.""" for p in self.fp16_params: p.grad = None if self.has_flat_params: if torch.is_tensor(self.fp32_params): self.fp32_params.grad.zero_() elif isinstance(self.fp32_params, dict): for fp32...
https://github.com/pytorch/fairseq/issues/2811
Traceback (most recent call last): File "/opt/conda/lib/python3.6/site-packages/torch/multiprocessing/spawn.py", line 20, in _wrap fn(i, *args) File "/workspace/fairseq/fairseq/distributed_utils.py", line 283, in distributed_main main(cfg, **kwargs) File "/workspace/fairseq/fairseq_cli/train.py", line 124, in main vali...
AttributeError
def add_args(parser): """Add arguments to the parser for this LR scheduler.""" # fmt: off parser.add_argument('--force-anneal', '--fa', type=int, metavar='N', help='force annealing at specified epoch (epochs start at 1)') parser.add_argument('--lr-shrink', default=0.1, type=f...
def add_args(parser): """Add arguments to the parser for this LR scheduler.""" # fmt: off parser.add_argument('--force-anneal', '--fa', type=int, metavar='N', help='force annealing at specified epoch') parser.add_argument('--lr-shrink', default=0.1, type=float, metavar='LS', ...
https://github.com/pytorch/fairseq/issues/2811
Traceback (most recent call last): File "/opt/conda/lib/python3.6/site-packages/torch/multiprocessing/spawn.py", line 20, in _wrap fn(i, *args) File "/workspace/fairseq/fairseq/distributed_utils.py", line 283, in distributed_main main(cfg, **kwargs) File "/workspace/fairseq/fairseq_cli/train.py", line 124, in main vali...
AttributeError
def get_next_lr(self, epoch): lrs = self.args.lr if self.args.force_anneal is None or epoch < self.args.force_anneal: # use fixed LR schedule next_lr = lrs[min(epoch - 1, len(lrs) - 1)] else: # annneal based on lr_shrink next_lr = lrs[-1] * self.args.lr_shrink ** (epoch + 1 -...
def get_next_lr(self, epoch): lrs = self.args.lr if self.args.force_anneal is None or epoch < self.args.force_anneal: # use fixed LR schedule next_lr = lrs[min(epoch, len(lrs) - 1)] else: # annneal based on lr_shrink next_lr = lrs[-1] * self.args.lr_shrink ** (epoch + 1 - sel...
https://github.com/pytorch/fairseq/issues/2811
Traceback (most recent call last): File "/opt/conda/lib/python3.6/site-packages/torch/multiprocessing/spawn.py", line 20, in _wrap fn(i, *args) File "/workspace/fairseq/fairseq/distributed_utils.py", line 283, in distributed_main main(cfg, **kwargs) File "/workspace/fairseq/fairseq_cli/train.py", line 124, in main vali...
AttributeError