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 validator(phase, plugin_info):
if phase in ("before_import", "before_load", "before_enable"):
setattr(plugin_info, "safe_mode_victim", not plugin_info.bundled)
if not plugin_info.bundled:
return False
return True
| def validator(phase, plugin_info):
if phase == "after_load":
setattr(plugin_info, "safe_mode_victim", not plugin_info.bundled)
setattr(plugin_info, "safe_mode_enabled", False)
elif phase == "before_enable":
if not plugin_info.bundled:
setattr(plugin_info, "safe_mode_enabled",... | 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 |
def get_plugin_blacklist(settings, connectivity_checker=None):
import requests
import os
import time
import yaml
from octoprint.util import bom_aware_open
from octoprint.util.version import is_octoprint_compatible
logger = log.getLogger(__name__ + ".startup")
if connectivity_checker i... | def get_plugin_blacklist(settings, connectivity_checker=None):
import requests
import os
import time
import yaml
from octoprint.util import bom_aware_open
from octoprint.util.version import is_octoprint_compatible
logger = log.getLogger(__name__ + ".startup")
if connectivity_checker i... | 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 |
def process_blacklist(entries):
result = []
if not isinstance(entries, list):
return result
for entry in entries:
if not "plugin" in entry:
continue
if "octoversions" in entry and not is_octoprint_compatible(
*entry["octoversions"]
):
co... | def process_blacklist(entries):
result = []
if not isinstance(entries, list):
return result
for entry in entries:
if not "plugin" in entry:
continue
if "octoversions" in entry and not is_octoprint_compatible(
*entry["octoversions"]
):
co... | 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 |
def __init__(
self,
key,
location,
instance,
name=None,
version=None,
description=None,
author=None,
url=None,
license=None,
):
self.key = key
self.location = location
self.instance = instance
self.origin = None
self.enabled = True
self.blacklisted = False... | def __init__(
self,
key,
location,
instance,
name=None,
version=None,
description=None,
author=None,
url=None,
license=None,
):
self.key = key
self.location = location
self.instance = instance
self.origin = None
self.enabled = True
self.blacklisted = False... | 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 |
def validate(self, phase, additional_validators=None):
result = True
if phase == "before_import":
result = not self.forced_disabled and not self.blacklisted and result
elif phase == "before_load":
# if the plugin still uses __plugin_init__, log a deprecation warning and move it to __plugin... | def validate(self, phase, additional_validators=None):
result = True
if phase == "before_load":
# if the plugin still uses __plugin_init__, log a deprecation warning and move it to __plugin_load__
if hasattr(self.instance, self.__class__.attr_init):
if not hasattr(self.instance, sel... | 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 |
def _find_plugins_from_folders(self, folders, existing, ignored_uninstalled=True):
result = OrderedDict()
for folder in folders:
try:
flagged_readonly = False
if isinstance(folder, (list, tuple)):
if len(folder) == 2:
folder, flagged_readonly ... | def _find_plugins_from_folders(self, folders, existing, ignored_uninstalled=True):
result = OrderedDict()
for folder in folders:
try:
flagged_readonly = False
if isinstance(folder, (list, tuple)):
if len(folder) == 2:
folder, flagged_readonly ... | 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 |
def _find_plugins_from_entry_points(self, groups, existing, ignore_uninstalled=True):
result = OrderedDict()
# let's make sure we have a current working set ...
working_set = pkg_resources.WorkingSet()
# ... including the user's site packages
import site
import sys
if site.ENABLE_USER_SIT... | def _find_plugins_from_entry_points(self, groups, existing, ignore_uninstalled=True):
result = OrderedDict()
# let's make sure we have a current working set ...
working_set = pkg_resources.WorkingSet()
# ... including the user's site packages
import site
import sys
if site.ENABLE_USER_SIT... | 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 |
def _import_plugin_from_module(
self,
key,
folder=None,
module_name=None,
name=None,
version=None,
summary=None,
author=None,
url=None,
license=None,
bundled=False,
):
# TODO error handling
try:
if folder:
module = imp.find_module(key, [folder])
... | def _import_plugin_from_module(
self,
key,
folder=None,
module_name=None,
name=None,
version=None,
summary=None,
author=None,
url=None,
license=None,
):
# TODO error handling
try:
if folder:
module = imp.find_module(key, [folder])
elif module_n... | 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 |
def _import_plugin(
self,
key,
f,
filename,
description,
name=None,
version=None,
summary=None,
author=None,
url=None,
license=None,
bundled=False,
):
try:
instance = imp.load_module(key, f, filename, description)
plugin = PluginInfo(
key,
... | def _import_plugin(
self,
key,
f,
filename,
description,
name=None,
version=None,
summary=None,
author=None,
url=None,
license=None,
):
try:
instance = imp.load_module(key, f, filename, description)
return PluginInfo(
key,
filename,... | 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 |
def reload_plugins(
self, startup=False, initialize_implementations=True, force_reload=None
):
self.logger.info(
"Loading plugins from {folders} and installed plugin packages...".format(
folders=", ".join(
map(
lambda x: x[0] if isinstance(x, tuple) else s... | def reload_plugins(
self, startup=False, initialize_implementations=True, force_reload=None
):
self.logger.info(
"Loading plugins from {folders} and installed plugin packages...".format(
folders=", ".join(
map(
lambda x: x[0] if isinstance(x, tuple) else s... | 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 |
def _list_folder(self, path, base="", entry_filter=None, recursive=True, **kwargs):
if entry_filter is None:
entry_filter = kwargs.get("filter", None)
metadata = self._get_metadata(path)
if not metadata:
metadata = dict()
metadata_dirty = False
result = dict()
for entry in scan... | def _list_folder(self, path, base="", entry_filter=None, recursive=True, **kwargs):
if entry_filter is None:
entry_filter = kwargs.get("filter", None)
metadata = self._get_metadata(path)
if not metadata:
metadata = dict()
metadata_dirty = False
result = dict()
for entry in scan... | https://github.com/OctoPrint/OctoPrint/issues/2294 | 2017-12-16 14:37:34,500 - octoprint - ERROR - Exception on /api/files [GET]
Traceback (most recent call last):
File "c:\OctoPrint\venv\lib\site-packages\flask-0.10.1-py2.7.egg\flask\app.py", line 1817, in wsgi_app
response = self.full_dispatch_request()
File "c:\OctoPrint\venv\lib\site-packages\flask-0.10.1-py2.7.egg\f... | IOError |
def readline(self, terminator=serial.LF):
termlen = len(terminator)
data = self._buffered
timeout = serial.Timeout(self._timeout)
while True:
# make sure we always read everything that is waiting
data += bytearray(
self.read(self.inWaiting())
) # TODO 1.3.8 migrate ... | def readline(self, terminator=serial.LF):
termlen = len(terminator)
data = self._buffered
timeout = serial.Timeout(self._timeout)
while True:
# make sure we always read everything that is waiting
data += bytearray(self.read(self.in_waiting))
# check for terminator, if it's ther... | https://github.com/OctoPrint/OctoPrint/issues/2468 | 2018-03-08 16:49:29,420 - octoprint.server - INFO - --- Log roll over detected ---------------------------------------------------
2018-03-08 16:49:29,421 - octoprint.server - INFO - OctoPrint 1.3.6
2018-03-08 16:49:29,424 - octoprint.plugin.core - INFO - 19 plugin(s) registered with the system:
| Announcement Plugin ... | AttributeError |
def __init__(self, duration):
"""Initialize a timeout with given duration"""
self.is_infinite = duration is None
self.is_non_blocking = duration == 0
self.duration = duration
if duration is not None:
self.target_time = monotonic.monotonic() + duration
else:
self.target_time = Non... | def __init__(self, path, target):
self.finished = threading.Event()
self.finished.clear()
self.comm = None
self.error = False
self.started = False
self._path = path
self._target = target
self._state = None
| https://github.com/OctoPrint/OctoPrint/issues/2468 | 2018-03-08 16:49:29,420 - octoprint.server - INFO - --- Log roll over detected ---------------------------------------------------
2018-03-08 16:49:29,421 - octoprint.server - INFO - OctoPrint 1.3.6
2018-03-08 16:49:29,424 - octoprint.plugin.core - INFO - 19 plugin(s) registered with the system:
| Announcement Plugin ... | AttributeError |
def _process_command_phase(self, phase, command, command_type=None, gcode=None):
if (self.isStreaming() and self.isPrinting()) or phase not in (
"queuing",
"queued",
"sending",
"sent",
):
return command, command_type, gcode
if gcode is None:
gcode = gcode_com... | def _process_command_phase(self, phase, command, command_type=None, gcode=None):
if self.isStreaming() or phase not in ("queuing", "queued", "sending", "sent"):
return command, command_type, gcode
if gcode is None:
gcode = gcode_command_for_cmd(command)
# send it through the phase specific... | https://github.com/OctoPrint/OctoPrint/issues/1882 | 2017-04-21 15:27:24,022 - octoprint.server - INFO - --- Log roll over detected ---------------------------------------------------
2017-04-21 15:27:24,022 - octoprint.server - INFO - OctoPrint 1.3.2 (master branch)
2017-04-21 15:27:24,024 - octoprint.plugin.core - INFO - 16 plugin(s) registered with the system:
| Anno... | SerialException |
def _gcode_M110_sending(self, cmd, cmd_type=None):
newLineNumber = 0
match = regexes_parameters["intN"].search(cmd)
if match:
try:
newLineNumber = int(match.group("value"))
except:
pass
with self._line_mutex:
self._logger.info(
"M110 detected,... | def _gcode_M110_sending(self, cmd, cmd_type=None):
newLineNumber = None
match = regexes_parameters["intN"].search(cmd)
if match:
try:
newLineNumber = int(match.group("value"))
except:
pass
else:
newLineNumber = 0
with self._line_mutex:
# send ... | https://github.com/OctoPrint/OctoPrint/issues/1882 | 2017-04-21 15:27:24,022 - octoprint.server - INFO - --- Log roll over detected ---------------------------------------------------
2017-04-21 15:27:24,022 - octoprint.server - INFO - OctoPrint 1.3.2 (master branch)
2017-04-21 15:27:24,024 - octoprint.plugin.core - INFO - 16 plugin(s) registered with the system:
| Anno... | SerialException |
def uploadGcodeFile(target):
input_name = "file"
input_upload_name = (
input_name + "." + settings().get(["server", "uploads", "nameSuffix"])
)
input_upload_path = (
input_name + "." + settings().get(["server", "uploads", "pathSuffix"])
)
if input_upload_name in request.values an... | def uploadGcodeFile(target):
input_name = "file"
input_upload_name = (
input_name + "." + settings().get(["server", "uploads", "nameSuffix"])
)
input_upload_path = (
input_name + "." + settings().get(["server", "uploads", "pathSuffix"])
)
if input_upload_name in request.values an... | https://github.com/OctoPrint/OctoPrint/issues/1760 | 2017-02-07 09:49:06,404 - octoprint.server.util.sockjs - INFO - New connection from client: 192.168.178.22
2017-02-07 09:49:11,193 - octoprint.plugins.cura - INFO - Path to CuraEngine has not been configured yet or does not exist (currently set to '/usr/bin/CuraEngine'), Cura will not be selectable for slicing
2017-02-... | OSError |
def selectAndOrPrint(filename, absFilename, destination):
"""
Callback for when the file is ready to be selected and optionally printed. For SD file uploads this is only
the case after they have finished streaming to the printer, which is why this callback is also used
for the corresponding call to addS... | def selectAndOrPrint(filename, absFilename, destination):
"""
Callback for when the file is ready to be selected and optionally printed. For SD file uploads this is only
the case after they have finished streaming to the printer, which is why this callback is also used
for the corresponding call to addS... | https://github.com/OctoPrint/OctoPrint/issues/1760 | 2017-02-07 09:49:06,404 - octoprint.server.util.sockjs - INFO - New connection from client: 192.168.178.22
2017-02-07 09:49:11,193 - octoprint.plugins.cura - INFO - Path to CuraEngine has not been configured yet or does not exist (currently set to '/usr/bin/CuraEngine'), Cura will not be selectable for slicing
2017-02-... | OSError |
def _upload(self, path):
try:
file_wrapper = octoprint.filemanager.util.DiskFileWrapper(
os.path.basename(path), path
)
# determine future filename of file to be uploaded, abort if it can't be uploaded
try:
futurePath, futureFilename = self._file_manager.sani... | def _upload(self, path):
try:
file_wrapper = octoprint.filemanager.util.DiskFileWrapper(
os.path.basename(path), path
)
# determine current job
currentFilename = None
currentOrigin = None
currentJob = self._printer.get_current_job()
if currentJob ... | https://github.com/OctoPrint/OctoPrint/issues/1760 | 2017-02-07 09:49:06,404 - octoprint.server.util.sockjs - INFO - New connection from client: 192.168.178.22
2017-02-07 09:49:11,193 - octoprint.plugins.cura - INFO - Path to CuraEngine has not been configured yet or does not exist (currently set to '/usr/bin/CuraEngine'), Cura will not be selectable for slicing
2017-02-... | OSError |
def on_created(self, event):
thread = threading.Thread(target=self._repeatedly_check, args=(event.src_path,))
thread.daemon = True
thread.start()
| def on_created(self, event):
self._upload(event.src_path)
| https://github.com/OctoPrint/OctoPrint/issues/1760 | 2017-02-07 09:49:06,404 - octoprint.server.util.sockjs - INFO - New connection from client: 192.168.178.22
2017-02-07 09:49:11,193 - octoprint.plugins.cura - INFO - Path to CuraEngine has not been configured yet or does not exist (currently set to '/usr/bin/CuraEngine'), Cura will not be selectable for slicing
2017-02-... | OSError |
def _repeatedly_check(self, path, interval=1, stable=5):
last_size = os.stat(path).st_size
countdown = stable
while True:
new_size = os.stat(path).st_size
if new_size == last_size:
self._logger.debug(
"File at {} is no longer growing, counting down: {}".format(
... | def _repeatedly_check(self, path, interval=1, stable=5):
last_size = os.stat(path).st_size
countdown = stable
while True:
new_size = os.stat(path).st_size
if new_size == last_size:
self._logger.debug(
"File at {} is no longer growing, counting down: {}".format(
... | https://github.com/OctoPrint/OctoPrint/issues/1760 | 2017-02-07 09:49:06,404 - octoprint.server.util.sockjs - INFO - New connection from client: 192.168.178.22
2017-02-07 09:49:11,193 - octoprint.plugins.cura - INFO - Path to CuraEngine has not been configured yet or does not exist (currently set to '/usr/bin/CuraEngine'), Cura will not be selectable for slicing
2017-02-... | OSError |
def init_logging(
settings,
use_logging_file=True,
logging_file=None,
default_config=None,
debug=False,
verbosity=0,
uncaught_logger=None,
uncaught_handler=None,
):
"""Sets up logging."""
import os
from octoprint.util import dict_merge
# default logging configuration
... | def init_logging(
settings,
use_logging_file=True,
logging_file=None,
default_config=None,
debug=False,
verbosity=0,
uncaught_logger=None,
uncaught_handler=None,
):
"""Sets up logging."""
import os
from octoprint.util import dict_merge
# default logging configuration
... | https://github.com/OctoPrint/OctoPrint/issues/1560 | Traceback (most recent call last):
File "/home/pi/oprint/bin/octoprint", line 9, in <module>
load_entry_point('OctoPrint==1.2.16', 'console_scripts', 'octoprint')()
File "/home/pi/oprint/local/lib/python2.7/site-packages/OctoPrint-1.2.16-py2.7.egg/octoprint/__init__.py", line 94, in main
octoprint.run()
F... | TypeError |
def __call__(self, environ):
def retrieve_header(header_type):
candidates = getattr(self, "_headers_" + header_type, [])
fallback = getattr(self, "_fallback_" + header_type, None)
for candidate in candidates:
value = environ.get(candidate, None)
if value is not None:... | def __call__(self, environ):
def retrieve_header(header_type):
candidates = getattr(self, "_headers_" + header_type, [])
fallback = getattr(self, "_fallback_" + header_type, None)
for candidate in candidates:
value = environ.get(candidate, None)
if value is not None:... | https://github.com/OctoPrint/OctoPrint/issues/1571 | 2016-11-02 00:17:16,691 - octoprint.plugins.softwareupdate - INFO - Loaded version cache from disk
2016-11-02 00:17:19,844 - octoprint.util.pip - INFO - Found pip at /home/pi/oprint/bin/pip, version is 8.1.1
2016-11-02 00:17:20,100 - octoprint.plugin.core - INFO - Initialized 12 plugin implementation(s)
2016-11-02 00:1... | CookieError |
def host_to_server_and_port(host, scheme):
if host is None:
return None, None
default_port = "443" if scheme == "https" else "80"
host = host.strip()
if ":" in host:
# we might have an ipv6 address here, or a port, or both
if host[0] == "[":
# that looks like an ip... | def host_to_server_and_port(host, scheme):
if host is None:
return None, None
if ":" in host:
server, port = host.split(":", 1)
else:
server = host
port = "443" if scheme == "https" else "80"
return server, port
| https://github.com/OctoPrint/OctoPrint/issues/1571 | 2016-11-02 00:17:16,691 - octoprint.plugins.softwareupdate - INFO - Loaded version cache from disk
2016-11-02 00:17:19,844 - octoprint.util.pip - INFO - Found pip at /home/pi/oprint/bin/pip, version is 8.1.1
2016-11-02 00:17:20,100 - octoprint.plugin.core - INFO - Initialized 12 plugin implementation(s)
2016-11-02 00:1... | CookieError |
def _estimatePrintTimeLeft(
self,
progress,
printTime,
cleanedPrintTime,
statisticalTotalPrintTime,
statisticalTotalPrintTimeType,
):
"""
Tries to estimate the print time left for the print job
This is somewhat horrible since accurate print time estimation is pretty much impossible ... | def _estimatePrintTimeLeft(
self,
progress,
printTime,
cleanedPrintTime,
statisticalTotalPrintTime,
statisticalTotalPrintTimeType,
):
"""
Tries to estimate the print time left for the print job
This is somewhat horrible since accurate print time estimation is pretty much impossible ... | https://github.com/OctoPrint/OctoPrint/issues/1428 | 2016-07-29 19:23:16,406 - octoprint.server.util.sockjs - INFO - New connection from client: 192.168.1.1
2016-07-29 19:23:16,410 - octoprint.server.util.sockjs - WARNING - Could not send message to client 192.168.1.1: 'utf8' codec can't decode byte 0x87 in position 1: invalid start byte
2016-07-29 19:23:16,562 - octopri... | ValueError |
def _on_part_start(self, name, content_type, filename=None):
"""
Called for new parts in the multipart stream. If ``filename`` is given creates new ``file`` part (which leads
to storage of the data as temporary file on disk), if not creates a new ``data`` part (which stores
incoming data in memory).
... | def _on_part_start(self, name, content_type, filename=None):
"""
Called for new parts in the multipart stream. If ``filename`` is given creates new ``file`` part (which leads
to storage of the data as temporary file on disk), if not creates a new ``data`` part (which stores
incoming data in memory).
... | https://github.com/OctoPrint/OctoPrint/issues/1531 | 2016-10-04 17:22:29,805 - octoprint - ERROR - Exception on /api/files/local [POST]
Traceback (most recent call last):
File "/home/pi/oprint/local/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/local/lib/python2.7/sit... | AttributeError |
def environ(request, body=None):
"""
Converts a ``tornado.httputil.HTTPServerRequest`` to a WSGI environment.
An optional ``body`` to be used for populating ``wsgi.input`` can be supplied (either a string or a stream). If not
supplied, ``request.body`` will be wrapped into a ``io.BytesIO`` stream and u... | def environ(request, body=None):
"""
Converts a ``tornado.httputil.HTTPServerRequest`` to a WSGI environment.
An optional ``body`` to be used for populating ``wsgi.input`` can be supplied (either a string or a stream). If not
supplied, ``request.body`` will be wrapped into a ``io.BytesIO`` stream and u... | https://github.com/OctoPrint/OctoPrint/issues/1531 | 2016-10-04 17:22:29,805 - octoprint - ERROR - Exception on /api/files/local [POST]
Traceback (most recent call last):
File "/home/pi/oprint/local/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/local/lib/python2.7/sit... | AttributeError |
def on_comm_state_change(self, state):
"""
Callback method for the comm object, called if the connection state changes.
"""
oldState = self._state
state_string = None
if self._comm is not None:
state_string = self._comm.getStateString()
# forward relevant state changes to gcode man... | def on_comm_state_change(self, state):
"""
Callback method for the comm object, called if the connection state changes.
"""
oldState = self._state
if self._comm is not None:
state_string = self._comm.getStateString()
# forward relevant state changes to gcode manager
if oldState == ... | https://github.com/OctoPrint/OctoPrint/issues/1425 | 2016-07-27 22:37:37,999 - octoprint.server - INFO - Starting OctoPrint 1.2.13 (master branch)
2016-07-27 22:37:38,006 - octoprint.plugin.core - INFO - Loading plugins from /home/________/.octoprint/plugins, /home/________/octopi/OctoPrint/venv/lib/python2.7/site-packages/OctoPrint-1.2.13-py2.7.egg/octoprint/plugins and... | AttributeError |
def deleteTimelapse(filename):
if util.is_allowed_file(filename, ["mpg", "mpeg", "mp4"]):
timelapse_folder = settings().getBaseFolder("timelapse")
full_path = os.path.realpath(os.path.join(timelapse_folder, filename))
if full_path.startswith(timelapse_folder) and os.path.exists(full_path):
... | def deleteTimelapse(filename):
if util.is_allowed_file(filename, ["mpg"]):
timelapse_folder = settings().getBaseFolder("timelapse")
full_path = os.path.realpath(os.path.join(timelapse_folder, filename))
if full_path.startswith(timelapse_folder) and os.path.exists(full_path):
os.r... | https://github.com/OctoPrint/OctoPrint/issues/1320 | 2016-04-28 23:25:38,056 - octoprint.server.util.sockjs - INFO - New connection from client: 10.0.0.110
2016-04-28 23:25:38,724 - py.warnings - WARNING - /home/pi/octoprint/venv/local/lib/python2.7/site-packages/requests-2.7.0-py2.7.egg/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContex... | OSError |
def _create_render_start_handler(name, gcode=None):
def f(movie):
global _job_lock
with _job_lock:
global current_render_job
event_payload = {
"gcode": gcode if gcode is not None else "unknown",
"movie": movie,
"movie_basename"... | def _create_render_start_handler(name, gcode=None):
def f(movie):
global _job_lock
with _job_lock:
global current_render_job
event_payload = {
"gcode": gcode if gcode is not None else "unknown",
"movie": movie,
"movie_basename"... | https://github.com/OctoPrint/OctoPrint/issues/1320 | 2016-04-28 23:25:38,056 - octoprint.server.util.sockjs - INFO - New connection from client: 10.0.0.110
2016-04-28 23:25:38,724 - py.warnings - WARNING - /home/pi/octoprint/venv/local/lib/python2.7/site-packages/requests-2.7.0-py2.7.egg/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContex... | OSError |
def f(movie):
global _job_lock
with _job_lock:
global current_render_job
event_payload = {
"gcode": gcode if gcode is not None else "unknown",
"movie": movie,
"movie_basename": os.path.basename(movie),
"movie_prefix": name,
}
curre... | def f(movie):
global _job_lock
with _job_lock:
global current_render_job
event_payload = {
"gcode": gcode if gcode is not None else "unknown",
"movie": movie,
"movie_basename": os.path.basename(movie),
}
current_render_job = dict(prefix=name)
... | https://github.com/OctoPrint/OctoPrint/issues/1320 | 2016-04-28 23:25:38,056 - octoprint.server.util.sockjs - INFO - New connection from client: 10.0.0.110
2016-04-28 23:25:38,724 - py.warnings - WARNING - /home/pi/octoprint/venv/local/lib/python2.7/site-packages/requests-2.7.0-py2.7.egg/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContex... | OSError |
def _create_render_success_handler(name, gcode=None):
def f(movie):
delete_unrendered_timelapse(name)
event_payload = {
"gcode": gcode if gcode is not None else "unknown",
"movie": movie,
"movie_basename": os.path.basename(movie),
"movie_prefix": name,... | def _create_render_success_handler(name, gcode=None):
def f(movie):
delete_unrendered_timelapse(name)
event_payload = {
"gcode": gcode if gcode is not None else "unknown",
"movie": movie,
"movie_basename": os.path.basename(movie),
}
eventManager().... | https://github.com/OctoPrint/OctoPrint/issues/1320 | 2016-04-28 23:25:38,056 - octoprint.server.util.sockjs - INFO - New connection from client: 10.0.0.110
2016-04-28 23:25:38,724 - py.warnings - WARNING - /home/pi/octoprint/venv/local/lib/python2.7/site-packages/requests-2.7.0-py2.7.egg/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContex... | OSError |
def f(movie):
delete_unrendered_timelapse(name)
event_payload = {
"gcode": gcode if gcode is not None else "unknown",
"movie": movie,
"movie_basename": os.path.basename(movie),
"movie_prefix": name,
}
eventManager().fire(Events.MOVIE_DONE, event_payload)
| def f(movie):
delete_unrendered_timelapse(name)
event_payload = {
"gcode": gcode if gcode is not None else "unknown",
"movie": movie,
"movie_basename": os.path.basename(movie),
}
eventManager().fire(Events.MOVIE_DONE, event_payload)
| https://github.com/OctoPrint/OctoPrint/issues/1320 | 2016-04-28 23:25:38,056 - octoprint.server.util.sockjs - INFO - New connection from client: 10.0.0.110
2016-04-28 23:25:38,724 - py.warnings - WARNING - /home/pi/octoprint/venv/local/lib/python2.7/site-packages/requests-2.7.0-py2.7.egg/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContex... | OSError |
def _create_render_fail_handler(name, gcode=None):
def f(movie, returncode=255, stdout="Unknown error", stderr="Unknown error"):
event_payload = {
"gcode": gcode if gcode is not None else "unknown",
"movie": movie,
"movie_basename": os.path.basename(movie),
"m... | def _create_render_fail_handler(name, gcode=None):
def f(movie, returncode=255, stdout="Unknown error", stderr="Unknown error"):
event_payload = {
"gcode": gcode if gcode is not None else "unknown",
"movie": movie,
"movie_basename": os.path.basename(movie),
}
... | https://github.com/OctoPrint/OctoPrint/issues/1320 | 2016-04-28 23:25:38,056 - octoprint.server.util.sockjs - INFO - New connection from client: 10.0.0.110
2016-04-28 23:25:38,724 - py.warnings - WARNING - /home/pi/octoprint/venv/local/lib/python2.7/site-packages/requests-2.7.0-py2.7.egg/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContex... | OSError |
def f(movie, returncode=255, stdout="Unknown error", stderr="Unknown error"):
event_payload = {
"gcode": gcode if gcode is not None else "unknown",
"movie": movie,
"movie_basename": os.path.basename(movie),
"movie_prefix": name,
}
payload = dict(event_payload)
payload.upd... | def f(movie, returncode=255, stdout="Unknown error", stderr="Unknown error"):
event_payload = {
"gcode": gcode if gcode is not None else "unknown",
"movie": movie,
"movie_basename": os.path.basename(movie),
}
payload = dict(event_payload)
payload.update(dict(returncode=returncode... | https://github.com/OctoPrint/OctoPrint/issues/1320 | 2016-04-28 23:25:38,056 - octoprint.server.util.sockjs - INFO - New connection from client: 10.0.0.110
2016-04-28 23:25:38,724 - py.warnings - WARNING - /home/pi/octoprint/venv/local/lib/python2.7/site-packages/requests-2.7.0-py2.7.egg/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContex... | OSError |
def _create_render_always_handler(name, gcode=None):
def f(movie):
global current_render_job
global _job_lock
with _job_lock:
current_render_job = None
return f
| def _create_render_always_handler(name, gcode=None):
def f(movie):
global current_render_job
current_render_job = None
return f
| https://github.com/OctoPrint/OctoPrint/issues/1320 | 2016-04-28 23:25:38,056 - octoprint.server.util.sockjs - INFO - New connection from client: 10.0.0.110
2016-04-28 23:25:38,724 - py.warnings - WARNING - /home/pi/octoprint/venv/local/lib/python2.7/site-packages/requests-2.7.0-py2.7.egg/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContex... | OSError |
def f(movie):
global current_render_job
global _job_lock
with _job_lock:
current_render_job = None
| def f(movie):
global current_render_job
current_render_job = None
| https://github.com/OctoPrint/OctoPrint/issues/1320 | 2016-04-28 23:25:38,056 - octoprint.server.util.sockjs - INFO - New connection from client: 10.0.0.110
2016-04-28 23:25:38,724 - py.warnings - WARNING - /home/pi/octoprint/venv/local/lib/python2.7/site-packages/requests-2.7.0-py2.7.egg/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContex... | OSError |
def delete_unrendered_timelapse(name):
global _cleanup_lock
basedir = settings().getBaseFolder("timelapse_tmp")
with _cleanup_lock:
for filename in os.listdir(basedir):
try:
if fnmatch.fnmatch(filename, "{}*.jpg".format(name)):
os.remove(os.path.join(... | def delete_unrendered_timelapse(name):
basedir = settings().getBaseFolder("timelapse_tmp")
for filename in os.listdir(basedir):
try:
if fnmatch.fnmatch(filename, "{}*.jpg".format(name)):
os.remove(os.path.join(basedir, filename))
except:
logging.getLogger(... | https://github.com/OctoPrint/OctoPrint/issues/1326 | Enter file 2016-05-05 03:39:33,018 - octoprint.server - INFO - Starting OctoPrint 1.2.11 (master branch)
2016-05-05 03:39:33,038 - octoprint.plugin.core - INFO - Loading plugins from /home/pi/.octoprint/plugins, /home/pi/oprint/lib/python2.7/site-packages/OctoPrint-1.2.11-py2.7.egg/octoprint/plugins and installed plugi... | OSError |
def delete_old_unrendered_timelapses():
global _cleanup_lock
basedir = settings().getBaseFolder("timelapse_tmp")
clean_after_days = settings().getInt(["webcam", "cleanTmpAfterDays"])
cutoff = time.time() - clean_after_days * 24 * 60 * 60
prefixes_to_clean = []
with _cleanup_lock:
for ... | def delete_old_unrendered_timelapses():
basedir = settings().getBaseFolder("timelapse_tmp")
clean_after_days = settings().getInt(["webcam", "cleanTmpAfterDays"])
cutoff = time.time() - clean_after_days * 24 * 60 * 60
prefixes_to_clean = []
for filename in os.listdir(basedir):
try:
... | https://github.com/OctoPrint/OctoPrint/issues/1326 | Enter file 2016-05-05 03:39:33,018 - octoprint.server - INFO - Starting OctoPrint 1.2.11 (master branch)
2016-05-05 03:39:33,038 - octoprint.plugin.core - INFO - Loading plugins from /home/pi/.octoprint/plugins, /home/pi/oprint/lib/python2.7/site-packages/OctoPrint-1.2.11-py2.7.egg/octoprint/plugins and installed plugi... | OSError |
def _create_render_success_handler(name, gcode=None):
def f(movie):
delete_unrendered_timelapse(name)
event_payload = {
"gcode": gcode if gcode is not None else "unknown",
"movie": movie,
"movie_basename": os.path.basename(movie),
}
eventManager().... | def _create_render_success_handler(name, gcode=None):
def f(movie):
event_payload = {
"gcode": gcode if gcode is not None else "unknown",
"movie": movie,
"movie_basename": os.path.basename(movie),
}
eventManager().fire(Events.MOVIE_DONE, event_payload)
... | https://github.com/OctoPrint/OctoPrint/issues/1326 | Enter file 2016-05-05 03:39:33,018 - octoprint.server - INFO - Starting OctoPrint 1.2.11 (master branch)
2016-05-05 03:39:33,038 - octoprint.plugin.core - INFO - Loading plugins from /home/pi/.octoprint/plugins, /home/pi/oprint/lib/python2.7/site-packages/OctoPrint-1.2.11-py2.7.egg/octoprint/plugins and installed plugi... | OSError |
def f(movie):
delete_unrendered_timelapse(name)
event_payload = {
"gcode": gcode if gcode is not None else "unknown",
"movie": movie,
"movie_basename": os.path.basename(movie),
}
eventManager().fire(Events.MOVIE_DONE, event_payload)
| def f(movie):
event_payload = {
"gcode": gcode if gcode is not None else "unknown",
"movie": movie,
"movie_basename": os.path.basename(movie),
}
eventManager().fire(Events.MOVIE_DONE, event_payload)
delete_unrendered_timelapse(name)
| https://github.com/OctoPrint/OctoPrint/issues/1326 | Enter file 2016-05-05 03:39:33,018 - octoprint.server - INFO - Starting OctoPrint 1.2.11 (master branch)
2016-05-05 03:39:33,038 - octoprint.plugin.core - INFO - Loading plugins from /home/pi/.octoprint/plugins, /home/pi/oprint/lib/python2.7/site-packages/OctoPrint-1.2.11-py2.7.egg/octoprint/plugins and installed plugi... | OSError |
def interestingness(vis: Vis, ldf: LuxDataFrame) -> int:
"""
Compute the interestingness score of the vis.
The interestingness metric is dependent on the vis type.
Parameters
----------
vis : Vis
ldf : LuxDataFrame
Returns
-------
int
Interestingness Score
"""
... | def interestingness(vis: Vis, ldf: LuxDataFrame) -> int:
"""
Compute the interestingness score of the vis.
The interestingness metric is dependent on the vis type.
Parameters
----------
vis : Vis
ldf : LuxDataFrame
Returns
-------
int
Interestingness Score
"""
... | https://github.com/lux-org/lux/issues/189 | C:\ProgramData\Anaconda3\lib\site-packages\IPython\core\formatters.py:345: UserWarning:
Unexpected error in rendering Lux widget and recommendations. Falling back to Pandas display.
Please report the following issue on Github: https://github.com/lux-org/lux/issues
C:\ProgramData\Anaconda3\lib\site-packages\lux\core\fr... | KeyError |
def parse(intent: List[Union[Clause, str]]) -> List[Clause]:
"""
Given the string description from a list of input Clauses (intent),
assign the appropriate clause.attribute, clause.filter_op, and clause.value.
Parameters
----------
intent : List[Clause]
Underspecified list of lux.Cl... | def parse(intent: List[Union[Clause, str]]) -> List[Clause]:
"""
Given the string description from a list of input Clauses (intent),
assign the appropriate clause.attribute, clause.filter_op, and clause.value.
Parameters
----------
intent : List[Clause]
Underspecified list of lux.Cl... | https://github.com/lux-org/lux/issues/189 | C:\ProgramData\Anaconda3\lib\site-packages\IPython\core\formatters.py:345: UserWarning:
Unexpected error in rendering Lux widget and recommendations. Falling back to Pandas display.
Please report the following issue on Github: https://github.com/lux-org/lux/issues
C:\ProgramData\Anaconda3\lib\site-packages\lux\core\fr... | KeyError |
def __init__(self, intent, source=None, title="", score=0.0):
self._intent = intent # user's original intent to Vis
self._inferred_intent = (
intent # re-written, expanded version of user's original intent
)
self._source = source # original data attached to the Vis
self._vis_data = None ... | def __init__(self, intent, source=None, title="", score=0.0):
self._intent = intent # This is the user's original intent to Vis
self._inferred_intent = intent # This is the re-written, expanded version of user's original intent (include inferred vis info)
self._source = source # This is the original data... | https://github.com/lux-org/lux/issues/189 | C:\ProgramData\Anaconda3\lib\site-packages\IPython\core\formatters.py:345: UserWarning:
Unexpected error in rendering Lux widget and recommendations. Falling back to Pandas display.
Please report the following issue on Github: https://github.com/lux-org/lux/issues
C:\ProgramData\Anaconda3\lib\site-packages\lux\core\fr... | KeyError |
def __repr__(self):
all_clause = all([isinstance(unit, lux.Clause) for unit in self._inferred_intent])
if all_clause:
filter_intents = None
channels, additional_channels = [], []
for clause in self._inferred_intent:
if hasattr(clause, "value"):
if clause.value... | def __repr__(self):
if self._source is None:
return f"<Vis ({str(self._intent)}) mark: {self._mark}, score: {self.score} >"
filter_intents = None
channels, additional_channels = [], []
for clause in self._inferred_intent:
if hasattr(clause, "value"):
if clause.value != "":
... | https://github.com/lux-org/lux/issues/189 | C:\ProgramData\Anaconda3\lib\site-packages\IPython\core\formatters.py:345: UserWarning:
Unexpected error in rendering Lux widget and recommendations. Falling back to Pandas display.
Please report the following issue on Github: https://github.com/lux-org/lux/issues
C:\ProgramData\Anaconda3\lib\site-packages\lux\core\fr... | KeyError |
def update_library(self, show=None):
"""Handles updating the Emby Media Server host via HTTP API
Returns:
Returns True for no issue or False if there was an error
"""
if settings.USE_EMBY:
if not settings.EMBY_HOST:
logger.debug("EMBY: No host specified, check your setting... | def update_library(self, show=None):
"""Handles updating the Emby Media Server host via HTTP API
Returns:
Returns True for no issue or False if there was an error
"""
if settings.USE_EMBY:
if not settings.EMBY_HOST:
logger.debug("EMBY: No host specified, check your setting... | https://github.com/SickChill/SickChill/issues/6816 | 2020-09-29 11:18:39 DEBUG :: AUTO :: Failed doing webui request "sickchill/cache/images/268592_fanart_jpg": Traceback (most recent call last):
2020-09-29 11:18:37 WARNING :: WEBSERVER-HOME_0 :: EMBY: Warning: Could not contact Emby at https://emby.mydomain.fr/emby/Library/Series/Updated 404 Client Error: Not Found for ... | AttributeError |
def run(self):
"""Search for a show with a given name on all the indexers, in a specific language"""
results = []
lang_id = self.valid_languages[self.lang]
if self.name and not self.indexerid: # only name was given
search_results = sickchill.indexer.search_indexers_for_series_name(
... | def run(self):
"""Search for a show with a given name on all the indexers, in a specific language"""
results = []
lang_id = self.valid_languages[self.lang]
if self.name and not self.indexerid: # only name was given
search_results = sickchill.indexer.search_indexers_for_series_name(
... | https://github.com/SickChill/SickChill/issues/6791 | 2020-09-22 22:35:33 DEBUG :: WEBSERVER :: API :: 192.168.175.25 - gave correct API KEY. ACCESS GRANTED
2020-09-22 22:35:33 DEBUG :: WEBSERVER :: API :: all args: '()'
2020-09-22 22:35:33 DEBUG :: WEBSERVER :: API :: all kwargs: '{'cmd': 'sb.searchtvdb', 'lang': 'en', 'only_new': '0', 'name': 'game of thrones'}'
2020-09... | TypeError |
def _get_torrent_hash(result):
"""
Gets the torrent hash from either the magnet or torrent file content
params: :result: an instance of the searchResult class
"""
if result.url.startswith("magnet"):
result.hash = re.findall(r"urn:btih:([\w]{32,40})", result.url)[0]
if len(result.hash... | def _get_torrent_hash(result):
"""
Gets the torrent hash from either the magnet or torrent file content
params: :result: an instance of the searchResult class
"""
if result.url.startswith("magnet"):
result.hash = re.findall(r"urn:btih:([\w]{32,40})", result.url)[0]
if len(result.hash... | https://github.com/SickChill/SickChill/issues/6745 | AA AttributeError: module 'bencodepy' has no attribute 'DecodingError'
AA except bencodepy.DecodingError as e:
AA File "/opt/sickchill/sickchill/providers/torrent/TorrentProvider.py", line 109, in _verify_download
AA if self._verify_download(downloaded_filename):
AA File "/opt/sickchill/sickchill/providers/GenericProvi... | AttributeError |
def _parse_string(self, name, skip_scene_detection=False):
if not name:
return
matches = []
best_result = None
for cur_regex_num, cur_regex_name, cur_regex in self.compiled_regexes:
match = cur_regex.match(name)
if not match:
continue
result = ParseResult(... | def _parse_string(self, name, skip_scene_detection=False):
if not name:
return
matches = []
best_result = None
for cur_regex_num, cur_regex_name, cur_regex in self.compiled_regexes:
match = cur_regex.match(name)
if not match:
continue
result = ParseResult(... | https://github.com/SickChill/SickChill/issues/6745 | AA AttributeError: module 'bencodepy' has no attribute 'DecodingError'
AA except bencodepy.DecodingError as e:
AA File "/opt/sickchill/sickchill/providers/torrent/TorrentProvider.py", line 109, in _verify_download
AA if self._verify_download(downloaded_filename):
AA File "/opt/sickchill/sickchill/providers/GenericProvi... | AttributeError |
def validateRSS(self):
try:
if self.cookies:
success, status = self.add_cookies_from_ui()
if not success:
return False, status
# Access to a protected member of a client class
data = self.cache._get_rss_data()["entries"]
if not data:
... | def validateRSS(self):
try:
if self.cookies:
success, status = self.add_cookies_from_ui()
if not success:
return False, status
# Access to a protected member of a client class
data = self.cache._get_rss_data()["entries"]
if not data:
... | https://github.com/SickChill/SickChill/issues/6745 | AA AttributeError: module 'bencodepy' has no attribute 'DecodingError'
AA except bencodepy.DecodingError as e:
AA File "/opt/sickchill/sickchill/providers/torrent/TorrentProvider.py", line 109, in _verify_download
AA if self._verify_download(downloaded_filename):
AA File "/opt/sickchill/sickchill/providers/GenericProvi... | AttributeError |
def _verify_download(self, file_name):
try:
bencodepy.bread(file_name)
except bencodepy.BencodeDecodeError as e:
logger.debug("Failed to validate torrent file: {0}".format(str(e)))
logger.debug("Result is not a valid torrent file")
return False
return True
| def _verify_download(self, file_name):
try:
bencodepy.decode_from_file(file_name)
except bencodepy.DecodingError as e:
logger.debug("Failed to validate torrent file: {0}".format(str(e)))
logger.debug("Result is not a valid torrent file")
return False
return True
| https://github.com/SickChill/SickChill/issues/6745 | AA AttributeError: module 'bencodepy' has no attribute 'DecodingError'
AA except bencodepy.DecodingError as e:
AA File "/opt/sickchill/sickchill/providers/torrent/TorrentProvider.py", line 109, in _verify_download
AA if self._verify_download(downloaded_filename):
AA File "/opt/sickchill/sickchill/providers/GenericProvi... | AttributeError |
def search(self, name, language=None, exact=False, indexer_id=False):
"""
:param name: Show name to search for
:param language: Language of the show info we want
:param exact: Exact when adding existing, processed when adding new shows
:param indexer_id: Exact indexer id to get, either imdb or tvdb ... | def search(self, name, language=None, exact=False, indexer_id=False):
"""
:param name: Show name to search for
:param language: Language of the show info we want
:param exact: Exact when adding existing, processed when adding new shows
:param indexer_id: Exact indexer id to get, either imdb or tvdb ... | https://github.com/SickChill/SickChill/issues/6733 | View Log:
AA TypeError: argument of type 'NoneType' is not iterable
AA if 'outputType' in out_dict:
AA File "/opt/sickchill/sickchill/views/api/webapi.py", line 105, in get
AA result = method(*self.path_args, **self.path_kwargs)
AA File "/opt/sickchill/lib3/tornado/web.py", line 1701, in _execute
AA Traceback (most rec... | TypeError |
def __call__(self, target, *args, **kwargs):
@wraps(target)
def wrapper(*args, **kwargs):
try:
result = target(*args, **kwargs)
except self.catch as e:
if self.image_api and not kwargs.get("lang"):
if args[1].lang != "en":
logger.debug(... | def __call__(self, target, *args, **kwargs):
@wraps(target)
def wrapper(*args, **kwargs):
try:
result = target(*args, **kwargs)
except self.catch as e:
if self.image_api and not kwargs.get("lang"):
if args[1].lang != "en":
logger.debug(... | https://github.com/SickChill/SickChill/issues/6733 | View Log:
AA TypeError: argument of type 'NoneType' is not iterable
AA if 'outputType' in out_dict:
AA File "/opt/sickchill/sickchill/views/api/webapi.py", line 105, in get
AA result = method(*self.path_args, **self.path_kwargs)
AA File "/opt/sickchill/lib3/tornado/web.py", line 1701, in _execute
AA Traceback (most rec... | TypeError |
def wrapper(*args, **kwargs):
try:
result = target(*args, **kwargs)
except self.catch as e:
if self.image_api and not kwargs.get("lang"):
if args[1].lang != "en":
logger.debug(
"Could not find the image on the indexer, re-trying to find it in engli... | def wrapper(*args, **kwargs):
try:
result = target(*args, **kwargs)
except self.catch as e:
if self.image_api and not kwargs.get("lang"):
if args[1].lang != "en":
logger.debug(
"Could not find the image on the indexer, re-trying to find it in engli... | https://github.com/SickChill/SickChill/issues/6733 | View Log:
AA TypeError: argument of type 'NoneType' is not iterable
AA if 'outputType' in out_dict:
AA File "/opt/sickchill/sickchill/views/api/webapi.py", line 105, in get
AA result = method(*self.path_args, **self.path_kwargs)
AA File "/opt/sickchill/lib3/tornado/web.py", line 1701, in _execute
AA Traceback (most rec... | TypeError |
def run(self):
"""Search for a show with a given name on all the indexers, in a specific language"""
results = []
lang_id = self.valid_languages[self.lang]
if self.name and not self.indexerid: # only name was given
search_results = sickchill.indexer.search_indexers_for_series_name(
... | def run(self):
"""Search for a show with a given name on all the indexers, in a specific language"""
results = []
lang_id = self.valid_languages[self.lang]
if self.name and not self.indexerid: # only name was given
search_results = sickchill.indexer.search_indexers_for_series_name(
... | https://github.com/SickChill/SickChill/issues/6733 | View Log:
AA TypeError: argument of type 'NoneType' is not iterable
AA if 'outputType' in out_dict:
AA File "/opt/sickchill/sickchill/views/api/webapi.py", line 105, in get
AA result = method(*self.path_args, **self.path_kwargs)
AA File "/opt/sickchill/lib3/tornado/web.py", line 1701, in _execute
AA Traceback (most rec... | TypeError |
def __init__(self):
"""Gets a list of most popular TV series from imdb"""
self.session = helpers.make_session()
self.imdb = Imdb(session=self.session)
| def __init__(self):
"""Gets a list of most popular TV series from imdb"""
self.base_url = "https://imdb.com"
self.url = urljoin(self.base_url, "search/title")
self.params = {
"at": 0,
"sort": "moviemeter",
"title_type": "tv_series",
"year": "{0},{1}".format(date.today()... | https://github.com/SickChill/SickChill/issues/6719 | AA UnboundLocalError: local variable 'e' referenced before assignment
AA popular_shows=popular_shows, imdb_exception=e,
AA File "C:\SickChill\SickChill\sickchill\views\manage\add_shows.py", line 309, in popularShows
AA return function(**kwargs)
AA File "C:\SickChill\SickChill\sickchill\views\index.py", line 183, in asy... | UnboundLocalError |
def fetch_popular_shows(self):
"""Get popular show information from IMDB"""
return self.imdb.get_popular_shows()
| def fetch_popular_shows(self):
"""Get popular show information from IMDB"""
popular_shows = []
data = helpers.getURL(
self.url,
session=self.session,
params=self.params,
headers={"Referer": self.base_url},
returns="text",
)
if not data:
return None
... | https://github.com/SickChill/SickChill/issues/6719 | AA UnboundLocalError: local variable 'e' referenced before assignment
AA popular_shows=popular_shows, imdb_exception=e,
AA File "C:\SickChill\SickChill\sickchill\views\manage\add_shows.py", line 309, in popularShows
AA return function(**kwargs)
AA File "C:\SickChill\SickChill\sickchill\views\index.py", line 183, in asy... | UnboundLocalError |
def popularShows(self):
"""
Fetches data from IMDB to show a list of popular shows.
"""
t = PageTemplate(rh=self, filename="addShows_popularShows.mako")
try:
popular_shows = imdb_popular.fetch_popular_shows()
imdb_exception = None
except Exception as error:
logger.warning... | def popularShows(self):
"""
Fetches data from IMDB to show a list of popular shows.
"""
t = PageTemplate(rh=self, filename="addShows_popularShows.mako")
e = None
try:
popular_shows = imdb_popular.fetch_popular_shows()
except Exception as e:
logger.warning("Could not get popu... | https://github.com/SickChill/SickChill/issues/6719 | AA UnboundLocalError: local variable 'e' referenced before assignment
AA popular_shows=popular_shows, imdb_exception=e,
AA File "C:\SickChill\SickChill\sickchill\views\manage\add_shows.py", line 309, in popularShows
AA return function(**kwargs)
AA File "C:\SickChill\SickChill\sickchill\views\index.py", line 183, in asy... | UnboundLocalError |
def search(self, search_strings, age=0, ep_obj=None):
results = []
if not self.login():
return results
search_params = {
"app_id": "sickchill",
"min_seeders": try_int(self.minseed),
"min_leechers": try_int(self.minleech),
"limit": 100,
"format": "json_extende... | def search(self, search_strings, age=0, ep_obj=None):
results = []
if not self.login():
return results
search_params = {
"app_id": "sickchill",
"min_seeders": try_int(self.minseed),
"min_leechers": try_int(self.minleech),
"limit": 100,
"format": "json_extende... | https://github.com/SickChill/SickChill/issues/6715 | 2020-09-09 20:34:50 DEBUG :: SEARCHQUEUE-DAILY-SEARCH :: [Rarbg] :: Search Mode: RSS
2020-09-09 20:34:50 DEBUG :: SEARCHQUEUE-DAILY-SEARCH :: [Rarbg] :: Error while searching Rarbg, skipping: AttributeError("'NoneType' object has no attribute 'query'")
2020-09-09 20:34:50 DEBUG :: SEARCHQUEUE-DAILY-SEARCH :: [Rarbg] ::... | AttributeError |
def setup_gettext(language=None):
languages = [language] if language else None
if not [
key
for key in ("LANGUAGE", "LC_ALL", "LC_MESSAGES", "LANG")
if os.environ.get(key)
]:
os.environ["LC_MESSAGES"] = "en_US.UTF-8"
print(locale_dir())
gt = gettext.translation(
... | def setup_gettext(language=None):
languages = [language] if language else None
if not [
key
for key in ("LANGUAGE", "LC_ALL", "LC_MESSAGES", "LANG")
if key in os.environ
]:
os.environ["LC_MESSAGES"] = "en_US.UTF-8"
gt = gettext.translation("messages", locale_dir(), langua... | https://github.com/SickChill/SickChill/issues/6702 | Big-Mac:SickChill tony$ python3 SickChill.py
Traceback (most recent call last):
File "SickChill.py", line 14, in <module>
import sickchill.start
File "/Applications/SickChill/sickchill/__init__.py", line 1, in <module>
from .show.indexers import indexer, ShowIndexer
File "/Applications/SickChill/sickchill/show/indexers... | FileNotFoundError |
def _parse(self, data, mode):
"""
Parse search results for items.
:param data: The raw response from a search
:param mode: The current mode used to search, e.g. RSS
:return: A KV with a list of items found and if there's an next page to search
"""
def process_column_header(td):
re... | def _parse(self, data, mode):
"""
Parse search results for items.
:param data: The raw response from a search
:param mode: The current mode used to search, e.g. RSS
:return: A KV with a list of items found and if there's an next page to search
"""
def process_column_header(td):
re... | https://github.com/SickChill/SickChill/issues/5591 | 2019-07-19 01:16:45 ERROR SEARCHQUEUE-MANUAL-18347 :: [BJ-Share] :: [0418408] Failed parsing provider.
Traceback (most recent call last):
File "/opt/sickchill/sickbeard/providers/bjshare.py", line 204, in parse
seeders = try_int(cells[labels.index('Seeders') + group_index].get_text(strip=True))
ValueError: 'Seeders'... | ValueError |
def __init__(self):
TorrentProvider.__init__(self, "Rarbg")
self.public = True
self.minseed = None
self.ranked = None
self.sorting = None
self.minleech = None
self.token = None
self.token_expires = None
# Spec: https://torrentapi.org/apidocs_v2.txt
self.url = "https://rarbg.to"... | def __init__(self):
TorrentProvider.__init__(self, "Rarbg")
self.public = True
self.minseed = None
self.ranked = None
self.sorting = None
self.minleech = None
self.token = None
self.token_expires = None
# Spec: https://torrentapi.org/apidocs_v2.txt
self.url = "https://rarbg.com... | https://github.com/SickChill/SickChill/issues/5859 | 2020-01-12 09:11:36 ERROR SHOWQUEUE-ADD :: [b6fe632] Unable to look up the show in None on theTVDB using ID 360733, not using the NFO. Delete .nfo and try adding manually again.: 'Series' object has no attribute 'title'
2020-01-12 09:11:36 INFO SHOWQUEUE-ADD :: Starting to add show by Indexer Id: 360733
2020-01-... | AttributeError |
def run(self):
super(QueueItemAdd, self).run()
if self.showDir:
try:
assert isinstance(self.showDir, six.text_type)
except AssertionError:
logger.log(traceback.format_exc(), logger.WARNING)
self._finish_early()
return
logger.log(
"Sta... | def run(self):
super(QueueItemAdd, self).run()
if self.showDir:
try:
assert isinstance(self.showDir, six.text_type)
except AssertionError:
logger.log(traceback.format_exc(), logger.WARNING)
self._finish_early()
return
logger.log(
"Sta... | https://github.com/SickChill/SickChill/issues/5859 | 2020-01-12 09:11:36 ERROR SHOWQUEUE-ADD :: [b6fe632] Unable to look up the show in None on theTVDB using ID 360733, not using the NFO. Delete .nfo and try adding manually again.: 'Series' object has no attribute 'title'
2020-01-12 09:11:36 INFO SHOWQUEUE-ADD :: Starting to add show by Indexer Id: 360733
2020-01-... | AttributeError |
def getTrendingShowImage(indexerId):
image_url = sickchill.indexer.series_poster_url_by_id(indexerId)
if image_url:
image_path = trakt_trending.get_image_path(
trakt_trending.get_image_name(indexerId)
)
trakt_trending.cache_image(image_url, image_path)
return indexerI... | def getTrendingShowImage(indexerId):
image_url = sickchill.indexer.series_poster_by_id(indexerId)
if image_url:
image_path = trakt_trending.get_image_path(
trakt_trending.get_image_name(indexerId)
)
trakt_trending.cache_image(image_url, image_path)
return indexerId
| https://github.com/SickChill/SickChill/issues/5859 | 2020-01-12 09:11:36 ERROR SHOWQUEUE-ADD :: [b6fe632] Unable to look up the show in None on theTVDB using ID 360733, not using the NFO. Delete .nfo and try adding manually again.: 'Series' object has no attribute 'title'
2020-01-12 09:11:36 INFO SHOWQUEUE-ADD :: Starting to add show by Indexer Id: 360733
2020-01-... | AttributeError |
def create_https_certificates(ssl_cert, ssl_key):
"""
Create self-signed HTTPS certificares and store in paths 'ssl_cert' and 'ssl_key'
:param ssl_cert: Path of SSL certificate file to write
:param ssl_key: Path of SSL keyfile to write
:return: True on success, False on failure
"""
# asser... | def create_https_certificates(ssl_cert, ssl_key):
"""
Create self-signed HTTPS certificares and store in paths 'ssl_cert' and 'ssl_key'
:param ssl_cert: Path of SSL certificate file to write
:param ssl_key: Path of SSL keyfile to write
:return: True on success, False on failure
"""
# asser... | https://github.com/SickChill/SickChill/issues/3770 | Traceback (most recent call last):
File "/opt/sickrage/lib/tornado/ioloop.py", line 888, in start
handler_func(fd_obj, events)
File "/opt/sickrage/lib/tornado/stack_context.py", line 277, in null_wrapper
return fn(*args, **kwargs)
File "/opt/sickrage/lib/tornado/netutil.py", line 276, in accept_handler
callback(connect... | SSLError |
def initialize(consoleLogging=True): # pylint: disable=too-many-locals, too-many-branches, too-many-statements
with INIT_LOCK:
# pylint: disable=global-statement
global \
BRANCH, \
GIT_RESET, \
GIT_REMOTE, \
GIT_REMOTE_URL, \
CUR_COMMIT_HA... | def initialize(consoleLogging=True): # pylint: disable=too-many-locals, too-many-branches, too-many-statements
with INIT_LOCK:
# pylint: disable=global-statement
global \
BRANCH, \
GIT_RESET, \
GIT_REMOTE, \
GIT_REMOTE_URL, \
CUR_COMMIT_HA... | https://github.com/SickChill/SickChill/issues/1373 | Thread-14 :: [6e3ebea] Failed doing webui callback: Traceback (most recent call last):
File "/share/1000/sickrage/sickbeard/webserve.py", line 285, in async_call
result = function(**kwargs)
File "/share/1000/sickrage/sickbeard/webserve.py", line 2302, in processEpisode
is_priority=argToBool(is_priority), delete_on=argT... | TypeError |
def check_setting_int(
config,
cfg_name,
item_name,
def_val=0,
min_val=None,
max_val=None,
fallback_def=True,
silent=True,
):
"""
Checks config setting of integer type
:param config: config object
:type config: ConfigObj()
:param cfg_name: section name of config
... | def check_setting_int(config, cfg_name, item_name, def_val=0, silent=True):
if not isinstance(def_val, int):
logger.log(
"{dom}:{key} default value is not the correct type. Expected {t}, got {dt}".format(
dom=cfg_name, key=item_name, t="int", dt=type(def_val)
),
... | https://github.com/SickChill/SickChill/issues/1373 | Thread-14 :: [6e3ebea] Failed doing webui callback: Traceback (most recent call last):
File "/share/1000/sickrage/sickbeard/webserve.py", line 285, in async_call
result = function(**kwargs)
File "/share/1000/sickrage/sickbeard/webserve.py", line 2302, in processEpisode
is_priority=argToBool(is_priority), delete_on=argT... | TypeError |
def check_setting_float(
config,
cfg_name,
item_name,
def_val=0.0,
min_val=None,
max_val=None,
fallback_def=True,
silent=True,
):
"""
Checks config setting of float type
:param config: config object
:type config: ConfigObj()
:param cfg_name: section name of config
... | def check_setting_float(config, cfg_name, item_name, def_val=0.0, silent=True):
if not isinstance(def_val, float):
logger.log(
"{dom}:{key} default value is not the correct type. Expected {t}, got {dt}".format(
dom=cfg_name, key=item_name, t="float", dt=type(def_val)
... | https://github.com/SickChill/SickChill/issues/1373 | Thread-14 :: [6e3ebea] Failed doing webui callback: Traceback (most recent call last):
File "/share/1000/sickrage/sickbeard/webserve.py", line 285, in async_call
result = function(**kwargs)
File "/share/1000/sickrage/sickbeard/webserve.py", line 2302, in processEpisode
is_priority=argToBool(is_priority), delete_on=argT... | TypeError |
def check_setting_str(
config,
cfg_name,
item_name,
def_val=six.text_type(""),
silent=True,
censor_log=False,
):
"""
Checks config setting of string types
:param config: config object
:type config: ConfigObj()
:param cfg_name: section name of config
:param item_name: ite... | def check_setting_str(
config,
cfg_name,
item_name,
def_val=six.text_type(""),
silent=True,
censor_log=False,
):
if not isinstance(def_val, six.string_types):
logger.log(
"{dom}:{key} default value is not the correct type. Expected {t}, got {dt}".format(
d... | https://github.com/SickChill/SickChill/issues/1373 | Thread-14 :: [6e3ebea] Failed doing webui callback: Traceback (most recent call last):
File "/share/1000/sickrage/sickbeard/webserve.py", line 285, in async_call
result = function(**kwargs)
File "/share/1000/sickrage/sickbeard/webserve.py", line 2302, in processEpisode
is_priority=argToBool(is_priority), delete_on=argT... | TypeError |
def check_setting_bool(config, cfg_name, item_name, def_val=False, silent=True):
"""
Checks config setting of boolean type
:param config: config object
:type config: ConfigObj()
:param cfg_name: section name of config
:param item_name: item name of section
:param def_val: default value to r... | def check_setting_bool(config, cfg_name, item_name, def_val=False, silent=True):
try:
if not isinstance(def_val, bool):
logger.log(
"{dom}:{key} default value is not the correct type. Expected {t}, got {dt}".format(
dom=cfg_name, key=item_name, t="bool", dt=ty... | https://github.com/SickChill/SickChill/issues/1373 | Thread-14 :: [6e3ebea] Failed doing webui callback: Traceback (most recent call last):
File "/share/1000/sickrage/sickbeard/webserve.py", line 285, in async_call
result = function(**kwargs)
File "/share/1000/sickrage/sickbeard/webserve.py", line 2302, in processEpisode
is_priority=argToBool(is_priority), delete_on=argT... | TypeError |
def savePostProcessing(
self,
kodi_data=None,
kodi_12plus_data=None,
mediabrowser_data=None,
sony_ps3_data=None,
wdtv_data=None,
tivo_data=None,
mede8er_data=None,
keep_processed_dir=None,
process_method=None,
processor_follow_symlinks=None,
del_rar_contents=None,
pro... | def savePostProcessing(
self,
kodi_data=None,
kodi_12plus_data=None,
mediabrowser_data=None,
sony_ps3_data=None,
wdtv_data=None,
tivo_data=None,
mede8er_data=None,
keep_processed_dir=None,
process_method=None,
processor_follow_symlinks=None,
del_rar_contents=None,
pro... | https://github.com/SickChill/SickChill/issues/1373 | Thread-14 :: [6e3ebea] Failed doing webui callback: Traceback (most recent call last):
File "/share/1000/sickrage/sickbeard/webserve.py", line 285, in async_call
result = function(**kwargs)
File "/share/1000/sickrage/sickbeard/webserve.py", line 2302, in processEpisode
is_priority=argToBool(is_priority), delete_on=argT... | TypeError |
def isNamingValid(pattern=None, multi=None, abd=False, sports=False, anime_type=None):
if not pattern:
return "invalid"
# air by date shows just need one check, we don't need to worry about season folders
if abd:
is_valid = naming.check_valid_abd_naming(pattern)
require_season_folde... | def isNamingValid(pattern=None, multi=None, abd=False, sports=False, anime_type=None):
if not pattern:
return "invalid"
if multi is not None:
multi = int(multi)
if anime_type is not None:
anime_type = int(anime_type)
# air by date shows just need one check, we don't need to wo... | https://github.com/SickChill/SickChill/issues/1373 | Thread-14 :: [6e3ebea] Failed doing webui callback: Traceback (most recent call last):
File "/share/1000/sickrage/sickbeard/webserve.py", line 285, in async_call
result = function(**kwargs)
File "/share/1000/sickrage/sickbeard/webserve.py", line 2302, in processEpisode
is_priority=argToBool(is_priority), delete_on=argT... | TypeError |
def savePostProcessing(
self,
kodi_data=None,
kodi_12plus_data=None,
mediabrowser_data=None,
sony_ps3_data=None,
wdtv_data=None,
tivo_data=None,
mede8er_data=None,
keep_processed_dir=None,
process_method=None,
del_rar_contents=None,
process_automatically=None,
no_dele... | def savePostProcessing(
self,
kodi_data=None,
kodi_12plus_data=None,
mediabrowser_data=None,
sony_ps3_data=None,
wdtv_data=None,
tivo_data=None,
mede8er_data=None,
keep_processed_dir=None,
process_method=None,
del_rar_contents=None,
process_automatically=None,
no_dele... | https://github.com/SickChill/SickChill/issues/1373 | Thread-14 :: [6e3ebea] Failed doing webui callback: Traceback (most recent call last):
File "/share/1000/sickrage/sickbeard/webserve.py", line 285, in async_call
result = function(**kwargs)
File "/share/1000/sickrage/sickbeard/webserve.py", line 2302, in processEpisode
is_priority=argToBool(is_priority), delete_on=argT... | TypeError |
def process(self): # pylint: disable=too-many-return-statements, too-many-locals, too-many-branches, too-many-statements
"""
Post-process a given file
:return: True on success, False on failure
"""
self._log("Processing " + self.file_path + " (" + str(self.nzb_name) + ")")
if ek(os.path.isdi... | def process(self): # pylint: disable=too-many-return-statements, too-many-locals, too-many-branches, too-many-statements
"""
Post-process a given file
:return: True on success, False on failure
"""
self._log("Processing " + self.file_path + " (" + str(self.nzb_name) + ")")
if ek(os.path.isdi... | https://github.com/SickChill/SickChill/issues/1373 | Thread-14 :: [6e3ebea] Failed doing webui callback: Traceback (most recent call last):
File "/share/1000/sickrage/sickbeard/webserve.py", line 285, in async_call
result = function(**kwargs)
File "/share/1000/sickrage/sickbeard/webserve.py", line 2302, in processEpisode
is_priority=argToBool(is_priority), delete_on=argT... | TypeError |
def disk_usage(path):
if platform.system() == "Windows":
import sys
_, total, free = (
ctypes.c_ulonglong(),
ctypes.c_ulonglong(),
ctypes.c_ulonglong(),
)
if sys.version_info >= (3,) or isinstance(path, unicode):
method = ctypes.windll... | def disk_usage(path):
if platform.system() == "Windows":
import sys
_, total, free = (
ctypes.c_ulonglong(),
ctypes.c_ulonglong(),
ctypes.c_ulonglong(),
)
if sys.version_info >= (3,) or isinstance(path, unicode):
method = ctypes.windll... | https://github.com/SickChill/SickChill/issues/1269 | 2016-03-28 08:59:59 DEBUG POSTPROCESSER :: 'Traceback (most recent call last):\n File "/usr/share/sickrage/sickbeard/scheduler.py", line 106, in run\n self.action.run(self.force)\n File "/usr/share/sickrage/sickbeard/auto_postprocessor.py", line 56, in run\n processTV.processDir(sickbeard.TV_DOWNLOAD_DIR, fo... | AATypeError |
def initialize(consoleLogging=True): # pylint: disable=too-many-locals, too-many-branches, too-many-statements
with INIT_LOCK:
# pylint: disable=global-statement
global \
BRANCH, \
GIT_RESET, \
GIT_REMOTE, \
GIT_REMOTE_URL, \
CUR_COMMIT_HA... | def initialize(consoleLogging=True): # pylint: disable=too-many-locals, too-many-branches, too-many-statements
with INIT_LOCK:
# pylint: disable=global-statement
global \
BRANCH, \
GIT_RESET, \
GIT_REMOTE, \
GIT_REMOTE_URL, \
CUR_COMMIT_HA... | https://github.com/SickChill/SickChill/issues/1269 | 2016-03-28 08:59:59 DEBUG POSTPROCESSER :: 'Traceback (most recent call last):\n File "/usr/share/sickrage/sickbeard/scheduler.py", line 106, in run\n self.action.run(self.force)\n File "/usr/share/sickrage/sickbeard/auto_postprocessor.py", line 56, in run\n processTV.processDir(sickbeard.TV_DOWNLOAD_DIR, fo... | AATypeError |
def retryEpisode(self, show, season, episode, downCurQuality=0):
# retrieve the episode object and fail if we can't get one
ep_obj = self._getEpisode(show, season, episode)
if isinstance(ep_obj, str):
return json.dumps({"result": "failure"})
# make a queue item for it and put it on the queue
... | def retryEpisode(self, show, season, episode, downCurQuality):
# retrieve the episode object and fail if we can't get one
ep_obj = self._getEpisode(show, season, episode)
if isinstance(ep_obj, str):
return json.dumps({"result": "failure"})
# make a queue item for it and put it on the queue
... | https://github.com/SickChill/SickChill/issues/1208 | Thread-18 :: [6116245] Failed doing webui callback: Traceback (most recent call last):
File "C:\SickRage\sickbeard\webserve.py", line 285, in async_call
result = function(**kwargs)
TypeError: retryEpisode() takes exactly 5 arguments (4 given) | TypeError |
def _container_generic_transform(arg, context, klass, iterables, build_elts):
if isinstance(arg, klass):
return arg
elif isinstance(arg, iterables):
if all(isinstance(elt, nodes.Const) for elt in arg.elts):
elts = [elt.value for elt in arg.elts]
else:
# TODO: Does... | def _container_generic_transform(arg, context, klass, iterables, build_elts):
if isinstance(arg, klass):
return arg
elif isinstance(arg, iterables):
if all(isinstance(elt, nodes.Const) for elt in arg.elts):
elts = [elt.value for elt in arg.elts]
else:
# TODO: Does... | https://github.com/PyCQA/astroid/issues/866 | Traceback (most recent call last):
File "/scratch2/anaconda3/envs/entos/lib/python3.8/site-packages/astroid/__init__.py", line 93, in _inference_tip_cached
return iter(_cache[func, node])
KeyError: (<function register_builtin_transform.<locals>._transform_wrapper at 0x7f9bd8b34040>, <Call l.281 at 0x7f9bd3b28340>)
Dur... | KeyError |
def infer_attribute(self, context=None):
"""infer an Attribute node by using getattr on the associated object"""
for owner in self.expr.infer(context):
if owner is util.Uninferable:
yield owner
continue
if context and context.boundnode:
# This handles the sit... | def infer_attribute(self, context=None):
"""infer an Attribute node by using getattr on the associated object"""
for owner in self.expr.infer(context):
if owner is util.Uninferable:
yield owner
continue
if context and context.boundnode:
# This handles the sit... | https://github.com/PyCQA/astroid/issues/745 | Traceback (most recent call last):
File "/usr/local/Cellar/python/3.6.3/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/astroid/inference.py", line 310, in infer_attribute
context.boundnode = owner
AttributeError: 'NoneType' object has no attribute 'boundnode' | AttributeError |
def _filter_stmts(self, stmts, frame, offset):
"""Filter the given list of statements to remove ignorable statements.
If self is not a frame itself and the name is found in the inner
frame locals, statements will be filtered to remove ignorable
statements according to self's location.
:param stmts... | def _filter_stmts(self, stmts, frame, offset):
"""Filter the given list of statements to remove ignorable statements.
If self is not a frame itself and the name is found in the inner
frame locals, statements will be filtered to remove ignorable
statements according to self's location.
:param stmts... | https://github.com/PyCQA/astroid/issues/375 | Traceback (most recent call last):
File "/Users/rwilliams/src/oss/pylint/venv/bin/pylint", line 9, in <module>
load_entry_point('pylint==2.0.0', 'console_scripts', 'pylint')()
File "/Users/rwilliams/src/oss/pylint/venv/lib/python2.7/site-packages/pylint-2.0.0-py2.7.egg/pylint/__init__.py", line 13, in run_pylint
Run(sy... | RuntimeError |
def py__annotations__(self):
obj = node_classes.Dict(parent=self._instance)
if not self._instance.returns:
returns = None
else:
returns = self._instance.returns
args = self._instance.args
pair_annotations = itertools.chain(
six.moves.zip(args.args or [], args.annotations),
... | def py__annotations__(self):
obj = node_classes.Dict(parent=self._instance)
if not self._instance.returns:
returns = None
else:
returns = self._instance.returns
args = self._instance.args
pair_annotations = itertools.chain(
six.moves.zip(args.args, args.annotations),
... | https://github.com/PyCQA/astroid/issues/473 | Traceback (most recent call last):
File "/home/dmytro/.virtualenvs/tmp-e8ba418cce8a54b3/bin/pylint", line 11, in <module>
sys.exit(run_pylint())
File "/home/dmytro/.virtualenvs/tmp-e8ba418cce8a54b3/lib/python3.6/site-packages/pylint/__init__.py", line 16, in run_pylint
Run(sys.argv[1:])
File "/home/dmytro/.virtualenvs/... | TypeError |
def _multiply_seq_by_int(self, opnode, other, context):
node = self.__class__(parent=opnode)
elts = []
filtered_elts = (elt for elt in self.elts if elt is not util.Uninferable)
for elt in filtered_elts:
infered = helpers.safe_infer(elt, context)
if infered is None:
infered = ... | def _multiply_seq_by_int(self, opnode, other, context):
node = self.__class__(parent=opnode)
elts = []
for elt in self.elts:
infered = helpers.safe_infer(elt, context)
if infered is None:
infered = util.Uninferable
elts.append(infered)
node.elts = elts * other.value
... | https://github.com/PyCQA/astroid/issues/467 | ---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-13-243db1d8132c> in <module>()
23 """)
24
---> 25 parsed.accept(Visitor())
~/anaconda3/envs/py36/lib/python3.6/site-packages/astroid/node_classes.py in ... | TypeError |
def attr_attributes_transform(node):
"""Given that the ClassNode has an attr decorator,
rewrite class attributes as instance attributes
"""
for cdefbodynode in node.body:
if not isinstance(cdefbodynode, astroid.Assign):
continue
for target in cdefbodynode.targets:
... | def attr_attributes_transform(node):
"""Given that the ClassNode has an attr decorator,
rewrite class attributes as instance attributes
"""
for cdefbodynode in node.body:
if not isinstance(cdefbodynode, astroid.Assign):
continue
for target in cdefbodynode.targets:
... | https://github.com/PyCQA/astroid/issues/469 | ...
************* Module qutebrowser.mainwindow.prompt
R:146, 4: Either all return statements in a function should return an expression, or none of them should. (inconsistent-return-statements)
Traceback (most recent call last):
File "/usr/lib64/python3.6/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec... | AttributeError |
def infer_enum_class(node):
"""Specific inference for enums."""
names = set(("Enum", "IntEnum", "enum.Enum", "enum.IntEnum"))
for basename in node.basenames:
# TODO: doesn't handle subclasses yet. This implementation
# is a hack to support enums.
if basename not in names:
... | def infer_enum_class(node):
"""Specific inference for enums."""
names = set(("Enum", "IntEnum", "enum.Enum", "enum.IntEnum"))
for basename in node.basenames:
# TODO: doesn't handle subclasses yet. This implementation
# is a hack to support enums.
if basename not in names:
... | https://github.com/PyCQA/astroid/issues/442 | Traceback (most recent call last):
File "/Users/jeff/.virtualenvs/v6/lib/python3.6/site-packages/pylint/lint.py", line 896, in get_ast
return MANAGER.ast_from_file(filepath, modname, source=True)
File "/Users/jeff/.virtualenvs/v6/lib/python3.6/site-packages/astroid/manager.py", line 80, in ast_from_file
return AstroidB... | AttributeError |
def locals_import_from(node, locals_):
# Don't add future imports to locals.
if node.modname == "__future__":
return
# Sort the list for having the locals ordered by their first
# appearance.
def sort_locals(my_list):
my_list.sort(key=lambda node: node.fromlineno or 0)
for name... | def locals_import_from(node, locals_):
# Don't add future imports to locals.
if node.modname == "__future__":
return
# Sort the list for having the locals ordered by their first
# appearance.
def sort_locals(my_list):
my_list.sort(key=lambda node: node.fromlineno)
for name, asn... | https://github.com/PyCQA/astroid/issues/195 | FAIL: test_builtin_fromlineno_missing (unittest_nodes.ArgumentsNodeTC)
----------------------------------------------------------------------
Traceback (most recent call last):
File "~/code/astroid/.tox/py34/lib/python3.4/site-packages/astroid/tests/unittest_nodes.py", line 479, in test_builtin_fromlineno_missing
self.... | AssertionError |
def sort_locals(my_list):
my_list.sort(key=lambda node: node.fromlineno or 0)
| def sort_locals(my_list):
my_list.sort(key=lambda node: node.fromlineno)
| https://github.com/PyCQA/astroid/issues/195 | FAIL: test_builtin_fromlineno_missing (unittest_nodes.ArgumentsNodeTC)
----------------------------------------------------------------------
Traceback (most recent call last):
File "~/code/astroid/.tox/py34/lib/python3.4/site-packages/astroid/tests/unittest_nodes.py", line 479, in test_builtin_fromlineno_missing
self.... | AssertionError |
def fromlineno(self):
return self.lineno
| def fromlineno(self):
if self.lineno is None:
return self._fixed_source_line()
else:
return self.lineno
| https://github.com/PyCQA/astroid/issues/195 | FAIL: test_builtin_fromlineno_missing (unittest_nodes.ArgumentsNodeTC)
----------------------------------------------------------------------
Traceback (most recent call last):
File "~/code/astroid/.tox/py34/lib/python3.4/site-packages/astroid/tests/unittest_nodes.py", line 479, in test_builtin_fromlineno_missing
self.... | AssertionError |
def tolineno(self):
if not self._astroid_fields:
# can't have children
lastchild = None
else:
lastchild = self.last_child()
if lastchild is None:
return self.fromlineno
else:
return lastchild.tolineno
| def tolineno(self):
if not self._astroid_fields:
# can't have children
lastchild = None
else:
lastchild = self.last_child()
if lastchild is None:
return self.fromlineno
else:
return lastchild.tolineno
# TODO / FIXME:
assert self.fromlineno is not None, se... | https://github.com/PyCQA/astroid/issues/195 | FAIL: test_builtin_fromlineno_missing (unittest_nodes.ArgumentsNodeTC)
----------------------------------------------------------------------
Traceback (most recent call last):
File "~/code/astroid/.tox/py34/lib/python3.4/site-packages/astroid/tests/unittest_nodes.py", line 479, in test_builtin_fromlineno_missing
self.... | AssertionError |
def _filter_stmts(self, stmts, frame, offset):
"""filter statements to remove ignorable statements.
If self is not a frame itself and the name is found in the inner
frame locals, statements will be filtered to remove ignorable
statements according to self's location
"""
# if offset == -1, my ac... | def _filter_stmts(self, stmts, frame, offset):
"""filter statements to remove ignorable statements.
If self is not a frame itself and the name is found in the inner
frame locals, statements will be filtered to remove ignorable
statements according to self's location
"""
# if offset == -1, my ac... | https://github.com/PyCQA/astroid/issues/195 | FAIL: test_builtin_fromlineno_missing (unittest_nodes.ArgumentsNodeTC)
----------------------------------------------------------------------
Traceback (most recent call last):
File "~/code/astroid/.tox/py34/lib/python3.4/site-packages/astroid/tests/unittest_nodes.py", line 479, in test_builtin_fromlineno_missing
self.... | AssertionError |
def fromlineno(self):
# Let the Function's lineno be the lineno for this.
if self.parent.fromlineno:
return self.parent.fromlineno
return super(Arguments, self).fromlineno
| def fromlineno(self):
lineno = super(Arguments, self).fromlineno
return max(lineno, self.parent.fromlineno or 0)
| https://github.com/PyCQA/astroid/issues/195 | FAIL: test_builtin_fromlineno_missing (unittest_nodes.ArgumentsNodeTC)
----------------------------------------------------------------------
Traceback (most recent call last):
File "~/code/astroid/.tox/py34/lib/python3.4/site-packages/astroid/tests/unittest_nodes.py", line 479, in test_builtin_fromlineno_missing
self.... | AssertionError |
def const_factory(value):
"""return an astroid node for a python value"""
# XXX we should probably be stricter here and only consider stuff in
# CONST_CLS or do better treatment: in case where value is not in CONST_CLS,
# we should rather recall the builder on this value than returning an empty
# no... | def const_factory(value):
"""return an astroid node for a python value"""
# XXX we should probably be stricter here and only consider stuff in
# CONST_CLS or do better treatment: in case where value is not in CONST_CLS,
# we should rather recall the builder on this value than returning an empty
# no... | https://github.com/PyCQA/astroid/issues/277 | #!python
Traceback (most recent call last):
File "a.py", line 5, in <module>
f.wildcard_import_names()
File "astroid\scoped_nodes.py", line 471, in wildcard_import_names
explicit = next(all.assigned_stmts())
TypeError: mulass_assigned_stmts() takes at least 2 arguments (1 given) | TypeError |
def for_assigned_stmts(self, node=None, context=None, asspath=None):
if asspath is None:
for lst in self.iter.infer(context):
if isinstance(lst, (nodes.Tuple, nodes.List)):
for item in lst.elts:
yield item
else:
for inferred in _resolve_looppart(se... | def for_assigned_stmts(self, node, context=None, asspath=None):
if asspath is None:
for lst in self.iter.infer(context):
if isinstance(lst, (nodes.Tuple, nodes.List)):
for item in lst.elts:
yield item
else:
for inferred in _resolve_looppart(self.it... | https://github.com/PyCQA/astroid/issues/277 | #!python
Traceback (most recent call last):
File "a.py", line 5, in <module>
f.wildcard_import_names()
File "astroid\scoped_nodes.py", line 471, in wildcard_import_names
explicit = next(all.assigned_stmts())
TypeError: mulass_assigned_stmts() takes at least 2 arguments (1 given) | TypeError |
def assend_assigned_stmts(self, node=None, context=None, asspath=None):
return self.parent.assigned_stmts(node=self, context=context)
| def assend_assigned_stmts(self, context=None):
return self.parent.assigned_stmts(self, context=context)
| https://github.com/PyCQA/astroid/issues/277 | #!python
Traceback (most recent call last):
File "a.py", line 5, in <module>
f.wildcard_import_names()
File "astroid\scoped_nodes.py", line 471, in wildcard_import_names
explicit = next(all.assigned_stmts())
TypeError: mulass_assigned_stmts() takes at least 2 arguments (1 given) | TypeError |
def arguments_assigned_stmts(self, node=None, context=None, asspath=None):
if context.callcontext:
# reset call context/name
callcontext = context.callcontext
context = contextmod.copy_context(context)
context.callcontext = None
args = arguments.CallSite(callcontext)
... | def arguments_assigned_stmts(self, node, context, asspath=None):
if context.callcontext:
# reset call context/name
callcontext = context.callcontext
context = contextmod.copy_context(context)
context.callcontext = None
args = arguments.CallSite(callcontext)
return arg... | https://github.com/PyCQA/astroid/issues/277 | #!python
Traceback (most recent call last):
File "a.py", line 5, in <module>
f.wildcard_import_names()
File "astroid\scoped_nodes.py", line 471, in wildcard_import_names
explicit = next(all.assigned_stmts())
TypeError: mulass_assigned_stmts() takes at least 2 arguments (1 given) | TypeError |
def assign_assigned_stmts(self, node=None, context=None, asspath=None):
if not asspath:
yield self.value
return
for inferred in _resolve_asspart(self.value.infer(context), asspath, context):
yield inferred
| def assign_assigned_stmts(self, node, context=None, asspath=None):
if not asspath:
yield self.value
return
for inferred in _resolve_asspart(self.value.infer(context), asspath, context):
yield inferred
| https://github.com/PyCQA/astroid/issues/277 | #!python
Traceback (most recent call last):
File "a.py", line 5, in <module>
f.wildcard_import_names()
File "astroid\scoped_nodes.py", line 471, in wildcard_import_names
explicit = next(all.assigned_stmts())
TypeError: mulass_assigned_stmts() takes at least 2 arguments (1 given) | TypeError |
def excepthandler_assigned_stmts(self, node=None, context=None, asspath=None):
for assigned in node_classes.unpack_infer(self.type):
if isinstance(assigned, nodes.ClassDef):
assigned = bases.Instance(assigned)
yield assigned
| def excepthandler_assigned_stmts(self, node, context=None, asspath=None):
for assigned in node_classes.unpack_infer(self.type):
if isinstance(assigned, nodes.ClassDef):
assigned = bases.Instance(assigned)
yield assigned
| https://github.com/PyCQA/astroid/issues/277 | #!python
Traceback (most recent call last):
File "a.py", line 5, in <module>
f.wildcard_import_names()
File "astroid\scoped_nodes.py", line 471, in wildcard_import_names
explicit = next(all.assigned_stmts())
TypeError: mulass_assigned_stmts() takes at least 2 arguments (1 given) | TypeError |
def with_assigned_stmts(self, node=None, context=None, asspath=None):
if asspath is None:
for _, vars in self.items:
if vars is None:
continue
for lst in vars.infer(context):
if isinstance(lst, (nodes.Tuple, nodes.List)):
for item i... | def with_assigned_stmts(self, node, context=None, asspath=None):
if asspath is None:
for _, vars in self.items:
if vars is None:
continue
for lst in vars.infer(context):
if isinstance(lst, (nodes.Tuple, nodes.List)):
for item in lst... | https://github.com/PyCQA/astroid/issues/277 | #!python
Traceback (most recent call last):
File "a.py", line 5, in <module>
f.wildcard_import_names()
File "astroid\scoped_nodes.py", line 471, in wildcard_import_names
explicit = next(all.assigned_stmts())
TypeError: mulass_assigned_stmts() takes at least 2 arguments (1 given) | TypeError |
def mulass_assigned_stmts(self, nodes, node=None, context=None, asspath=None):
if asspath is None:
asspath = []
try:
index = self.elts.index(node)
except ValueError:
util.reraise(
exceptions.InferenceError(
"Tried to retrieve a node {node!r} which does no... | def mulass_assigned_stmts(self, nodes, node=None, context=None, asspath=None):
if asspath is None:
asspath = []
asspath.insert(0, self.elts.index(node))
return self.parent.assigned_stmts(self, context, asspath)
| https://github.com/PyCQA/astroid/issues/277 | #!python
Traceback (most recent call last):
File "a.py", line 5, in <module>
f.wildcard_import_names()
File "astroid\scoped_nodes.py", line 471, in wildcard_import_names
explicit = next(all.assigned_stmts())
TypeError: mulass_assigned_stmts() takes at least 2 arguments (1 given) | TypeError |
def __getattribute__(self, name):
if name == "next":
raise AttributeError("next method should not be called")
if name.startswith("__") and name.endswith("__"):
return super(_Yes, self).__getattribute__(name)
if name == "accept":
return super(_Yes, self).__getattribute__(name)
ret... | def __getattribute__(self, name):
if name == "next":
raise AttributeError("next method should not be called")
if name.startswith("__") and name.endswith("__"):
return super(_Yes, self).__getattribute__(name)
return self
| https://github.com/PyCQA/astroid/issues/270 | Traceback (most recent call last):
File "/usr/lib64/python3.5/runpy.py", line 170, in _run_module_as_main
"__main__", mod_spec)
File "/usr/lib64/python3.5/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/florian/proj/qutebrowser/git/.tox/pylint/lib/python3.5/site-packages/pylint/__main__.py", line 3... | TypeError |
def __getattribute__(self, name):
if name == "next":
raise AttributeError("next method should not be called")
if name.startswith("__") and name.endswith("__"):
return object.__getattribute__(self, name)
if name == "accept":
return object.__getattribute__(self, name)
return self
| def __getattribute__(self, name):
if name == "next":
raise AttributeError("next method should not be called")
if name.startswith("__") and name.endswith("__"):
return object.__getattribute__(self, name)
return self
| https://github.com/PyCQA/astroid/issues/270 | Traceback (most recent call last):
File "/usr/lib64/python3.5/runpy.py", line 170, in _run_module_as_main
"__main__", mod_spec)
File "/usr/lib64/python3.5/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/florian/proj/qutebrowser/git/.tox/pylint/lib/python3.5/site-packages/pylint/__main__.py", line 3... | TypeError |
def getattr(self, name, context=None):
if name == "im_func":
return [self._proxied]
return self._proxied.getattr(name, context)
| def getattr(self, name, context=None):
if name == "im_func":
return [self._proxied]
return super(UnboundMethod, self).getattr(name, context)
| https://github.com/PyCQA/astroid/issues/91 | #!python
Traceback (most recent call last):
File "C:\Python34\Scripts\pylint-script.py", line 9, in <module>
load_entry_point('pylint==1.4.3', 'console_scripts', 'pylint')()
File "e:\projects\repos\pylint\pylint\__init__.py", line 23, in run_pylint
Run(sys.argv[1:])
File "e:\projects\repos\pylint\pylint\lint.py", line... | AttributeError |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.