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 start_loop(self):
"""Start the event loop."""
connectors, databases, skills = self.loader.load_modules_from_config(self.config)
_LOGGER.debug("Loaded %i skills", len(skills))
if databases is not None:
self.start_databases(databases)
self.setup_skills(skills)
self.start_connector_task... | def start_loop(self):
"""Start the event loop."""
connectors, databases, skills = self.loader.load_modules_from_config(self.config)
_LOGGER.debug("Loaded %i skills", len(skills))
if databases is not None:
self.start_databases(databases)
self.setup_skills(skills)
self.start_connector_task... | https://github.com/opsdroid/opsdroid/issues/247 | ^CERROR asyncio: Task exception was never retrieved
future: <Task finished coro=<ConnectorShell.listen() done, defined at /root/.opsdroid/modules/opsdroid-modules/connector/shell/__init__.py:57> exception=ConnectionResetError('Connection lost',)>
Traceback (most recent call last):
File "/usr/local/lib/python3.5/asyncio... | ConnectionResetError |
async def _get_existing_models(config):
"""Get a list of models already trained in the Rasa NLU project."""
project = config.get("project", RASANLU_DEFAULT_PROJECT)
async with aiohttp.ClientSession() as session:
try:
resp = await session.get(await _build_status_url(config))
i... | async def _get_existing_models(config):
"""Get a list of models already trained in the Rasa NLU project."""
project = config.get("project", RASANLU_DEFAULT_PROJECT)
async with aiohttp.ClientSession() as session:
resp = await session.get(await _build_status_url(config))
if resp.status == 200:... | https://github.com/opsdroid/opsdroid/issues/412 | INFO opsdroid.parsers.rasanlu: Starting Rasa NLU training.
DEBUG asyncio: Using selector: KqueueSelector
Traceback (most recent call last):
File "/Users/jacob/.pyenv/versions/3.5.4/lib/python3.5/site-packages/aiohttp/connector.py", line 797, in _wrap_create_connection
return (yield from self._loop.create_connection(*ar... | ConnectionRefusedError |
def pip_install_deps(requirements_path):
"""Pip install a requirements.txt file and wait for finish."""
process = None
command = [
"pip",
"install",
"--target={}".format(DEFAULT_MODULE_DEPS_PATH),
"--ignore-installed",
"-r",
requirements_path,
]
try:
... | def pip_install_deps(requirements_path):
"""Pip install a requirements.txt file and wait for finish."""
process = subprocess.Popen(
[
"pip",
"install",
"--target={}".format(DEFAULT_MODULE_DEPS_PATH),
"--ignore-installed",
"-r",
requ... | https://github.com/opsdroid/opsdroid/issues/385 | INFO opsdroid: ========================================
INFO opsdroid: Started application
INFO opsdroid: ========================================
INFO opsdroid: You can customise your opsdroid by modifying your configuration.yaml
INFO opsdroid: Read more at: http://opsdroid.readthedocs.io/#configuration
INFO opsdroid:... | FileNotFoundError |
async def get_ranked_skills(self, message):
"""Take a message and return a ranked list of matching skills."""
skills = []
skills = skills + await parse_regex(self, message)
if "parsers" in self.config:
_LOGGER.debug("Processing parsers...")
parsers = self.config["parsers"] or []
... | async def get_ranked_skills(self, message):
"""Take a message and return a ranked list of matching skills."""
skills = []
skills = skills + await parse_regex(self, message)
if "parsers" in self.config:
_LOGGER.debug("Processing parsers...")
parsers = self.config["parsers"]
dial... | https://github.com/opsdroid/opsdroid/issues/378 | DEBUG opsdroid.core: Parsing input: hi
DEBUG opsdroid.core: Processing parsers...
ERROR aiohttp.server: Error handling request
Traceback (most recent call last):
File "/Users/jacob/.pyenv/versions/3.5.4/lib/python3.5/site-packages/aiohttp/web_protocol.py", line 416, in start
resp = yield from self._request_handler(requ... | TypeError |
def import_module(config):
"""Import module namespace as variable and return it."""
# Check if the module can be imported and proceed with import
# Proceed only if config.name is specified
# and parent module can be imported
if config["name"] and importlib.util.find_spec(config["module_path"]):
... | def import_module(config):
"""Import module namespace as variable and return it."""
try:
module = importlib.import_module(config["module_path"] + "." + config["name"])
_LOGGER.debug("Loaded %s: %s", config["type"], config["module_path"])
return module
except ImportError as error:
... | https://github.com/opsdroid/opsdroid/issues/290 | Traceback (most recent call last):
File "/Users/jacob/.pyenv/versions/3.5.1/lib/python3.5/runpy.py", line 170, in _run_module_as_main
"__main__", mod_spec)
File "/Users/jacob/.pyenv/versions/3.5.1/lib/python3.5/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/Users/jacob/Projects/opsdroid/opsdroid/opsdro... | ImportError |
def _reload_modules(self, modules):
"""Reload modules in namespace. Queries sys.modules."""
for module in modules:
self.current_import_config = module["config"]
if isinstance(module["module"], ModuleType):
module_name = module["module"].__name__
if sys.modules.get(module_... | def _reload_modules(self, modules):
for module in modules:
self.current_import_config = module["config"]
importlib.reload(module["module"])
| https://github.com/opsdroid/opsdroid/issues/290 | Traceback (most recent call last):
File "/Users/jacob/.pyenv/versions/3.5.1/lib/python3.5/runpy.py", line 170, in _run_module_as_main
"__main__", mod_spec)
File "/Users/jacob/.pyenv/versions/3.5.1/lib/python3.5/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/Users/jacob/Projects/opsdroid/opsdroid/opsdro... | ImportError |
async def parse_apiai(opsdroid, message, config):
"""Parse a message against all apiai skills."""
# pylint: disable=broad-except
# We want to catch all exceptions coming from a skill module and not
# halt the application. If a skill throws an exception it just doesn't
# give a response to the user, ... | async def parse_apiai(opsdroid, message, config):
"""Parse a message against all apiai skills."""
# pylint: disable=broad-except
# We want to catch all exceptions coming from a skill module and not
# halt the application. If a skill throws an exception it just doesn't
# give a response to the user, ... | https://github.com/opsdroid/opsdroid/issues/132 | ERROR asyncio: Task exception was never retrieved
future: <Task finished coro=<parse_apiai() done, defined at /Users/jacob/Projects/opsdroid/opsdroid/opsdroid/parsers/apiai.py:34> exception=ClientConnectorError(8, 'Cannot connect to host api.api.ai:443 ssl:True [nodename nor servname provided, or not known]')>
Tracebac... | aiohttp.client_exceptions.ClientConnectorError |
def _createDetachedPanel(self, *args, **kwargs):
panel = _DetachedPanel(self, *args, **kwargs)
panel.__removeOnCloseConnection = panel.closedSignal().connect(
lambda w: w.parent()._removeDetachedPanel(w)
)
scriptWindow = self.ancestor(GafferUI.ScriptWindow)
if scriptWindow:
panel.se... | def _createDetachedPanel(self, *args, **kwargs):
panel = _DetachedPanel(self, *args, **kwargs)
panel.__removeOnCloseConnection = panel.closedSignal().connect(
lambda w: w.parent()._removeDetachedPanel(w)
)
scriptWindow = self.ancestor(GafferUI.ScriptWindow)
if scriptWindow:
panel.se... | https://github.com/GafferHQ/gaffer/issues/3281 | Traceback (most recent call last):
File "/software/apps/gaffer/0.54.0.0-preview/cent7.x86_64/cortex/10/gaffer/python/Gaffer/WeakMethod.py", line 67, in __call__
return m( *args, **kwArgs )
File "/software/apps/gaffer/0.54.0.0-preview/cent7.x86_64/cortex/10/gaffer/python/GafferUI/ScriptWindow.py", line 226, in __scriptP... | ReferenceError |
def _removeDetachedPanel(self, panel):
self.__detachedPanels.remove(panel)
panel.__removeOnCloseConnection = None
panel.__titleChangedConnection = None
panel._applyVisibility()
| def _removeDetachedPanel(self, panel):
self.__detachedPanels.remove(panel)
panel.__removeOnCloseConnection = None
panel._applyVisibility()
| https://github.com/GafferHQ/gaffer/issues/3281 | Traceback (most recent call last):
File "/software/apps/gaffer/0.54.0.0-preview/cent7.x86_64/cortex/10/gaffer/python/Gaffer/WeakMethod.py", line 67, in __call__
return m( *args, **kwArgs )
File "/software/apps/gaffer/0.54.0.0-preview/cent7.x86_64/cortex/10/gaffer/python/GafferUI/ScriptWindow.py", line 226, in __scriptP... | ReferenceError |
def __setTabDragConstraints(self, qTabBar, event):
# We need to work out some min/max X coordinates (in the tab bars local
# space) such that when the user drags left/right the left/right edges
# of the tab never leave the TabBar.
barRect = qTabBar.rect()
tabRect = qTabBar.tabRect(qTabBar.tabAt(even... | def __setTabDragConstraints(self, qTabBar, event):
# We need to work out some min/max X coordinates (in the tab bars local
# space) such that when the user drags left/rigth the left/right edges
# of the tab never leave the TabBar.
tabRect = qTabBar.tabRect(qTabBar.currentIndex())
self.__dragMinX = e... | https://github.com/GafferHQ/gaffer/issues/3281 | Traceback (most recent call last):
File "/software/apps/gaffer/0.54.0.0-preview/cent7.x86_64/cortex/10/gaffer/python/Gaffer/WeakMethod.py", line 67, in __call__
return m( *args, **kwArgs )
File "/software/apps/gaffer/0.54.0.0-preview/cent7.x86_64/cortex/10/gaffer/python/GafferUI/ScriptWindow.py", line 226, in __scriptP... | ReferenceError |
def _popupMenuDefinition(self):
menuDefinition = IECore.MenuDefinition()
if self.getPlug().getInput() is not None:
menuDefinition.append(
"/Edit input...", {"command": Gaffer.WeakMethod(self.__editInput)}
)
menuDefinition.append("/EditInputDivider", {"divider": True})
... | def _popupMenuDefinition(self):
menuDefinition = IECore.MenuDefinition()
if self.getPlug().getInput() is not None:
menuDefinition.append(
"/Edit input...", {"command": Gaffer.WeakMethod(self.__editInput)}
)
menuDefinition.append("/EditInputDivider", {"divider": True})
... | https://github.com/GafferHQ/gaffer/issues/1121 | Traceback (most recent call last):
File "/home/andrewk/apps/gaffer/0.6.0.0dev/cent6.x86_64/cortex/9/gaffer/python/GafferUI/Widget.py", line 879, in eventFilter
return self.__contextMenu( qObject, qEvent )
File "/home/andrewk/apps/gaffer/0.6.0.0dev/cent6.x86_64/cortex/9/gaffer/python/GafferUI/Widget.py", line 1053, in _... | RuntimeError |
def acquire(jobPool):
assert isinstance(jobPool, Gaffer.LocalDispatcher.JobPool)
window = getattr(jobPool, "_window", None)
if window is not None and window():
return window()
window = _LocalJobsWindow(jobPool)
jobPool._window = weakref.ref(window)
return window
| def acquire(jobPool):
assert isinstance(jobPool, Gaffer.LocalDispatcher.JobPool)
window = getattr(jobPool, "_window", None)
if window:
return window
window = _LocalJobsWindow(jobPool)
jobPool._window = window
return window
| https://github.com/GafferHQ/gaffer/issues/1064 | Traceback (most recent call last):
File "/home/andrewk/apps/gaffer/0.3.0.0dev/cent6.x86_64/cortex/9/gaffer/python/Gaffer/WeakMethod.py", line 67, in __call__
return m( *args, **kwArgs )
File "/home/andrewk/apps/gaffer/0.3.0.0dev/cent6.x86_64/cortex/9/gaffer/python/GafferUI/Button.py", line 138, in __clicked
self.clicke... | RuntimeError |
def __showLocalDispatcherWindow(menu):
window = _LocalJobsWindow.acquire(Gaffer.LocalDispatcher.defaultJobPool())
scriptWindow = menu.ancestor(GafferUI.ScriptWindow)
scriptWindow.addChildWindow(window)
window.setVisible(True)
| def __showLocalDispatcherWindow(menu):
window = _LocalJobsWindow.acquire(Gaffer.LocalDispatcher.defaultJobPool())
window.setVisible(True)
| https://github.com/GafferHQ/gaffer/issues/1064 | Traceback (most recent call last):
File "/home/andrewk/apps/gaffer/0.3.0.0dev/cent6.x86_64/cortex/9/gaffer/python/Gaffer/WeakMethod.py", line 67, in __call__
return m( *args, **kwArgs )
File "/home/andrewk/apps/gaffer/0.3.0.0dev/cent6.x86_64/cortex/9/gaffer/python/GafferUI/Button.py", line 138, in __clicked
self.clicke... | RuntimeError |
def __show(self):
# we rebuild each menu every time it's shown, to support the use of callable items to provide
# dynamic submenus and item states.
self.__build(self._qtWidget(), self.__definition)
if self.__searchable:
# Searchable menus need to initialize a search structure so they can be sea... | def __show(self):
# we rebuild each menu every time it's shown, to support the use of callable items to provide
# dynamic submenus and item states.
self.__build(self._qtWidget(), self.__definition)
if self.__searchable:
# Searchable menus need to initialize a search structure so they can be sea... | https://github.com/GafferHQ/gaffer/issues/527 | Traceback (most recent call last):
File ".../python/Gaffer/WeakMethod.py", line 57, in __call__
return m( *args, **kwArgs )
File ".../python/GafferUI/Menu.py", line 182, in __show
firstAction = self._qtWidget().actions()[0]
IndexError: list index out of range | IndexError |
def __init__(self, plug, **kw):
GafferUI.CompoundNumericPlugValueWidget.__init__(self, plug, **kw)
self.__swatch = GafferUI.ColorSwatch()
## \todo How do set maximum height with a public API?
self.__swatch._qtWidget().setMaximumHeight(20)
self._row().append(self.__swatch, expand=True)
self.__... | def __init__(self, plug, **kw):
GafferUI.CompoundNumericPlugValueWidget.__init__(self, plug, **kw)
self.__swatch = GafferUI.ColorSwatch()
## \todo How do set maximum height with a public API?
self.__swatch._qtWidget().setMaximumHeight(20)
self._row().append(self.__swatch, expand=True)
self.__... | https://github.com/GafferHQ/gaffer/issues/185 | # Traceback (most recent call last):
# File "/software/apps/gaffer/0.58.0/cent5.x86_64/cortex/8/maya/2012/python/GafferUI/Widget.py", line 1458, in eventFilter
# return self.__mouseMove( qObject, qEvent )
# File "/software/apps/gaffer/0.58.0/cent5.x86_64/cortex/8/maya/2012/python/GafferUI/Widget.py", line 1603, in __mo... | RuntimeError |
def __buttonPress(self, widget, event):
if not self._editable():
if self.__blinkBehaviour is not None:
self.__blinkBehaviour.stop()
widgets = [w for w in self._row()[: len(self.getPlug())] if not w._editable()]
self.__blinkBehaviour = _BlinkBehaviour(widgets)
self.__blink... | def __buttonPress(self, widget, event):
if not self._editable():
return False
# we only store a weak reference to the dialogue, because we want to allow it
# to manage its own lifetime. this allows it to exist after we've died, which
# can be useful for the user - they can bring up a node edito... | https://github.com/GafferHQ/gaffer/issues/185 | # Traceback (most recent call last):
# File "/software/apps/gaffer/0.58.0/cent5.x86_64/cortex/8/maya/2012/python/GafferUI/Widget.py", line 1458, in eventFilter
# return self.__mouseMove( qObject, qEvent )
# File "/software/apps/gaffer/0.58.0/cent5.x86_64/cortex/8/maya/2012/python/GafferUI/Widget.py", line 1603, in __mo... | RuntimeError |
def __init__(self, targetWidgets, blinks=2):
self.__targetWidgets = [weakref.ref(w) for w in targetWidgets]
self.__initialStates = [w.getHighlighted() for w in targetWidgets]
self.__blinks = blinks
self.__toggleCount = 0
self.__timer = QtCore.QTimer()
self.__timer.timeout.connect(self.__blink)
| def __init__(self, plug, parentWindow):
GafferUI.ColorChooserDialogue.__init__(
self,
title=plug.relativeName(plug.ancestor(Gaffer.ScriptNode.staticTypeId())),
color=plug.getValue(),
)
self.__plug = plug
node = plug.node()
self.__nodeParentChangedConnection = node.parentCha... | https://github.com/GafferHQ/gaffer/issues/185 | # Traceback (most recent call last):
# File "/software/apps/gaffer/0.58.0/cent5.x86_64/cortex/8/maya/2012/python/GafferUI/Widget.py", line 1458, in eventFilter
# return self.__mouseMove( qObject, qEvent )
# File "/software/apps/gaffer/0.58.0/cent5.x86_64/cortex/8/maya/2012/python/GafferUI/Widget.py", line 1603, in __mo... | RuntimeError |
def main():
execution_dir = getcwd()
# By default insert the execution path (useful to be able to execute Errbot from
# the source tree directly without installing it.
sys.path.insert(0, execution_dir)
parser = argparse.ArgumentParser(description="The main entry point of the errbot.")
parser.a... | def main():
execution_dir = getcwd()
# By default insert the execution path (useful to be able to execute Errbot from
# the source tree directly without installing it.
sys.path.insert(0, execution_dir)
parser = argparse.ArgumentParser(description="The main entry point of the errbot.")
parser.a... | https://github.com/errbotio/errbot/issues/1491 | 2020-12-18 16:30:28,869 INFO errbot.bootstrap Found Storage plugin: Shelf.
2020-12-18 16:30:28,874 INFO errbot.bootstrap Found Backend plugin: Graphic
Bot-Kennedy
2020-12-18 16:30:28,946 ERROR errbot.backends.graphic Could not start the graphical backend
Traceback (most recent call last):... | ModuleNotFoundError |
def uninstall_repo(self, name):
repo_path = path.join(self.plugin_dir, name)
shutil.rmtree(
repo_path, ignore_errors=True
) # ignore errors because the DB can be desync'ed from the file tree.
repos = self.get_installed_plugin_repos()
del repos[name]
self.set_plugin_repos(repos)
| def uninstall_repo(self, name):
repo_path = path.join(self.plugin_dir, name)
shutil.rmtree(repo_path)
repos = self.get_installed_plugin_repos().pop(name)
self.set_plugin_repos(repos)
| https://github.com/errbotio/errbot/issues/674 | 20:25:29 DEBUG errbot.errBot Initializing backend storage
20:25:29 DEBUG errbot.storage Opening storage telegram_backend
20:25:29 DEBUG errbot.storage.shelf Open shelf storage /tmp/errbot-data/telegram_backend.db
Traceback (most recent call last):
File "/home/zoni/.virtualenvs/err/b... | AttributeError |
def __init__(self, config):
super().__init__(config)
identity = config.BOT_IDENTITY
self.token = identity.get("token", None)
if not self.token:
log.fatal(
'You need to set your token (found under "Bot Integration" on Slack) in '
"the BOT_IDENTITY setting in your configura... | def __init__(self, config):
super().__init__(config)
identity = config.BOT_IDENTITY
self.token = identity.get("token", None)
if not self.token:
log.fatal(
'You need to set your token (found under "Bot Integration" on Slack) in '
"the BOT_IDENTITY setting in your configura... | https://github.com/errbotio/errbot/issues/379 | (err)whiskeyriver@whiskeyriver-VirtualBox:~/Code/err$ err.py -S
15:30:01 INFO __main__ Config check passed...
15:30:02 INFO __main__ Checking for '/home/whiskeyriver/Code/err/data'...
15:30:02 DEBUG errbot.errBot ErrBot init.
15:30:02 INFO errbot.storage ... | ConnectionResetError |
def serve_once(self):
self.sc = SlackClient(self.token)
log.info("Verifying authentication token")
self.auth = self.api_call("auth.test", raise_errors=False)
if not self.auth["ok"]:
log.error(
"Couldn't authenticate with Slack. Server said: %s" % self.auth["error"]
)
log.... | def serve_once(self):
log.info("Verifying authentication token")
self.auth = self.api_call("auth.test", raise_errors=False)
if not self.auth["ok"]:
log.error(
"Couldn't authenticate with Slack. Server said: %s" % self.auth["error"]
)
log.debug("Token accepted")
self.jid =... | https://github.com/errbotio/errbot/issues/379 | (err)whiskeyriver@whiskeyriver-VirtualBox:~/Code/err$ err.py -S
15:30:01 INFO __main__ Config check passed...
15:30:02 INFO __main__ Checking for '/home/whiskeyriver/Code/err/data'...
15:30:02 DEBUG errbot.errBot ErrBot init.
15:30:02 INFO errbot.storage ... | ConnectionResetError |
def _warn_if_text_is_missing(endpoint: str, kwargs: Dict[str, Any]) -> None:
attachments = kwargs.get("attachments")
if attachments and isinstance(attachments, list):
if all(
[
attachment.get("fallback")
and len(attachment.get("fallback").strip()) != 0
... | def _warn_if_text_is_missing(endpoint: str, kwargs: Dict[str, Any]) -> None:
attachments = kwargs.get("attachments")
if attachments:
if all(
[
attachment.get("fallback")
and len(attachment.get("fallback").strip()) != 0
for attachment in attachm... | https://github.com/slackapi/python-slack-sdk/issues/971 | Traceback (most recent call last):
...SNIP...
File "/usr/local/lib/python3.9/site-packages/slack_sdk/web/client.py", line 1185, in chat_update
"Developer": ":large_blue_square: Developer",
_warn_if_text_is_missing("chat.update", kwargs)
File "/usr/local/lib/python3.9/site-packages/slack_sdk/web/internal_utils.py", lin... | AttributeError |
def __init__(
self,
*,
token: Optional[str] = None,
web_client: Optional[WebClient] = None,
auto_reconnect_enabled: bool = True,
ssl: Optional[SSLContext] = None,
proxy: Optional[str] = None,
timeout: int = 30,
base_url: str = WebClient.BASE_URL,
headers: Optional[dict] = None,
... | def __init__(
self,
*,
token: Optional[str] = None,
web_client: Optional[WebClient] = None,
auto_reconnect_enabled: bool = True,
ssl: Optional[SSLContext] = None,
proxy: Optional[str] = None,
timeout: int = 30,
base_url: str = WebClient.BASE_URL,
headers: Optional[dict] = None,
... | https://github.com/slackapi/python-slack-sdk/issues/960 | 2021-02-14 18:19:49,579 ERROR slack_sdk.rtm.v2 Failed to establish a connection (session id: 18e8f520-5e64-443c-98ed-089ab1ef6f81, error: _ssl.c:1108: The handshake operation timed out)
Traceback (most recent call last):
File "/opt/errbot/lib/python3.8/site-packages/slack_sdk/socket_mode/builtin/connection.... | SlackApiError |
def connect(self):
"""Starts talking to the RTM server through a WebSocket connection"""
if self.bot_id is None:
self.bot_id = self.web_client.auth_test()["bot_id"]
old_session: Optional[Connection] = self.current_session
old_current_session_state: ConnectionState = self.current_session_state
... | def connect(self):
"""Starts talking to the RTM server through a WebSocket connection"""
if self.bot_id is None:
self.bot_id = self.web_client.auth_test()["bot_id"]
old_session: Optional[Connection] = self.current_session
if self.wss_uri is None:
self.wss_uri = self.issue_new_wss_url()... | https://github.com/slackapi/python-slack-sdk/issues/960 | 2021-02-14 18:19:49,579 ERROR slack_sdk.rtm.v2 Failed to establish a connection (session id: 18e8f520-5e64-443c-98ed-089ab1ef6f81, error: _ssl.c:1108: The handshake operation timed out)
Traceback (most recent call last):
File "/opt/errbot/lib/python3.8/site-packages/slack_sdk/socket_mode/builtin/connection.... | SlackApiError |
def _run_current_session(self):
if self.current_session is not None and self.current_session.is_active():
session_id = self.session_id()
try:
self.logger.info(
"Starting to receive messages from a new connection"
f" (session id: {session_id})"
... | def _run_current_session(self):
try:
if self.current_session is not None and self.current_session.is_active():
self.logger.info(
"Starting to receive messages from a new connection"
f" (session id: {self.session_id()})"
)
self.current_sessi... | https://github.com/slackapi/python-slack-sdk/issues/960 | 2021-02-14 18:19:49,579 ERROR slack_sdk.rtm.v2 Failed to establish a connection (session id: 18e8f520-5e64-443c-98ed-089ab1ef6f81, error: _ssl.c:1108: The handshake operation timed out)
Traceback (most recent call last):
File "/opt/errbot/lib/python3.8/site-packages/slack_sdk/socket_mode/builtin/connection.... | SlackApiError |
def __init__(
self,
app_token: str,
logger: Optional[Logger] = None,
web_client: Optional[WebClient] = None,
auto_reconnect_enabled: bool = True,
trace_enabled: bool = False,
all_message_trace_enabled: bool = False,
ping_pong_trace_enabled: bool = False,
ping_interval: float = 5,
... | def __init__(
self,
app_token: str,
logger: Optional[Logger] = None,
web_client: Optional[WebClient] = None,
auto_reconnect_enabled: bool = True,
trace_enabled: bool = False,
all_message_trace_enabled: bool = False,
ping_pong_trace_enabled: bool = False,
ping_interval: float = 5,
... | https://github.com/slackapi/python-slack-sdk/issues/960 | 2021-02-14 18:19:49,579 ERROR slack_sdk.rtm.v2 Failed to establish a connection (session id: 18e8f520-5e64-443c-98ed-089ab1ef6f81, error: _ssl.c:1108: The handshake operation timed out)
Traceback (most recent call last):
File "/opt/errbot/lib/python3.8/site-packages/slack_sdk/socket_mode/builtin/connection.... | SlackApiError |
def connect(self) -> None:
old_session: Optional[Connection] = self.current_session
old_current_session_state: ConnectionState = self.current_session_state
if self.wss_uri is None:
self.wss_uri = self.issue_new_wss_url()
current_session = Connection(
url=self.wss_uri,
logger=se... | def connect(self) -> None:
old_session: Optional[Connection] = self.current_session
if self.wss_uri is None:
self.wss_uri = self.issue_new_wss_url()
self.current_session = Connection(
url=self.wss_uri,
logger=self.logger,
ping_interval=self.ping_interval,
trace_enab... | https://github.com/slackapi/python-slack-sdk/issues/960 | 2021-02-14 18:19:49,579 ERROR slack_sdk.rtm.v2 Failed to establish a connection (session id: 18e8f520-5e64-443c-98ed-089ab1ef6f81, error: _ssl.c:1108: The handshake operation timed out)
Traceback (most recent call last):
File "/opt/errbot/lib/python3.8/site-packages/slack_sdk/socket_mode/builtin/connection.... | SlackApiError |
def __init__(
self,
*,
token: Optional[str] = None,
web_client: Optional[WebClient] = None,
auto_reconnect_enabled: bool = True,
ssl: Optional[SSLContext] = None,
proxy: Optional[str] = None,
timeout: int = 30,
base_url: str = WebClient.BASE_URL,
headers: Optional[dict] = None,
... | def __init__(
self,
*,
token: Optional[str] = None,
web_client: Optional[WebClient] = None,
auto_reconnect_enabled: bool = True,
ssl: Optional[SSLContext] = None,
proxy: Optional[str] = None,
timeout: int = 30,
base_url: str = WebClient.BASE_URL,
headers: Optional[dict] = None,
... | https://github.com/slackapi/python-slack-sdk/issues/960 | 2021-02-14 18:19:49,579 ERROR slack_sdk.rtm.v2 Failed to establish a connection (session id: 18e8f520-5e64-443c-98ed-089ab1ef6f81, error: _ssl.c:1108: The handshake operation timed out)
Traceback (most recent call last):
File "/opt/errbot/lib/python3.8/site-packages/slack_sdk/socket_mode/builtin/connection.... | SlackApiError |
def issue_new_wss_url(self) -> str:
"""Acquires a new WSS URL using rtm.connect API method"""
try:
api_response = self.web_client.rtm_connect()
return api_response["url"]
except SlackApiError as e:
if e.response["error"] == "ratelimited":
delay = int(e.response.headers.ge... | def issue_new_wss_url(self) -> str:
"""Acquires a new WSS URL using rtm.connect API method"""
try:
api_response = self.web_client.rtm_connect()
return api_response["url"]
except SlackApiError as e:
self.logger.error(f"Failed to retrieve WSS URL: {e}")
raise e
| https://github.com/slackapi/python-slack-sdk/issues/960 | 2021-02-14 18:19:49,579 ERROR slack_sdk.rtm.v2 Failed to establish a connection (session id: 18e8f520-5e64-443c-98ed-089ab1ef6f81, error: _ssl.c:1108: The handshake operation timed out)
Traceback (most recent call last):
File "/opt/errbot/lib/python3.8/site-packages/slack_sdk/socket_mode/builtin/connection.... | SlackApiError |
def connect_to_new_endpoint(self, force: bool = False):
"""Acquires a new WSS URL and tries to connect to the endpoint."""
with self.connect_operation_lock:
if force or not self.is_connected():
self.logger.info("Connecting to a new endpoint...")
self.wss_uri = self.issue_new_wss_... | def connect_to_new_endpoint(self, force: bool = False):
"""Acquires a new WSS URL and tries to connect to the endpoint."""
try:
self.connect_operation_lock.acquire(blocking=True, timeout=5)
if force or not self.is_connected():
self.logger.info("Connecting to a new endpoint...")
... | https://github.com/slackapi/python-slack-sdk/issues/960 | 2021-02-14 18:19:49,579 ERROR slack_sdk.rtm.v2 Failed to establish a connection (session id: 18e8f520-5e64-443c-98ed-089ab1ef6f81, error: _ssl.c:1108: The handshake operation timed out)
Traceback (most recent call last):
File "/opt/errbot/lib/python3.8/site-packages/slack_sdk/socket_mode/builtin/connection.... | SlackApiError |
def connect(self):
"""Starts talking to the RTM server through a WebSocket connection"""
if self.bot_id is None:
self.bot_id = self.web_client.auth_test()["bot_id"]
old_session: Optional[Connection] = self.current_session
if self.wss_uri is None:
self.wss_uri = self.issue_new_wss_url()... | def connect(self):
"""Starts talking to the RTM server through a WebSocket connection"""
if self.bot_id is None:
self.bot_id = self.web_client.auth_test()["bot_id"]
old_session: Optional[Connection] = self.current_session
self.current_session = Connection(
url=self.issue_new_wss_url(),... | https://github.com/slackapi/python-slack-sdk/issues/960 | 2021-02-14 18:19:49,579 ERROR slack_sdk.rtm.v2 Failed to establish a connection (session id: 18e8f520-5e64-443c-98ed-089ab1ef6f81, error: _ssl.c:1108: The handshake operation timed out)
Traceback (most recent call last):
File "/opt/errbot/lib/python3.8/site-packages/slack_sdk/socket_mode/builtin/connection.... | SlackApiError |
async def issue_new_wss_url(self) -> str:
try:
response = await self.web_client.apps_connections_open(app_token=self.app_token)
return response["url"]
except SlackApiError as e:
if e.response["error"] == "ratelimited":
# NOTE: ratelimited errors rarely occur with this endpoin... | async def issue_new_wss_url(self) -> str:
try:
response = await self.web_client.apps_connections_open(app_token=self.app_token)
return response["url"]
except SlackApiError as e:
self.logger.error(f"Failed to retrieve Socket Mode URL: {e}")
raise e
| https://github.com/slackapi/python-slack-sdk/issues/960 | 2021-02-14 18:19:49,579 ERROR slack_sdk.rtm.v2 Failed to establish a connection (session id: 18e8f520-5e64-443c-98ed-089ab1ef6f81, error: _ssl.c:1108: The handshake operation timed out)
Traceback (most recent call last):
File "/opt/errbot/lib/python3.8/site-packages/slack_sdk/socket_mode/builtin/connection.... | SlackApiError |
def __init__(
self,
app_token: str,
logger: Optional[Logger] = None,
web_client: Optional[WebClient] = None,
auto_reconnect_enabled: bool = True,
trace_enabled: bool = False,
all_message_trace_enabled: bool = False,
ping_pong_trace_enabled: bool = False,
ping_interval: float = 5,
... | def __init__(
self,
app_token: str,
logger: Optional[Logger] = None,
web_client: Optional[WebClient] = None,
auto_reconnect_enabled: bool = True,
trace_enabled: bool = False,
all_message_trace_enabled: bool = False,
ping_pong_trace_enabled: bool = False,
ping_interval: float = 10,
... | https://github.com/slackapi/python-slack-sdk/issues/960 | 2021-02-14 18:19:49,579 ERROR slack_sdk.rtm.v2 Failed to establish a connection (session id: 18e8f520-5e64-443c-98ed-089ab1ef6f81, error: _ssl.c:1108: The handshake operation timed out)
Traceback (most recent call last):
File "/opt/errbot/lib/python3.8/site-packages/slack_sdk/socket_mode/builtin/connection.... | SlackApiError |
def __init__(
self,
url: str,
logger: Logger,
proxy: Optional[str] = None,
proxy_headers: Optional[Dict[str, str]] = None,
ping_interval: float = 5, # seconds
receive_timeout: float = 3,
receive_buffer_size: int = 1024,
trace_enabled: bool = False,
all_message_trace_enabled: boo... | def __init__(
self,
url: str,
logger: Logger,
proxy: Optional[str] = None,
proxy_headers: Optional[Dict[str, str]] = None,
ping_interval: float = 10, # seconds
receive_timeout: float = 5,
receive_buffer_size: int = 1024,
trace_enabled: bool = False,
all_message_trace_enabled: bo... | https://github.com/slackapi/python-slack-sdk/issues/960 | 2021-02-14 18:19:49,579 ERROR slack_sdk.rtm.v2 Failed to establish a connection (session id: 18e8f520-5e64-443c-98ed-089ab1ef6f81, error: _ssl.c:1108: The handshake operation timed out)
Traceback (most recent call last):
File "/opt/errbot/lib/python3.8/site-packages/slack_sdk/socket_mode/builtin/connection.... | SlackApiError |
def connect(self) -> None:
try:
parsed_url = urlparse(self.url.strip())
hostname: str = parsed_url.hostname
port: int = parsed_url.port or (443 if parsed_url.scheme == "wss" else 80)
if self.trace_enabled:
self.logger.debug(
f"Connecting to the address for... | def connect(self) -> None:
try:
parsed_url = urlparse(self.url.strip())
hostname: str = parsed_url.hostname
port: int = parsed_url.port or (443 if parsed_url.scheme == "wss" else 80)
if self.trace_enabled:
self.logger.debug(
f"Connecting to the address for... | https://github.com/slackapi/python-slack-sdk/issues/960 | 2021-02-14 18:19:49,579 ERROR slack_sdk.rtm.v2 Failed to establish a connection (session id: 18e8f520-5e64-443c-98ed-089ab1ef6f81, error: _ssl.c:1108: The handshake operation timed out)
Traceback (most recent call last):
File "/opt/errbot/lib/python3.8/site-packages/slack_sdk/socket_mode/builtin/connection.... | SlackApiError |
def ping(self, payload: Union[str, bytes] = "") -> None:
if self.trace_enabled and self.ping_pong_trace_enabled:
if isinstance(payload, bytes):
payload = payload.decode("utf-8")
self.logger.debug(
"Sending a ping data frame "
f"(session id: {self.session_id}, payl... | def ping(self, payload: Union[str, bytes] = "") -> None:
if self.trace_enabled and self.ping_pong_trace_enabled:
if isinstance(payload, bytes):
payload = payload.decode("utf-8")
self.logger.debug(
"Sending a ping data frame "
f"(session id: {self.session_id}, payl... | https://github.com/slackapi/python-slack-sdk/issues/960 | 2021-02-14 18:19:49,579 ERROR slack_sdk.rtm.v2 Failed to establish a connection (session id: 18e8f520-5e64-443c-98ed-089ab1ef6f81, error: _ssl.c:1108: The handshake operation timed out)
Traceback (most recent call last):
File "/opt/errbot/lib/python3.8/site-packages/slack_sdk/socket_mode/builtin/connection.... | SlackApiError |
def pong(self, payload: Union[str, bytes] = "") -> None:
if self.trace_enabled and self.ping_pong_trace_enabled:
if isinstance(payload, bytes):
payload = payload.decode("utf-8")
self.logger.debug(
"Sending a pong data frame "
f"(session id: {self.session_id}, payl... | def pong(self, payload: Union[str, bytes] = "") -> None:
if self.trace_enabled and self.ping_pong_trace_enabled:
if isinstance(payload, bytes):
payload = payload.decode("utf-8")
self.logger.debug(
"Sending a pong data frame "
f"(session id: {self.session_id}, payl... | https://github.com/slackapi/python-slack-sdk/issues/960 | 2021-02-14 18:19:49,579 ERROR slack_sdk.rtm.v2 Failed to establish a connection (session id: 18e8f520-5e64-443c-98ed-089ab1ef6f81, error: _ssl.c:1108: The handshake operation timed out)
Traceback (most recent call last):
File "/opt/errbot/lib/python3.8/site-packages/slack_sdk/socket_mode/builtin/connection.... | SlackApiError |
def send(self, payload: str) -> None:
if self.trace_enabled:
if isinstance(payload, bytes):
payload = payload.decode("utf-8")
self.logger.debug(
"Sending a text data frame "
f"(session id: {self.session_id}, payload: {payload})"
)
data = _build_data_fr... | def send(self, payload: str) -> None:
if self.trace_enabled:
if isinstance(payload, bytes):
payload = payload.decode("utf-8")
self.logger.debug(
"Sending a text data frame "
f"(session id: {self.session_id}, payload: {payload})"
)
data = _build_data_fr... | https://github.com/slackapi/python-slack-sdk/issues/960 | 2021-02-14 18:19:49,579 ERROR slack_sdk.rtm.v2 Failed to establish a connection (session id: 18e8f520-5e64-443c-98ed-089ab1ef6f81, error: _ssl.c:1108: The handshake operation timed out)
Traceback (most recent call last):
File "/opt/errbot/lib/python3.8/site-packages/slack_sdk/socket_mode/builtin/connection.... | SlackApiError |
def check_state(self) -> None:
try:
if self.sock is not None:
try:
self.ping(f"{self.session_id}:{time.time()}")
except ssl.SSLZeroReturnError as e:
self.logger.info(
"Unable to send a ping message. Closing the connection..."
... | def check_state(self) -> None:
try:
if self.sock is not None:
is_stale = (
self.last_ping_pong_time is not None
and time.time() - self.last_ping_pong_time > self.ping_interval * 2
)
if is_stale:
self.logger.info(
... | https://github.com/slackapi/python-slack-sdk/issues/960 | 2021-02-14 18:19:49,579 ERROR slack_sdk.rtm.v2 Failed to establish a connection (session id: 18e8f520-5e64-443c-98ed-089ab1ef6f81, error: _ssl.c:1108: The handshake operation timed out)
Traceback (most recent call last):
File "/opt/errbot/lib/python3.8/site-packages/slack_sdk/socket_mode/builtin/connection.... | SlackApiError |
def run_until_completion(self, state: ConnectionState) -> None:
repeated_messages = {"payload": 0}
ping_count = 0
pong_count = 0
ping_pong_log_summary_size = 1000
while not state.terminated:
try:
if self.is_active():
received_messages: List[Tuple[Optional[FrameHea... | def run_until_completion(self, state: ConnectionState) -> None:
repeated_messages = {"payload": 0}
ping_count = 0
pong_count = 0
ping_pong_log_summary_size = 1000
while not state.terminated:
try:
if self.is_active():
received_messages: List[Tuple[Optional[FrameHea... | https://github.com/slackapi/python-slack-sdk/issues/960 | 2021-02-14 18:19:49,579 ERROR slack_sdk.rtm.v2 Failed to establish a connection (session id: 18e8f520-5e64-443c-98ed-089ab1ef6f81, error: _ssl.c:1108: The handshake operation timed out)
Traceback (most recent call last):
File "/opt/errbot/lib/python3.8/site-packages/slack_sdk/socket_mode/builtin/connection.... | SlackApiError |
def _establish_new_socket_connection(
session_id: str,
server_hostname: str,
server_port: int,
logger: Logger,
sock_send_lock: Lock,
receive_timeout: float,
proxy: Optional[str],
proxy_headers: Optional[Dict[str, str]],
trace_enabled: bool,
) -> Union[ssl.SSLSocket, Socket]:
if p... | def _establish_new_socket_connection(
session_id: str,
server_hostname: str,
server_port: int,
logger: Logger,
receive_timeout: float,
proxy: Optional[str],
proxy_headers: Optional[Dict[str, str]],
trace_enabled: bool,
) -> Union[ssl.SSLSocket, Socket]:
if proxy is not None:
... | https://github.com/slackapi/python-slack-sdk/issues/960 | 2021-02-14 18:19:49,579 ERROR slack_sdk.rtm.v2 Failed to establish a connection (session id: 18e8f520-5e64-443c-98ed-089ab1ef6f81, error: _ssl.c:1108: The handshake operation timed out)
Traceback (most recent call last):
File "/opt/errbot/lib/python3.8/site-packages/slack_sdk/socket_mode/builtin/connection.... | SlackApiError |
def _receive_messages(
sock: ssl.SSLSocket,
sock_receive_lock: Lock,
logger: Logger,
receive_buffer_size: int = 1024,
all_message_trace_enabled: bool = False,
) -> List[Tuple[Optional[FrameHeader], bytes]]:
def receive(specific_buffer_size: Optional[int] = None):
size = (
spe... | def _receive_messages(
sock: ssl.SSLSocket,
logger: Logger,
receive_buffer_size: int = 1024,
all_message_trace_enabled: bool = False,
) -> List[Tuple[Optional[FrameHeader], bytes]]:
def receive(specific_buffer_size: Optional[int] = None):
size = (
specific_buffer_size
... | https://github.com/slackapi/python-slack-sdk/issues/960 | 2021-02-14 18:19:49,579 ERROR slack_sdk.rtm.v2 Failed to establish a connection (session id: 18e8f520-5e64-443c-98ed-089ab1ef6f81, error: _ssl.c:1108: The handshake operation timed out)
Traceback (most recent call last):
File "/opt/errbot/lib/python3.8/site-packages/slack_sdk/socket_mode/builtin/connection.... | SlackApiError |
def receive(specific_buffer_size: Optional[int] = None):
size = (
specific_buffer_size
if specific_buffer_size is not None
else receive_buffer_size
)
with sock_receive_lock:
try:
received_bytes = sock.recv(size)
if all_message_trace_enabled:
... | def receive(specific_buffer_size: Optional[int] = None):
size = (
specific_buffer_size
if specific_buffer_size is not None
else receive_buffer_size
)
received_bytes = sock.recv(size)
if all_message_trace_enabled:
if len(received_bytes) > 0:
logger.debug(f"Rece... | https://github.com/slackapi/python-slack-sdk/issues/960 | 2021-02-14 18:19:49,579 ERROR slack_sdk.rtm.v2 Failed to establish a connection (session id: 18e8f520-5e64-443c-98ed-089ab1ef6f81, error: _ssl.c:1108: The handshake operation timed out)
Traceback (most recent call last):
File "/opt/errbot/lib/python3.8/site-packages/slack_sdk/socket_mode/builtin/connection.... | SlackApiError |
def issue_new_wss_url(self) -> str:
try:
response = self.web_client.apps_connections_open(app_token=self.app_token)
return response["url"]
except SlackApiError as e:
if e.response["error"] == "ratelimited":
# NOTE: ratelimited errors rarely occur with this endpoint
... | def issue_new_wss_url(self) -> str:
try:
response = self.web_client.apps_connections_open(app_token=self.app_token)
return response["url"]
except SlackApiError as e:
self.logger.error(f"Failed to retrieve Socket Mode URL: {e}")
raise e
| https://github.com/slackapi/python-slack-sdk/issues/960 | 2021-02-14 18:19:49,579 ERROR slack_sdk.rtm.v2 Failed to establish a connection (session id: 18e8f520-5e64-443c-98ed-089ab1ef6f81, error: _ssl.c:1108: The handshake operation timed out)
Traceback (most recent call last):
File "/opt/errbot/lib/python3.8/site-packages/slack_sdk/socket_mode/builtin/connection.... | SlackApiError |
def _build_req_args(
*,
token: Optional[str],
http_verb: str,
files: dict,
data: dict,
default_params: dict,
params: dict,
json: dict, # skipcq: PYL-W0621
headers: dict,
auth: dict,
ssl: Optional[SSLContext],
proxy: Optional[str],
) -> dict:
has_json = json is not No... | def _build_req_args(
*,
token: Optional[str],
http_verb: str,
files: dict,
data: dict,
default_params: dict,
params: dict,
json: dict, # skipcq: PYL-W0621
headers: dict,
auth: dict,
ssl: Optional[SSLContext],
proxy: Optional[str],
) -> dict:
has_json = json is not No... | https://github.com/slackapi/python-slack-sdk/issues/900 | Traceback (most recent call last):
File "test.py", line 19, in <module>
response = client.files_upload(channels="#random", file=io.BytesIO(file))
File "../lib/python3.8/site-packages/slack_sdk/web/client.py", line 1482, in files_upload
return self.api_call("files.upload", files={"file": file}, data=kwargs)
File "../lib... | FileNotFoundError |
def onboarding_message(payload):
"""Create and send an onboarding welcome message to new users. Save the
time stamp of this message so we can update this message in the future.
"""
event = payload.get("event", {})
# Get the id of the Slack user associated with the incoming event
user_id = event... | def onboarding_message(payload):
"""Create and send an onboarding welcome message to new users. Save the
time stamp of this message so we can update this message in the future.
"""
event = payload.get("event", {})
# Get the id of the Slack user associated with the incoming event
user_id = event... | https://github.com/slackapi/python-slack-sdk/issues/889 | Traceback (most recent call last):
File "D:\_pyCharm\mySlackWebClient2\venv\lib\site-packages\flask\app.py", line 2447, in wsgi_app
response = self.full_dispatch_request()
File "D:\_pyCharm\mySlackWebClient2\venv\lib\site-packages\flask\app.py", line 1952, in full_dispatch_request
rv = self.handle_user_exception(e)
Fil... | slack_sdk.errors.SlackApiError |
async def onboarding_message(**payload):
"""Create and send an onboarding welcome message to new users. Save the
time stamp of this message so we can update this message in the future.
"""
# Get WebClient so you can communicate back to Slack.
web_client = payload["web_client"]
# Get the id of t... | async def onboarding_message(**payload):
"""Create and send an onboarding welcome message to new users. Save the
time stamp of this message so we can update this message in the future.
"""
# Get WebClient so you can communicate back to Slack.
web_client = payload["web_client"]
# Get the id of t... | https://github.com/slackapi/python-slack-sdk/issues/889 | Traceback (most recent call last):
File "D:\_pyCharm\mySlackWebClient2\venv\lib\site-packages\flask\app.py", line 2447, in wsgi_app
response = self.full_dispatch_request()
File "D:\_pyCharm\mySlackWebClient2\venv\lib\site-packages\flask\app.py", line 1952, in full_dispatch_request
rv = self.handle_user_exception(e)
Fil... | slack_sdk.errors.SlackApiError |
def __init__(
self,
*,
token: str,
run_async: Optional[bool] = False,
auto_reconnect: Optional[bool] = True,
ssl: Optional[SSLContext] = None,
proxy: Optional[str] = None,
timeout: Optional[int] = 30,
base_url: Optional[str] = WebClient.BASE_URL,
connect_method: Optional[str] = N... | def __init__(
self,
*,
token: str,
run_async: Optional[bool] = False,
auto_reconnect: Optional[bool] = True,
ssl: Optional[SSLContext] = None,
proxy: Optional[str] = None,
timeout: Optional[int] = 30,
base_url: Optional[str] = WebClient.BASE_URL,
connect_method: Optional[str] = N... | https://github.com/slackapi/python-slack-sdk/issues/846 | `Traceback (most recent call last):`
` File "/Volumes/X5/survival_bot/Util/westland_bot/slack_bot.py", line 40, in rtm_client_run_on`
` self.process_bots(web_client, sender, data['text'], channel, is_group_channel)`
` File "/Volumes/X5/survival_bot/Util/westland_bot/slack_bot.py", line 82, in process_bots`
` web_cl... | URLError |
async def _retrieve_websocket_info(self):
"""Retrieves the WebSocket info from Slack.
Returns:
A tuple of websocket information.
e.g.
(
"wss://...",
{
"self": {"id": "U01234ABC","name": "robotoverlord"},
"team": {
... | async def _retrieve_websocket_info(self):
"""Retrieves the WebSocket info from Slack.
Returns:
A tuple of websocket information.
e.g.
(
"wss://...",
{
"self": {"id": "U01234ABC","name": "robotoverlord"},
"team": {
... | https://github.com/slackapi/python-slack-sdk/issues/846 | `Traceback (most recent call last):`
` File "/Volumes/X5/survival_bot/Util/westland_bot/slack_bot.py", line 40, in rtm_client_run_on`
` self.process_bots(web_client, sender, data['text'], channel, is_group_channel)`
` File "/Volumes/X5/survival_bot/Util/westland_bot/slack_bot.py", line 82, in process_bots`
` web_cl... | URLError |
def _perform_urllib_http_request(
self, *, url: str, args: Dict[str, Dict[str, any]]
) -> Dict[str, any]:
"""Performs an HTTP request and parses the response.
:param url: a complete URL (e.g., https://www.slack.com/api/chat.postMessage)
:param args: args has "headers", "data", "params", and "json"
... | def _perform_urllib_http_request(
self, *, url: str, args: Dict[str, Dict[str, any]]
) -> Dict[str, any]:
"""Performs an HTTP request and parses the response.
:param url: a complete URL (e.g., https://www.slack.com/api/chat.postMessage)
:param args: args has "headers", "data", "params", and "json"
... | https://github.com/slackapi/python-slack-sdk/issues/820 | Traceback (most recent call last):
File "/usr/local/lib/python3.8/urllib/request.py", line 1350, in do_open
h.request(req.get_method(), req.selector, req.data, headers,
File "/usr/local/lib/python3.8/http/client.py", line 1255, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/local/l... | urllib.error.URLError |
def _perform_http_request(
self, *, body: Dict[str, any], headers: Dict[str, str]
) -> WebhookResponse:
"""Performs an HTTP request and parses the response.
:param url: a complete URL to send data (e.g., https://hooks.slack.com/XXX)
:param body: request body data
:param headers: complete set of requ... | def _perform_http_request(
self, *, body: Dict[str, any], headers: Dict[str, str]
) -> WebhookResponse:
"""Performs an HTTP request and parses the response.
:param url: a complete URL to send data (e.g., https://hooks.slack.com/XXX)
:param body: request body data
:param headers: complete set of requ... | https://github.com/slackapi/python-slack-sdk/issues/820 | Traceback (most recent call last):
File "/usr/local/lib/python3.8/urllib/request.py", line 1350, in do_open
h.request(req.get_method(), req.selector, req.data, headers,
File "/usr/local/lib/python3.8/http/client.py", line 1255, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/local/l... | urllib.error.URLError |
async def files_upload(
self, *, file: Union[str, IOBase] = None, content: str = None, **kwargs
) -> AsyncSlackResponse:
"""Uploads or creates a file.
Args:
file (str): Supply a file path.
when you'd like to upload a specific file. e.g. 'dramacat.gif'
content (str): Supply conte... | async def files_upload(
self, *, file: Union[str, IOBase] = None, content: str = None, **kwargs
) -> AsyncSlackResponse:
"""Uploads or creates a file.
Args:
file (str): Supply a file path.
when you'd like to upload a specific file. e.g. 'dramacat.gif'
content (str): Supply conte... | https://github.com/slackapi/python-slack-sdk/issues/809 | Traceback (most recent call last):
File "/afs/ThisCell/data/vlsi/eclipz/ct6/verif/p10d2/pscripts/user_modules/change_stats.py", line 456, in <module>
rc = main()
File "/afs/ThisCell/data/vlsi/eclipz/ct6/verif/p10d2/pscripts/user_modules/change_stats.py", line 356, in main
plotter(df)
File "/afs/ThisCell/data/vlsi/eclip... | AttributeError |
def files_upload(
self, *, file: Union[str, IOBase] = None, content: str = None, **kwargs
) -> Union[Future, SlackResponse]:
"""Uploads or creates a file.
Args:
file (str): Supply a file path.
when you'd like to upload a specific file. e.g. 'dramacat.gif'
content (str): Supply c... | def files_upload(
self, *, file: Union[str, IOBase] = None, content: str = None, **kwargs
) -> Union[Future, SlackResponse]:
"""Uploads or creates a file.
Args:
file (str): Supply a file path.
when you'd like to upload a specific file. e.g. 'dramacat.gif'
content (str): Supply c... | https://github.com/slackapi/python-slack-sdk/issues/809 | Traceback (most recent call last):
File "/afs/ThisCell/data/vlsi/eclipz/ct6/verif/p10d2/pscripts/user_modules/change_stats.py", line 456, in <module>
rc = main()
File "/afs/ThisCell/data/vlsi/eclipz/ct6/verif/p10d2/pscripts/user_modules/change_stats.py", line 356, in main
plotter(df)
File "/afs/ThisCell/data/vlsi/eclip... | AttributeError |
async def _read_messages(self):
"""Process messages received on the WebSocket connection."""
text_message_callback_executions: List[Future] = []
while not self._stopped and self._websocket is not None:
for future in text_message_callback_executions:
if future.done():
text... | async def _read_messages(self):
"""Process messages received on the WebSocket connection."""
text_message_callback_executions: List[Future] = []
while not self._stopped and self._websocket is not None:
for future in text_message_callback_executions:
if future.done():
text... | https://github.com/slackapi/python-slack-sdk/issues/611 | 2020-02-03 06:20:43,937 slack.rtm.client DEBUG [client.py:427]: Running 1 callbacks for event: 'error'
2020-02-03 06:20:43,937 slack.rtm.client ERROR [client.py:445]: When calling '#_event_error()' in the 'slackminion.bot' module the following error was raised: 'coroutine' object has no attribute '__dict__'
2020-02-03 ... | AttributeError |
async def _connect_and_read(self):
"""Retreives the WS url and connects to Slack's RTM API.
Makes an authenticated call to Slack's Web API to retrieve
a websocket URL. Then connects to the message server and
reads event messages as they come in.
If 'auto_reconnect' is specified we
retrieve a n... | async def _connect_and_read(self):
"""Retreives the WS url and connects to Slack's RTM API.
Makes an authenticated call to Slack's Web API to retrieve
a websocket URL. Then connects to the message server and
reads event messages as they come in.
If 'auto_reconnect' is specified we
retrieve a n... | https://github.com/slackapi/python-slack-sdk/issues/535 | slackbot
Traceback (most recent call last):
File "foo.py", line 4, in <module>
for page in client.users_list(limit=1):
File "/home/foo/.pyenv/versions/3.7.2/lib/python3.7/site-packages/slack/web/slack_response.py", line 139, in __next__
req_args=self.req_args,
File "/home/foo/.pyenv/versions/3.7.2/lib/python3.7/asyncio... | KeyError |
async def _request(self, *, http_verb, api_url, req_args):
"""Submit the HTTP request with the running session or a new session.
Returns:
A dictionary of the response data.
"""
session = None
if self.session and not self.session.closed:
session = self.session
else:
sessio... | async def _request(self, *, http_verb, api_url, req_args):
"""Submit the HTTP request with the running session or a new session.
Returns:
A dictionary of the response data.
"""
if self.session and not self.session.closed:
async with self.session.request(http_verb, api_url, **req_args) as... | https://github.com/slackapi/python-slack-sdk/issues/535 | slackbot
Traceback (most recent call last):
File "foo.py", line 4, in <module>
for page in client.users_list(limit=1):
File "/home/foo/.pyenv/versions/3.7.2/lib/python3.7/site-packages/slack/web/slack_response.py", line 139, in __next__
req_args=self.req_args,
File "/home/foo/.pyenv/versions/3.7.2/lib/python3.7/asyncio... | KeyError |
def run_on(*, event: str):
"""A decorator to store and link a callback to an event."""
def decorator(callback):
RTMClient.on(event=event, callback=callback)
return callback
return decorator
| def run_on(*, event: str):
"""A decorator to store and link a callback to an event."""
def decorator(callback):
RTMClient.on(event=event, callback=callback)
return decorator
| https://github.com/slackapi/python-slack-sdk/issues/485 | Traceback (most recent call last):
File "a.py", line 7, in <module>
foo()
TypeError: 'NoneType' object is not callable | TypeError |
def decorator(callback):
RTMClient.on(event=event, callback=callback)
return callback
| def decorator(callback):
RTMClient.on(event=event, callback=callback)
| https://github.com/slackapi/python-slack-sdk/issues/485 | Traceback (most recent call last):
File "a.py", line 7, in <module>
foo()
TypeError: 'NoneType' object is not callable | TypeError |
def __str__(self) -> str:
if self == AdexEventType.BOND:
return "deposit"
if self == AdexEventType.UNBOND:
return "withdraw"
if self == AdexEventType.UNBOND_REQUEST:
return "withdraw request"
if self == AdexEventType.CHANNEL_WITHDRAW:
return "claim"
raise AssertionErr... | def __str__(self) -> str:
if self == AdexEventType.BOND:
return "deposit"
if self == AdexEventType.UNBOND:
return "withdraw"
if self == AdexEventType.UNBOND_REQUEST:
return "withdraw request"
if self == AdexEventType.CHANNEL_WITHDRAW:
return "claim"
raise AttributeErr... | https://github.com/rotki/rotki/issues/2116 | 2021-01-17T09:45:53.929Z: Starting packaged python subprocess: /tmp/lefteris/.mount_rotki-bd0Awo/resources/rotkehlchen_py_dist/rotkehlchen-1.12.1-linux --api-port 4242 --loglevel debug --api-cors app://* --logfile /home/lefteris/.config/rotki/logs/rotkehlchen.log
2021-01-17T09:45:53.935Z: The Python sub-process started... | ValueError |
def __init__(
self,
chain: SubstrateChain,
greenlet_manager: GreenletManager,
msg_aggregator: MessagesAggregator,
connect_at_start: Sequence[NodeName],
connect_on_startup: bool,
own_rpc_endpoint: str,
) -> None:
"""An interface to any Substrate chain supported by Rotki.
It uses Polk... | def __init__(
self,
chain: SubstrateChain,
greenlet_manager: GreenletManager,
msg_aggregator: MessagesAggregator,
connect_at_start: Sequence[NodeName],
connect_on_startup: bool,
own_rpc_endpoint: str,
) -> None:
"""An interface to any Substrate chain supported by Rotki.
It uses Polk... | https://github.com/rotki/rotki/issues/2116 | 2021-01-17T09:45:53.929Z: Starting packaged python subprocess: /tmp/lefteris/.mount_rotki-bd0Awo/resources/rotkehlchen_py_dist/rotkehlchen-1.12.1-linux --api-port 4242 --loglevel debug --api-cors app://* --logfile /home/lefteris/.config/rotki/logs/rotkehlchen.log
2021-01-17T09:45:53.935Z: The Python sub-process started... | ValueError |
def _get_node_interface(self, endpoint: str) -> SubstrateInterface:
"""Get an instance of SubstrateInterface, a specialized class in
interfacing with a Substrate node that deals with SCALE encoding/decoding,
metadata parsing, type registry management and versioning of types.
May raise (most common):
... | def _get_node_interface(self, endpoint: str) -> SubstrateInterface:
"""Get an instance of SubstrateInterface, a specialized class in
interfacing with a Substrate node that deals with SCALE encoding/decoding,
metadata parsing, type registry management and versioning of types.
May raise (most common):
... | https://github.com/rotki/rotki/issues/2116 | 2021-01-17T09:45:53.929Z: Starting packaged python subprocess: /tmp/lefteris/.mount_rotki-bd0Awo/resources/rotkehlchen_py_dist/rotkehlchen-1.12.1-linux --api-port 4242 --loglevel debug --api-cors app://* --logfile /home/lefteris/.config/rotki/logs/rotkehlchen.log
2021-01-17T09:45:53.935Z: The Python sub-process started... | ValueError |
def _request_chain_metadata(self) -> Dict[str, Any]:
"""Subscan API metadata documentation:
https://docs.api.subscan.io/#metadata
"""
response = self._request_explorer_api(endpoint="metadata")
if response.status_code != HTTPStatus.OK:
message = (
f"{self.chain} chain metadata req... | def _request_chain_metadata(self) -> Dict[str, Any]:
"""Subscan API metadata documentation:
https://docs.api.subscan.io/#metadata
"""
response = self._request_explorer_api(endpoint="metadata")
if response.status_code != HTTPStatus.OK:
message = (
f"{self.chain} chain metadata req... | https://github.com/rotki/rotki/issues/2116 | 2021-01-17T09:45:53.929Z: Starting packaged python subprocess: /tmp/lefteris/.mount_rotki-bd0Awo/resources/rotkehlchen_py_dist/rotkehlchen-1.12.1-linux --api-port 4242 --loglevel debug --api-cors app://* --logfile /home/lefteris/.config/rotki/logs/rotkehlchen.log
2021-01-17T09:45:53.935Z: The Python sub-process started... | ValueError |
def __init__(
self,
name: str,
api_key: ApiKey,
secret: ApiSecret,
database: "DBHandler",
):
assert isinstance(api_key, T_ApiKey), "api key for {} should be a string".format(
name
)
assert isinstance(secret, T_ApiSecret), (
"secret for {} should be a bytestring".format(na... | def __init__(
self,
name: str,
api_key: ApiKey,
secret: ApiSecret,
database: "DBHandler",
):
print("Exchange interface ctor called")
assert isinstance(api_key, T_ApiKey), "api key for {} should be a string".format(
name
)
assert isinstance(secret, T_ApiSecret), (
"sec... | https://github.com/rotki/rotki/issues/2116 | 2021-01-17T09:45:53.929Z: Starting packaged python subprocess: /tmp/lefteris/.mount_rotki-bd0Awo/resources/rotkehlchen_py_dist/rotkehlchen-1.12.1-linux --api-port 4242 --loglevel debug --api-cors app://* --logfile /home/lefteris/.config/rotki/logs/rotkehlchen.log
2021-01-17T09:45:53.935Z: The Python sub-process started... | ValueError |
def _is_token_non_standard(symbol: str, address: ChecksumEthAddress) -> bool:
"""ignore some assets we do not query directly as token balances"""
if symbol in ("UNI-V2",):
return True
if address in ("0xCb2286d9471cc185281c4f763d34A962ED212962",): # Sushi LP token
return True
return Fa... | def _is_token_non_standard(symbol: str, address: ChecksumEthAddress) -> bool:
"""ignore some assets we do not yet support and don't want to spam warnings with"""
if symbol in ("UNI-V2", "swUSD", "crCRV"):
return True
if address in ("0xCb2286d9471cc185281c4f763d34A962ED212962",): # Sushi LP token
... | https://github.com/rotki/rotki/issues/1777 | 2020-11-23T14:53:52.590Z: Traceback (most recent call last):
File "src/gevent/greenlet.py", line 818, in gevent._greenlet.Greenlet.run
File "rotkehlchen/api/rest.py", line 235, in _do_query_async
result = getattr(self, command)(**kwargs)
File "rotkehlchen/api/rest.py", line 1576, in _eth_module_query
result = getattr(m... | FileNotFoundError |
def pull_data(self) -> Dict:
"""Pulls data from the server and returns the response dict
Returns None if there is no DB saved in the server.
Raises RemoteError if there are problems reaching the server or if
there is an error returned by the server
"""
signature, data = self.sign("get_saved_da... | def pull_data(self) -> Dict:
"""Pulls data from the server and returns the response dict
Raises RemoteError if there are problems reaching the server or if
there is an error returned by the server
"""
signature, data = self.sign("get_saved_data")
self.session.headers.update(
{
... | https://github.com/rotki/rotki/issues/1571 | [07/10/2020 10:06:45 CEST] ERROR rotkehlchen.api.server: Exception on /api/1/users [PUT]
Traceback (most recent call last):
File "/home/lefteris/.virtualenvs/rotkipy37/lib/python3.7/site-packages/flask/app.py", line 1949, in full_dispatch_request
rv = self.dispatch_request()
File "/home/lefteris/.virtualenvs/rotkipy37/... | AssertionError |
def _sync_data_from_server_and_replace_local(self) -> bool:
"""
Performs syncing of data from server and replaces local db
Returns true for success and False for error/failure
May raise:
- PremiumAuthenticationError due to an UnableToDecryptRemoteData
coming from decompress_and_decrypt_db. Th... | def _sync_data_from_server_and_replace_local(self) -> bool:
"""
Performs syncing of data from server and replaces local db
Returns true for success and False for error/failure
May raise:
- PremiumAuthenticationError due to an UnableToDecryptRemoteData
coming from decompress_and_decrypt_db. Th... | https://github.com/rotki/rotki/issues/1571 | [07/10/2020 10:06:45 CEST] ERROR rotkehlchen.api.server: Exception on /api/1/users [PUT]
Traceback (most recent call last):
File "/home/lefteris/.virtualenvs/rotkipy37/lib/python3.7/site-packages/flask/app.py", line 1949, in full_dispatch_request
rv = self.dispatch_request()
File "/home/lefteris/.virtualenvs/rotkipy37/... | AssertionError |
def query(
self,
querystr: str,
param_types: Optional[Dict[str, Any]],
param_values: Optional[Dict[str, Any]],
) -> Dict[str, Any]:
"""Queries The Graph for a particular query
May raise:
- RemoteError: If there is a problem querying
"""
prefix = "query "
if param_types is not No... | def query(
self,
querystr: str,
param_types: Optional[Dict[str, Any]],
param_values: Optional[Dict[str, Any]],
) -> Dict[str, Any]:
"""Queries The Graph for a particular query
May raise:
- RemoteError: If there is a problem querying
"""
prefix = "query "
if param_types is not No... | https://github.com/rotki/rotki/issues/1482 | [16/09/2020 17:41:40 Mitteleuropäische Sommerzeit] rotkehlchen.exchanges.binance: Binance API request request_url=https://api.binance.com/api/v3/account?recvWindow=10000&timestamp=1600270900071&signature=[REDACTED]
[16/09/2020 17:41:40 Mitteleuropäische Sommerzeit] rotkehlchen.api.server: Exception on /api/1/ex... | rotkehlchen.errors.RemoteError |
def validate_api_key(self) -> Tuple[bool, str]:
try:
# We know account endpoint returns a dict
self.api_query_dict("account")
except RemoteError as e:
error = str(e)
if "API-key format invalid" in error:
return False, "Provided API Key is in invalid Format"
el... | def validate_api_key(self) -> Tuple[bool, str]:
try:
# We know account endpoint returns a dict
self.api_query_dict("account")
except RemoteError as e:
error = str(e)
if "API-key format invalid" in error:
return False, "Provided API Key is in invalid Format"
el... | https://github.com/rotki/rotki/issues/1482 | [16/09/2020 17:41:40 Mitteleuropäische Sommerzeit] rotkehlchen.exchanges.binance: Binance API request request_url=https://api.binance.com/api/v3/account?recvWindow=10000&timestamp=1600270900071&signature=[REDACTED]
[16/09/2020 17:41:40 Mitteleuropäische Sommerzeit] rotkehlchen.api.server: Exception on /api/1/ex... | rotkehlchen.errors.RemoteError |
def _check_and_get_response(response: Response, method: str) -> Union[str, Dict]:
"""Checks the kraken response and if it's succesfull returns the result.
If there is recoverable error a string is returned explaining the error
May raise:
- RemoteError if there is an unrecoverable/unexpected remote erro... | def _check_and_get_response(response: Response, method: str) -> Union[str, Dict]:
"""Checks the kraken response and if it's succesfull returns the result.
If there is recoverable error a string is returned explaining the error
May raise:
- RemoteError if there is an unrecoverable/unexpected remote erro... | https://github.com/rotki/rotki/issues/943 | 27/04/2020 17:06:16 W. Europe Daylight Time -- INFO:rotkehlchen.exchanges.exchange:Initialized kraken exchange
27/04/2020 17:06:16 W. Europe Daylight Time -- DEBUG:rotkehlchen.exchanges.kraken:Kraken API query method=Balance, data=None, call_counter=0
27/04/2020 17:06:16 W. Europe Daylight Time -- ERROR:rotkehlchen.api... | KeyError |
def _query_blockchain_balances(
self,
blockchain: Optional[SupportedBlockchain],
ignore_cache: bool,
) -> Dict[str, Any]:
msg = ""
status_code = HTTPStatus.OK
result = None
try:
balances = self.rotkehlchen.chain_manager.query_balances(
blockchain=blockchain,
i... | def _query_blockchain_balances(
self,
blockchain: Optional[SupportedBlockchain],
ignore_cache: bool,
) -> Dict[str, Any]:
msg = ""
status_code = HTTPStatus.OK
result = None
try:
balances = self.rotkehlchen.chain_manager.query_balances(
blockchain=blockchain,
i... | https://github.com/rotki/rotki/issues/848 | 06/04/2020 19:32:00 W. Europe Daylight Time -- ERROR:rotkehlchen.api.server:Exception on /api/1/balances/blockchains/btc [GET]
Traceback (most recent call last):
File "C:\Users\Gebruiker\Envs\rotkehlchen\lib\site-packages\flask\app.py", line 1949, in full_dispatch_request
rv = self.dispatch_request()
File "C:\Users\Geb... | KeyError |
def request_get(uri, timeout=ALL_REMOTES_TIMEOUT):
# TODO make this a bit more smart. Perhaps conditional on the type of request.
# Not all requests would need repeated attempts
response = retry_calls(
5,
"",
uri,
requests.get,
uri,
)
if response.status_code ... | def request_get(uri, timeout=ALL_REMOTES_TIMEOUT):
response = requests.get(uri)
if response.status_code != 200:
raise RemoteError(
"Get {} returned status code {}".format(uri, response.status_code)
)
try:
result = rlk_jsonloads(response.text)
except json.decoder.JSON... | https://github.com/rotki/rotki/issues/170 | Traceback (most recent call last):
File "/home/lefteris/.virtualenvs/rotkehlchen/bin/zerorpc", line 11, in <module>
sys.exit(main())
File "/home/lefteris/.virtualenvs/rotkehlchen/lib/python3.7/site-packages/zerorpc/cli.py", line 310, in main
return run_client(args)
File "/home/lefteris/.virtualenvs/rotkehlchen/lib/pyth... | zerorpc.exceptions.RemoteError |
def query_balances(self) -> Tuple[Dict[str, Dict], str]:
try:
self.query_ethereum_balances()
except BadFunctionCallOutput as e:
logger.error(
"Assuming unsynced chain. Got web3 BadFunctionCallOutput "
"exception: {}".format(str(e))
)
msg = (
"T... | def query_balances(self) -> Dict[str, Dict]:
self.query_ethereum_balances()
self.query_btc_balances()
return {"per_account": self.balances, "totals": self.totals}
| https://github.com/rotki/rotki/issues/101 | Traceback (most recent call last):
File "/home/lefteris/.virtualenvs/rotkehlchen/bin/zerorpc", line 11, in <module>
load_entry_point('zerorpc==0.6.1', 'console_scripts', 'zerorpc')()
File "/home/lefteris/.virtualenvs/rotkehlchen/lib/python3.6/site-packages/zerorpc/cli.py", line 310, in main
return run_client(args)
File... | zerorpc.exceptions.RemoteError |
def modify_blockchain_account(
self,
blockchain: str,
account: typing.BlockchainAddress,
append_or_remove: str,
add_or_sub: Callable[[FVal, FVal], FVal],
) -> BlockchainBalancesUpdate:
if blockchain == S_BTC:
if append_or_remove == "remove" and account not in self.accounts[S_BTC]:
... | def modify_blockchain_account(
self,
blockchain: str,
account: typing.BlockchainAddress,
append_or_remove: str,
add_or_sub: Callable[[FVal, FVal], FVal],
) -> BlockchainBalancesUpdate:
if blockchain == S_BTC:
if append_or_remove == "remove" and account not in self.accounts[S_BTC]:
... | https://github.com/rotki/rotki/issues/101 | Traceback (most recent call last):
File "/home/lefteris/.virtualenvs/rotkehlchen/bin/zerorpc", line 11, in <module>
load_entry_point('zerorpc==0.6.1', 'console_scripts', 'zerorpc')()
File "/home/lefteris/.virtualenvs/rotkehlchen/lib/python3.6/site-packages/zerorpc/cli.py", line 310, in main
return run_client(args)
File... | zerorpc.exceptions.RemoteError |
def add_blockchain_account(self, blockchain, account):
try:
new_data = self.blockchain.add_blockchain_account(blockchain, account)
except (InputError, EthSyncError) as e:
return simple_result(False, str(e))
self.data.add_blockchain_account(blockchain, account)
return accounts_result(new_... | def add_blockchain_account(self, blockchain, account):
try:
new_data = self.blockchain.add_blockchain_account(blockchain, account)
except InputError as e:
return simple_result(False, str(e))
self.data.add_blockchain_account(blockchain, account)
return accounts_result(new_data["per_accoun... | https://github.com/rotki/rotki/issues/101 | Traceback (most recent call last):
File "/home/lefteris/.virtualenvs/rotkehlchen/bin/zerorpc", line 11, in <module>
load_entry_point('zerorpc==0.6.1', 'console_scripts', 'zerorpc')()
File "/home/lefteris/.virtualenvs/rotkehlchen/lib/python3.6/site-packages/zerorpc/cli.py", line 310, in main
return run_client(args)
File... | zerorpc.exceptions.RemoteError |
def remove_blockchain_account(self, blockchain, account):
try:
new_data = self.blockchain.remove_blockchain_account(blockchain, account)
except (InputError, EthSyncError) as e:
return simple_result(False, str(e))
self.data.remove_blockchain_account(blockchain, account)
return accounts_re... | def remove_blockchain_account(self, blockchain, account):
try:
new_data = self.blockchain.remove_blockchain_account(blockchain, account)
except InputError as e:
return simple_result(False, str(e))
self.data.remove_blockchain_account(blockchain, account)
return accounts_result(new_data["p... | https://github.com/rotki/rotki/issues/101 | Traceback (most recent call last):
File "/home/lefteris/.virtualenvs/rotkehlchen/bin/zerorpc", line 11, in <module>
load_entry_point('zerorpc==0.6.1', 'console_scripts', 'zerorpc')()
File "/home/lefteris/.virtualenvs/rotkehlchen/lib/python3.6/site-packages/zerorpc/cli.py", line 310, in main
return run_client(args)
File... | zerorpc.exceptions.RemoteError |
def add_owned_eth_tokens(self, tokens):
try:
new_data = self.blockchain.track_new_tokens(tokens)
except (InputError, EthSyncError) as e:
return simple_result(False, str(e))
self.data.write_owned_eth_tokens(self.blockchain.owned_eth_tokens)
return accounts_result(new_data["per_account"],... | def add_owned_eth_tokens(self, tokens):
try:
new_data = self.blockchain.track_new_tokens(tokens)
except InputError as e:
return simple_result(False, str(e))
self.data.write_owned_eth_tokens(self.blockchain.owned_eth_tokens)
return accounts_result(new_data["per_account"], new_data["total... | https://github.com/rotki/rotki/issues/101 | Traceback (most recent call last):
File "/home/lefteris/.virtualenvs/rotkehlchen/bin/zerorpc", line 11, in <module>
load_entry_point('zerorpc==0.6.1', 'console_scripts', 'zerorpc')()
File "/home/lefteris/.virtualenvs/rotkehlchen/lib/python3.6/site-packages/zerorpc/cli.py", line 310, in main
return run_client(args)
File... | zerorpc.exceptions.RemoteError |
def query_balances(self, requested_save_data=False):
balances = {}
problem_free = True
for exchange in self.connected_exchanges:
exchange_balances, msg = getattr(self, exchange).query_balances()
# If we got an error, disregard that exchange but make sure we don't save data
if not exc... | def query_balances(self, requested_save_data=False):
balances = {}
problem_free = True
for exchange in self.connected_exchanges:
exchange_balances, msg = getattr(self, exchange).query_balances()
# If we got an error, disregard that exchange but make sure we don't save data
if not exc... | https://github.com/rotki/rotki/issues/101 | Traceback (most recent call last):
File "/home/lefteris/.virtualenvs/rotkehlchen/bin/zerorpc", line 11, in <module>
load_entry_point('zerorpc==0.6.1', 'console_scripts', 'zerorpc')()
File "/home/lefteris/.virtualenvs/rotkehlchen/lib/python3.6/site-packages/zerorpc/cli.py", line 310, in main
return run_client(args)
File... | zerorpc.exceptions.RemoteError |
def query_blockchain_balances(self):
result, empty_or_error = self.rotkehlchen.blockchain.query_balances()
return process_result({"result": result, "message": empty_or_error})
| def query_blockchain_balances(self):
balances = self.rotkehlchen.blockchain.query_balances()
return process_result(balances)
| https://github.com/rotki/rotki/issues/101 | Traceback (most recent call last):
File "/home/lefteris/.virtualenvs/rotkehlchen/bin/zerorpc", line 11, in <module>
load_entry_point('zerorpc==0.6.1', 'console_scripts', 'zerorpc')()
File "/home/lefteris/.virtualenvs/rotkehlchen/lib/python3.6/site-packages/zerorpc/cli.py", line 310, in main
return run_client(args)
File... | zerorpc.exceptions.RemoteError |
def meshgrid(self):
"""Return a meshgrid of numpy arrays for this mesh.
This simply returns a ``numpy.meshgrid`` of the coordinates for this
mesh in ``ij`` indexing. These are a copy of the points of this mesh.
"""
return np.meshgrid(self.x, self.y, self.z, indexing="ij")
| def meshgrid(self):
"""Return the a meshgrid of numpy arrays for this mesh.
This simply returns a ``numpy.meshgrid`` of the coordinates for this
mesh in ``ij`` indexing.
"""
return np.meshgrid(self.x, self.y, self.z, indexing="ij")
| https://github.com/pyvista/pyvista/issues/713 | Traceback (most recent call last):
...
...
File "/Users/Daniel/opt/anaconda3/lib/python3.7/site-packages/pyvista/core/grid.py", line 435, in _from_specs
self.SetSpacing(xs, ys, zs)
TypeError: SetSpacing argument 1: only size-1 arrays can be converted to Python scalars | TypeError |
def points(self, points):
"""Points must be set along each axial direction.
Please set the point coordinates with the ``x``, ``y``, and ``z``
setters.
This setter overrides the base class's setter to ensure a user does not
attempt to set them.
"""
raise AttributeError(
"The points... | def points(self, points):
"""Set points without copying."""
if not isinstance(points, np.ndarray):
raise TypeError("Points must be a numpy array")
# get the unique coordinates along each axial direction
x = np.unique(points[:, 0])
y = np.unique(points[:, 1])
z = np.unique(points[:, 2])
... | https://github.com/pyvista/pyvista/issues/713 | Traceback (most recent call last):
...
...
File "/Users/Daniel/opt/anaconda3/lib/python3.7/site-packages/pyvista/core/grid.py", line 435, in _from_specs
self.SetSpacing(xs, ys, zs)
TypeError: SetSpacing argument 1: only size-1 arrays can be converted to Python scalars | TypeError |
def points(self, points):
"""Points cannot be set.
This setter overrides the base class's setter to ensure a user does not
attempt to set them. See https://github.com/pyvista/pyvista/issues/713.
"""
raise AttributeError(
"The points cannot be set. The points of "
"`UniformGrid`/`vt... | def points(self, points):
"""Set points without copying."""
if not isinstance(points, np.ndarray):
raise TypeError("Points must be a numpy array")
# get the unique coordinates along each axial direction
x = np.unique(points[:, 0])
y = np.unique(points[:, 1])
z = np.unique(points[:, 2])
... | https://github.com/pyvista/pyvista/issues/713 | Traceback (most recent call last):
...
...
File "/Users/Daniel/opt/anaconda3/lib/python3.7/site-packages/pyvista/core/grid.py", line 435, in _from_specs
self.SetSpacing(xs, ys, zs)
TypeError: SetSpacing argument 1: only size-1 arrays can be converted to Python scalars | TypeError |
def points(self, points):
"""Set points without copying."""
if not isinstance(points, np.ndarray):
raise TypeError("Points must be a numpy array")
# get the unique coordinates along each axial direction
x = np.unique(points[:, 0])
y = np.unique(points[:, 1])
z = np.unique(points[:, 2])
... | def points(self, points):
"""Set points without copying."""
if not isinstance(points, np.ndarray):
raise TypeError("Points must be a numpy array")
# get the unique coordinates along each axial direction
x = np.unique(points[:, 0])
y = np.unique(points[:, 1])
z = np.unique(points[:, 2])
... | https://github.com/pyvista/pyvista/issues/642 | Traceback (most recent call last):
File "C:\Users\camramez\Documents\Meshing\gen_terrain.py", line 28, in <module>
grid.points=np.array([x_surf,y_surf,z_surf]).transpose()
File "C:\ProgramData\Anaconda3\envs\mesh\lib\site-packages\pyvista\core\grid.py", line 470, in points
self._from_specs((nx,ny,nz), (dx,dy,dz), (ox... | TypeError |
def point_arrays(self):
"""Returns the all point arrays"""
pdata = self.GetPointData()
narr = pdata.GetNumberOfArrays()
# Update data if necessary
if hasattr(self, "_point_arrays"):
keys = list(self._point_arrays.keys())
if narr == len(keys):
if keys:
if ... | def point_arrays(self):
"""Returns the all point arrays"""
pdata = self.GetPointData()
narr = pdata.GetNumberOfArrays()
# Update data if necessary
if hasattr(self, "_point_arrays"):
keys = list(self._point_arrays.keys())
if narr == len(keys):
if keys:
if ... | https://github.com/pyvista/pyvista/issues/306 | ---------------------------------------------------------------------------
RecursionError Traceback (most recent call last)
<ipython-input-15-403e4a0f4e87> in <module>
9
10 # Try to access the point arrays
---> 11 continents.point_arrays
~/Documents/OpenGeoVis/Software/pyvista/pyvista/core/... | RecursionError |
def field_arrays(self):
"""Returns all field arrays"""
fdata = self.GetFieldData()
narr = fdata.GetNumberOfArrays()
# just return if unmodified
if hasattr(self, "_field_arrays"):
keys = list(self._field_arrays.keys())
if narr == len(keys):
return self._field_arrays
... | def field_arrays(self):
"""Returns all field arrays"""
fdata = self.GetFieldData()
narr = fdata.GetNumberOfArrays()
# just return if unmodified
if hasattr(self, "_field_arrays"):
keys = list(self._field_arrays.keys())
if narr == len(keys):
return self._field_arrays
... | https://github.com/pyvista/pyvista/issues/306 | ---------------------------------------------------------------------------
RecursionError Traceback (most recent call last)
<ipython-input-15-403e4a0f4e87> in <module>
9
10 # Try to access the point arrays
---> 11 continents.point_arrays
~/Documents/OpenGeoVis/Software/pyvista/pyvista/core/... | RecursionError |
def cell_arrays(self):
"""Returns the all cell arrays"""
cdata = self.GetCellData()
narr = cdata.GetNumberOfArrays()
# Update data if necessary
if hasattr(self, "_cell_arrays"):
keys = list(self._cell_arrays.keys())
if narr == len(keys):
if keys:
if self.... | def cell_arrays(self):
"""Returns the all cell arrays"""
cdata = self.GetCellData()
narr = cdata.GetNumberOfArrays()
# Update data if necessary
if hasattr(self, "_cell_arrays"):
keys = list(self._cell_arrays.keys())
if narr == len(keys):
if keys:
if self.... | https://github.com/pyvista/pyvista/issues/306 | ---------------------------------------------------------------------------
RecursionError Traceback (most recent call last)
<ipython-input-15-403e4a0f4e87> in <module>
9
10 # Try to access the point arrays
---> 11 continents.point_arrays
~/Documents/OpenGeoVis/Software/pyvista/pyvista/core/... | RecursionError |
def _repr_html_(self):
"""A pretty representation for Jupyter notebooks that includes header
details and information about all scalar arrays"""
fmt = ""
if self.n_arrays > 0:
fmt += "<table>"
fmt += "<tr><th>Header</th><th>Data Arrays</th></tr>"
fmt += "<tr><td>"
# Get the he... | def _repr_html_(self):
"""A pretty representation for Jupyter notebooks that includes header
details and information about all scalar arrays"""
fmt = ""
if self.n_arrays > 0:
fmt += "<table>"
fmt += "<tr><th>Header</th><th>Data Arrays</th></tr>"
fmt += "<tr><td>"
# Get the he... | https://github.com/pyvista/pyvista/issues/306 | ---------------------------------------------------------------------------
RecursionError Traceback (most recent call last)
<ipython-input-15-403e4a0f4e87> in <module>
9
10 # Try to access the point arrays
---> 11 continents.point_arrays
~/Documents/OpenGeoVis/Software/pyvista/pyvista/core/... | RecursionError |
def format_array(name, arr, field):
"""internal helper to foramt array information for printing"""
dl, dh = self.get_data_range(arr)
dl = pyvista.FLOAT_FORMAT.format(dl)
dh = pyvista.FLOAT_FORMAT.format(dh)
if name == self.active_scalar_info[1]:
name = "<b>{}</b>".format(name)
if arr.ndi... | def format_array(key, field):
"""internal helper to foramt array information for printing"""
arr = get_scalar(self, key, preference=field)
dl, dh = self.get_data_range(key)
dl = pyvista.FLOAT_FORMAT.format(dl)
dh = pyvista.FLOAT_FORMAT.format(dh)
if key == self.active_scalar_info[1]:
key... | https://github.com/pyvista/pyvista/issues/306 | ---------------------------------------------------------------------------
RecursionError Traceback (most recent call last)
<ipython-input-15-403e4a0f4e87> in <module>
9
10 # Try to access the point arrays
---> 11 continents.point_arrays
~/Documents/OpenGeoVis/Software/pyvista/pyvista/core/... | RecursionError |
def glyph(
dataset,
orient=True,
scale=True,
factor=1.0,
geom=None,
tolerance=0.0,
absolute=False,
):
"""
Copies a geometric representation (called a glyph) to every
point in the input dataset. The glyph may be oriented along
the input vectors, and it may be scaled according... | def glyph(dataset, orient=True, scale=True, factor=1.0, geom=None, subset=None):
"""
Copies a geometric representation (called a glyph) to every
point in the input dataset. The glyph may be oriented along
the input vectors, and it may be scaled according to scalar
data or vector magnitude.
Par... | https://github.com/pyvista/pyvista/issues/301 | Traceback (most recent call last):
File "cmap.py", line 54, in <module>
p.add_mesh(mesh, cmap="fire", lighting=True, stitle="Colorcet Fire")
File "/home/musy/soft/anaconda3/lib/python3.6/site-packages/pyvista/plotting/plotting.py", line 752, in add_mesh
cmap = get_cmap_safe(cmap)
File "/home/musy/soft/anaconda3/lib/pyt... | ValueError |
def clean(
self,
point_merging=True,
merge_tol=None,
lines_to_points=True,
polys_to_lines=True,
strips_to_polys=True,
inplace=False,
absolute=True,
**kwargs,
):
"""
Cleans mesh by merging duplicate points, remove unused
points, and/or remove degenerate cells.
Paramet... | def clean(
self,
point_merging=True,
merge_tol=None,
lines_to_points=True,
polys_to_lines=True,
strips_to_polys=True,
inplace=False,
):
"""
Cleans mesh by merging duplicate points, remove unused
points, and/or remove degenerate cells.
Parameters
----------
point_merg... | https://github.com/pyvista/pyvista/issues/301 | Traceback (most recent call last):
File "cmap.py", line 54, in <module>
p.add_mesh(mesh, cmap="fire", lighting=True, stitle="Colorcet Fire")
File "/home/musy/soft/anaconda3/lib/python3.6/site-packages/pyvista/plotting/plotting.py", line 752, in add_mesh
cmap = get_cmap_safe(cmap)
File "/home/musy/soft/anaconda3/lib/pyt... | ValueError |
def add_volume(
self,
volume,
scalars=None,
resolution=None,
opacity="linear",
n_colors=256,
cmap=None,
flip_scalars=False,
reset_camera=None,
name=None,
ambient=0.0,
categories=False,
loc=None,
backface_culling=False,
multi_colors=False,
blending="composi... | def add_volume(
self,
volume,
scalars=None,
resolution=None,
opacity="linear",
n_colors=256,
cmap=None,
flip_scalars=False,
reset_camera=None,
name=None,
ambient=0.0,
categories=False,
loc=None,
backface_culling=False,
multi_colors=False,
blending="additiv... | https://github.com/pyvista/pyvista/issues/301 | Traceback (most recent call last):
File "cmap.py", line 54, in <module>
p.add_mesh(mesh, cmap="fire", lighting=True, stitle="Colorcet Fire")
File "/home/musy/soft/anaconda3/lib/python3.6/site-packages/pyvista/plotting/plotting.py", line 752, in add_mesh
cmap = get_cmap_safe(cmap)
File "/home/musy/soft/anaconda3/lib/pyt... | ValueError |
def close(self):
"""closes render window"""
# must close out widgets first
if hasattr(self, "axes_widget"):
del self.axes_widget
if hasattr(self, "scalar_widget"):
del self.scalar_widget
# reset scalar bar stuff
self._scalar_bar_slots = set(range(MAX_N_COLOR_BARS))
self._sc... | def close(self):
"""closes render window"""
# must close out axes marker
if hasattr(self, "axes_widget"):
del self.axes_widget
# reset scalar bar stuff
self._scalar_bar_slots = set(range(MAX_N_COLOR_BARS))
self._scalar_bar_slot_lookup = {}
self._scalar_bar_ranges = {}
self._scal... | https://github.com/pyvista/pyvista/issues/301 | Traceback (most recent call last):
File "cmap.py", line 54, in <module>
p.add_mesh(mesh, cmap="fire", lighting=True, stitle="Colorcet Fire")
File "/home/musy/soft/anaconda3/lib/python3.6/site-packages/pyvista/plotting/plotting.py", line 752, in add_mesh
cmap = get_cmap_safe(cmap)
File "/home/musy/soft/anaconda3/lib/pyt... | ValueError |
def __getitem__(self, index):
"""Get a block by its index or name (if the name is non-unique then
returns the first occurence)"""
if isinstance(index, str):
index = self.get_index_by_name(index)
data = self.GetBlock(index)
if data is None:
return data
if data is not None and not ... | def __getitem__(self, index):
"""Get a block by its index or name (if the name is non-unique then
returns the first occurence)"""
if isinstance(index, str):
index = self.get_index_by_name(index)
data = self.GetBlock(index)
if data is None:
return data
if data is not None and not ... | https://github.com/pyvista/pyvista/issues/158 | ---------------------------------------------------------------------------
ReferenceError Traceback (most recent call last)
<ipython-input-5-1ae88bf5bf88> in <module>()
1 # Add values to the meshes so colors are consistent with other data
2 # try:
----> 3 proj['temp_175c'].point_arrays['Temp... | ReferenceError |
def __setitem__(self, index, data):
"""Sets a block with a VTK data object. To set the name simultaneously,
pass a string name as the 2nd index.
Example
-------
>>> import vtki
>>> multi = vtki.MultiBlock()
>>> multi[0] = vtki.PolyData()
>>> multi[1, 'foo'] = vtki.UnstructuredGrid()
... | def __setitem__(self, index, data):
"""Sets a block with a VTK data object. To set the name simultaneously,
pass a string name as the 2nd index.
Example
-------
>>> import vtki
>>> multi = vtki.MultiBlock()
>>> multi[0] = vtki.PolyData()
>>> multi[1, 'foo'] = vtki.UnstructuredGrid()
... | https://github.com/pyvista/pyvista/issues/158 | ---------------------------------------------------------------------------
ReferenceError Traceback (most recent call last)
<ipython-input-5-1ae88bf5bf88> in <module>()
1 # Add values to the meshes so colors are consistent with other data
2 # try:
----> 3 proj['temp_175c'].point_arrays['Temp... | ReferenceError |
def __init__(self, off_screen=False, notebook=None):
"""
Initialize a vtk plotting object
"""
log.debug("Initializing")
def onTimer(iren, eventId):
if "TimerEvent" == eventId:
# TODO: python binding didn't provide
# third parameter, which indicate right timer id
... | def __init__(self, off_screen=False, notebook=None):
"""
Initialize a vtk plotting object
"""
log.debug("Initializing")
def onTimer(iren, eventId):
if "TimerEvent" == eventId:
# TODO: python binding didn't provide
# third parameter, which indicate right timer id
... | https://github.com/pyvista/pyvista/issues/1 | Python 2.7.13 |Anaconda 4.4.0 (64-bit)| (default, May 11 2017, 13:17:26) [MSC v.1500 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
Anaconda is brought to you by Continuum Analytics.
Please check out: http://continuum.io/thanks and https://anaconda.org
import pyansys
C:\... | ValueError |
def left_button_down(self, obj, eventType):
# Get 2D click location on window
clickPos = self.iren.GetEventPosition()
# Get corresponding click location in the 3D plot
picker = vtk.vtkWorldPointPicker()
picker.Pick(clickPos[0], clickPos[1], 0, self.renderer)
self.pickpoint = np.asarray(picker.G... | def left_button_down(self, obj, eventType):
# Get 2D click location on window
clickPos = self.iren.GetEventPosition()
# Get corresponding click location in the 3D plot
picker = vtk.vtkWorldPointPicker()
picker.Pick(clickPos[0], clickPos[1], 0, self.renderer)
self.pickpoint = np.asarray(picker.G... | https://github.com/pyvista/pyvista/issues/1 | Python 2.7.13 |Anaconda 4.4.0 (64-bit)| (default, May 11 2017, 13:17:26) [MSC v.1500 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
Anaconda is brought to you by Continuum Analytics.
Please check out: http://continuum.io/thanks and https://anaconda.org
import pyansys
C:\... | ValueError |
def add_mesh(
self,
mesh,
color=None,
style=None,
scalars=None,
rng=None,
stitle=None,
showedges=True,
psize=5.0,
opacity=1,
linethick=None,
flipscalars=False,
lighting=False,
ncolors=256,
interpolatebeforemap=False,
colormap=None,
label=None,
**kw... | def add_mesh(
self,
mesh,
color=None,
style=None,
scalars=None,
rng=None,
stitle=None,
showedges=True,
psize=5.0,
opacity=1,
linethick=None,
flipscalars=False,
lighting=False,
ncolors=256,
interpolatebeforemap=False,
colormap=None,
label=None,
**kw... | https://github.com/pyvista/pyvista/issues/1 | Python 2.7.13 |Anaconda 4.4.0 (64-bit)| (default, May 11 2017, 13:17:26) [MSC v.1500 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
Anaconda is brought to you by Continuum Analytics.
Please check out: http://continuum.io/thanks and https://anaconda.org
import pyansys
C:\... | ValueError |
def _plot(
self,
title=None,
window_size=DEFAULT_WINDOW_SIZE,
interactive=True,
autoclose=True,
interactive_update=False,
full_screen=False,
):
"""
Creates plotting window
Parameters
----------
title : string, optional
Title of plotting window.
window_size :... | def _plot(
self,
title=None,
window_size=DEFAULT_WINDOW_SIZE,
interactive=True,
autoclose=True,
interactive_update=False,
full_screen=False,
):
"""
Creates plotting window
Parameters
----------
title : string, optional
Title of plotting window.
window_size :... | https://github.com/pyvista/pyvista/issues/1 | Python 2.7.13 |Anaconda 4.4.0 (64-bit)| (default, May 11 2017, 13:17:26) [MSC v.1500 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
Anaconda is brought to you by Continuum Analytics.
Please check out: http://continuum.io/thanks and https://anaconda.org
import pyansys
C:\... | ValueError |
def process_gcov_data(data_fname, covdata, source_fname, options):
logger = Logger(options.verbose)
INPUT = open(data_fname, "r")
# Find the source file
firstline = INPUT.readline()
fname = guess_source_file_name(
firstline,
data_fname,
source_fname,
root_dir=option... | def process_gcov_data(data_fname, covdata, source_fname, options):
logger = Logger(options.verbose)
INPUT = open(data_fname, "r")
# Find the source file
firstline = INPUT.readline()
fname = guess_source_file_name(
firstline,
data_fname,
source_fname,
root_dir=option... | https://github.com/gcovr/gcovr/issues/226 | Traceback (most recent call last):
File "/usr/local/bin/gcovr", line 2412, in <module>
process_datafile(file_, covdata, options)
File "/usr/local/bin/gcovr", line 884, in process_datafile
process_gcov_data(fname, covdata, abs_filename, options)
File "/usr/local/bin/gcovr", line 616, in process_gcov_data
covered[lineno]... | ValueError |
def __init__(self, fname, logger):
self.logger = logger
self.excluding = []
self.noncode = set()
self.uncovered = set()
self.uncovered_exceptional = set()
self.covered = dict()
self.branches = dict()
# self.first_record = True
self.fname = fname
self.lineno = 0
self.last_code... | def __init__(self, fname, logger):
self.logger = logger
self.excluding = []
self.noncode = set()
self.uncovered = set()
self.uncovered_exceptional = set()
self.covered = dict()
self.branches = dict()
# self.first_record = True
self.fname = fname
self.lineno = 0
self.last_code... | https://github.com/gcovr/gcovr/issues/226 | Traceback (most recent call last):
File "/usr/local/bin/gcovr", line 2412, in <module>
process_datafile(file_, covdata, options)
File "/usr/local/bin/gcovr", line 884, in process_datafile
process_gcov_data(fname, covdata, abs_filename, options)
File "/usr/local/bin/gcovr", line 616, in process_gcov_data
covered[lineno]... | ValueError |
def parse_line(self, line, exclude_unreachable_branches):
# If this is a tag line, we stay on the same line number
# and can return immediately after processing it.
# A tag line cannot hold exclusion markers.
if self.parse_tag_line(line, exclude_unreachable_branches):
return
# If this isn't... | def parse_line(self, line, exclude_unreachable_branches):
# If this is a tag line, we stay on the same line number
# and can return immediately after processing it.
# A tag line cannot hold exclusion markers.
if self.parse_tag_line(line, exclude_unreachable_branches):
return
# If this isn't... | https://github.com/gcovr/gcovr/issues/226 | Traceback (most recent call last):
File "/usr/local/bin/gcovr", line 2412, in <module>
process_datafile(file_, covdata, options)
File "/usr/local/bin/gcovr", line 884, in process_datafile
process_gcov_data(fname, covdata, abs_filename, options)
File "/usr/local/bin/gcovr", line 616, in process_gcov_data
covered[lineno]... | ValueError |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.