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 convert_form_field_to_uuid(field): return UUID(description=get_form_field_description(field), required=field.required)
def convert_form_field_to_uuid(field): return UUID(description=field.help_text, required=field.required)
https://github.com/graphql-python/graphene-django/issues/975
Traceback (most recent call last): File "./manage.py", line 21, in <module> main() File "./manage.py", line 17, in main execute_from_command_line(sys.argv) File "/home/username/.virtualenvs/project/lib/python3.8/site-packages/django/core/management/__init__.py", line 401, in execute_from_command_line utility.execute() ...
TypeError
def convert_form_field_to_int(field): return Int(description=get_form_field_description(field), required=field.required)
def convert_form_field_to_int(field): return Int(description=field.help_text, required=field.required)
https://github.com/graphql-python/graphene-django/issues/975
Traceback (most recent call last): File "./manage.py", line 21, in <module> main() File "./manage.py", line 17, in main execute_from_command_line(sys.argv) File "/home/username/.virtualenvs/project/lib/python3.8/site-packages/django/core/management/__init__.py", line 401, in execute_from_command_line utility.execute() ...
TypeError
def convert_form_field_to_boolean(field): return Boolean( description=get_form_field_description(field), required=field.required )
def convert_form_field_to_boolean(field): return Boolean(description=field.help_text, required=field.required)
https://github.com/graphql-python/graphene-django/issues/975
Traceback (most recent call last): File "./manage.py", line 21, in <module> main() File "./manage.py", line 17, in main execute_from_command_line(sys.argv) File "/home/username/.virtualenvs/project/lib/python3.8/site-packages/django/core/management/__init__.py", line 401, in execute_from_command_line utility.execute() ...
TypeError
def convert_form_field_to_nullboolean(field): return Boolean(description=get_form_field_description(field))
def convert_form_field_to_nullboolean(field): return Boolean(description=field.help_text)
https://github.com/graphql-python/graphene-django/issues/975
Traceback (most recent call last): File "./manage.py", line 21, in <module> main() File "./manage.py", line 17, in main execute_from_command_line(sys.argv) File "/home/username/.virtualenvs/project/lib/python3.8/site-packages/django/core/management/__init__.py", line 401, in execute_from_command_line utility.execute() ...
TypeError
def convert_form_field_to_float(field): return Float(description=get_form_field_description(field), required=field.required)
def convert_form_field_to_float(field): return Float(description=field.help_text, required=field.required)
https://github.com/graphql-python/graphene-django/issues/975
Traceback (most recent call last): File "./manage.py", line 21, in <module> main() File "./manage.py", line 17, in main execute_from_command_line(sys.argv) File "/home/username/.virtualenvs/project/lib/python3.8/site-packages/django/core/management/__init__.py", line 401, in execute_from_command_line utility.execute() ...
TypeError
def convert_form_field_to_string_list(field): return List( String, description=get_form_field_description(field), required=field.required )
def convert_form_field_to_string_list(field): return List(String, description=field.help_text, required=field.required)
https://github.com/graphql-python/graphene-django/issues/975
Traceback (most recent call last): File "./manage.py", line 21, in <module> main() File "./manage.py", line 17, in main execute_from_command_line(sys.argv) File "/home/username/.virtualenvs/project/lib/python3.8/site-packages/django/core/management/__init__.py", line 401, in execute_from_command_line utility.execute() ...
TypeError
def convert_form_field_to_date(field): return Date(description=get_form_field_description(field), required=field.required)
def convert_form_field_to_date(field): return Date(description=field.help_text, required=field.required)
https://github.com/graphql-python/graphene-django/issues/975
Traceback (most recent call last): File "./manage.py", line 21, in <module> main() File "./manage.py", line 17, in main execute_from_command_line(sys.argv) File "/home/username/.virtualenvs/project/lib/python3.8/site-packages/django/core/management/__init__.py", line 401, in execute_from_command_line utility.execute() ...
TypeError
def convert_form_field_to_datetime(field): return DateTime( description=get_form_field_description(field), required=field.required )
def convert_form_field_to_datetime(field): return DateTime(description=field.help_text, required=field.required)
https://github.com/graphql-python/graphene-django/issues/975
Traceback (most recent call last): File "./manage.py", line 21, in <module> main() File "./manage.py", line 17, in main execute_from_command_line(sys.argv) File "/home/username/.virtualenvs/project/lib/python3.8/site-packages/django/core/management/__init__.py", line 401, in execute_from_command_line utility.execute() ...
TypeError
def convert_form_field_to_time(field): return Time(description=get_form_field_description(field), required=field.required)
def convert_form_field_to_time(field): return Time(description=field.help_text, required=field.required)
https://github.com/graphql-python/graphene-django/issues/975
Traceback (most recent call last): File "./manage.py", line 21, in <module> main() File "./manage.py", line 17, in main execute_from_command_line(sys.argv) File "/home/username/.virtualenvs/project/lib/python3.8/site-packages/django/core/management/__init__.py", line 401, in execute_from_command_line utility.execute() ...
TypeError
def scan(self, scanned_file, entity, skipped_checks, runner_filter): (entity_type, entity_name, entity_configuration) = self.extract_entity_details( entity ) results = {} if not isinstance(entity_configuration, dict): return results checks = self.get_checks(entity_type) for ch...
def scan(self, scanned_file, entity, skipped_checks, runner_filter): (entity_type, entity_name, entity_configuration) = self.extract_entity_details( entity ) results = {} checks = self.get_checks(entity_type) for check in checks: skip_info = {} if skipped_checks: ...
https://github.com/bridgecrewio/checkov/issues/857
Traceback (most recent call last): File "/Users/robeden/git/third-party/checkov/checkov/common/checks/base_check.py", line 62, in run raise e File "/Users/robeden/git/third-party/checkov/checkov/common/checks/base_check.py", line 42, in run check_result['result'] = self.scan_entity_conf(entity_configuration, entity_typ...
AttributeError
def get_resource_tags(resource_type, entity_config): if not isinstance(entity_config, dict): return None if "_" not in resource_type: return None # probably not a resource block provider = resource_type[: resource_type.index("_")] provider_tag_function = provider_tag_mapping.get(provid...
def get_resource_tags(resource_type, entity_config): if "_" not in resource_type: return None # probably not a resource block provider = resource_type[: resource_type.index("_")] provider_tag_function = provider_tag_mapping.get(provider) if provider_tag_function: return provider_tag_fun...
https://github.com/bridgecrewio/checkov/issues/857
Traceback (most recent call last): File "/Users/robeden/git/third-party/checkov/checkov/common/checks/base_check.py", line 62, in run raise e File "/Users/robeden/git/third-party/checkov/checkov/common/checks/base_check.py", line 42, in run check_result['result'] = self.scan_entity_conf(entity_configuration, entity_typ...
AttributeError
def scan_resource_conf(self, conf): """ Looks for password configuration at google_compute_firewall: https://www.terraform.io/docs/providers/google/r/compute_firewall.html :param conf: azure_instance configuration :return: <CheckResult> """ allow_blocks = conf["allow"] for block ...
def scan_resource_conf(self, conf): """ Looks for password configuration at google_compute_firewall: https://www.terraform.io/docs/providers/google/r/compute_firewall.html :param conf: azure_instance configuration :return: <CheckResult> """ if PORT in conf["allow"][0]["ports"][0]: ...
https://github.com/bridgecrewio/checkov/issues/75
temikus λ checkov ... version: 1.0.131 ... λ mkdir test &amp;&amp; cd test λ wget https://gist.githubusercontent.com/Temikus/6be1f3e408d84f609a739718a42e3cf5/raw/971c5834234d32b3ddf4614defd6a641249d935c/checkov_fail.tf λ checkov -d . ERROR:checkov.terraform.checks.resource.gcp.GoogleComputeFirewallUnrestrictedIngress...
KeyError
def scan_resource_conf(self, conf): """ Looks for configuration at security group ingress rules : https://www.terraform.io/docs/providers/aws/r/security_group.html :param conf: aws_security_group configuration :return: <CheckResult> """ if "ingress" in conf.keys(): ingress_co...
def scan_resource_conf(self, conf): """ Looks for configuration at security group ingress rules : https://www.terraform.io/docs/providers/aws/r/security_group.html :param conf: aws_security_group configuration :return: <CheckResult> """ if "ingress" in conf.keys(): ingress_co...
https://github.com/bridgecrewio/checkov/issues/38
Traceback (most recent call last): File "/path/tf-checks/bin/checkov", line 34, in <module> report = Runner().run(root_folder, external_checks_dir=args.external_checks_dir) File "/path/tf-checks/lib/python3.7/site-packages/checkov/terraform/runner.py", line 38, in run results = resource_registry.scan(resource, scanned_...
KeyError
def scan_resource_conf(self, conf): """ Looks for configuration at security group ingress rules : https://www.terraform.io/docs/providers/aws/r/security_group.html :param conf: aws_security_group configuration :return: <CheckResult> """ if "ingress" in conf.keys(): ingress_co...
def scan_resource_conf(self, conf): """ Looks for configuration at security group ingress rules : https://www.terraform.io/docs/providers/aws/r/security_group.html :param conf: aws_security_group configuration :return: <CheckResult> """ if "ingress" in conf.keys(): ingress_co...
https://github.com/bridgecrewio/checkov/issues/38
Traceback (most recent call last): File "/path/tf-checks/bin/checkov", line 34, in <module> report = Runner().run(root_folder, external_checks_dir=args.external_checks_dir) File "/path/tf-checks/lib/python3.7/site-packages/checkov/terraform/runner.py", line 38, in run results = resource_registry.scan(resource, scanned_...
KeyError
def scan_resource_conf(self, conf): """ validates iam password policy https://www.terraform.io/docs/providers/aws/r/iam_account_password_policy.html :param conf: aws_iam_account_password_policy configuration :return: <CheckResult> """ key = "max_password_age" if key in conf.keys(...
def scan_resource_conf(self, conf): """ validates iam password policy https://www.terraform.io/docs/providers/aws/r/iam_account_password_policy.html :param conf: aws_iam_account_password_policy configuration :return: <CheckResult> """ key = "max_password_age" if key in conf.keys(...
https://github.com/bridgecrewio/checkov/issues/28
Traceback (most recent call last): File "/Users/arkadiyt/.pyenv/versions/3.6.0/bin/checkov", line 24, in <module> report = Runner().run(root_folder) File "/Users/arkadiyt/.pyenv/versions/3.6.0/lib/python3.6/site-packages/checkov/terraform/runner.py", line 34, in run results = resource_registry.scan(resource, scanned_fi...
TypeError
def scan_resource_conf(self, conf): """ validates iam password policy https://www.terraform.io/docs/providers/aws/r/iam_account_password_policy.html :param conf: aws_iam_account_password_policy configuration :return: <CheckResult> """ key = "minimum_password_length" if key in con...
def scan_resource_conf(self, conf): """ validates iam password policy https://www.terraform.io/docs/providers/aws/r/iam_account_password_policy.html :param conf: aws_iam_account_password_policy configuration :return: <CheckResult> """ key = "minimum_password_length" if key in con...
https://github.com/bridgecrewio/checkov/issues/28
Traceback (most recent call last): File "/Users/arkadiyt/.pyenv/versions/3.6.0/bin/checkov", line 24, in <module> report = Runner().run(root_folder) File "/Users/arkadiyt/.pyenv/versions/3.6.0/lib/python3.6/site-packages/checkov/terraform/runner.py", line 34, in run results = resource_registry.scan(resource, scanned_fi...
TypeError
def scan_resource_conf(self, conf): """ validates iam password policy https://www.terraform.io/docs/providers/aws/r/iam_account_password_policy.html :param conf: aws_iam_account_password_policy configuration :return: <CheckResult> """ key = "require_lowercase_characters" if key i...
def scan_resource_conf(self, conf): """ validates iam password policy https://www.terraform.io/docs/providers/aws/r/iam_account_password_policy.html :param conf: aws_iam_account_password_policy configuration :return: <CheckResult> """ key = "require_lowercase_characters" if key i...
https://github.com/bridgecrewio/checkov/issues/28
Traceback (most recent call last): File "/Users/arkadiyt/.pyenv/versions/3.6.0/bin/checkov", line 24, in <module> report = Runner().run(root_folder) File "/Users/arkadiyt/.pyenv/versions/3.6.0/lib/python3.6/site-packages/checkov/terraform/runner.py", line 34, in run results = resource_registry.scan(resource, scanned_fi...
TypeError
def scan_resource_conf(self, conf): """ validates iam password policy https://www.terraform.io/docs/providers/aws/r/iam_account_password_policy.html :param conf: aws_iam_account_password_policy configuration :return: <CheckResult> """ key = "require_numbers" if key in conf.keys()...
def scan_resource_conf(self, conf): """ validates iam password policy https://www.terraform.io/docs/providers/aws/r/iam_account_password_policy.html :param conf: aws_iam_account_password_policy configuration :return: <CheckResult> """ key = "require_numbers" if key in conf.keys()...
https://github.com/bridgecrewio/checkov/issues/28
Traceback (most recent call last): File "/Users/arkadiyt/.pyenv/versions/3.6.0/bin/checkov", line 24, in <module> report = Runner().run(root_folder) File "/Users/arkadiyt/.pyenv/versions/3.6.0/lib/python3.6/site-packages/checkov/terraform/runner.py", line 34, in run results = resource_registry.scan(resource, scanned_fi...
TypeError
def scan_resource_conf(self, conf): """ validates iam password policy https://www.terraform.io/docs/providers/aws/r/iam_account_password_policy.html :param conf: aws_iam_account_password_policy configuration :return: <CheckResult> """ key = "password_reuse_prevention" if key in c...
def scan_resource_conf(self, conf): """ validates iam password policy https://www.terraform.io/docs/providers/aws/r/iam_account_password_policy.html :param conf: aws_iam_account_password_policy configuration :return: <CheckResult> """ key = "password_reuse_prevention" if key in c...
https://github.com/bridgecrewio/checkov/issues/28
Traceback (most recent call last): File "/Users/arkadiyt/.pyenv/versions/3.6.0/bin/checkov", line 24, in <module> report = Runner().run(root_folder) File "/Users/arkadiyt/.pyenv/versions/3.6.0/lib/python3.6/site-packages/checkov/terraform/runner.py", line 34, in run results = resource_registry.scan(resource, scanned_fi...
TypeError
def scan_resource_conf(self, conf): """ validates iam password policy https://www.terraform.io/docs/providers/aws/r/iam_account_password_policy.html :param conf: aws_iam_account_password_policy configuration :return: <CheckResult> """ key = "require_symbols" if key in conf.keys()...
def scan_resource_conf(self, conf): """ validates iam password policy https://www.terraform.io/docs/providers/aws/r/iam_account_password_policy.html :param conf: aws_iam_account_password_policy configuration :return: <CheckResult> """ key = "require_symbols" if key in conf.keys()...
https://github.com/bridgecrewio/checkov/issues/28
Traceback (most recent call last): File "/Users/arkadiyt/.pyenv/versions/3.6.0/bin/checkov", line 24, in <module> report = Runner().run(root_folder) File "/Users/arkadiyt/.pyenv/versions/3.6.0/lib/python3.6/site-packages/checkov/terraform/runner.py", line 34, in run results = resource_registry.scan(resource, scanned_fi...
TypeError
def scan_resource_conf(self, conf): """ validates iam password policy https://www.terraform.io/docs/providers/aws/r/iam_account_password_policy.html :param conf: aws_iam_account_password_policy configuration :return: <CheckResult> """ key = "require_uppercase_characters" if key i...
def scan_resource_conf(self, conf): """ validates iam password policy https://www.terraform.io/docs/providers/aws/r/iam_account_password_policy.html :param conf: aws_iam_account_password_policy configuration :return: <CheckResult> """ key = "require_uppercase_characters" if key i...
https://github.com/bridgecrewio/checkov/issues/28
Traceback (most recent call last): File "/Users/arkadiyt/.pyenv/versions/3.6.0/bin/checkov", line 24, in <module> report = Runner().run(root_folder) File "/Users/arkadiyt/.pyenv/versions/3.6.0/lib/python3.6/site-packages/checkov/terraform/runner.py", line 34, in run results = resource_registry.scan(resource, scanned_fi...
TypeError
def run(self): if not self._allow_root: self._check_for_root() if self._settings is None: self._settings = settings() if not self._settings.getBoolean(["server", "ignoreIncompleteStartup"]): self._settings.setBoolean(["server", "incompleteStartup"], True) self._settings.sav...
def run(self): if not self._allow_root: self._check_for_root() if self._settings is None: self._settings = settings() if not self._settings.getBoolean(["server", "ignoreIncompleteStartup"]): self._settings.setBoolean(["server", "incompleteStartup"], True) self._settings.sav...
https://github.com/OctoPrint/OctoPrint/issues/3731
2020-09-14 12:32:33,718 - tornado.application - ERROR - Uncaught exception GET /downloads/logs/octoprint.log (::ffff:73.122.180.167) Traceback (most recent call last): File "/home/pi/oprint/lib/python3.7/site-packages/tornado/web.py", line 1592, in _execute result = yield result File "/home/pi/oprint/lib/python3.7/site...
tornado.httputil.HTTPOutputError
def initialize( self, path, default_filename=None, as_attachment=False, allow_client_caching=True, access_validation=None, path_validation=None, etag_generator=None, name_generator=None, mime_type_guesser=None, is_pre_compressed=False, stream_body=False, ): tornado.we...
def initialize( self, path, default_filename=None, as_attachment=False, allow_client_caching=True, access_validation=None, path_validation=None, etag_generator=None, name_generator=None, mime_type_guesser=None, is_pre_compressed=False, ): tornado.web.StaticFileHandler.ini...
https://github.com/OctoPrint/OctoPrint/issues/3731
2020-09-14 12:32:33,718 - tornado.application - ERROR - Uncaught exception GET /downloads/logs/octoprint.log (::ffff:73.122.180.167) Traceback (most recent call last): File "/home/pi/oprint/lib/python3.7/site-packages/tornado/web.py", line 1592, in _execute result = yield result File "/home/pi/oprint/lib/python3.7/site...
tornado.httputil.HTTPOutputError
def get(self, path, include_body=True): if self._access_validation is not None: self._access_validation(self.request) if self._path_validation is not None: self._path_validation(path) if "cookie" in self.request.arguments: self.set_cookie(self.request.arguments["cookie"][0], "true",...
def get(self, path, include_body=True): if self._access_validation is not None: self._access_validation(self.request) if self._path_validation is not None: self._path_validation(path) if "cookie" in self.request.arguments: self.set_cookie(self.request.arguments["cookie"][0], "true",...
https://github.com/OctoPrint/OctoPrint/issues/3731
2020-09-14 12:32:33,718 - tornado.application - ERROR - Uncaught exception GET /downloads/logs/octoprint.log (::ffff:73.122.180.167) Traceback (most recent call last): File "/home/pi/oprint/lib/python3.7/site-packages/tornado/web.py", line 1592, in _execute result = yield result File "/home/pi/oprint/lib/python3.7/site...
tornado.httputil.HTTPOutputError
def send_pack(self, message, binary=False): if IOLoop.current(False) == self.server.io_loop: # Running in Main Thread # Send message try: self.write_message(message, binary).add_done_callback(self.send_complete) except (IOError, WebSocketError): self.server.io...
def send_pack(self, message, binary=False): if IOLoop.current(False) == self.server.io_loop: # Running in Main Thread # Send message try: self.write_message(message, binary) except (IOError, WebSocketError): self.server.io_loop.add_callback(self.on_close) ...
https://github.com/OctoPrint/OctoPrint/issues/3689
Aug 13 08:39:01 bananapi2 octoprint[580]: 2020-08-13 08:39:01,742 - octoprint.plugins.detailedprogress - INFO - Printing started. Detailed progress started. Aug 13 08:39:01 bananapi2 octoprint[580]: 2020-08-13 08:39:01,767 - octoprint.plugins.stats - INFO - Printer Stats - on_event Aug 13 08:39:03 bananapi2 octoprint[5...
WebSocketClosedError
def _saveSettings(data): logger = logging.getLogger(__name__) s = settings() # NOTE: Remember to adjust the docs of the data model on the Settings API if anything # is changed, added or removed here if "folder" in data: try: if "uploads" in data["folder"]: s.se...
def _saveSettings(data): logger = logging.getLogger(__name__) s = settings() # NOTE: Remember to adjust the docs of the data model on the Settings API if anything # is changed, added or removed here if "folder" in data: try: if "uploads" in data["folder"]: s.se...
https://github.com/OctoPrint/OctoPrint/issues/3679
2020-08-06 16:30:18,806 - tornado.application - ERROR - Uncaught exception POST /api/settings (127.0.0.1) HTTPServerRequest(protocol='http', host='localhost:5000', method='POST', uri='/api/settings', version='HTTP/1.1', remote_ip='127.0.0.1') Traceback (most recent call last): File "D:\Code\OctoPrint\devenv37\lib\site-...
KeyError
def run(self): if not self._allow_root: self._check_for_root() if self._settings is None: self._settings = settings() if not self._settings.getBoolean(["server", "ignoreIncompleteStartup"]): self._settings.setBoolean(["server", "incompleteStartup"], True) self._settings.sav...
def run(self): if not self._allow_root: self._check_for_root() if self._settings is None: self._settings = settings() if not self._settings.getBoolean(["server", "ignoreIncompleteStartup"]): self._settings.setBoolean(["server", "incompleteStartup"], True) self._settings.sav...
https://github.com/OctoPrint/OctoPrint/issues/3676
pi@octoprint:~ $ cat ~/.octoprint/logs/octoprint.log 2020-08-04 00:21:23,030 - octoprint.server.heartbeat - INFO - Server heartbeat <3 2020-08-04 00:21:23,035 - octoprint.server - INFO - --- Log roll over detected --------------------------------------------------- 2020-08-04 00:21:23,036 - octoprint.server - INFO - Oc...
AttributeError
def _create_lastmodified(path, recursive): path = path[len("/api/files") :] if path.startswith("/"): path = path[1:] if path == "": # all storages involved lms = [0] for storage in fileManager.registered_storages: try: lms.append(fileManager.last_...
def _create_lastmodified(path, recursive): if path.endswith("/files"): # all storages involved lms = [0] for storage in fileManager.registered_storages: try: lms.append(fileManager.last_modified(storage, recursive=recursive)) except Exception: ...
https://github.com/OctoPrint/OctoPrint/issues/3422
2019-09-26 01:24:44,258 - octoprint.startup - INFO - ****************************************************************************** 2019-09-26 01:24:44,259 - octoprint.startup - INFO - Starting OctoPrint 1.3.12 2019-09-26 01:24:44,260 - octoprint.startup - INFO - ********************************************************...
ConnectionError
def _create_etag(path, filter, recursive, lm=None): if lm is None: lm = _create_lastmodified(path, recursive) if lm is None: return None hash = hashlib.sha1() def hash_update(value): value = value.encode("utf-8") hash.update(value) hash_update(str(lm)) hash_up...
def _create_etag(path, filter, recursive, lm=None): if lm is None: lm = _create_lastmodified(path, recursive) if lm is None: return None hash = hashlib.sha1() def hash_update(value): value = value.encode("utf-8") hash.update(value) hash_update(str(lm)) hash_up...
https://github.com/OctoPrint/OctoPrint/issues/3422
2019-09-26 01:24:44,258 - octoprint.startup - INFO - ****************************************************************************** 2019-09-26 01:24:44,259 - octoprint.startup - INFO - Starting OctoPrint 1.3.12 2019-09-26 01:24:44,260 - octoprint.startup - INFO - ********************************************************...
ConnectionError
def _getFileList( origin, path=None, filter=None, recursive=False, allow_from_cache=True ): if origin == FileDestinations.SDCARD: sdFileList = printer.get_sd_files() files = [] if sdFileList is not None: for sdFile, sdSize in sdFileList: type_path = octoprint...
def _getFileList( origin, path=None, filter=None, recursive=False, allow_from_cache=True ): if origin == FileDestinations.SDCARD: sdFileList = printer.get_sd_files() files = [] if sdFileList is not None: for sdFile, sdSize in sdFileList: type_path = octoprint...
https://github.com/OctoPrint/OctoPrint/issues/3422
2019-09-26 01:24:44,258 - octoprint.startup - INFO - ****************************************************************************** 2019-09-26 01:24:44,259 - octoprint.startup - INFO - Starting OctoPrint 1.3.12 2019-09-26 01:24:44,260 - octoprint.startup - INFO - ********************************************************...
ConnectionError
def access_validation_factory(app, validator, *args): """ Creates an access validation wrapper using the supplied validator. :param validator: the access validator to use inside the validation wrapper :return: an access validator taking a request as parameter and performing the request validation "...
def access_validation_factory(app, validator, *args): """ Creates an access validation wrapper using the supplied validator. :param validator: the access validator to use inside the validation wrapper :return: an access validator taking a request as parameter and performing the request validation "...
https://github.com/OctoPrint/OctoPrint/issues/3600
2020-06-11 22:08:49,879 - tornado.application - ERROR - Uncaught exception GET /downloads/timelapse/circle_20200611141803-fail.mpg (10.125.0.1) Traceback (most recent call last): File "/home/bzed/tools/OctoPrint/venv/lib/python3.7/site-packages/tornado/web.py", line 1590, in _execute result = method(*self.path_args, **...
AttributeError
def f(request): """ Creates a custom wsgi and Flask request context in order to be able to process user information stored in the current session. :param request: The Tornado request for which to create the environment and context """ import flask wsgi_environ = WsgiInputContainer.environ(...
def f(request): """ Creates a custom wsgi and Flask request context in order to be able to process user information stored in the current session. :param request: The Tornado request for which to create the environment and context """ import flask wsgi_environ = WsgiInputContainer.environ(...
https://github.com/OctoPrint/OctoPrint/issues/3600
2020-06-11 22:08:49,879 - tornado.application - ERROR - Uncaught exception GET /downloads/timelapse/circle_20200611141803-fail.mpg (10.125.0.1) Traceback (most recent call last): File "/home/bzed/tools/OctoPrint/venv/lib/python3.7/site-packages/tornado/web.py", line 1590, in _execute result = method(*self.path_args, **...
AttributeError
def _openSerial(self): def default(_, port, baudrate, read_timeout): if port is None or port == "AUTO": # no known port, try auto detection self._changeState(self.STATE_DETECT_SERIAL) port = self._detect_port() if port is None: error_text = "Fa...
def _openSerial(self): def default(_, port, baudrate, read_timeout): if port is None or port == "AUTO": # no known port, try auto detection self._changeState(self.STATE_DETECT_SERIAL) port = self._detect_port() if port is None: error_text = "Fa...
https://github.com/OctoPrint/OctoPrint/issues/3212
2019-06-30 17:15:24,613 - octoprint.server.heartbeat - INFO - Server heartbeat <3 2019-06-30 17:15:24,617 - octoprint.server - INFO - --- Log roll over detected --------------------------------------------------- 2019-06-30 17:15:24,617 - octoprint.server - INFO - OctoPrint 1.3.11 2019-06-30 17:15:24,633 - octoprint.pl...
AttributeError
def default(_, port, baudrate, read_timeout): if port is None or port == "AUTO": # no known port, try auto detection self._changeState(self.STATE_DETECT_SERIAL) port = self._detect_port() if port is None: error_text = "Failed to autodetect serial port, please set it manua...
def default(_, port, baudrate, read_timeout): if port is None or port == "AUTO": # no known port, try auto detection self._changeState(self.STATE_DETECT_SERIAL) port = self._detect_port() if port is None: error_text = "Failed to autodetect serial port, please set it manua...
https://github.com/OctoPrint/OctoPrint/issues/3212
2019-06-30 17:15:24,613 - octoprint.server.heartbeat - INFO - Server heartbeat <3 2019-06-30 17:15:24,617 - octoprint.server - INFO - --- Log roll over detected --------------------------------------------------- 2019-06-30 17:15:24,617 - octoprint.server - INFO - OctoPrint 1.3.11 2019-06-30 17:15:24,633 - octoprint.pl...
AttributeError
def _render(self): """Rendering runnable.""" ffmpeg = settings().get(["webcam", "ffmpeg"]) bitrate = settings().get(["webcam", "bitrate"]) if ffmpeg is None or bitrate is None: self._logger.warning( "Cannot create movie, path to ffmpeg or desired bitrate is unset" ) ...
def _render(self): """Rendering runnable.""" ffmpeg = settings().get(["webcam", "ffmpeg"]) bitrate = settings().get(["webcam", "bitrate"]) if ffmpeg is None or bitrate is None: self._logger.warning( "Cannot create movie, path to ffmpeg or desired bitrate is unset" ) ...
https://github.com/OctoPrint/OctoPrint/issues/3409
2019-12-31 14:26:39,831 - octoprint.util.comm - INFO - Changing monitoring state from "Cancelling" to "Operational" 2019-12-31 14:26:40,448 - octoprint.timelapse - ERROR - Could not render movie due to unknown error Traceback (most recent call last): File "/home/pi/OctoPrint/venv/lib/python3.7/site-packages/octoprint/t...
TypeError
def call(self, command, **kwargs): """ Calls a command Args: command (list, tuple or str): command to call kwargs (dict): additional keyword arguments to pass to the sarge ``run`` call (note that ``_async``, ``stdout`` and ``stderr`` will be overwritten) Returns:...
def call(self, command, **kwargs): """ Calls a command Args: command (list, tuple or str): command to call kwargs (dict): additional keyword arguments to pass to the sarge ``run`` call (note that ``_async``, ``stdout`` and ``stderr`` will be overwritten) Returns:...
https://github.com/OctoPrint/OctoPrint/issues/3409
2019-12-31 14:26:39,831 - octoprint.util.comm - INFO - Changing monitoring state from "Cancelling" to "Operational" 2019-12-31 14:26:40,448 - octoprint.timelapse - ERROR - Could not render movie due to unknown error Traceback (most recent call last): File "/home/pi/OctoPrint/venv/lib/python3.7/site-packages/octoprint/t...
TypeError
def __init__(self, delimiter=b"\n", *args, **kwargs): self._delimiter = delimiter sarge.Capture.__init__(self, *args, **kwargs)
def __init__(self): self._logger = logging.getLogger(__name__) self.on_log_call = lambda *args, **kwargs: None """Callback for the called command line""" self.on_log_stdout = lambda *args, **kwargs: None """Callback for stdout output""" self.on_log_stderr = lambda *args, **kwargs: None ""...
https://github.com/OctoPrint/OctoPrint/issues/3409
2019-12-31 14:26:39,831 - octoprint.util.comm - INFO - Changing monitoring state from "Cancelling" to "Operational" 2019-12-31 14:26:40,448 - octoprint.timelapse - ERROR - Could not render movie due to unknown error Traceback (most recent call last): File "/home/pi/OctoPrint/venv/lib/python3.7/site-packages/octoprint/t...
TypeError
def _render(self): """Rendering runnable.""" ffmpeg = settings().get(["webcam", "ffmpeg"]) bitrate = settings().get(["webcam", "bitrate"]) if ffmpeg is None or bitrate is None: self._logger.warning( "Cannot create movie, path to ffmpeg or desired bitrate is unset" ) ...
def _render(self): """Rendering runnable.""" ffmpeg = settings().get(["webcam", "ffmpeg"]) bitrate = settings().get(["webcam", "bitrate"]) if ffmpeg is None or bitrate is None: self._logger.warning( "Cannot create movie, path to ffmpeg or desired bitrate is unset" ) ...
https://github.com/OctoPrint/OctoPrint/issues/3396
2019-12-17 10:51:22,247 - octoprint.server.heartbeat - INFO - Server heartbeat <3 2019-12-17 10:51:22,254 - octoprint.server - INFO - --- Log roll over detected --------------------------------------------------- 2019-12-17 10:51:22,254 - octoprint.server - INFO - OctoPrint 1.4.0rc3 2019-12-17 10:51:22,261 - octoprint....
AttributeError
def on_print_started(self, event, payload): """ Override this to perform additional actions upon start of a print job. """ self.start_timelapse(payload["name"])
def on_print_started(self, event, payload): """ Override this to perform additional actions upon start of a print job. """ self.start_timelapse(payload["file"])
https://github.com/OctoPrint/OctoPrint/issues/3354
2019-11-27 10:13:02,875 - octoprint.server.heartbeat - INFO - Server heartbeat <3 2019-11-27 10:13:02,882 - octoprint.server - INFO - --- Log roll over detected --------------------------------------------------- 2019-11-27 10:13:02,883 - octoprint.server - INFO - OctoPrint 1.4.0rc1 2019-11-27 10:13:02,889 - octoprint....
AttributeError
def on_print_resumed(self, event, payload): """ Override this to perform additional actions upon the pausing of a print job. """ if not self._in_timelapse: self.start_timelapse(payload["name"])
def on_print_resumed(self, event, payload): """ Override this to perform additional actions upon the pausing of a print job. """ if not self._in_timelapse: self.start_timelapse(payload["file"])
https://github.com/OctoPrint/OctoPrint/issues/3354
2019-11-27 10:13:02,875 - octoprint.server.heartbeat - INFO - Server heartbeat <3 2019-11-27 10:13:02,882 - octoprint.server - INFO - --- Log roll over detected --------------------------------------------------- 2019-11-27 10:13:02,883 - octoprint.server - INFO - OctoPrint 1.4.0rc1 2019-11-27 10:13:02,889 - octoprint....
AttributeError
def start_timelapse(self, gcode_file): self._logger.debug("Starting timelapse for %s" % gcode_file) self._image_number = 0 self._capture_errors = 0 self._capture_success = 0 self._in_timelapse = True self._gcode_file = os.path.basename(gcode_file) self._file_prefix = "{}_{}".format( ...
def start_timelapse(self, gcodeFile): self._logger.debug("Starting timelapse for %s" % gcodeFile) self._image_number = 0 self._capture_errors = 0 self._capture_success = 0 self._in_timelapse = True self._gcode_file = os.path.basename(gcodeFile) self._file_prefix = "{}_{}".format( os...
https://github.com/OctoPrint/OctoPrint/issues/3354
2019-11-27 10:13:02,875 - octoprint.server.heartbeat - INFO - Server heartbeat <3 2019-11-27 10:13:02,882 - octoprint.server - INFO - --- Log roll over detected --------------------------------------------------- 2019-11-27 10:13:02,883 - octoprint.server - INFO - OctoPrint 1.4.0rc1 2019-11-27 10:13:02,889 - octoprint....
AttributeError
def _on_request_body_finish(self): """ Called when the request body has been read completely. Takes care of creating the replacement body out of the logged parts, turning ``file`` parts into new ``data`` parts. """ self._new_body = b"" for name, part in self._parts.items(): if "filename...
def _on_request_body_finish(self): """ Called when the request body has been read completely. Takes care of creating the replacement body out of the logged parts, turning ``file`` parts into new ``data`` parts. """ self._new_body = b"" for name, part in self._parts.items(): if "filename...
https://github.com/OctoPrint/OctoPrint/issues/3349
2019-11-25 17:09:34,089 - tornado.application - ERROR - Uncaught exception Traceback (most recent call last): File "/home/pi/oprint/local/lib/python2.7/site-packages/tornado/http1connection.py", line 584, in _read_fixed_body ret = delegate.data_received(body) File "/home/pi/oprint/local/lib/python2.7/site-packages/torn...
TypeError
def warning_decorator_factory(warning_type): def specific_warning( message, stacklevel=1, since=None, includedoc=None, extenddoc=False ): def decorator(func): @wraps(func) def func_wrapper(*args, **kwargs): # we need to increment the stacklevel by one beca...
def warning_decorator_factory(warning_type): def specific_warning( message, stacklevel=1, since=None, includedoc=None, extenddoc=False ): def decorator(func): func.__qualname__ = to_native_str("warning_decorator_factory") func.__annotations__ = dict() @wraps(...
https://github.com/OctoPrint/OctoPrint/issues/3348
2019-11-25 17:59:12,930 - octoprint.plugin - ERROR - Error while calling plugin fanspeedslider Traceback (most recent call last): File "/home/nas/OctoPrint/venv/local/lib/python2.7/site-packages/octoprint/plugin/__init__.py", line 224, in call_plugin result = getattr(plugin, method)(*args, **kwargs) File "/home/nas/Oct...
AttributeError
def specific_warning( message, stacklevel=1, since=None, includedoc=None, extenddoc=False ): def decorator(func): @wraps(func) def func_wrapper(*args, **kwargs): # we need to increment the stacklevel by one because otherwise we'll get the location of our # func_wrapper in...
def specific_warning( message, stacklevel=1, since=None, includedoc=None, extenddoc=False ): def decorator(func): func.__qualname__ = to_native_str("warning_decorator_factory") func.__annotations__ = dict() @wraps(func) def func_wrapper(*args, **kwargs): # we need to...
https://github.com/OctoPrint/OctoPrint/issues/3348
2019-11-25 17:59:12,930 - octoprint.plugin - ERROR - Error while calling plugin fanspeedslider Traceback (most recent call last): File "/home/nas/OctoPrint/venv/local/lib/python2.7/site-packages/octoprint/plugin/__init__.py", line 224, in call_plugin result = getattr(plugin, method)(*args, **kwargs) File "/home/nas/Oct...
AttributeError
def decorator(func): @wraps(func) def func_wrapper(*args, **kwargs): # we need to increment the stacklevel by one because otherwise we'll get the location of our # func_wrapper in the log, instead of our caller (which is the real caller of the wrapped function) warnings.warn(message, war...
def decorator(func): func.__qualname__ = to_native_str("warning_decorator_factory") func.__annotations__ = dict() @wraps(func) def func_wrapper(*args, **kwargs): # we need to increment the stacklevel by one because otherwise we'll get the location of our # func_wrapper in the log, inste...
https://github.com/OctoPrint/OctoPrint/issues/3348
2019-11-25 17:59:12,930 - octoprint.plugin - ERROR - Error while calling plugin fanspeedslider Traceback (most recent call last): File "/home/nas/OctoPrint/venv/local/lib/python2.7/site-packages/octoprint/plugin/__init__.py", line 224, in call_plugin result = getattr(plugin, method)(*args, **kwargs) File "/home/nas/Oct...
AttributeError
def permission_validator(request, permission): """ Validates that the given request is made by an authorized user, identified either by API key or existing Flask session. Must be executed in an existing Flask request context! :param request: The Flask request object :param request: The require...
def permission_validator(request, permission): """ Validates that the given request is made by an authorized user, identified either by API key or existing Flask session. Must be executed in an existing Flask request context! :param request: The Flask request object :param request: The require...
https://github.com/OctoPrint/OctoPrint/issues/2779
2018-08-03 16:57:12,579 - tornado.application - ERROR - Uncaught exception GET /downloads/files/local/test.gcode (127.0.0.1) Traceback (most recent call last): File "~/OctoPrint/venv/local/lib/python2.7/site-packages/tornado/web.py", line 1510, in _execute result = method(*self.path_args, **self.path_kwargs) File "~/Oc...
AttributeError
def get_flask_user_from_request(request): """ Retrieves the current flask user from the request context. Uses API key if available, otherwise the current user session if available. :param request: flask request from which to retrieve the current user :return: the user (might be an anonymous user) ...
def get_flask_user_from_request(request): """ Retrieves the current flask user from the request context. Uses API key if available, otherwise the current user session if available. :param request: flask request from which to retrieve the current user :return: the user or None if no user could be de...
https://github.com/OctoPrint/OctoPrint/issues/2779
2018-08-03 16:57:12,579 - tornado.application - ERROR - Uncaught exception GET /downloads/files/local/test.gcode (127.0.0.1) Traceback (most recent call last): File "~/OctoPrint/venv/local/lib/python2.7/site-packages/tornado/web.py", line 1510, in _execute result = method(*self.path_args, **self.path_kwargs) File "~/Oc...
AttributeError
def get_python_version_string(): from platform import python_version version_string = python_version() # Debian has the python version set to 2.7.15+ which is not PEP440 compliant (bug 914072) if version_string.endswith("+"): version_string = version_string[:-1] return version_string
def get_python_version_string(): from platform import python_version version_string = python_version() # Debian has the python version set to 2.7.15+ which is not PEP440 compliant (bug 914072) if version_string.endswith("+"): version_string = python_version[:-1] return version_string
https://github.com/OctoPrint/OctoPrint/issues/3253
2019-08-21 11:55:47,421 - octoprint.plugin - ERROR - Error while calling plugin softwareupdate Traceback (most recent call last): File "/home/multipass/OctoPrint/src/octoprint/plugin/__init__.py", line 219, in call_plugin result = getattr(plugin, method)(*args, **kwargs) File "/home/multipass/OctoPrint/src/octoprint/pl...
TypeError
def handle_request(self): data = flask.request.json if data is None: return flask.make_response("Missing key request", 400) if not "app" in data: return flask.make_response("No app name provided", 400) app_name = data["app"] user_id = None if "user" in data and data["user"]: ...
def handle_request(self): data = flask.request.json if data is None: return flask.make_response("Missing key request", 400) if not "app" in data: return flask.make_response("No app name provided", 400) app_name = data["app"] user_id = None if "user" in data: user_id = d...
https://github.com/OctoPrint/OctoPrint/issues/3257
Did not bind view model bedlevelvisualizerViewModel to target #wizard_plugin_bedlevelvisualizer since it does not exist packed_core.js:2475 User dan logged in packed_core.js:15967 ... binding done packed_core.js:15979 Application startup complete VM10072:1 POST https://octopi.lan/plugin/appkeys/decision/f79c74b29a06eaf...
AttributeError
def login(): data = request.values if hasattr(request, "json") and request.json: data = request.json if octoprint.server.userManager.enabled and "user" in data and "pass" in data: username = data["user"] password = data["pass"] if "remember" in data and data["remember"] in ...
def login(): data = request.values if hasattr(request, "json") and request.json: data = request.json if octoprint.server.userManager.enabled and "user" in data and "pass" in data: username = data["user"] password = data["pass"] if "remember" in data and data["remember"] in ...
https://github.com/OctoPrint/OctoPrint/issues/3142
2019-05-06 12:38:21,168 - octoprint.startup - INFO - ****************************************************************************** 2019-05-06 12:38:21,170 - octoprint.startup - INFO - Starting OctoPrint 1.3.11rc3 2019-05-06 12:38:21,171 - octoprint.startup - INFO - *****************************************************...
ValueError
def logout(): # logout from user manager... _logout(current_user) # ... and from flask login (and principal) logout_user() # ... and send an active logout session cookie r = make_response(NO_CONTENT) r.set_cookie("active_logout", "true") return r
def logout(): # logout from user manager... _logout(current_user) # ... and from flask login (and principal) logout_user() return NO_CONTENT
https://github.com/OctoPrint/OctoPrint/issues/3142
2019-05-06 12:38:21,168 - octoprint.startup - INFO - ****************************************************************************** 2019-05-06 12:38:21,170 - octoprint.startup - INFO - Starting OctoPrint 1.3.11rc3 2019-05-06 12:38:21,171 - octoprint.startup - INFO - *****************************************************...
ValueError
def passive_login(): logger = logging.getLogger(__name__) if octoprint.server.userManager.enabled: user = octoprint.server.userManager.login_user(flask_login.current_user) else: user = flask_login.current_user remote_address = get_remote_address(flask.request) ip_check_enabled = se...
def passive_login(): logger = logging.getLogger(__name__) if octoprint.server.userManager.enabled: user = octoprint.server.userManager.login_user(flask_login.current_user) else: user = flask_login.current_user remote_address = get_remote_address(flask.request) ip_check_enabled = se...
https://github.com/OctoPrint/OctoPrint/issues/3142
2019-05-06 12:38:21,168 - octoprint.startup - INFO - ****************************************************************************** 2019-05-06 12:38:21,170 - octoprint.startup - INFO - Starting OctoPrint 1.3.11rc3 2019-05-06 12:38:21,171 - octoprint.startup - INFO - *****************************************************...
ValueError
def init_pluginsystem( settings, safe_mode=False, ignore_blacklist=True, connectivity_checker=None ): """Initializes the plugin manager based on the settings.""" import os # we need this so that octoprint.plugins is in sys.modules and no warnings are caused when loading bundled plugins import octo...
def init_pluginsystem( settings, safe_mode=False, ignore_blacklist=True, connectivity_checker=None ): """Initializes the plugin manager based on the settings.""" import os # we need this so that octoprint.plugins is in sys.modules and no warnings are caused when loading bundled plugins import octo...
https://github.com/OctoPrint/OctoPrint/issues/3300
2019-10-08 14:14:51,399 - octoprint.server.preemptive_cache - INFO - Preemptively caching / (ui _default) for {'base_url': 'http://192.168.0.113:5000/', 'path': '/', 'query_string': 'l10n=en'} [2019-10-08 14:14:51,556] ERROR in app: Exception on / [GET] Traceback (most recent call last): File "c:\octoprint\venv\lib\sit...
TypeError
def handle_plugins_loaded( startup=False, initialize_implementations=True, force_reload=None ): if not startup: return from octoprint.util import sv sorted_disabled_from_overlays = sorted( [(key, value[0], value[1]) for key, value in disabled_from_overlays.items()], key=lambda ...
def handle_plugins_loaded( startup=False, initialize_implementations=True, force_reload=None ): if not startup: return sorted_disabled_from_overlays = sorted( [(key, value[0], value[1]) for key, value in disabled_from_overlays.items()], key=lambda x: (x[2] is None, x[2], x[0]), ...
https://github.com/OctoPrint/OctoPrint/issues/3300
2019-10-08 14:14:51,399 - octoprint.server.preemptive_cache - INFO - Preemptively caching / (ui _default) for {'base_url': 'http://192.168.0.113:5000/', 'path': '/', 'query_string': 'l10n=en'} [2019-10-08 14:14:51,556] ERROR in app: Exception on / [GET] Traceback (most recent call last): File "c:\octoprint\venv\lib\sit...
TypeError
def _print_list(users): click.echo("{} users registered in the system:".format(len(users))) for user in sorted( map(lambda x: x.as_dict(), users), key=lambda x: sv(x.get("name")) ): click.echo("\t{}".format(_user_to_line(user)))
def _print_list(users): click.echo("{} users registered in the system:".format(len(users))) for user in sorted(map(lambda x: x.as_dict(), users), key=lambda x: x.get("name")): click.echo("\t{}".format(_user_to_line(user)))
https://github.com/OctoPrint/OctoPrint/issues/3300
2019-10-08 14:14:51,399 - octoprint.server.preemptive_cache - INFO - Preemptively caching / (ui _default) for {'base_url': 'http://192.168.0.113:5000/', 'path': '/', 'query_string': 'l10n=en'} [2019-10-08 14:14:51,556] ERROR in app: Exception on / [GET] Traceback (most recent call last): File "c:\octoprint\venv\lib\sit...
TypeError
def get_implementations(self, *types, **kwargs): """ Get all mixin implementations that implement *all* of the provided ``types``. Arguments: types (one or more type): The types a mixin implementation needs to implement in order to be returned. Returns: list: A list of all found implem...
def get_implementations(self, *types, **kwargs): """ Get all mixin implementations that implement *all* of the provided ``types``. Arguments: types (one or more type): The types a mixin implementation needs to implement in order to be returned. Returns: list: A list of all found implem...
https://github.com/OctoPrint/OctoPrint/issues/3300
2019-10-08 14:14:51,399 - octoprint.server.preemptive_cache - INFO - Preemptively caching / (ui _default) for {'base_url': 'http://192.168.0.113:5000/', 'path': '/', 'query_string': 'l10n=en'} [2019-10-08 14:14:51,556] ERROR in app: Exception on / [GET] Traceback (most recent call last): File "c:\octoprint\venv\lib\sit...
TypeError
def sort_func(impl): sorting_value = None if sorting_context is not None and isinstance(impl[1], SortablePlugin): try: sorting_value = impl[1].get_sorting_key(sorting_context) except Exception: self.logger.exception( "Error while trying to retrieve sorting...
def sort_func(impl): sorting_value = None if sorting_context is not None and isinstance(impl[1], SortablePlugin): try: sorting_value = impl[1].get_sorting_key(sorting_context) except Exception: self.logger.exception( "Error while trying to retrieve sorting...
https://github.com/OctoPrint/OctoPrint/issues/3300
2019-10-08 14:14:51,399 - octoprint.server.preemptive_cache - INFO - Preemptively caching / (ui _default) for {'base_url': 'http://192.168.0.113:5000/', 'path': '/', 'query_string': 'l10n=en'} [2019-10-08 14:14:51,556] ERROR in app: Exception on / [GET] Traceback (most recent call last): File "c:\octoprint\venv\lib\sit...
TypeError
def _sort_hooks(self, hook): self._plugin_hooks[hook] = sorted( self._plugin_hooks[hook], key=lambda x: (x[0] is None, sv(x[0]), sv(x[1]), sv(x[2])), )
def _sort_hooks(self, hook): self._plugin_hooks[hook] = sorted( self._plugin_hooks[hook], key=lambda x: (x[0] is None, x[0], x[1], x[2]) )
https://github.com/OctoPrint/OctoPrint/issues/3300
2019-10-08 14:14:51,399 - octoprint.server.preemptive_cache - INFO - Preemptively caching / (ui _default) for {'base_url': 'http://192.168.0.113:5000/', 'path': '/', 'query_string': 'l10n=en'} [2019-10-08 14:14:51,556] ERROR in app: Exception on / [GET] Traceback (most recent call last): File "c:\octoprint\venv\lib\sit...
TypeError
def _create_etag(path, filter, recursive, lm=None): if lm is None: lm = _create_lastmodified(path, recursive) if lm is None: return None hash = hashlib.sha1() def hash_update(value): value = value.encode("utf-8") hash.update(value) hash_update(str(lm)) hash_up...
def _create_etag(path, filter, recursive, lm=None): if lm is None: lm = _create_lastmodified(path, recursive) if lm is None: return None hash = hashlib.sha1() def hash_update(value): value = value.encode("utf-8") hash.update(value) hash_update(str(lm)) hash_up...
https://github.com/OctoPrint/OctoPrint/issues/3300
2019-10-08 14:14:51,399 - octoprint.server.preemptive_cache - INFO - Preemptively caching / (ui _default) for {'base_url': 'http://192.168.0.113:5000/', 'path': '/', 'query_string': 'l10n=en'} [2019-10-08 14:14:51,556] ERROR in app: Exception on / [GET] Traceback (most recent call last): File "c:\octoprint\venv\lib\sit...
TypeError
def fetch_template_data(refresh=False): global _templates, _plugin_names, _plugin_vars locale = g.locale.language if g.locale else "en" if ( not refresh and _templates.get(locale) is not None and _plugin_names is not None and _plugin_vars is not None ): return _...
def fetch_template_data(refresh=False): global _templates, _plugin_names, _plugin_vars locale = g.locale.language if g.locale else "en" if ( not refresh and _templates.get(locale) is not None and _plugin_names is not None and _plugin_vars is not None ): return _...
https://github.com/OctoPrint/OctoPrint/issues/3300
2019-10-08 14:14:51,399 - octoprint.server.preemptive_cache - INFO - Preemptively caching / (ui _default) for {'base_url': 'http://192.168.0.113:5000/', 'path': '/', 'query_string': 'l10n=en'} [2019-10-08 14:14:51,556] ERROR in app: Exception on / [GET] Traceback (most recent call last): File "c:\octoprint\venv\lib\sit...
TypeError
def key_func(x): config = templates[t]["entries"][x] entry_order = config_extractor(config, "order", default_value=None) return entry_order is None, sv(entry_order)
def key_func(x): config = templates[t]["entries"][x] entry_order = config_extractor(config, "order", default_value=None) return entry_order is None, entry_order
https://github.com/OctoPrint/OctoPrint/issues/3300
2019-10-08 14:14:51,399 - octoprint.server.preemptive_cache - INFO - Preemptively caching / (ui _default) for {'base_url': 'http://192.168.0.113:5000/', 'path': '/', 'query_string': 'l10n=en'} [2019-10-08 14:14:51,556] ERROR in app: Exception on / [GET] Traceback (most recent call last): File "c:\octoprint\venv\lib\sit...
TypeError
def get_unrendered_timelapses(): global _job_lock global current delete_old_unrendered_timelapses() basedir = settings().getBaseFolder("timelapse_tmp", check_writable=False) jobs = collections.defaultdict( lambda: dict(count=0, size=None, bytes=0, date=None, timestamp=None) ) for ...
def get_unrendered_timelapses(): global _job_lock global current delete_old_unrendered_timelapses() basedir = settings().getBaseFolder("timelapse_tmp", check_writable=False) jobs = collections.defaultdict( lambda: dict(count=0, size=None, bytes=0, date=None, timestamp=None) ) for ...
https://github.com/OctoPrint/OctoPrint/issues/3300
2019-10-08 14:14:51,399 - octoprint.server.preemptive_cache - INFO - Preemptively caching / (ui _default) for {'base_url': 'http://192.168.0.113:5000/', 'path': '/', 'query_string': 'l10n=en'} [2019-10-08 14:14:51,556] ERROR in app: Exception on / [GET] Traceback (most recent call last): File "c:\octoprint\venv\lib\sit...
TypeError
def _user_for_api_key(self, api_key): with self._keys_lock: for user_id, data in self._keys.items(): if filter(lambda x: x.api_key == api_key, data): if self._user_manager.enabled: return self._user_manager.findUser(userid=user_id) elif user_id...
def _user_for_api_key(self, api_key): with self._keys_lock: for user_id, data in self._keys.items(): if filter(lambda x: x.api_key == api_key, data): return self._user_manager.findUser(userid=user_id) return None
https://github.com/OctoPrint/OctoPrint/issues/3071
2019-03-04 18:46:30,551 - octoprint.startup - INFO - ****************************************************************************** 2019-03-04 18:46:30,552 - octoprint.startup - INFO - Starting OctoPrint 1.3.10 2019-03-04 18:46:30,552 - octoprint.startup - INFO - ********************************************************...
SerialException
def loginUserFromApiKey(): apikey = get_api_key(_flask.request) if not apikey: return False if octoprint.server.appSessionManager.validate(apikey): return False user = get_user_for_apikey(apikey) if user is None: return False if not loginUser(user): return Fal...
def loginUserFromApiKey(): apikey = get_api_key(_flask.request) if not apikey: return False if octoprint.server.appSessionManager.validate(apikey): return False user = get_user_for_apikey(apikey) if not loginUser(user): raise InvalidApiKeyException() else: retu...
https://github.com/OctoPrint/OctoPrint/issues/3071
2019-03-04 18:46:30,551 - octoprint.startup - INFO - ****************************************************************************** 2019-03-04 18:46:30,552 - octoprint.startup - INFO - Starting OctoPrint 1.3.10 2019-03-04 18:46:30,552 - octoprint.startup - INFO - ********************************************************...
SerialException
def _create_backup( cls, name, exclude=None, settings=None, plugin_manager=None, datafolder=None, on_backup_start=None, on_backup_done=None, on_backup_error=None, ): exclude_by_default = ( "generated", "logs", "watched", ) try: if exclude ...
def _create_backup( cls, name, exclude=None, settings=None, plugin_manager=None, datafolder=None, on_backup_start=None, on_backup_done=None, on_backup_error=None, ): exclude_by_default = ( "generated", "logs", "watched", ) try: if exclude ...
https://github.com/OctoPrint/OctoPrint/issues/2992
Uploading backup, this can take a while. Please wait... Stelle Sicherung wieder her... Unpacking backup to /tmp/tmpYhY_SP... Unpacked Renaming /data/octorpint-data to /data/octorpint-data.bck... Moving /tmp/tmpYhY_SP/basedir to /data/octorpint-data... Error while restoring config data Traceback (most recent call last...
OSError
def _restore_backup( cls, path, settings=None, plugin_manager=None, datafolder=None, on_install_plugins=None, on_report_unknown_plugins=None, on_invalid_backup=None, on_log_progress=None, on_log_error=None, on_restore_start=None, on_restore_done=None, on_restore_faile...
def _restore_backup( cls, path, settings=None, plugin_manager=None, datafolder=None, on_install_plugins=None, on_report_unknown_plugins=None, on_invalid_backup=None, on_log_progress=None, on_log_error=None, on_restore_start=None, on_restore_done=None, on_restore_faile...
https://github.com/OctoPrint/OctoPrint/issues/2992
Uploading backup, this can take a while. Please wait... Stelle Sicherung wieder her... Unpacking backup to /tmp/tmpYhY_SP... Unpacked Renaming /data/octorpint-data to /data/octorpint-data.bck... Moving /tmp/tmpYhY_SP/basedir to /data/octorpint-data... Error while restoring config data Traceback (most recent call last...
OSError
def _create_backup( cls, name, exclude=None, settings=None, plugin_manager=None, datafolder=None, on_backup_start=None, on_backup_done=None, on_backup_error=None, ): try: if exclude is None: exclude = [] configfile = settings._configfile based...
def _create_backup( cls, name, exclude=None, settings=None, plugin_manager=None, datafolder=None, on_backup_start=None, on_backup_done=None, on_backup_error=None, ): try: if exclude is None: exclude = [] configfile = settings._configfile based...
https://github.com/OctoPrint/OctoPrint/issues/2992
Uploading backup, this can take a while. Please wait... Stelle Sicherung wieder her... Unpacking backup to /tmp/tmpYhY_SP... Unpacked Renaming /data/octorpint-data to /data/octorpint-data.bck... Moving /tmp/tmpYhY_SP/basedir to /data/octorpint-data... Error while restoring config data Traceback (most recent call last...
OSError
def average_total_rolling(self): if not self._count or self._count < self._rolling_window or not len(self._totals): return None else: return sum(self._totals) / len(self._totals)
def average_total_rolling(self): if not self._count or self._count < self._rolling_window: return None else: return sum(self._totals) / len(self._totals)
https://github.com/OctoPrint/OctoPrint/issues/3116
2019-04-08 17:22:53,104 - octoprint.printer.standard - ERROR - Looks like something crashed inside the state update worker. Please report this on the OctoPrint issue tracker (make sure to include logs!) Traceback (most recent call last): File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint/printer/standard...
ZeroDivisionError
def average_distance(self): if ( not self._count or self._count < self._rolling_window + 1 or not len(self._distances) ): return None else: return sum(self._distances) / len(self._distances)
def average_distance(self): if not self._count or self._count < self._rolling_window + 1: return None else: return sum(self._distances) / len(self._distances)
https://github.com/OctoPrint/OctoPrint/issues/3116
2019-04-08 17:22:53,104 - octoprint.printer.standard - ERROR - Looks like something crashed inside the state update worker. Please report this on the OctoPrint issue tracker (make sure to include logs!) Traceback (most recent call last): File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint/printer/standard...
ZeroDivisionError
def __init__(self, job_type): self.stats_weighing_until = settings().getFloat( ["estimation", "printTime", "statsWeighingUntil"] ) self.validity_range = settings().getFloat( ["estimation", "printTime", "validityRange"] ) self.force_dumb_from_percent = settings().getFloat( ["e...
def __init__(self, job_type): self.stats_weighing_until = settings().getFloat( ["estimation", "printTime", "statsWeighingUntil"] ) self.validity_range = settings().getFloat( ["estimation", "printTime", "validityRange"] ) self.force_dumb_from_percent = settings().getFloat( ["e...
https://github.com/OctoPrint/OctoPrint/issues/3116
2019-04-08 17:22:53,104 - octoprint.printer.standard - ERROR - Looks like something crashed inside the state update worker. Please report this on the OctoPrint issue tracker (make sure to include logs!) Traceback (most recent call last): File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint/printer/standard...
ZeroDivisionError
def _readline(self): if self._serial is None: return None try: ret = self._serial.readline() except Exception as ex: if not self._connection_closing: self._logger.exception("Unexpected error while reading from serial port") self._log( "Unexpec...
def _readline(self): if self._serial is None: return None try: ret = self._serial.readline() except Exception as ex: if not self._connection_closing: self._logger.exception("Unexpected error while reading from serial port") self._log( "Unexpec...
https://github.com/OctoPrint/OctoPrint/issues/3115
2019-04-08 22:38:29,687 - octoprint.plugin.core - INFO - Loading plugins from /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins, /home/pi/.octoprint/plugins and installed plugin packages... 2019-04-08 22:38:31,951 - octoprint.plugin.core - INFO - Found 15 plugin(s) providing 15 mixin implementations, 17 hoo...
ZeroDivisionError
def _readline(self): if self._serial is None: return None try: ret = self._serial.readline() except Exception as ex: if not self._connection_closing: self._logger.exception("Unexpected error while reading from serial port") self._log( "Unexpec...
def _readline(self): if self._serial is None: return None try: ret = self._serial.readline() except Exception as ex: if not self._connection_closing: self._logger.exception("Unexpected error while reading from serial port") self._log( "Unexpec...
https://github.com/OctoPrint/OctoPrint/issues/3115
2019-04-08 22:38:29,687 - octoprint.plugin.core - INFO - Loading plugins from /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins, /home/pi/.octoprint/plugins and installed plugin packages... 2019-04-08 22:38:31,951 - octoprint.plugin.core - INFO - Found 15 plugin(s) providing 15 mixin implementations, 17 hoo...
ZeroDivisionError
def index(): global _templates, _plugin_names, _plugin_vars preemptive_cache_enabled = settings().getBoolean(["devel", "cache", "preemptive"]) locale = g.locale.language if g.locale else "en" # helper to check if wizards are active def wizard_active(templates): return templates is not Non...
def index(): global _templates, _plugin_names, _plugin_vars preemptive_cache_enabled = settings().getBoolean(["devel", "cache", "preemptive"]) locale = g.locale.language if g.locale else "en" # helper to check if wizards are active def wizard_active(templates): return templates is not Non...
https://github.com/OctoPrint/OctoPrint/issues/3088
2019-03-28 11:47:25,543 - octoprint - ERROR - Exception on / [GET] Traceback (most recent call last): File "/home/pi/oprint/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1817, in wsgi_app response = self.full_dispatch_request() File "/home/pi/oprint/lib/python2.7/site-packages/Flask-0.10.1-py2....
UnicodeEncodeError
def _track_printjob_event(self, event, payload): if not self._settings.get_boolean(["events", "printjob"]): return unique_id = self._settings.get([b"unique_id"]) if not unique_id: return sha = hashlib.sha1() sha.update(payload.get("path")) sha.update(unique_id) track_event...
def _track_printjob_event(self, event, payload): if not self._settings.get_boolean(["events", "printjob"]): return unique_id = self._settings.get([b"unique_id"]) if not unique_id: return sha = hashlib.sha1() sha.update(payload.get("path")) sha.update(unique_id) track_event...
https://github.com/OctoPrint/OctoPrint/issues/3063
2019-02-25 14:42:31,564 - octoprint.startup - INFO - ****************************************************************************** 2019-02-25 14:42:31,566 - octoprint.startup - INFO - Starting OctoPrint 1.3.10 2019-02-25 14:42:31,567 - octoprint.startup - INFO - ********************************************************...
TypeError
def zeroconf_register(self, reg_type, name=None, port=None, txt_record=None): """ Registers a new service with Zeroconf/Bonjour/Avahi. :param reg_type: type of service to register, e.g. "_gntp._tcp" :param name: displayable name of the service, if not given defaults to the OctoPrint instance name :...
def zeroconf_register(self, reg_type, name=None, port=None, txt_record=None): """ Registers a new service with Zeroconf/Bonjour/Avahi. :param reg_type: type of service to register, e.g. "_gntp._tcp" :param name: displayable name of the service, if not given defaults to the OctoPrint instance name :...
https://github.com/OctoPrint/OctoPrint/issues/2852
2018-10-13 18:40:48,117 - octoprint.plugin - ERROR - Error while calling plugin discovery Traceback (most recent call last): File "/root/OctoPrint/venv/lib/python2.7/site-packages/OctoPrint-1.3.9-py2.7.egg/octoprint/plugin/__init__.py", line 225, in call_plugin result = getattr(plugin, method)(*args, **kwargs) File "/r...
BonjourError
def commands(cli_group, pass_octoprint_ctx, *args, **kwargs): import click import sys import requests.exceptions from octoprint.cli.client import create_client, client_options @click.command("check") @click.option("--force", is_flag=True, help="Ignore the cache for the update check") @click...
def commands(cli_group, pass_octoprint_ctx, *args, **kwargs): import click import sys import requests.exceptions from octoprint.cli.client import create_client, client_options @click.command("check") @click.option("--force", is_flag=True, help="Ignore the cache for the update check") @click...
https://github.com/OctoPrint/OctoPrint/issues/2712
pi@Prusa005:~ $ /home/pi/oprint/bin/octoprint plugins softwareupdate:update Initializing settings &amp; plugin subsystem... No handlers could be found for logger "octoprint.plugin.core" Traceback (most recent call last): File "/home/pi/oprint/bin/octoprint", line 9, in <module> load_entry_point('OctoPrint==1.3.8', 'con...
AssertionError
def update_command( force, apikey, host, port, httpuser, httppass, https, prefix, targets ): """ Apply updates. If any TARGETs are provided, only those components will be updated. \b Examples: - octoprint plugins softwareupdate:update This will update all components with a pending ...
def update_command( force, apikey, host, port, httpuser, httppass, https, prefix, targets ): """ Apply updates. If any TARGETs are provided, only those components will be updated. \b Examples: - octoprint plugins softwareupdate:update This will update all components with a pending ...
https://github.com/OctoPrint/OctoPrint/issues/2712
pi@Prusa005:~ $ /home/pi/oprint/bin/octoprint plugins softwareupdate:update Initializing settings &amp; plugin subsystem... No handlers could be found for logger "octoprint.plugin.core" Traceback (most recent call last): File "/home/pi/oprint/bin/octoprint", line 9, in <module> load_entry_point('OctoPrint==1.3.8', 'con...
AssertionError
def _saveSettings(data): logger = logging.getLogger(__name__) s = settings() # NOTE: Remember to adjust the docs of the data model on the Settings API if anything # is changed, added or removed here if "folder" in data.keys(): try: if "uploads" in data["folder"]: ...
def _saveSettings(data): logger = logging.getLogger(__name__) s = settings() # NOTE: Remember to adjust the docs of the data model on the Settings API if anything # is changed, added or removed here if "folder" in data.keys(): try: if "uploads" in data["folder"]: ...
https://github.com/OctoPrint/OctoPrint/issues/2780
2018-08-04 08:31:37,135 - octoprint - ERROR - Exception on /api/settings [POST] Traceback (most recent call last): File "/home/pi/oprint/local/lib/python2.7/site-packages/flask/app.py", line 1817, in wsgi_app response = self.full_dispatch_request() File "/home/pi/oprint/local/lib/python2.7/site-packages/flask/app.py", ...
TypeError
def set( self, path, value, force=False, defaults=None, config=None, preprocessors=None, error_on_path=False, *args, **kwargs, ): if not path: if error_on_path: raise NoSuchSettingsPath() return if self._mtime is not None and self.last_modifie...
def set( self, path, value, force=False, defaults=None, config=None, preprocessors=None, error_on_path=False, ): if not path: if error_on_path: raise NoSuchSettingsPath() return if self._mtime is not None and self.last_modified != self._mtime: ...
https://github.com/OctoPrint/OctoPrint/issues/2780
2018-08-04 08:31:37,135 - octoprint - ERROR - Exception on /api/settings [POST] Traceback (most recent call last): File "/home/pi/oprint/local/lib/python2.7/site-packages/flask/app.py", line 1817, in wsgi_app response = self.full_dispatch_request() File "/home/pi/oprint/local/lib/python2.7/site-packages/flask/app.py", ...
TypeError
def is_lan_address(address, additional_private=None): try: if address.lower().startswith("::ffff:") and "." in address: # ipv6 mapped ipv4 address, unmap address = address[len("::ffff:") :] ip = netaddr.IPAddress(address) if ip.is_private() or ip.is_loopback(): ...
def is_lan_address(address, additional_private=None): if address.lower().startswith("::ffff:") and "." in address: # ipv6 mapped ipv4 address, unmap address = address[len("::ffff:") :] ip = netaddr.IPAddress(address) if ip.is_private() or ip.is_loopback(): return True if additi...
https://github.com/OctoPrint/OctoPrint/issues/2897
Traceback (most recent call last): File "/home/pi/oprint/local/lib/python2.7/site-packages/flask/app.py", line 1817, in wsgi_app response = self.full_dispatch_request() File "/home/pi/oprint/local/lib/python2.7/site-packages/flask/app.py", line 1477, in full_dispatch_request rv = self.handle_user_exception(e) File "/ho...
TypeError
def to_ipnetwork(address): prefix = address["netmask"] if "/" in prefix: # v6 notation in netifaces output, e.g. "ffff:ffff:ffff:ffff::/64" _, prefix = prefix.split("/") addr = address["addr"] if "%" in addr: # interface comment in netifaces output, e.g. "fe80::457f:bbee:d579:10...
def to_ipnetwork(address): try: prefix = address["netmask"] if "/" in prefix: # v6 notation in netifaces output, e.g. "ffff:ffff:ffff:ffff::/64" _, prefix = prefix.split("/") addr = address["addr"] if "%" in addr: # interface comment in netifaces ...
https://github.com/OctoPrint/OctoPrint/issues/2897
Traceback (most recent call last): File "/home/pi/oprint/local/lib/python2.7/site-packages/flask/app.py", line 1817, in wsgi_app response = self.full_dispatch_request() File "/home/pi/oprint/local/lib/python2.7/site-packages/flask/app.py", line 1477, in full_dispatch_request rv = self.handle_user_exception(e) File "/ho...
TypeError
def reset(self): self.clear(completely=True)
def reset(self, interval=None): with self._mutex: if interval: self.interval = interval self.is_reset = True self._event.set() self._event.clear() if callable(self.on_reset): self.on_reset()
https://github.com/OctoPrint/OctoPrint/issues/2872
2018-11-05 15:45:10,454 - octoprint.server.heartbeat - INFO - Server heartbeat <3 2018-11-05 15:45:10,459 - octoprint.server - INFO - --- Log roll over detected --------------------------------------------------- 2018-11-05 15:45:10,460 - octoprint.server - INFO - OctoPrint 1.3.9 2018-11-05 15:45:10,464 - octoprint.plu...
RuntimeError
def _on_external_reset(self): # hold queue processing, clear queues and acknowledgements, reset line number and last lines with self._send_queue.blocked(): self._clear_to_send.reset() with self._command_queue.blocked(): self._command_queue.clear() self._send_queue.clear() ...
def _on_external_reset(self): # hold queue processing, clear queues and acknowledgements, reset line number and last lines with self._send_queue.blocked(): self._clear_to_send.clear(completely=True) with self._command_queue.blocked(): self._command_queue.clear() self._send_qu...
https://github.com/OctoPrint/OctoPrint/issues/2872
2018-11-05 15:45:10,454 - octoprint.server.heartbeat - INFO - Server heartbeat <3 2018-11-05 15:45:10,459 - octoprint.server - INFO - --- Log roll over detected --------------------------------------------------- 2018-11-05 15:45:10,460 - octoprint.server - INFO - OctoPrint 1.3.9 2018-11-05 15:45:10,464 - octoprint.plu...
RuntimeError
def _openSerial(self): def default(_, port, baudrate, read_timeout): if port is None or port == "AUTO": # no known port, try auto detection self._changeState(self.STATE_DETECT_SERIAL) port = self._detect_port() if port is None: error_text = "Fa...
def _openSerial(self): def default(_, port, baudrate, read_timeout): if port is None or port == "AUTO": # no known port, try auto detection self._changeState(self.STATE_DETECT_SERIAL) port = self._detect_port() if port is None: error_text = "Fa...
https://github.com/OctoPrint/OctoPrint/issues/2872
2018-11-05 15:45:10,454 - octoprint.server.heartbeat - INFO - Server heartbeat <3 2018-11-05 15:45:10,459 - octoprint.server - INFO - --- Log roll over detected --------------------------------------------------- 2018-11-05 15:45:10,460 - octoprint.server - INFO - OctoPrint 1.3.9 2018-11-05 15:45:10,464 - octoprint.plu...
RuntimeError
def render_unrendered_timelapse(name, gcode=None, postfix=None, fps=None): capture_dir = settings().getBaseFolder("timelapse_tmp") output_dir = settings().getBaseFolder("timelapse") if fps is None: fps = settings().getInt(["webcam", "timelapse", "fps"]) threads = settings().get(["webcam", "ffmp...
def render_unrendered_timelapse(name, gcode=None, postfix=None, fps=25): capture_dir = settings().getBaseFolder("timelapse_tmp") output_dir = settings().getBaseFolder("timelapse") threads = settings().get(["webcam", "ffmpegThreads"]) job = TimelapseRenderJob( capture_dir, output_dir, ...
https://github.com/OctoPrint/OctoPrint/issues/2621
2018-04-29 04:54:08,395 - octoprint.startup - INFO - ****************************************************************************** 2018-04-29 04:54:08,408 - octoprint.startup - INFO - Starting OctoPrint 1.3.8 2018-04-29 04:54:08,413 - octoprint.startup - INFO - *********************************************************...
ConnectionError
def __init__(self, fileManager, analysisQueue, printerProfileManager): from collections import deque self._logger = logging.getLogger(__name__) self._dict = ( frozendict if settings().getBoolean(["devel", "useFrozenDictForPrinterState"]) else dict ) self._analysisQueue = a...
def __init__(self, fileManager, analysisQueue, printerProfileManager): from collections import deque self._logger = logging.getLogger(__name__) self._dict = ( frozendict if settings().getBoolean(["devel", "useFrozenDictForPrinterState"]) else dict ) self._analysisQueue = a...
https://github.com/OctoPrint/OctoPrint/issues/2715
2018-07-05 05:17:16,231 - octoprint.util.comm - INFO - Externally triggered heatup detected 2018-07-05 05:18:34,517 - octoprint.util.comm - INFO - Printer seems to support the busy protocol, telling it to set the busy interval to our "communicationBusy" timeout - 1s = 2s 2018-07-05 05:19:27,589 - octoprint.util.comm - ...
AttributeError
def _create_estimator(self, job_type=None): if job_type is None: with self._selectedFileMutex: if self._selectedFile is None: return if self._selectedFile["sd"]: job_type = "sdcard" else: job_type = "local" self._estim...
def _create_estimator(self, job_type): self._estimator = self._estimator_factory(job_type)
https://github.com/OctoPrint/OctoPrint/issues/2715
2018-07-05 05:17:16,231 - octoprint.util.comm - INFO - Externally triggered heatup detected 2018-07-05 05:18:34,517 - octoprint.util.comm - INFO - Printer seems to support the busy protocol, telling it to set the busy interval to our "communicationBusy" timeout - 1s = 2s 2018-07-05 05:19:27,589 - octoprint.util.comm - ...
AttributeError
def start_print(self, pos=None, user=None, *args, **kwargs): """ Starts the currently loaded print job. Only starts if the printer is connected and operational, not currently printing and a printjob is loaded """ if self._comm is None or not self._comm.isOperational() or self._comm.isPrinting(): ...
def start_print(self, pos=None, user=None, *args, **kwargs): """ Starts the currently loaded print job. Only starts if the printer is connected and operational, not currently printing and a printjob is loaded """ if self._comm is None or not self._comm.isOperational() or self._comm.isPrinting(): ...
https://github.com/OctoPrint/OctoPrint/issues/2715
2018-07-05 05:17:16,231 - octoprint.util.comm - INFO - Externally triggered heatup detected 2018-07-05 05:18:34,517 - octoprint.util.comm - INFO - Printer seems to support the busy protocol, telling it to set the busy interval to our "communicationBusy" timeout - 1s = 2s 2018-07-05 05:19:27,589 - octoprint.util.comm - ...
AttributeError
def _updateProgressDataCallback(self): if self._comm is None: progress = None filepos = None printTime = None cleanedPrintTime = None else: progress = self._comm.getPrintProgress() filepos = self._comm.getPrintFilepos() printTime = self._comm.getPrintTime(...
def _updateProgressDataCallback(self): if self._comm is None: progress = None filepos = None printTime = None cleanedPrintTime = None else: progress = self._comm.getPrintProgress() filepos = self._comm.getPrintFilepos() printTime = self._comm.getPrintTime(...
https://github.com/OctoPrint/OctoPrint/issues/2715
2018-07-05 05:17:16,231 - octoprint.util.comm - INFO - Externally triggered heatup detected 2018-07-05 05:18:34,517 - octoprint.util.comm - INFO - Printer seems to support the busy protocol, telling it to set the busy interval to our "communicationBusy" timeout - 1s = 2s 2018-07-05 05:19:27,589 - octoprint.util.comm - ...
AttributeError
def on_comm_file_selected(self, full_path, size, sd, user=None): if full_path is not None: payload = self._payload_for_print_job_event( location=FileDestinations.SDCARD if sd else FileDestinations.LOCAL, print_job_file=full_path, ) eventManager().fire(Events.FILE_SELE...
def on_comm_file_selected(self, full_path, size, sd, user=None): if full_path is not None: payload = self._payload_for_print_job_event( location=FileDestinations.SDCARD if sd else FileDestinations.LOCAL, print_job_file=full_path, ) eventManager().fire(Events.FILE_SELE...
https://github.com/OctoPrint/OctoPrint/issues/2715
2018-07-05 05:17:16,231 - octoprint.util.comm - INFO - Externally triggered heatup detected 2018-07-05 05:18:34,517 - octoprint.util.comm - INFO - Printer seems to support the busy protocol, telling it to set the busy interval to our "communicationBusy" timeout - 1s = 2s 2018-07-05 05:19:27,589 - octoprint.util.comm - ...
AttributeError
def on_comm_print_job_started(self, suppress_script=False): self._stateMonitor.trigger_progress_update() payload = self._payload_for_print_job_event() if payload: eventManager().fire(Events.PRINT_STARTED, payload) if not suppress_script: self.script( "beforePrintS...
def on_comm_print_job_started(self, suppress_script=False): payload = self._payload_for_print_job_event() if payload: eventManager().fire(Events.PRINT_STARTED, payload) if not suppress_script: self.script( "beforePrintStarted", context=dict(event=paylo...
https://github.com/OctoPrint/OctoPrint/issues/2715
2018-07-05 05:17:16,231 - octoprint.util.comm - INFO - Externally triggered heatup detected 2018-07-05 05:18:34,517 - octoprint.util.comm - INFO - Printer seems to support the busy protocol, telling it to set the busy interval to our "communicationBusy" timeout - 1s = 2s 2018-07-05 05:19:27,589 - octoprint.util.comm - ...
AttributeError
def _work(self): try: while True: self._change_event.wait() now = time.time() delta = now - self._last_update additional_wait_time = self._interval - delta if additional_wait_time > 0: time.sleep(additional_wait_time) ...
def _work(self): while True: self._change_event.wait() now = time.time() delta = now - self._last_update additional_wait_time = self._interval - delta if additional_wait_time > 0: time.sleep(additional_wait_time) with self._state_lock: data =...
https://github.com/OctoPrint/OctoPrint/issues/2715
2018-07-05 05:17:16,231 - octoprint.util.comm - INFO - Externally triggered heatup detected 2018-07-05 05:18:34,517 - octoprint.util.comm - INFO - Printer seems to support the busy protocol, telling it to set the busy interval to our "communicationBusy" timeout - 1s = 2s 2018-07-05 05:19:27,589 - octoprint.util.comm - ...
AttributeError
def jobState(): currentData = printer.get_current_data() return jsonify( { "job": currentData["job"], "progress": currentData["progress"], "state": currentData["state"]["text"], } )
def jobState(): currentData = printer.get_current_data() return jsonify( { "job": currentData["job"], "progress": currentData["progress"], "state": currentData["state"]["text"], "printingUser": currentData["printingUser"], } )
https://github.com/OctoPrint/OctoPrint/issues/2617
Apr 30 08:31:25 raspberrypi2 octoprint[23585]: 2018-04-30 08:31:25,061 - tornado.access - ERROR - 500 GET /api/job (172.20.0.33) 24.02ms Apr 30 08:31:28 raspberrypi2 octoprint[23585]: 2018-04-30 08:31:28,054 - octoprint - ERROR - Exception on /api/job [GET] Apr 30 08:31:28 raspberrypi2 octoprint[23585]: Traceback (most...
KeyError
def start_print(self, pos=None, user=None, *args, **kwargs): """ Starts the currently loaded print job. Only starts if the printer is connected and operational, not currently printing and a printjob is loaded """ if self._comm is None or not self._comm.isOperational() or self._comm.isPrinting(): ...
def start_print(self, pos=None, user=None, *args, **kwargs): """ Starts the currently loaded print job. Only starts if the printer is connected and operational, not currently printing and a printjob is loaded """ if self._comm is None or not self._comm.isOperational() or self._comm.isPrinting(): ...
https://github.com/OctoPrint/OctoPrint/issues/2610
2018-04-25 15:38:03,495 - octoprint.startup - INFO - ****************************************************************************** 2018-04-25 15:38:03,496 - octoprint.startup - INFO - Starting OctoPrint 1.3.9.dev131+gbe4b98b9 2018-04-25 15:38:03,497 - octoprint.startup - INFO - Starting in SAFE MODE. Third party plugi...
AttributeError
def on_comm_file_selected(self, full_path, size, sd, user=None): if full_path is not None: payload = self._payload_for_print_job_event( location=FileDestinations.SDCARD if sd else FileDestinations.LOCAL, print_job_file=full_path, ) eventManager().fire(Events.FILE_SELE...
def on_comm_file_selected(self, full_path, size, sd, user=None): if full_path is not None: payload = self._payload_for_print_job_event( location=FileDestinations.SDCARD if sd else FileDestinations.LOCAL, print_job_file=full_path, ) eventManager().fire(Events.FILE_SELE...
https://github.com/OctoPrint/OctoPrint/issues/2610
2018-04-25 15:38:03,495 - octoprint.startup - INFO - ****************************************************************************** 2018-04-25 15:38:03,496 - octoprint.startup - INFO - Starting OctoPrint 1.3.9.dev131+gbe4b98b9 2018-04-25 15:38:03,497 - octoprint.startup - INFO - Starting in SAFE MODE. Third party plugi...
AttributeError
def on_comm_print_job_done(self): self._fileManager.delete_recovery_data() payload = self._payload_for_print_job_event() if payload: payload["time"] = self._comm.getPrintTime() self._updateProgressData( completion=1.0, filepos=payload["size"], printTime=p...
def on_comm_print_job_done(self): self._fileManager.delete_recovery_data() self._setPrintingUser(None) payload = self._payload_for_print_job_event() if payload: payload["time"] = self._comm.getPrintTime() self._updateProgressData( completion=1.0, filepos=payload[...
https://github.com/OctoPrint/OctoPrint/issues/2610
2018-04-25 15:38:03,495 - octoprint.startup - INFO - ****************************************************************************** 2018-04-25 15:38:03,496 - octoprint.startup - INFO - Starting OctoPrint 1.3.9.dev131+gbe4b98b9 2018-04-25 15:38:03,497 - octoprint.startup - INFO - Starting in SAFE MODE. Third party plugi...
AttributeError
def on_comm_print_job_failed(self): payload = self._payload_for_print_job_event() if payload: eventManager().fire(Events.PRINT_FAILED, payload)
def on_comm_print_job_failed(self): self._setPrintingUser(None) payload = self._payload_for_print_job_event() if payload: eventManager().fire(Events.PRINT_FAILED, payload)
https://github.com/OctoPrint/OctoPrint/issues/2610
2018-04-25 15:38:03,495 - octoprint.startup - INFO - ****************************************************************************** 2018-04-25 15:38:03,496 - octoprint.startup - INFO - Starting OctoPrint 1.3.9.dev131+gbe4b98b9 2018-04-25 15:38:03,497 - octoprint.startup - INFO - Starting in SAFE MODE. Third party plugi...
AttributeError
def on_comm_print_job_cancelled(self): self._setCurrentZ(None) self._updateProgressData() payload = self._payload_for_print_job_event( position=self._comm.cancel_position.as_dict() if self._comm and self._comm.cancel_position else None ) if payload: payload["time"] =...
def on_comm_print_job_cancelled(self): self._setCurrentZ(None) self._updateProgressData() self._setPrintingUser(None) payload = self._payload_for_print_job_event( position=self._comm.cancel_position.as_dict() if self._comm and self._comm.cancel_position else None ) if pa...
https://github.com/OctoPrint/OctoPrint/issues/2610
2018-04-25 15:38:03,495 - octoprint.startup - INFO - ****************************************************************************** 2018-04-25 15:38:03,496 - octoprint.startup - INFO - Starting OctoPrint 1.3.9.dev131+gbe4b98b9 2018-04-25 15:38:03,497 - octoprint.startup - INFO - Starting in SAFE MODE. Third party plugi...
AttributeError
def run(self): if not self._allow_root: self._check_for_root() if self._settings is None: self._settings = settings() if self._plugin_manager is None: self._plugin_manager = octoprint.plugin.plugin_manager() global app global babel global printer global printerProf...
def run(self): if not self._allow_root: self._check_for_root() if self._settings is None: self._settings = settings() if self._plugin_manager is None: self._plugin_manager = octoprint.plugin.plugin_manager() global app global babel global printer global printerProf...
https://github.com/OctoPrint/OctoPrint/issues/2311
2017-12-21 10:05:21,925 - octoprint.server - INFO - --- Log roll over detected --------------------------------------------------- 2017-12-21 10:05:21,926 - octoprint.server - INFO - OctoPrint 1.3.6 2017-12-21 10:05:21,927 - octoprint.plugin.core - INFO - 8 plugin(s) registered with the system: | Announcement Plugin (...
SerialException
def init_pluginsystem( settings, safe_mode=False, ignore_blacklist=True, connectivity_checker=None ): """Initializes the plugin manager based on the settings.""" import os logger = log.getLogger(__name__ + ".startup") plugin_folders = [ ( os.path.abspath( os.pa...
def init_pluginsystem( settings, safe_mode=False, ignore_blacklist=True, connectivity_checker=None ): """Initializes the plugin manager based on the settings.""" import os logger = log.getLogger(__name__ + ".startup") plugin_folders = [ ( os.path.abspath( os.pa...
https://github.com/OctoPrint/OctoPrint/issues/2442
2018-02-21 11:19:44,501 - octoprint.server - INFO - --- Log roll over detected --------------------------------------------------- 2018-02-21 11:19:44,502 - octoprint.server - INFO - OctoPrint 1.3.6 2018-02-21 11:19:44,504 - octoprint.plugin.core - INFO - 13 plugin(s) registered with the system: | Action Commands (0.1...
ValueError