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 doPostPluginsInit(self): """Create a Leo window for each file in the lm.files list.""" # Clear g.app.initing _before_ creating commanders. lm = self g.app.initing = False # "idle" hooks may now call g.app.forceShutdown. # Create the main frame. Show it and all queued messages. c = c1 = fn ...
def doPostPluginsInit(self): """Create a Leo window for each file in the lm.files list.""" # Clear g.app.initing _before_ creating commanders. lm = self g.app.initing = False # "idle" hooks may now call g.app.forceShutdown. # Create the main frame. Show it and all queued messages. c = c1 = fn ...
https://github.com/leo-editor/leo-editor/issues/1415
unexpected exception loading session Traceback (most recent call last): File "c:\users\viktor\pyve\github\leo-dev-opt-b\devel\leo-editor-devel\leo\core\leoApp.py", line 2601, in doPostPluginsInit g.app.sessionManager.load_session(c1, aList) [...] File "c:\users\viktor\pyve\github\leo-dev-opt-b\devel\leo-editor-devel...
FileNotFoundError
def openEmptyWorkBook(self): """Open an empty frame and paste the contents of CheatSheet.leo into it.""" lm = self # Create an empty frame. fn = lm.computeWorkbookFileName() if not fn: return None # #1415 c = lm.loadLocalFile(fn, gui=g.app.gui, old_c=None) if not c: return N...
def openEmptyWorkBook(self): """Open an empty frame and paste the contents of CheatSheet.leo into it.""" lm = self # Create an empty frame. fn = lm.computeWorkbookFileName() c = lm.loadLocalFile(fn, gui=g.app.gui, old_c=None) if not c: return None # #1201: AttributeError below. # Op...
https://github.com/leo-editor/leo-editor/issues/1415
unexpected exception loading session Traceback (most recent call last): File "c:\users\viktor\pyve\github\leo-dev-opt-b\devel\leo-editor-devel\leo\core\leoApp.py", line 2601, in doPostPluginsInit g.app.sessionManager.load_session(c1, aList) [...] File "c:\users\viktor\pyve\github\leo-dev-opt-b\devel\leo-editor-devel...
FileNotFoundError
def blacken_node(self, root, diff_flag, check_flag=False): """Run black on all Python @<file> nodes in root's tree.""" c = self.c if not black or not root: return t1 = time.process_time() self.changed, self.errors, self.total = 0, 0, 0 self.undo_type = "blacken-node" self.blacken_nod...
def blacken_node(self, root, diff_flag, check_flag=False): """Run black on all Python @<file> nodes in root's tree.""" c = self.c if not black or not root: return t1 = time.clock() self.changed, self.errors, self.total = 0, 0, 0 self.undo_type = "blacken-node" self.blacken_node_helpe...
https://github.com/leo-editor/leo-editor/issues/1400
Traceback (most recent call last): File "C:\leo-editor\launchLeo.py", line 8, in <module> leo.core.runLeo.run() File "C:\leo-editor\leo\core\runLeo.py", line 73, in run g.app.loadManager.load(fileName, pymacs) File "C:\leo-editor\leo\core\leoApp.py", line 2392, in load t1 = time.clock() AttributeError: module 'time' ha...
AttributeError
def blacken_tree(self, root, diff_flag, check_flag=False): """Run black on all Python @<file> nodes in root's tree.""" c = self.c if not black or not root: return t1 = time.process_time() self.changed, self.errors, self.total = 0, 0, 0 undo_type = "blacken-tree" bunch = c.undoer.befo...
def blacken_tree(self, root, diff_flag, check_flag=False): """Run black on all Python @<file> nodes in root's tree.""" c = self.c if not black or not root: return t1 = time.clock() self.changed, self.errors, self.total = 0, 0, 0 undo_type = "blacken-tree" bunch = c.undoer.beforeChang...
https://github.com/leo-editor/leo-editor/issues/1400
Traceback (most recent call last): File "C:\leo-editor\launchLeo.py", line 8, in <module> leo.core.runLeo.run() File "C:\leo-editor\leo\core\runLeo.py", line 73, in run g.app.loadManager.load(fileName, pymacs) File "C:\leo-editor\leo\core\leoApp.py", line 2392, in load t1 = time.clock() AttributeError: module 'time' ha...
AttributeError
def createActualFile(self, fileName, toOPML, toZip): if toZip: self.toString = True theActualFile = None else: try: # 2010/01/21: always write in binary mode. theActualFile = open(fileName, "wb") except Exception: g.es(f"can not create {fileNam...
def createActualFile(self, fileName, toOPML, toZip): if toZip: self.toString = True theActualFile = None else: try: # 2010/01/21: always write in binary mode. theActualFile = open(fileName, "wb") except IOError: g.es(f"can not open {fileName}")...
https://github.com/leo-editor/leo-editor/issues/1378
Traceback (most recent call last): File "c:\leo.repo\leo-editor\leo\core\leoFileCommands.py", line 1599, in createActualFile theActualFile = open(fileName, 'wb') FileNotFoundError: [Errno 2] No such file or directory: 'c:/leo.repo/leo-editor/~/.leo/workbook.leo'
FileNotFoundError
def os_path_finalize(path): """ Expand '~', then return os.path.normpath, os.path.abspath of the path. There is no corresponding os.path method """ path = path.replace("\x00", "") # Fix Pytyon 3 bug on Windows 10. path = os.path.expanduser(path) # # path = os.path.abspath(path) path = ...
def os_path_finalize(path, **keys): """ Expand '~', then return os.path.normpath, os.path.abspath of the path. There is no corresponding os.path method """ path = path.replace("\x00", "") # Fix Pytyon 3 bug on Windows 10. path = os.path.abspath(path) path = os.path.normpath(path) if g.i...
https://github.com/leo-editor/leo-editor/issues/1378
Traceback (most recent call last): File "c:\leo.repo\leo-editor\leo\core\leoFileCommands.py", line 1599, in createActualFile theActualFile = open(fileName, 'wb') FileNotFoundError: [Errno 2] No such file or directory: 'c:/leo.repo/leo-editor/~/.leo/workbook.leo'
FileNotFoundError
def openEmptyWorkBook(self): """Open an empty frame and paste the contents of CheatSheet.leo into it.""" lm = self # Create an empty frame. fn = lm.computeWorkbookFileName() c = lm.loadLocalFile(fn, gui=g.app.gui, old_c=None) if not c: return None # #1201: AttributeError below. # Op...
def openEmptyWorkBook(self): """Open an empty frame and paste the contents of CheatSheet.leo into it.""" lm = self # Create an empty frame. fn = lm.computeWorkbookFileName() c = lm.loadLocalFile(fn, gui=g.app.gui, old_c=None) # Open the cheatsheet, but not in batch mode. if not g.app.batchMo...
https://github.com/leo-editor/leo-editor/issues/1201
(leo-dev) matt@SURFACE C:\Users\mattw\t leo-m Leo 6.0-devel, devel branch, build e86b1c87b6 2019-06-13 17:47:36 -0500 Using default leo file name: C:/Users/mattw/t/.leo/workbook.leo OleSetClipboard: Failed to set mime data (text/plain) on clipboard: COM error 0xffffffff800401d0 (Unknown error 0x0800401d0) (The parame...
AttributeError
def make_at_clean_outline(self, fn, root, s, rev): """ Create a hidden temp outline from lines without sentinels. root is the @<file> node for fn. s is the contents of the (public) file, without sentinels. """ # A specialized version of at.readOneAtCleanNode. hidden_c = leoCommands.Commands(...
def make_at_clean_outline(self, fn, root, s, rev): """ Create a hidden temp outline from lines without sentinels. root is the @<file> node for fn. s is the contents of the (public) file, without sentinels. """ # A specialized version of at.readOneAtCleanNode. hidden_c = leoCommands.Commands(...
https://github.com/leo-editor/leo-editor/issues/1136
Traceback (most recent call last): File "c:\leo.repo\leo-editor\leo\core\leoGlobals.py", line 320, in new_cmd_wrapper func(self, event=event) File "c:\leo.repo\leo-editor\leo\commands\editFileCommands.py", line 342, in gitDiff GitDiffController(c=self.c).git_diff(rev1='HEAD') File "c:\leo.repo\leo-editor\leo\command...
AssertionError
def find_git_working_directory(self, directory): """Return the git working directory, starting at directory.""" while directory: if g.os_path_exists(g.os_path_finalize_join(directory, ".git")): return directory path2 = g.os_path_finalize_join(directory, "..") if path2 == dire...
def find_git_working_directory(self, directory): """Return the git working directory, starting at directory.""" assert directory while directory: if g.os_path_exists(g.os_path_finalize_join(directory, ".git")): return directory path2 = g.os_path_finalize_join(directory, "..") ...
https://github.com/leo-editor/leo-editor/issues/1136
Traceback (most recent call last): File "c:\leo.repo\leo-editor\leo\core\leoGlobals.py", line 320, in new_cmd_wrapper func(self, event=event) File "c:\leo.repo\leo-editor\leo\commands\editFileCommands.py", line 342, in gitDiff GitDiffController(c=self.c).git_diff(rev1='HEAD') File "c:\leo.repo\leo-editor\leo\command...
AssertionError
def scan(self, s, parent): """Create an outline from a MindMap (.csv) file.""" # pylint: disable=no-member # pylint confuses this module with the stdlib json module c, d, self.gnx_dict = self.c, json.loads(s), {} try: for d2 in d.get("nodes", []): gnx = d2.get("gnx") ...
def scan(self, s, parent): """Create an outline from a MindMap (.csv) file.""" # pylint: disable=no-member # pylint confuses this module with the stdlib json module c, d, self.gnx_dict = self.c, json.loads(s), {} for d2 in d.get("nodes", []): gnx = d2.get("gnx") self.gnx_dict[gnx] = ...
https://github.com/leo-editor/leo-editor/issues/1098
Exception running JSON_Scanner Traceback (most recent call last): File "/home/dalcolmo/bin/leo-editor/leo/core/leoApp.py", line 1530, in scanner_for_ext_cb return scanner.run(s, parent) File "/home/dalcolmo/bin/leo-editor/leo/plugins/importers/leo_json.py", line 61, in run ok = self.scan(s, parent) File "/home/dalco...
AttributeError
def scan(self, s, parent): """Create an outline from a MindMap (.csv) file.""" # pylint: disable=no-member # pylint confuses this module with the stdlib json module c, d, self.gnx_dict = self.c, json.loads(s), {} try: for d2 in d.get("nodes", []): gnx = d2.get("gnx") ...
def scan(self, s, parent): """Create an outline from a MindMap (.csv) file.""" # pylint: disable=no-member # pylint confuses this module with the stdlib json module c, d, self.gnx_dict = self.c, json.loads(s), {} try: for d2 in d.get("nodes", []): gnx = d2.get("gnx") ...
https://github.com/leo-editor/leo-editor/issues/1098
Exception running JSON_Scanner Traceback (most recent call last): File "/home/dalcolmo/bin/leo-editor/leo/core/leoApp.py", line 1530, in scanner_for_ext_cb return scanner.run(s, parent) File "/home/dalcolmo/bin/leo-editor/leo/plugins/importers/leo_json.py", line 61, in run ok = self.scan(s, parent) File "/home/dalco...
AttributeError
def getTextFromClipboard(self): """Get a unicode string from the clipboard.""" # Fix #971. if not Tk: return g.u("") root = Tk() root.withdraw() try: s = root.clipboard_get() except Exception: # _tkinter.TclError: s = "" root.destroy() return g.toUnicode(s)
def getTextFromClipboard(self): """Get a unicode string from the clipboard.""" root = Tk() root.withdraw() try: s = root.clipboard_get() except Exception: # _tkinter.TclError: s = "" root.destroy() return g.toUnicode(s)
https://github.com/leo-editor/leo-editor/issues/971
./launchLeo-console.py import-jupyter-notebook requires nbformat package setting leoID from os.getenv('USER'): 'benoit' reading settings in /home/benoit/opt/leo-editor/leo/config/leoSettings.leo loading npyscreen Leo 5.8 b1, build 20180815095610, Wed, Aug 15, 2018 9:56:10 AM Git repo info: branch = master, commit = ...
_tkinter.TclError
def replaceClipboardWith(self, s): """Replace the clipboard with the string s.""" if not Tk: return root = Tk() root.withdraw() root.clipboard_clear() root.clipboard_append(s) root.destroy()
def replaceClipboardWith(self, s): """Replace the clipboard with the string s.""" root = Tk() root.withdraw() root.clipboard_clear() root.clipboard_append(s) root.destroy()
https://github.com/leo-editor/leo-editor/issues/971
./launchLeo-console.py import-jupyter-notebook requires nbformat package setting leoID from os.getenv('USER'): 'benoit' reading settings in /home/benoit/opt/leo-editor/leo/config/leoSettings.leo loading npyscreen Leo 5.8 b1, build 20180815095610, Wed, Aug 15, 2018 9:56:10 AM Git repo info: branch = master, commit = ...
_tkinter.TclError
def configuredcommands_rclick(c, p, menu): """Provide "edit in EDITOR" context menu item""" config = c.config.getData("contextmenu_commands") if config: cmds = [el.split(None, 1) for el in config] for data in cmds: # Fix #1084 try: cmd, desc = data ...
def configuredcommands_rclick(c, p, menu): """Provide "edit in EDITOR" context menu item""" config = c.config.getData("contextmenu_commands") if config: cmds = [el.split(None, 1) for el in config] for cmd, desc in cmds: desc = desc.strip() action = menu.addAction(desc...
https://github.com/leo-editor/leo-editor/issues/1084
Traceback (most recent call last): File "/home/jnicoll/leo-editor/leo/plugins/qt_tree.py", line 732, in onContextMenu h(c, p, menu) File "/home/jnicoll/leo-editor/leo/plugins/contextmenu.py", line 109, in configuredcommands_rclick for cmd, desc in cmds: ValueError: need more than 1 value to unpack Aborted (core dumped)
ValueError
def onContextMenu(self, point): c = self.c w = self.treeWidget handlers = g.tree_popup_handlers menu = QtWidgets.QMenu() menuPos = w.mapToGlobal(point) if not handlers: menu.addAction("No popup handlers") p = c.p.copy() done = set() for handler in handlers: # every ha...
def onContextMenu(self, point): c = self.c w = self.treeWidget handlers = g.tree_popup_handlers menu = QtWidgets.QMenu() menuPos = w.mapToGlobal(point) if not handlers: menu.addAction("No popup handlers") p = c.p.copy() done = set() for h in handlers: # every handler ...
https://github.com/leo-editor/leo-editor/issues/1084
Traceback (most recent call last): File "/home/jnicoll/leo-editor/leo/plugins/qt_tree.py", line 732, in onContextMenu h(c, p, menu) File "/home/jnicoll/leo-editor/leo/plugins/contextmenu.py", line 109, in configuredcommands_rclick for cmd, desc in cmds: ValueError: need more than 1 value to unpack Aborted (core dumped)
ValueError
def readFile(self, path=None, s=None): if not s: with open(path, "rb") as f: s = f.read() s = s.replace(b"\x0c", b"") # Fix #1036. return self.readWithElementTree(path, s)
def readFile(self, path=None, s=None): if not s: with open(path, "rb") as f: s = f.read() return self.readWithElementTree(path, s)
https://github.com/leo-editor/leo-editor/issues/1036
Traceback (most recent call last): File "c:\leo.repo\leo-editor\launchLeo.py", line 8, in <module> leo.core.runLeo.run() File "c:\leo.repo\leo-editor\leo\core\runLeo.py", line 72, in run g.app.loadManager.load(fileName, pymacs) File "c:\leo.repo\leo-editor\leo\core\leoApp.py", line 2262, in load lm.doPrePluginsInit(fil...
KeyError
def readFile(self, path=None, s=None): if not s: with open(path, "rb") as f: s = f.read() # s = s.replace(b'\x0c', b'').replace(b'0x00', b'') s = s.translate(None, self.translate_table) # Fix #1036 and #1046. return self.readWithElementTree(path, s)
def readFile(self, path=None, s=None): if not s: with open(path, "rb") as f: s = f.read() s = s.replace(b"\x0c", b"") # Fix #1036. return self.readWithElementTree(path, s)
https://github.com/leo-editor/leo-editor/issues/1036
Traceback (most recent call last): File "c:\leo.repo\leo-editor\launchLeo.py", line 8, in <module> leo.core.runLeo.run() File "c:\leo.repo\leo-editor\leo\core\runLeo.py", line 72, in run g.app.loadManager.load(fileName, pymacs) File "c:\leo.repo\leo-editor\leo\core\leoApp.py", line 2262, in load lm.doPrePluginsInit(fil...
KeyError
def scanVnodes(self, gnx2body, gnx2vnode, gnx2ua, v_elements): c, fc = self.c, self.c.fileCommands # @+<< define v_element_visitor >> # @+node:ekr.20180605102822.1: *6* << define v_element_visitor >> def v_element_visitor(parent_e, parent_v): """Visit the given element, creating or updating the...
def scanVnodes(self, gnx2body, gnx2vnode, gnx2ua, v_elements): c, fc = self.c, self.c.fileCommands # @+<< define v_element_visitor >> # @+node:ekr.20180605102822.1: *6* << define v_element_visitor >> def v_element_visitor(parent_e, parent_v): """Visit the given element, creating or updating the...
https://github.com/leo-editor/leo-editor/issues/1017
$ leogrep earthquake *.leo Traceback (most recent call last): File "/pri/bin/leogrep", line 151, in <module> main() File "/pri/bin/leogrep", line 135, in main cmdr = bridge.openLeoFile(fpn) File "/pri/git/leo-editor/leo/core/leoBridge.py", line 262, in openLeoFile c = self.createFrame(fileName) File "/pri/git/leo-edito...
TypeError
def v_element_visitor(parent_e, parent_v): """Visit the given element, creating or updating the parent vnode.""" for e in parent_e: assert e.tag in ("v", "vh"), e.tag if e.tag == "vh": parent_v._headString = g.toUnicode(e.text or "") continue gnx = e.attrib["t"] ...
def v_element_visitor(parent_e, parent_v): """Visit the given element, creating or updating the parent vnode.""" for e in parent_e: assert e.tag in ("v", "vh"), e.tag if e.tag == "vh": parent_v._headString = g.toUnicode(e.text or "") continue gnx = e.attrib["t"] ...
https://github.com/leo-editor/leo-editor/issues/1017
$ leogrep earthquake *.leo Traceback (most recent call last): File "/pri/bin/leogrep", line 151, in <module> main() File "/pri/bin/leogrep", line 135, in main cmdr = bridge.openLeoFile(fpn) File "/pri/git/leo-editor/leo/core/leoBridge.py", line 262, in openLeoFile c = self.createFrame(fileName) File "/pri/git/leo-edito...
TypeError
def git_version(file, version=None): """Fetch from Git: {tag} {distance-from-tag} {current commit hash} Return as semantic version string compliant with PEP440""" root = os.path.dirname(os.path.realpath(file)) try: tag, distance, commit = g.gitDescribe(root) # 5.6b2, 55, e1129da ...
def git_version(file): """Fetch from Git: {tag} {distance-from-tag} {current commit hash} Return as semantic version string compliant with PEP440""" root = os.path.dirname(os.path.realpath(file)) try: tag, distance, commit = g.gitDescribe(root) # 5.6b2, 55, e1129da ctag = clean_g...
https://github.com/leo-editor/leo-editor/issues/1019
pip install . Processing d:\matt\code\leo-build Installing build dependencies ... done Complete output from command python setup.py egg_info: Removing build, dist and egg directories Traceback (most recent call last): File "<string>", line 1, in <module> File "C:\Users\Matt\AppData\Local\Temp\pip-req-build-vau006t6\se...
FileNotFoundError
def computeThemeFilePath(self): """Return the absolute path to the theme .leo file.""" lm = self resolve = self.resolve_theme_path # # Step 1: Use the --theme file if it exists path = resolve(lm.options.get("theme_path"), tag="--theme") if path: return path # # Step 2: look f...
def computeThemeFilePath(self): """Return the absolute path to the theme .leo file.""" lm = self resolve = self.resolve_theme_path # Step 1: Use the --theme file if it exists path = resolve(lm.options.get("theme_path"), tag="--theme") if path: return path # Step 2: look for the @stri...
https://github.com/leo-editor/leo-editor/issues/970
setting leoID from os.getenv('USER'): 'matt' reading settings in /home/matt/miniconda3/envs/leo/lib/python3.6/site-packages/leo/config/leoSettings.leo reading settings in /home/matt/.leo/myLeoSettings.leo QApplication: invalid style override passed, ignoring it. Leo 5.8 b1, build 20180815095610, Wed, Aug 15, 2018 9:5...
xml.etree.ElementTree.ParseError
def createSettingsDicts(self, c, localFlag, theme=False): import leo.core.leoConfig as leoConfig if c: parser = leoConfig.SettingsTreeParser(c, localFlag) # returns the *raw* shortcutsDict, not a *merged* shortcuts dict. shortcutsDict, settingsDict = parser.traverse(theme=theme) ...
def createSettingsDicts(self, c, localFlag, theme=False): import leo.core.leoConfig as leoConfig parser = leoConfig.SettingsTreeParser(c, localFlag) # returns the *raw* shortcutsDict, not a *merged* shortcuts dict. shortcutsDict, settingsDict = parser.traverse(theme=theme) return shortcutsDict, set...
https://github.com/leo-editor/leo-editor/issues/970
setting leoID from os.getenv('USER'): 'matt' reading settings in /home/matt/miniconda3/envs/leo/lib/python3.6/site-packages/leo/config/leoSettings.leo reading settings in /home/matt/.leo/myLeoSettings.leo QApplication: invalid style override passed, ignoring it. Leo 5.8 b1, build 20180815095610, Wed, Aug 15, 2018 9:5...
xml.etree.ElementTree.ParseError
def getPreviousSettings(self, fn): """ Return the settings in effect for fn. Typically, this involves pre-reading fn. """ lm = self settingsName = "settings dict for %s" % g.shortFileName(fn) shortcutsName = "shortcuts dict for %s" % g.shortFileName(fn) # A special case: settings in leoS...
def getPreviousSettings(self, fn): """ Return the settings in effect for fn. Typically, this involves pre-reading fn. """ lm = self settingsName = "settings dict for %s" % g.shortFileName(fn) shortcutsName = "shortcuts dict for %s" % g.shortFileName(fn) # A special case: settings in leoS...
https://github.com/leo-editor/leo-editor/issues/970
setting leoID from os.getenv('USER'): 'matt' reading settings in /home/matt/miniconda3/envs/leo/lib/python3.6/site-packages/leo/config/leoSettings.leo reading settings in /home/matt/.leo/myLeoSettings.leo QApplication: invalid style override passed, ignoring it. Leo 5.8 b1, build 20180815095610, Wed, Aug 15, 2018 9:5...
xml.etree.ElementTree.ParseError
def openFileByName(self, fn, gui, old_c, previousSettings): """Read the local file whose full path is fn using the given gui. fn may be a Leo file (including .leo or zipped file) or an external file. This is not a pre-read: the previousSettings always exist and the commander created here persists until...
def openFileByName(self, fn, gui, old_c, previousSettings): """Read the local file whose full path is fn using the given gui. fn may be a Leo file (including .leo or zipped file) or an external file. This is not a pre-read: the previousSettings always exist and the commander created here persists until...
https://github.com/leo-editor/leo-editor/issues/970
setting leoID from os.getenv('USER'): 'matt' reading settings in /home/matt/miniconda3/envs/leo/lib/python3.6/site-packages/leo/config/leoSettings.leo reading settings in /home/matt/.leo/myLeoSettings.leo QApplication: invalid style override passed, ignoring it. Leo 5.8 b1, build 20180815095610, Wed, Aug 15, 2018 9:5...
xml.etree.ElementTree.ParseError
def readOpenedLeoFile(self, c, fn, readAtFileNodesFlag, theFile): # New in Leo 4.10: The open1 event does not allow an override of the init logic. assert theFile # lm = self ok = c.fileCommands.openLeoFile( theFile, fn, readAtFileNodesFlag=readAtFileNodesFlag ) # closes file. if ok: ...
def readOpenedLeoFile(self, c, fn, readAtFileNodesFlag, theFile): # New in Leo 4.10: The open1 event does not allow an override of the init logic. assert theFile # lm = self ok = c.fileCommands.openLeoFile( theFile, fn, readAtFileNodesFlag=readAtFileNodesFlag ) # closes file. if ok: ...
https://github.com/leo-editor/leo-editor/issues/970
setting leoID from os.getenv('USER'): 'matt' reading settings in /home/matt/miniconda3/envs/leo/lib/python3.6/site-packages/leo/config/leoSettings.leo reading settings in /home/matt/.leo/myLeoSettings.leo QApplication: invalid style override passed, ignoring it. Leo 5.8 b1, build 20180815095610, Wed, Aug 15, 2018 9:5...
xml.etree.ElementTree.ParseError
def readWithElementTree(self, path, s): contents = g.toUnicode(s) if g.isPython3 else s try: xroot = ElementTree.fromstring(contents) except Exception as e: if path: message = "bad .leo file: %s" % g.shortFileName(path) else: message = "The clipboard is not a ...
def readWithElementTree(self, path, s): contents = g.toUnicode(s) if g.isPython3 else s try: xroot = ElementTree.fromstring(contents) except Exception as e: if path: message = "bad .leo file: %s" % g.shortFileName(path) else: message = "The clipboard is not a ...
https://github.com/leo-editor/leo-editor/issues/970
setting leoID from os.getenv('USER'): 'matt' reading settings in /home/matt/miniconda3/envs/leo/lib/python3.6/site-packages/leo/config/leoSettings.leo reading settings in /home/matt/.leo/myLeoSettings.leo QApplication: invalid style override passed, ignoring it. Leo 5.8 b1, build 20180815095610, Wed, Aug 15, 2018 9:5...
xml.etree.ElementTree.ParseError
def getGlobalData(self): """Return a dict containing all global data.""" c = self.c try: window_pos = c.db.get("window_position") r1 = float(c.db.get("body_outline_ratio", "0.5")) r2 = float(c.db.get("body_secondary_ratio", "0.5")) top, left, height, width = window_pos ...
def getGlobalData(self): """Return a dict containing all global data.""" c = self.c data = c.db.get("window_position") if data: # pylint: disable=unpacking-non-sequence top, left, height, width = data d = { "top": int(top), "left": int(left), "...
https://github.com/leo-editor/leo-editor/issues/970
setting leoID from os.getenv('USER'): 'matt' reading settings in /home/matt/miniconda3/envs/leo/lib/python3.6/site-packages/leo/config/leoSettings.leo reading settings in /home/matt/.leo/myLeoSettings.leo QApplication: invalid style override passed, ignoring it. Leo 5.8 b1, build 20180815095610, Wed, Aug 15, 2018 9:5...
xml.etree.ElementTree.ParseError
def get_version(file, version=None): """Determine current Leo version. Use git if in checkout, else internal Leo""" root = os.path.dirname(os.path.realpath(file)) if os.path.exists(os.path.join(root, ".git")): version = git_version(file) else: version = get_semver(leoVersion.version) ...
def get_version(file, version=None): """Determine current Leo version. Use git if in checkout, else internal Leo""" root = os.path.dirname(os.path.realpath(file)) if os.path.exists(os.path.join(root, ".git")): version = git_version(file) else: version = get_semver(leoVersion.version) ...
https://github.com/leo-editor/leo-editor/issues/847
(leo-next) PS C:\Users\Viktor\leo-next> pip install https://github.com/leo-editor/leo-editor/archive/master.zip Collecting https://github.com/leo-editor/leo-editor/archive/master.zip Downloading https://github.com/leo-editor/leo-editor/archive/master.zip - 11.5MB 1.3MB/s Complete output from command python setup.py egg...
ModuleNotFoundError
def get_semver(tag): """Return 'Semantic Version' from tag string""" try: import semantic_version version = str(semantic_version.Version.coerce(tag, partial=True)) # tuple of major, minor, build, pre-release, patch # 5.6b2 --> 5.6-b2 except ImportError or ValueError: ...
def get_semver(tag): """Return 'Semantic Version' from tag string""" try: version = str(semantic_version.Version.coerce(tag, partial=True)) # tuple of major, minor, build, pre-release, patch # 5.6b2 --> 5.6-b2 except ValueError: print( """*** Failed to parse Seman...
https://github.com/leo-editor/leo-editor/issues/847
(leo-next) PS C:\Users\Viktor\leo-next> pip install https://github.com/leo-editor/leo-editor/archive/master.zip Collecting https://github.com/leo-editor/leo-editor/archive/master.zip Downloading https://github.com/leo-editor/leo-editor/archive/master.zip - 11.5MB 1.3MB/s Complete output from command python setup.py egg...
ModuleNotFoundError
def get_semver(tag): """Return 'Semantic Version' from tag string""" try: import semantic_version version = str(semantic_version.Version.coerce(tag, partial=True)) # tuple of major, minor, build, pre-release, patch # 5.6b2 --> 5.6-b2 except ImportError or ValueError as err: ...
def get_semver(tag): """Return 'Semantic Version' from tag string""" try: import semantic_version version = str(semantic_version.Version.coerce(tag, partial=True)) # tuple of major, minor, build, pre-release, patch # 5.6b2 --> 5.6-b2 except ImportError or ValueError: ...
https://github.com/leo-editor/leo-editor/issues/847
(leo-next) PS C:\Users\Viktor\leo-next> pip install https://github.com/leo-editor/leo-editor/archive/master.zip Collecting https://github.com/leo-editor/leo-editor/archive/master.zip Downloading https://github.com/leo-editor/leo-editor/archive/master.zip - 11.5MB 1.3MB/s Complete output from command python setup.py egg...
ModuleNotFoundError
def clean(): print("\nRemoving build, dist and egg directories") root = os.path.dirname(os.path.realpath(__file__)) for d in ["build", "dist", "leo.egg-info", ".eggs"]: dpath = os.path.join(root, d) if os.path.isdir(dpath): rmtree(dpath)
def clean(): print("Removing build and dist directories") root = os.path.dirname(os.path.realpath(__file__)) for d in ["build", "dist", "leo.egg-info"]: dpath = os.path.join(root, d) if os.path.isdir(dpath): rmtree(dpath)
https://github.com/leo-editor/leo-editor/issues/847
(leo-next) PS C:\Users\Viktor\leo-next> pip install https://github.com/leo-editor/leo-editor/archive/master.zip Collecting https://github.com/leo-editor/leo-editor/archive/master.zip Downloading https://github.com/leo-editor/leo-editor/archive/master.zip - 11.5MB 1.3MB/s Complete output from command python setup.py egg...
ModuleNotFoundError
def readFile(self, fileName, root): """ Read the file from the cache if possible. Return (s,ok,key) """ trace = False and not g.unitTesting showHits = False showLines = False showList = False sfn = g.shortFileName(fileName) if not g.enableDB: if trace: g.trace...
def readFile(self, fileName, root): """ Read the file from the cache if possible. Return (s,ok,key) """ trace = False and not g.unitTesting showHits = False showLines = False showList = False sfn = g.shortFileName(fileName) if not g.enableDB: if trace: g.trace...
https://github.com/leo-editor/leo-editor/issues/892
[a64] c:\leo.repo\leo-editor>rem leo.bat [a64] c:\leo.repo\leo-editor>python c:\leo.repo\leo-editor\launchLeo.py --gui=qttabs --gui=qttabs leo\core\leoPy.leo leo\plugins\leoPlugins.leo c:\Users\edreamleo\ekr-projects.leo leo\doc\LeoDocs.leo reading settings in C:/leo.repo/leo-editor/leo/config/leoSettings.leo reading...
IndexError
def find_parent(self, level, h): """ Return the parent at the indicated level, allocating place-holder nodes as necessary. """ trace = False and not g.unitTesting assert level >= 0 if trace: print("") g.trace("===== level: %s, len(stack): %s h: %s" % (level, len(self.stack), ...
def find_parent(self, level, h): """ Return the parent at the indicated level, allocating place-holder nodes as necessary. """ trace = False and g.unitTesting trace_stack = False assert level >= 0 if trace: g.trace("=====", level, len(self.stack), h) while level < len(self.st...
https://github.com/leo-editor/leo-editor/issues/877
reading: @auto-md Software.md Exception running Markdown_Importer Traceback (most recent call last): File "D:\Synced\github repos\leo\leo\core\leoApp.py", line 1468, in scanner_for_at_auto_cb return scanner.run(s, parent) File "D:\Synced\github repos\leo\leo\plugins\importers\linescanner.py", line 463, in run self.gene...
IndexError
def checkLinks(self): """Check the consistency of all links in the outline.""" c = self t1 = time.time() count, errors = 0, 0 for p in c.safe_all_positions(): count += 1 # try: if not c.checkThreadLinks(p): errors += 1 break if not c.checkSibli...
def checkLinks(self): """Check the consistency of all links in the outline.""" c = self t1 = time.time() count, errors = 0, 0 for p in c.safe_all_positions(): count += 1 try: c.checkThreadLinks(p) c.checkSiblings(p) c.checkParentAndChildren(p) ...
https://github.com/leo-editor/leo-editor/issues/862
Traceback (most recent call last): File "/pri/git/leo-editor/leo/core/leoCommands.py", line 2016, in executeAnyCommand return command(event) File "/pri/git/leo-editor/leo/core/leoGlobals.py", line 2445, in commander_command_wrapper method(event=event) File "/pri/git/leo-editor/leo/commands/commanderOutlineCommands.p...
ValueError
def checkParentAndChildren(self, p): """Check consistency of parent and child data structures.""" c = self def _assert(condition): return g._assert(condition, show_callers=False) def dump(p): if p and p.v: p.v.dump() elif p: print("<no p.v>") els...
def checkParentAndChildren(self, p): """Check consistency of parent and child data structures.""" # Check consistency of parent and child links. if p.hasParent(): n = p.childIndex() assert p == p.parent().moveToNthChild(n), "p!=parent.moveToNthChild" for child in p.children(): as...
https://github.com/leo-editor/leo-editor/issues/862
Traceback (most recent call last): File "/pri/git/leo-editor/leo/core/leoCommands.py", line 2016, in executeAnyCommand return command(event) File "/pri/git/leo-editor/leo/core/leoGlobals.py", line 2445, in commander_command_wrapper method(event=event) File "/pri/git/leo-editor/leo/commands/commanderOutlineCommands.p...
ValueError
def checkSiblings(self, p): """Check the consistency of next and back links.""" back = p.back() next = p.next() if back: if not g._assert(p == back.next()): g.trace( "p!=p.back().next(), back: %s\nback.next: %s" % (back, back.next()) ) return ...
def checkSiblings(self, p): """Check the consistency of next and back links.""" back = p.back() next = p.next() if back: assert p == back.next(), "p!=p.back().next(), back: %s\nback.next: %s" % ( back, back.next(), ) if next: assert p == next.back(), ...
https://github.com/leo-editor/leo-editor/issues/862
Traceback (most recent call last): File "/pri/git/leo-editor/leo/core/leoCommands.py", line 2016, in executeAnyCommand return command(event) File "/pri/git/leo-editor/leo/core/leoGlobals.py", line 2445, in commander_command_wrapper method(event=event) File "/pri/git/leo-editor/leo/commands/commanderOutlineCommands.p...
ValueError
def checkThreadLinks(self, p): """Check consistency of threadNext & threadBack links.""" threadBack = p.threadBack() threadNext = p.threadNext() if threadBack: if not g._assert(p == threadBack.threadNext()): g.trace("p!=p.threadBack().threadNext()") return False if th...
def checkThreadLinks(self, p): """Check consistency of threadNext & threadBack links.""" threadBack = p.threadBack() threadNext = p.threadNext() if threadBack: assert p == threadBack.threadNext(), "p!=p.threadBack().threadNext()" if threadNext: assert p == threadNext.threadBack(), "p...
https://github.com/leo-editor/leo-editor/issues/862
Traceback (most recent call last): File "/pri/git/leo-editor/leo/core/leoCommands.py", line 2016, in executeAnyCommand return command(event) File "/pri/git/leo-editor/leo/core/leoGlobals.py", line 2445, in commander_command_wrapper method(event=event) File "/pri/git/leo-editor/leo/commands/commanderOutlineCommands.p...
ValueError
def getLeoOutlineFromClipboard(self, s, reassignIndices=True): ###, tempOutline=False): """Read a Leo outline from string s in clipboard format.""" ### # if tempOutline: # g.trace('===== tempOutline is True', g.callers()) # if g.unitTesting: assert False c = self.c current = c.p if not ...
def getLeoOutlineFromClipboard(self, s, reassignIndices=True): ###, tempOutline=False): """Read a Leo outline from string s in clipboard format.""" ### # if tempOutline: # g.trace('===== tempOutline is True', g.callers()) # if g.unitTesting: assert False c = self.c current = c.p if not ...
https://github.com/leo-editor/leo-editor/issues/862
Traceback (most recent call last): File "/pri/git/leo-editor/leo/core/leoCommands.py", line 2016, in executeAnyCommand return command(event) File "/pri/git/leo-editor/leo/core/leoGlobals.py", line 2445, in commander_command_wrapper method(event=event) File "/pri/git/leo-editor/leo/commands/commanderOutlineCommands.p...
ValueError
def _assert(condition, show_callers=True): """A safer alternative to a bare assert.""" if g.unitTesting: assert condition return ok = bool(condition) if ok: return True print("") g.es_print("===== g._assert failed =====") print("") if show_callers: g.es_pr...
def _assert(condition): """A safer alternative to a bare assert.""" if g.unitTesting: assert condition return ok = bool(condition) if ok: return True g.es_print("g._assert failed") g.es_print(g.callers()) return False
https://github.com/leo-editor/leo-editor/issues/862
Traceback (most recent call last): File "/pri/git/leo-editor/leo/core/leoCommands.py", line 2016, in executeAnyCommand return command(event) File "/pri/git/leo-editor/leo/core/leoGlobals.py", line 2445, in commander_command_wrapper method(event=event) File "/pri/git/leo-editor/leo/commands/commanderOutlineCommands.p...
ValueError
def getLeoOutlineFromClipboard(self, s, reassignIndices=True): """Read a Leo outline from string s in clipboard format.""" c = self.c current = c.p if not current: g.trace("no c.p") return None check = not reassignIndices self.initReadIvars() # Save the hidden root's children...
def getLeoOutlineFromClipboard(self, s, reassignIndices=True): """Read a Leo outline from string s in clipboard format.""" c = self.c current = c.p if not current: g.trace("no c.p") return None check = not reassignIndices self.initReadIvars() # Save the hidden root's children...
https://github.com/leo-editor/leo-editor/issues/862
Traceback (most recent call last): File "/pri/git/leo-editor/leo/core/leoCommands.py", line 2016, in executeAnyCommand return command(event) File "/pri/git/leo-editor/leo/core/leoGlobals.py", line 2445, in commander_command_wrapper method(event=event) File "/pri/git/leo-editor/leo/commands/commanderOutlineCommands.p...
ValueError
def createSaxChildren(self, sax_node, parent_v): """Create vnodes for all children in sax_node.children.""" children = [] for sax_child in sax_node.children: tnx = sax_child.tnx v = self.gnxDict.get(tnx) if v: # A clone. Don't look at the children. self.updateSaxClone(sa...
def createSaxChildren(self, sax_node, parent_v): """Create vnodes for all children in sax_node.children.""" children = [] for sax_child in sax_node.children: tnx = sax_child.tnx v = self.gnxDict.get(tnx) if v: # A clone. Don't look at the children. ### v = self.createSax...
https://github.com/leo-editor/leo-editor/issues/862
Traceback (most recent call last): File "/pri/git/leo-editor/leo/core/leoCommands.py", line 2016, in executeAnyCommand return command(event) File "/pri/git/leo-editor/leo/core/leoGlobals.py", line 2445, in commander_command_wrapper method(event=event) File "/pri/git/leo-editor/leo/commands/commanderOutlineCommands.p...
ValueError
def updateSaxClone(self, sax_node, parent_v, v): """ Update the body text of v. It overrides any previous body text. """ at = self.c.atFileCommands b = sax_node.bodyString if v.b != b: v.setBodyString(b) at.bodySetInited(v)
def updateSaxClone(self, sax_node, parent_v, v): """ Update the body text of v. It overrides any previous body text. """ c = self.c at = c.atFileCommands b = sax_node.bodyString if v.b != b: v.setBodyString(b) at.bodySetInited(v)
https://github.com/leo-editor/leo-editor/issues/862
Traceback (most recent call last): File "/pri/git/leo-editor/leo/core/leoCommands.py", line 2016, in executeAnyCommand return command(event) File "/pri/git/leo-editor/leo/core/leoGlobals.py", line 2445, in commander_command_wrapper method(event=event) File "/pri/git/leo-editor/leo/commands/commanderOutlineCommands.p...
ValueError
def get_semver(tag): """Return 'Semantic Version' from tag string""" try: version = str(semantic_version.Version.coerce(tag, partial=True)) # tuple of major, minor, build, pre-release, patch # 5.6b2 --> 5.6-b2 except ValueError: print( """*** Failed to parse Seman...
def get_semver(tag): """Return 'Semantic Version' from tag string""" try: version = semantic_version.Version.coerce(tag, partial=True) # tuple of major, minor, build, pre-release, patch # 5.6b2 --> 5.6-b2 except ValueError: print( """*** Failed to parse Semantic V...
https://github.com/leo-editor/leo-editor/issues/720
pip install --upgrade https://github.com/leo-editor/leo-editor/archive/5.7b2.zip Collecting https://github.com/leo-editor/leo-editor/archive/5.7b2.zip Downloading https://github.com/leo-editor/leo-editor/archive/5.7b2.zip \ 11.4MB 4.9MB/s Complete output from command python setup.py egg_info: Removing build and dist di...
TypeError
def git_version(file): """Fetch from Git: {tag} {distance-from-tag} {current commit hash} Return as semantic version string compliant with PEP440""" root = os.path.dirname(os.path.realpath(file)) tag, distance, commit = g.gitDescribe(root) # 5.6b2, 55, e1129da ctag = clean_git_tag(tag) versi...
def git_version(file): """Fetch from Git: {tag} {distance-from-tag} {current commit hash} Return as semantic version string compliant with PEP440""" root = os.path.dirname(os.path.realpath(file)) tag, distance, commit = g.gitDescribe(root) # 5.6b2, 55, e1129da ctag = clean_git_tag(tag) try: ...
https://github.com/leo-editor/leo-editor/issues/720
pip install --upgrade https://github.com/leo-editor/leo-editor/archive/5.7b2.zip Collecting https://github.com/leo-editor/leo-editor/archive/5.7b2.zip Downloading https://github.com/leo-editor/leo-editor/archive/5.7b2.zip \ 11.4MB 4.9MB/s Complete output from command python setup.py egg_info: Removing build and dist di...
TypeError
def put_help(self, c, s, short_title=""): """Put the help command.""" trace = False and not g.unitTesting s = g.adjustTripleString(s.rstrip(), c.tab_width) if s.startswith("<") and not s.startswith("<<"): pass # how to do selective replace?? pc = g.app.pluginsController table = ( ...
def put_help(self, c, s, short_title=""): """Put the help command.""" s = g.adjustTripleString(s.rstrip(), c.tab_width) if s.startswith("<") and not s.startswith("<<"): pass # how to do selective replace?? pc = g.app.pluginsController table = ( "viewrendered3.py", "viewrende...
https://github.com/leo-editor/leo-editor/issues/734
Traceback (most recent call last): File "c:\leo.repo\leo-editor\leo\core\leoGlobals.py", line 2385, in new_cmd_wrapper func(self, event=event) File "c:\leo.repo\leo-editor\leo\commands\helpCommands.py", line 62, in help self.c.putHelpFor(rst_s) File "c:\leo.repo\leo-editor\leo\core\leoCommands.py", line 2322, in putHel...
NameError
def init(): """Return True if the plugin has loaded successfully.""" if import_ok: # Fix #734. global got_docutils if not got_docutils: g.es_print("Warning: viewrendered2.py running without docutils.") g.plugin_signon(__name__) g.registerHandler("after-create-leo-fra...
def init(): """Return True if the plugin has loaded successfully.""" global got_docutils if not got_docutils: g.es_print("Warning: viewrendered2.py running without docutils.") g.plugin_signon(__name__) g.registerHandler("after-create-leo-frame", onCreate) g.registerHandler("scrolledMessa...
https://github.com/leo-editor/leo-editor/issues/734
Traceback (most recent call last): File "c:\leo.repo\leo-editor\leo\core\leoGlobals.py", line 2385, in new_cmd_wrapper func(self, event=event) File "c:\leo.repo\leo-editor\leo\commands\helpCommands.py", line 62, in help self.c.putHelpFor(rst_s) File "c:\leo.repo\leo-editor\leo\core\leoCommands.py", line 2322, in putHel...
NameError
def init(): """Return True if the plugin has loaded successfully.""" global got_docutils if import_ok: # Fix #734. if not got_docutils: g.es_print("Warning: viewrendered2.py running without docutils.") g.plugin_signon(__name__) g.registerHandler("after-create-leo-frame",...
def init(): """Return True if the plugin has loaded successfully.""" if import_ok: # Fix #734. global got_docutils if not got_docutils: g.es_print("Warning: viewrendered2.py running without docutils.") g.plugin_signon(__name__) g.registerHandler("after-create-leo-fra...
https://github.com/leo-editor/leo-editor/issues/734
Traceback (most recent call last): File "c:\leo.repo\leo-editor\leo\core\leoGlobals.py", line 2385, in new_cmd_wrapper func(self, event=event) File "c:\leo.repo\leo-editor\leo\commands\helpCommands.py", line 62, in help self.c.putHelpFor(rst_s) File "c:\leo.repo\leo-editor\leo\core\leoCommands.py", line 2322, in putHel...
NameError
def init_view(self): """Init the vr pane.""" # QWebView parts, including progress bar view = QtWebKitWidgets.QWebView() try: # PyQt4 mf = view.page().mainFrame() mf.contentsSizeChanged.connect(self.restore_scroll_position) except AttributeError: # PyQt5 pass ...
def init_view(self): """Init the vr pane.""" # QWebView parts, including progress bar view = QtWebKitWidgets.QWebView() try: # PyQt4 mf = view.page().mainFrame() mf.contentsSizeChanged.connect(self.restore_scroll_position) except AttributeError: # PyQt5 pass ...
https://github.com/leo-editor/leo-editor/issues/734
Traceback (most recent call last): File "c:\leo.repo\leo-editor\leo\core\leoGlobals.py", line 2385, in new_cmd_wrapper func(self, event=event) File "c:\leo.repo\leo-editor\leo\commands\helpCommands.py", line 62, in help self.c.putHelpFor(rst_s) File "c:\leo.repo\leo-editor\leo\core\leoCommands.py", line 2322, in putHel...
NameError
def init_config(self): """Init docutils settings.""" ds = {} gc = self.c.config def getConfig(getfun, name, default, setfun=None, setvar=None): """Make a shorthand way to get and store a setting with defaults""" r = getfun("vr_" + name) # keep docutils name but prefix if setfun...
def init_config(self): """Init docutils settings.""" ds = {} gc = self.c.config def getConfig(getfun, name, default, setfun=None, setvar=None): """Make a shorthand way to get and store a setting with defaults""" r = getfun("vr_" + name) # keep docutils name but prefix if setfun...
https://github.com/leo-editor/leo-editor/issues/734
Traceback (most recent call last): File "c:\leo.repo\leo-editor\leo\core\leoGlobals.py", line 2385, in new_cmd_wrapper func(self, event=event) File "c:\leo.repo\leo-editor\leo\commands\helpCommands.py", line 62, in help self.c.putHelpFor(rst_s) File "c:\leo.repo\leo-editor\leo\core\leoCommands.py", line 2322, in putHel...
NameError
def getUIconfig(self): """Get the rendering configuration from the GUI controls.""" # Pull internal configuration options from GUI self.verbose = self.verbose_mode_action.isChecked() # self.output = 'html' self.tree = self.tree_mode_action.isChecked() self.execcode = self.execute_code_action.isC...
def getUIconfig(self): """Get the rendering configuration from the GUI controls.""" # Pull internal configuration options from GUI self.verbose = self.verbose_mode_action.isChecked() # self.output = 'html' self.tree = self.tree_mode_action.isChecked() self.execcode = self.execute_code_action.isC...
https://github.com/leo-editor/leo-editor/issues/734
Traceback (most recent call last): File "c:\leo.repo\leo-editor\leo\core\leoGlobals.py", line 2385, in new_cmd_wrapper func(self, event=event) File "c:\leo.repo\leo-editor\leo\commands\helpCommands.py", line 62, in help self.c.putHelpFor(rst_s) File "c:\leo.repo\leo-editor\leo\core\leoCommands.py", line 2322, in putHel...
NameError
def process_one_node(self, p, result, environment): """Handle one node.""" c = self.c if not self.code_only: result.append(self.underline2(p)) d = c.scanAllDirectives(p) if self.verbose: g.trace(d.get("language") or "None", ":", p.h) s, code = self.process_directives(p.b, d) ...
def process_one_node(self, p, result, environment): """Handle one node.""" c = self.c result.append(self.underline2(p)) d = c.scanAllDirectives(p) if self.verbose: g.trace(d.get("language") or "None", ":", p.h) s, code = self.process_directives(p.b, d) result.append(s) result.app...
https://github.com/leo-editor/leo-editor/issues/734
Traceback (most recent call last): File "c:\leo.repo\leo-editor\leo\core\leoGlobals.py", line 2385, in new_cmd_wrapper func(self, event=event) File "c:\leo.repo\leo-editor\leo\commands\helpCommands.py", line 62, in help self.c.putHelpFor(rst_s) File "c:\leo.repo\leo-editor\leo\core\leoCommands.py", line 2322, in putHel...
NameError
def process_directives(self, s, d): """s is string to process, d is dictionary of directives at the node.""" trace = False and not g.unitTesting lang = d.get("language") or "python" # EKR. codeflag = lang != "rest" # EKR lines = g.splitLines(s) result = [] code = "" if codeflag and sel...
def process_directives(self, s, d): """s is string to process, d is dictionary of directives at the node.""" trace = False and not g.unitTesting lang = d.get("language") or "python" # EKR. codeflag = lang != "rest" # EKR lines = g.splitLines(s) result = [] code = "" if codeflag and sel...
https://github.com/leo-editor/leo-editor/issues/734
Traceback (most recent call last): File "c:\leo.repo\leo-editor\leo\core\leoGlobals.py", line 2385, in new_cmd_wrapper func(self, event=event) File "c:\leo.repo\leo-editor\leo\commands\helpCommands.py", line 62, in help self.c.putHelpFor(rst_s) File "c:\leo.repo\leo-editor\leo\core\leoCommands.py", line 2322, in putHel...
NameError
def md_to_html(self, p): """Convert p.b to html using markdown.""" c, pc = self.c, self.pc mf = self.view.page().mainFrame() path = g.scanAllAtPathDirectives(c, p) or c.getNodePath(p) if not os.path.isdir(path): path = os.path.dirname(path) if os.path.isdir(path): os.chdir(path) ...
def md_to_html(self, p): """Convert p.b to html using markdown.""" c, pc = self.c, self.pc mf = self.view.page().mainFrame() path = g.scanAllAtPathDirectives(c, p) or c.getNodePath(p) if not os.path.isdir(path): path = os.path.dirname(path) if os.path.isdir(path): os.chdir(path) ...
https://github.com/leo-editor/leo-editor/issues/734
Traceback (most recent call last): File "c:\leo.repo\leo-editor\leo\core\leoGlobals.py", line 2385, in new_cmd_wrapper func(self, event=event) File "c:\leo.repo\leo-editor\leo\commands\helpCommands.py", line 62, in help self.c.putHelpFor(rst_s) File "c:\leo.repo\leo-editor\leo\core\leoCommands.py", line 2322, in putHel...
NameError
def md_process_one_node(self, p, result, environment): """Handle one node.""" c = self.c if not self.code_only: result.append(self.md_underline2(p)) d = c.scanAllDirectives(p) if self.verbose: g.trace(d.get("language") or "None", ":", p.h) s, code = self.md_process_directives(p.b...
def md_process_one_node(self, p, result, environment): """Handle one node.""" c = self.c result.append(self.md_underline2(p)) d = c.scanAllDirectives(p) if self.verbose: g.trace(d.get("language") or "None", ":", p.h) s, code = self.md_process_directives(p.b, d) result.append(s) r...
https://github.com/leo-editor/leo-editor/issues/734
Traceback (most recent call last): File "c:\leo.repo\leo-editor\leo\core\leoGlobals.py", line 2385, in new_cmd_wrapper func(self, event=event) File "c:\leo.repo\leo-editor\leo\commands\helpCommands.py", line 62, in help self.c.putHelpFor(rst_s) File "c:\leo.repo\leo-editor\leo\core\leoCommands.py", line 2322, in putHel...
NameError
def md_process_directives(self, s, d): """s is string to process, d is dictionary of directives at the node.""" trace = False and not g.unitTesting lang = d.get("language") or "python" # EKR. codeflag = lang != "md" # EKR lines = g.splitLines(s) result = [] code = "" if codeflag and se...
def md_process_directives(self, s, d): """s is string to process, d is dictionary of directives at the node.""" trace = False and not g.unitTesting lang = d.get("language") or "python" # EKR. codeflag = lang != "md" # EKR lines = g.splitLines(s) result = [] code = "" if codeflag and se...
https://github.com/leo-editor/leo-editor/issues/734
Traceback (most recent call last): File "c:\leo.repo\leo-editor\leo\core\leoGlobals.py", line 2385, in new_cmd_wrapper func(self, event=event) File "c:\leo.repo\leo-editor\leo\commands\helpCommands.py", line 62, in help self.c.putHelpFor(rst_s) File "c:\leo.repo\leo-editor\leo\core\leoCommands.py", line 2322, in putHel...
NameError
def __init__(self, c, parent=None): QtWidgets.QWidget.__init__(self, parent) self.setObjectName("viewrendered_pane") self.setLayout(QtWidgets.QVBoxLayout()) self.layout().setContentsMargins(0, 0, 0, 0) self.active = False self.c = c self.badColors = [] self.delete_callback = None sel...
def __init__(self, c, parent=None): QtWidgets.QWidget.__init__(self, parent) self.setObjectName("viewrendered_pane") self.setLayout(QtWidgets.QVBoxLayout()) self.layout().setContentsMargins(0, 0, 0, 0) self.active = False self.c = c self.badColors = [] self.delete_callback = None sel...
https://github.com/leo-editor/leo-editor/issues/734
Traceback (most recent call last): File "c:\leo.repo\leo-editor\leo\core\leoGlobals.py", line 2385, in new_cmd_wrapper func(self, event=event) File "c:\leo.repo\leo-editor\leo\commands\helpCommands.py", line 62, in help self.c.putHelpFor(rst_s) File "c:\leo.repo\leo-editor\leo\core\leoCommands.py", line 2322, in putHel...
NameError
def compute_last_index(self, c): """Scan the entire leo outline to compute ni.last_index.""" trace = False and not g.unitTesting verbose = True # Report only if lastIndex was changed. if trace: t1 = time.time() ni = self old_lastIndex = self.lastIndex # Partial, experimental, fix fo...
def compute_last_index(self, c): """Scan the entire leo outline to compute ni.last_index.""" trace = False and not g.unitTesting verbose = False # Report only if lastIndex was changed. if trace: t1 = time.time() ni = self old_lastIndex = self.lastIndex self.lastIndex = 0 for v i...
https://github.com/leo-editor/leo-editor/issues/658
2018-01-25 14:32:51 /pri/git/leo_bug_demos/2018-01-25-leoBridge-Closed-sqlite3 $ python3 opOnClosedSqlite3.py Traceback (most recent call last): File "opOnClosedSqlite3.py", line 23, in <module> main() File "opOnClosedSqlite3.py", line 20, in main cmdrX.close() File "/pri/git/leo-editor/leo/commands/commanderFileComman...
sqlite3.ProgrammingError
def openLeoFile(self, fileName): """Open a .leo file, or create a new Leo frame if no fileName is given.""" g = self.g g.app.silentMode = self.silentMode useLog = False if self.isOpen(): self.reopen_cachers() fileName = self.completeFileName(fileName) c = self.createFrame(fil...
def openLeoFile(self, fileName): """Open a .leo file, or create a new Leo frame if no fileName is given.""" g = self.g g.app.silentMode = self.silentMode useLog = False if self.isOpen(): fileName = self.completeFileName(fileName) c = self.createFrame(fileName) g.app.nodeIndic...
https://github.com/leo-editor/leo-editor/issues/658
2018-01-25 14:32:51 /pri/git/leo_bug_demos/2018-01-25-leoBridge-Closed-sqlite3 $ python3 opOnClosedSqlite3.py Traceback (most recent call last): File "opOnClosedSqlite3.py", line 23, in <module> main() File "opOnClosedSqlite3.py", line 20, in main cmdrX.close() File "/pri/git/leo-editor/leo/commands/commanderFileComman...
sqlite3.ProgrammingError
def do_ClassDef(self, node): result = [] name = node.name # Only a plain string is valid. bases = [self.visit(z) for z in node.bases] if node.bases else [] if getattr(node, "keywords", None): # Python 3 for keyword in node.keywords: bases.append("%s=%s" % (keyword.arg, self.visit(k...
def do_ClassDef(self, node): result = [] name = node.name # Only a plain string is valid. bases = [self.visit(z) for z in node.bases] if node.bases else [] if getattr(node, "keywords", None): # Python 3 for keyword in node.keywords: bases.append("%s=%s" % (keyword.arg, self.visit(k...
https://github.com/leo-editor/leo-editor/issues/512
Trying to create a QVariant instance of QMetaType::Void type, an invalid QVariant will be constructed instead [this is repeated many many times] ====================================================================== ERROR: runTest (leo.core.leoTest.GeneralTestCase) @test rST import test -----------------------------...
AttributeError
def copy_to_my_settings(self, unl, which): """copy_to_my_settings - copy setting from leoSettings.leo :param str unl: Leo UNL to copy from :param int which: 1-3, leaf, leaf's parent, leaf's grandparent :return: unl of leaf copy in myLeoSettings.leo :rtype: str """ trace = False and not g.un...
def copy_to_my_settings(self, unl, which): """copy_to_my_settings - copy setting from leoSettings.leo :param str unl: Leo UNL to copy from :param int which: 1-3, leaf, leaf's parent, leaf's grandparent :return: unl of leaf copy in myLeoSettings.leo :rtype: str """ trace = False and not g.un...
https://github.com/leo-editor/leo-editor/issues/434
$ python launchLeo.py setting leoID from os.getenv('USER'): '<user>' reading settings in /Users/<user>/build-dirs/leo-editor/leo/config/leoSettings.leo reading settings in /Users/<user>/.leo/myLeoSettings.leo Using default leo file name: /Users/<user>/.leo/workbook.leo ** isPython3: True Leo 5.4, build 20170301100728...
TypeError
def parse_leo_file(self, theFile, inputFileName, silent, inClipboard, s=None): c = self.c # Fix #434: Potential bug in settings. if not theFile and not s: return None try: if g.isPython3: if theFile: # Use the open binary file, opened by the caller. ...
def parse_leo_file(self, theFile, inputFileName, silent, inClipboard, s=None): c = self.c try: if g.isPython3: if theFile: # Use the open binary file, opened by the caller. s = theFile.read() # isinstance(s, bytes) s = self.cleanSaxInputString...
https://github.com/leo-editor/leo-editor/issues/434
$ python launchLeo.py setting leoID from os.getenv('USER'): '<user>' reading settings in /Users/<user>/build-dirs/leo-editor/leo/config/leoSettings.leo reading settings in /Users/<user>/.leo/myLeoSettings.leo Using default leo file name: /Users/<user>/.leo/workbook.leo ** isPython3: True Leo 5.4, build 20170301100728...
TypeError
def readSaxFile(self, theFile, fileName, silent, inClipboard, reassignIndices, s=None): """Read the entire .leo file using the sax parser.""" dump = False and not g.unitTesting fc = self c = fc.c # Pass one: create the intermediate nodes. saxRoot = fc.parse_leo_file( theFile, fileName, s...
def readSaxFile(self, theFile, fileName, silent, inClipboard, reassignIndices, s=None): """Read the entire .leo file using the sax parser.""" dump = False and not g.unitTesting fc = self c = fc.c # Pass one: create the intermediate nodes. saxRoot = fc.parse_leo_file( theFile, fileName, s...
https://github.com/leo-editor/leo-editor/issues/434
$ python launchLeo.py setting leoID from os.getenv('USER'): '<user>' reading settings in /Users/<user>/build-dirs/leo-editor/leo/config/leoSettings.leo reading settings in /Users/<user>/.leo/myLeoSettings.leo Using default leo file name: /Users/<user>/.leo/workbook.leo ** isPython3: True Leo 5.4, build 20170301100728...
TypeError
def report_record_done(self, count, err_msg=""): """ Report the number of records in the latest processed batch, so TaskDataService knows if some pending tasks are finished and report_task_result to the master. Return True if there are some finished tasks, False otherwise. """ self._reported...
def report_record_done(self, count, err_msg=""): """ Report the number of records in the latest processed batch, so TaskDataService knows if some pending tasks are finished and report_task_result to the master. Return True if there are some finished tasks, False otherwise. """ self._reported...
https://github.com/sql-machine-learning/elasticdl/issues/1829
2020-03-12 22:03:32.300671: W tensorflow/core/kernels/data/generator_dataset_op.cc:103] Error occurred when finalizing GeneratorDataset iterator: Cancelled: Operation was cancelled Traceback (most recent call last): File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "/usr/li...
IndexError
def __init__( self, model_file, channel=None, max_retrain_num=DEFAULT_MAX_MINIBATCH_RETRAIN_NUM, codec_type=None, ): """ Arguments: model_module: A module to define the model channel: grpc channel max_retrain_num: max number of a minibatch retrain as its gradients are...
def __init__( self, model_file, channel=None, max_retrain_num=DEFAULT_MAX_MINIBATCH_RETRAIN_NUM, codec_type=None, ): """ Arguments: model_module: A module to define the model channel: grpc channel max_retrain_num: max number of a minibatch retrain as its gradients are...
https://github.com/sql-machine-learning/elasticdl/issues/396
python -m unittest elasticdl/worker/*_test.py /usr/local/anaconda3/lib/python3.6/site-packages/h5py/__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`. from ._conv import regist...
AssertionError
def distributed_train(self): """ Distributed training. """ while True: task = self.get_task() if not task.shard_file_name: # No more task break batch_size = task.minibatch_size err_msg = "" try: with recordio.File( ...
def distributed_train(self): """ Distributed training. """ if self._codec_type == "tf_example": codec = TFExampleCodec(self._all_columns) elif self._codec_type == "bytes": codec = BytesCodec(self._all_columns) else: raise ValueError("invalid codec_type: " + self._codec_ty...
https://github.com/sql-machine-learning/elasticdl/issues/396
python -m unittest elasticdl/worker/*_test.py /usr/local/anaconda3/lib/python3.6/site-packages/h5py/__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`. from ._conv import regist...
AssertionError
def local_train(self, file_list, batch_size, epoch=1, kwargs=None): """ Local training for local testing. Must in eager mode. Argments: batch_size: batch size in training epoch: the number of epoch in training kwargs: contains a dict of parameters used in training """ optimiz...
def local_train(self, file_list, batch_size, epoch=1, kwargs=None): """ Local training for local testing. Must in eager mode. Argments: batch_size: batch size in training epoch: the number of epoch in training kwargs: contains a dict of parameters used in training """ optimiz...
https://github.com/sql-machine-learning/elasticdl/issues/396
python -m unittest elasticdl/worker/*_test.py /usr/local/anaconda3/lib/python3.6/site-packages/h5py/__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`. from ._conv import regist...
AssertionError
def _gen_master_def(image_name, model_file, argv, timestamp): master_yaml = """ apiVersion: v1 kind: Pod metadata: name: "elasticdl-master-{timestamp}" labels: purpose: test-command spec: containers: - name: "elasticdl-master-{timestamp}" image: "{image_name}" command: ["python"] args: [ ...
def _gen_master_def(image_name, model_file, argv, timestamp): master_yaml = """ apiVersion: v1 kind: Pod metadata: name: elasticdl-master-{timestamp} labels: purpose: test-command spec: containers: - name: elasticdl-master-{timestamp} image: {image_name} command: ["python"] args: [ "...
https://github.com/sql-machine-learning/elasticdl/issues/363
Traceback (most recent call last): File "elasticdl/client/client.py", line 96, in <module> main() File "elasticdl/client/client.py", line 92, in main _submit(image_name, args.model_file, argv, timestamp) File "elasticdl/client/client.py", line 74, in _submit master_def = _gen_master_def(image_name, model_file, argv, ti...
yaml.scanner.ScannerError
def _parameter_indexes(self, param: str) -> Tuple[int, ...]: """Obtain indexes for values associated with `param`. A draw from the sampler is a flat vector of values. A multi-dimensional variable will be stored in this vector in column-major order. This function identifies the indices which allow us to...
def _parameter_indexes(self, param: str) -> Tuple[int, ...]: """Obtain indexes for values associated with `param`. A draw from the sampler is a flat vector of values. A multi-dimensional variable will be stored in this vector in column-major order. This function identifies the indices which allow us to...
https://github.com/stan-dev/pystan/issues/201
Traceback (most recent call last): File "scripts/pickle_error.py", line 45, in <module> print(fit2["mu"]) File "<redacted>/lib/python3.7/site-packages/stan/fit.py", line 131, in __getitem__ raise RuntimeError("Still collecting draws for fit.") RuntimeError: Still collecting draws for fit.
RuntimeError
def calculate_starts(dims: Tuple[Tuple[int, ...]]) -> Tuple[int, ...]: """Calculate starting indexes given dims.""" s = [cast(int, np.prod(d)) for d in dims] starts = np.cumsum([0] + s)[: len(dims)] return tuple(int(i) for i in starts)
def calculate_starts(dims: Tuple[Tuple[int, ...]]) -> Tuple[int, ...]: """Calculate starting indexes given dims.""" s = [np.prod(d) for d in dims] starts = np.cumsum([0] + s)[: len(dims)] return tuple(int(i) for i in starts)
https://github.com/stan-dev/pystan/issues/201
Traceback (most recent call last): File "scripts/pickle_error.py", line 45, in <module> print(fit2["mu"]) File "<redacted>/lib/python3.7/site-packages/stan/fit.py", line 131, in __getitem__ raise RuntimeError("Still collecting draws for fit.") RuntimeError: Still collecting draws for fit.
RuntimeError
def __init__( self, stan_outputs: Tuple[bytes, ...], num_chains: int, param_names: Tuple[str, ...], constrained_param_names: Tuple[str, ...], dims: Tuple[Tuple[int, ...]], num_warmup: int, num_samples: int, num_thin: int, save_warmup: bool, ) -> None: self.stan_outputs = stan...
def __init__( self, stan_outputs: Tuple[bytes, ...], num_chains: int, param_names: Tuple[str, ...], constrained_param_names: Tuple[str, ...], dims: Tuple[Tuple[int, ...]], num_warmup: int, num_samples: int, num_thin: int, save_warmup: bool, ) -> None: self.stan_outputs = stan...
https://github.com/stan-dev/pystan/issues/201
Traceback (most recent call last): File "scripts/pickle_error.py", line 45, in <module> print(fit2["mu"]) File "<redacted>/lib/python3.7/site-packages/stan/fit.py", line 131, in __getitem__ raise RuntimeError("Still collecting draws for fit.") RuntimeError: Still collecting draws for fit.
RuntimeError
def __contains__(self, key): return key in self.param_names
def __contains__(self, key): if not self._finished: raise RuntimeError("Still collecting draws for fit.") return key in self.param_names
https://github.com/stan-dev/pystan/issues/201
Traceback (most recent call last): File "scripts/pickle_error.py", line 45, in <module> print(fit2["mu"]) File "<redacted>/lib/python3.7/site-packages/stan/fit.py", line 131, in __getitem__ raise RuntimeError("Still collecting draws for fit.") RuntimeError: Still collecting draws for fit.
RuntimeError
def __getitem__(self, param): """Returns array with shape (stan_dimensions, num_chains * num_samples)""" assert param.endswith("__") or param in self.param_names, param param_indexes = self._parameter_indexes(param) param_dim = ( [] if param in self.sample_and_sampler_param_names ...
def __getitem__(self, param): """Returns array with shape (stan_dimensions, num_chains * num_samples)""" if not self._finished: raise RuntimeError("Still collecting draws for fit.") assert param.endswith("__") or param in self.param_names, param param_indexes = self._parameter_indexes(param) ...
https://github.com/stan-dev/pystan/issues/201
Traceback (most recent call last): File "scripts/pickle_error.py", line 45, in <module> print(fit2["mu"]) File "<redacted>/lib/python3.7/site-packages/stan/fit.py", line 131, in __getitem__ raise RuntimeError("Still collecting draws for fit.") RuntimeError: Still collecting draws for fit.
RuntimeError
def __repr__(self) -> str: # inspired by xarray parts = [f"<stan.{type(self).__name__}>"] def summarize_param(param_name, dims): return f" {param_name}: {tuple(dims)}" if self.param_names: parts.append("Parameters:") for param_name, dims in zip(self.param_names, self.dims): ...
def __repr__(self) -> str: # inspired by xarray parts = [f"<stan.{type(self).__name__}>"] def summarize_param(param_name, dims): return f" {param_name}: {tuple(dims)}" if self.param_names: parts.append("Parameters:") for param_name, dims in zip(self.param_names, self.dims): ...
https://github.com/stan-dev/pystan/issues/201
Traceback (most recent call last): File "scripts/pickle_error.py", line 45, in <module> print(fit2["mu"]) File "<redacted>/lib/python3.7/site-packages/stan/fit.py", line 131, in __getitem__ raise RuntimeError("Still collecting draws for fit.") RuntimeError: Still collecting draws for fit.
RuntimeError
def plot_rug(self, height, expand_margins, legend, **kws): for ( sub_vars, sub_data, ) in self.iter_data(from_comp_data=True): ax = self._get_axes(sub_vars) kws.setdefault("linewidth", 1) if expand_margins: xmarg, ymarg = ax.margins() if "x" in s...
def plot_rug(self, height, expand_margins, legend, **kws): for ( sub_vars, sub_data, ) in self.iter_data(): ax = self._get_axes(sub_vars) kws.setdefault("linewidth", 1) if expand_margins: xmarg, ymarg = ax.margins() if "x" in self.variables: ...
https://github.com/mwaskom/seaborn/issues/2451
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-12-0cb72350e3e6> in <module> 1 #sns.rugplot() ----> 2 sns.rugplot(x=np.arange("2015-01-01", "2020-01-01", dtype="datetime64[m]")) ~/code/seaborn/seaborn...
TypeError
def __init__( self, data, *, hue=None, hue_order=None, palette=None, hue_kws=None, vars=None, x_vars=None, y_vars=None, corner=False, diag_sharey=True, height=2.5, aspect=1, layout_pad=0.5, despine=True, dropna=False, size=None, ): """Initializ...
def __init__( self, data, *, hue=None, hue_order=None, palette=None, hue_kws=None, vars=None, x_vars=None, y_vars=None, corner=False, diag_sharey=True, height=2.5, aspect=1, layout_pad=0.5, despine=True, dropna=False, size=None, ): """Initializ...
https://github.com/mwaskom/seaborn/issues/2354
Traceback (most recent call last): File "<ipython-input-87-23324450a106>", line 1, in <module> sns.pairplot(p, diag_kind=None, corner=True) File "c:\program files\python38\lib\site-packages\seaborn\_decorators.py", line 46, in inner_f return f(**kwargs) File "c:\program files\python38\lib\site-packages\seaborn\axisg...
AttributeError
def map_diag(self, func, **kwargs): """Plot with a univariate function on each diagonal subplot. Parameters ---------- func : callable plotting function Must take an x array as a positional argument and draw onto the "currently active" matplotlib Axes. Also needs to accept kwargs ...
def map_diag(self, func, **kwargs): """Plot with a univariate function on each diagonal subplot. Parameters ---------- func : callable plotting function Must take an x array as a positional argument and draw onto the "currently active" matplotlib Axes. Also needs to accept kwargs ...
https://github.com/mwaskom/seaborn/issues/2354
Traceback (most recent call last): File "<ipython-input-87-23324450a106>", line 1, in <module> sns.pairplot(p, diag_kind=None, corner=True) File "c:\program files\python38\lib\site-packages\seaborn\_decorators.py", line 46, in inner_f return f(**kwargs) File "c:\program files\python38\lib\site-packages\seaborn\axisg...
AttributeError
def _map_bivariate(self, func, indices, **kwargs): """Draw a bivariate plot on the indicated axes.""" # This is a hack to handle the fact that new distribution plots don't add # their artists onto the axes. This is probably superior in general, but # we'll need a better way to handle it in the axisgrid ...
def _map_bivariate(self, func, indices, **kwargs): """Draw a bivariate plot on the indicated axes.""" # This is a hack to handle the fact that new distribution plots don't add # their artists onto the axes. This is probably superior in general, but # we'll need a better way to handle it in the axisgrid ...
https://github.com/mwaskom/seaborn/issues/2354
Traceback (most recent call last): File "<ipython-input-87-23324450a106>", line 1, in <module> sns.pairplot(p, diag_kind=None, corner=True) File "c:\program files\python38\lib\site-packages\seaborn\_decorators.py", line 46, in inner_f return f(**kwargs) File "c:\program files\python38\lib\site-packages\seaborn\axisg...
AttributeError
def pairplot( data, *, hue=None, hue_order=None, palette=None, vars=None, x_vars=None, y_vars=None, kind="scatter", diag_kind="auto", markers=None, height=2.5, aspect=1, corner=False, dropna=False, plot_kws=None, diag_kws=None, grid_kws=None, s...
def pairplot( data, *, hue=None, hue_order=None, palette=None, vars=None, x_vars=None, y_vars=None, kind="scatter", diag_kind="auto", markers=None, height=2.5, aspect=1, corner=False, dropna=False, plot_kws=None, diag_kws=None, grid_kws=None, s...
https://github.com/mwaskom/seaborn/issues/2354
Traceback (most recent call last): File "<ipython-input-87-23324450a106>", line 1, in <module> sns.pairplot(p, diag_kind=None, corner=True) File "c:\program files\python38\lib\site-packages\seaborn\_decorators.py", line 46, in inner_f return f(**kwargs) File "c:\program files\python38\lib\site-packages\seaborn\axisg...
AttributeError
def jointplot( *, x=None, y=None, data=None, kind="scatter", color=None, height=6, ratio=5, space=0.2, dropna=False, xlim=None, ylim=None, marginal_ticks=False, joint_kws=None, marginal_kws=None, hue=None, palette=None, hue_order=None, hue_norm...
def jointplot( *, x=None, y=None, data=None, kind="scatter", color=None, height=6, ratio=5, space=0.2, dropna=False, xlim=None, ylim=None, marginal_ticks=False, joint_kws=None, marginal_kws=None, hue=None, palette=None, hue_order=None, hue_norm...
https://github.com/mwaskom/seaborn/issues/2354
Traceback (most recent call last): File "<ipython-input-87-23324450a106>", line 1, in <module> sns.pairplot(p, diag_kind=None, corner=True) File "c:\program files\python38\lib\site-packages\seaborn\_decorators.py", line 46, in inner_f return f(**kwargs) File "c:\program files\python38\lib\site-packages\seaborn\axisg...
AttributeError
def _compute_univariate_density( self, data_variable, common_norm, common_grid, estimate_kws, log_scale, ): # Initialize the estimator object estimator = KDE(**estimate_kws) all_data = self.plot_data.dropna() if set(self.variables) - {"x", "y"}: if common_grid: ...
def _compute_univariate_density( self, data_variable, common_norm, common_grid, estimate_kws, log_scale, ): # Initialize the estimator object estimator = KDE(**estimate_kws) all_data = self.plot_data.dropna() if set(self.variables) - {"x", "y"}: if common_grid: ...
https://github.com/mwaskom/seaborn/issues/2354
Traceback (most recent call last): File "<ipython-input-87-23324450a106>", line 1, in <module> sns.pairplot(p, diag_kind=None, corner=True) File "c:\program files\python38\lib\site-packages\seaborn\_decorators.py", line 46, in inner_f return f(**kwargs) File "c:\program files\python38\lib\site-packages\seaborn\axisg...
AttributeError
def plot_bivariate_density( self, common_norm, fill, levels, thresh, color, legend, cbar, cbar_ax, cbar_kws, estimate_kws, **contour_kws, ): contour_kws = contour_kws.copy() estimator = KDE(**estimate_kws) if not set(self.variables) - {"x", "y"}: com...
def plot_bivariate_density( self, common_norm, fill, levels, thresh, color, legend, cbar, cbar_ax, cbar_kws, estimate_kws, **contour_kws, ): contour_kws = contour_kws.copy() estimator = KDE(**estimate_kws) if not set(self.variables) - {"x", "y"}: com...
https://github.com/mwaskom/seaborn/issues/2354
Traceback (most recent call last): File "<ipython-input-87-23324450a106>", line 1, in <module> sns.pairplot(p, diag_kind=None, corner=True) File "c:\program files\python38\lib\site-packages\seaborn\_decorators.py", line 46, in inner_f return f(**kwargs) File "c:\program files\python38\lib\site-packages\seaborn\axisg...
AttributeError
def color_palette(palette=None, n_colors=None, desat=None, as_cmap=False): """Return a list of colors or continuous colormap defining a palette. Possible ``palette`` values include: - Name of a seaborn palette (deep, muted, bright, pastel, dark, colorblind) - Name of matplotlib colormap ...
def color_palette(palette=None, n_colors=None, desat=None, as_cmap=False): """Return a list of colors or continuous colormap defining a palette. Possible ``palette`` values include: - Name of a seaborn palette (deep, muted, bright, pastel, dark, colorblind) - Name of matplotlib colormap ...
https://github.com/mwaskom/seaborn/issues/2354
Traceback (most recent call last): File "<ipython-input-87-23324450a106>", line 1, in <module> sns.pairplot(p, diag_kind=None, corner=True) File "c:\program files\python38\lib\site-packages\seaborn\_decorators.py", line 46, in inner_f return f(**kwargs) File "c:\program files\python38\lib\site-packages\seaborn\axisg...
AttributeError
def set(self, **kwargs): """Set attributes on each subplot Axes.""" for ax in self.axes.flat: if ax is not None: # Handle removed axes ax.set(**kwargs) return self
def set(self, **kwargs): """Set attributes on each subplot Axes.""" for ax in self.axes.flat: ax.set(**kwargs) return self
https://github.com/mwaskom/seaborn/issues/2228
--------------------------------------------------------------------------- AttributeError Traceback (most recent call last) <ipython-input-23-b993ffaa9ada> in <module> 4 line_kws=dict(color='r'), 5 scatter_kws=dict(alpha=0.1, marker='.')) ----> 6 g.set(xli...
AttributeError
def _deprecate_positional_args(f): """Decorator for methods that issues warnings for positional arguments. Using the keyword-only argument syntax in pep 3102, arguments after the * will issue a warning when passed as a positional argument. Parameters ---------- f : function function to...
def _deprecate_positional_args(f): """Decorator for methods that issues warnings for positional arguments. Using the keyword-only argument syntax in pep 3102, arguments after the * will issue a warning when passed as a positional argument. Parameters ---------- f : function function to...
https://github.com/mwaskom/seaborn/issues/2101
--------------------------------------------------------------------------- AttributeError Traceback (most recent call last) AttributeError: 'float' object has no attribute 'rint' The above exception was the direct cause of the following exception: TypeError ...
AttributeError
def inner_f(*args, **kwargs): extra_args = len(args) - len(all_args) if extra_args > 0: plural = "s" if extra_args > 1 else "" article = "" if plural else "a " warnings.warn( "Pass the following variable{} as {}keyword arg{}: {}. " "From version 0.12, the only val...
def inner_f(*args, **kwargs): extra_args = len(args) - len(all_args) if extra_args > 0: plural = "s" if extra_args > 1 else "" article = "" if plural else "a " warnings.warn( "Pass the following variable{} as {}keyword arg{}: {}. " "From version 0.12, the only val...
https://github.com/mwaskom/seaborn/issues/2101
--------------------------------------------------------------------------- AttributeError Traceback (most recent call last) AttributeError: 'float' object has no attribute 'rint' The above exception was the direct cause of the following exception: TypeError ...
AttributeError
def add_legend_data(self, ax): """Add labeled artists to represent the different plot semantics.""" verbosity = self.legend if verbosity not in ["brief", "full"]: err = "`legend` must be 'brief', 'full', or False" raise ValueError(err) legend_kwargs = {} keys = [] title_kws = d...
def add_legend_data(self, ax): """Add labeled artists to represent the different plot semantics.""" verbosity = self.legend if verbosity not in ["brief", "full"]: err = "`legend` must be 'brief', 'full', or False" raise ValueError(err) legend_kwargs = {} keys = [] title_kws = d...
https://github.com/mwaskom/seaborn/issues/2101
--------------------------------------------------------------------------- AttributeError Traceback (most recent call last) AttributeError: 'float' object has no attribute 'rint' The above exception was the direct cause of the following exception: TypeError ...
AttributeError
def _determine_cmap_params(self, plot_data, vmin, vmax, cmap, center, robust): """Use some heuristics to set good defaults for colorbar and range.""" # plot_data is a np.ma.array instance calc_data = plot_data.astype(np.float).filled(np.nan) if vmin is None: if robust: vmin = np.nan...
def _determine_cmap_params(self, plot_data, vmin, vmax, cmap, center, robust): """Use some heuristics to set good defaults for colorbar and range.""" # plot_data is a np.ma.array instance calc_data = plot_data.filled(np.nan) if vmin is None: if robust: vmin = np.nanpercentile(calc_d...
https://github.com/mwaskom/seaborn/issues/2102
--------------------------------------------------------------------------- ValueError Traceback (most recent call last) ~.../venv_mac/lib/python3.8/site-packages/numpy/ma/core.py in _check_fill_value(fill_value, ndtype) 472 try: --> 473 fill_value = np.array...
ValueError
def establish_variables(self, data, **kws): """Extract variables from data or use directly.""" self.data = data # Validate the inputs any_strings = any([isinstance(v, string_types) for v in kws.values()]) if any_strings and data is None: raise ValueError("Must pass `data` if using named var...
def establish_variables(self, data, **kws): """Extract variables from data or use directly.""" self.data = data # Validate the inputs any_strings = any([isinstance(v, string_types) for v in kws.values()]) if any_strings and data is None: raise ValueError("Must pass `data` if using named var...
https://github.com/mwaskom/seaborn/issues/28
<matplotlib.figure.Figure object at 0xbdb0b6c> Traceback (most recent call last): File "<ipython-input-4-48c88ed4333f>", line 1, in <module> sns.regplot(x, y) File ".../seaborn/plotobjs.py", line 742, in regplot boots = moss.bootstrap(x, y, func=_bootstrap_reg) File ".../lib/python2.7/site-packages/moss/statistical....
TypeError
def regplot( x, y, data=None, corr_func=stats.pearsonr, func_name=None, xlabel="", ylabel="", ci=95, size=None, annotloc=None, color=None, reg_kws=None, scatter_kws=None, dist_kws=None, text_kws=None, ): """Scatterplot with regreesion line, marginals, and ...
def regplot( x, y, data=None, corr_func=stats.pearsonr, func_name=None, xlabel="", ylabel="", ci=95, size=None, annotloc=None, color=None, reg_kws=None, scatter_kws=None, dist_kws=None, text_kws=None, ): """Scatterplot with regreesion line, marginals, and ...
https://github.com/mwaskom/seaborn/issues/28
<matplotlib.figure.Figure object at 0xbdb0b6c> Traceback (most recent call last): File "<ipython-input-4-48c88ed4333f>", line 1, in <module> sns.regplot(x, y) File ".../seaborn/plotobjs.py", line 742, in regplot boots = moss.bootstrap(x, y, func=_bootstrap_reg) File ".../lib/python2.7/site-packages/moss/statistical....
TypeError
def violinplot( vals, groupby=None, inner="box", color=None, positions=None, names=None, order=None, bw="scott", widths=0.8, alpha=None, saturation=0.7, join_rm=False, gridsize=100, cut=3, inner_kws=None, ax=None, vert=True, **kwargs, ): """Cre...
def violinplot( vals, groupby=None, inner="box", color=None, positions=None, names=None, order=None, bw="scott", widths=0.8, alpha=None, saturation=0.7, join_rm=False, gridsize=100, cut=3, inner_kws=None, ax=None, vert=True, **kwargs, ): """Cre...
https://github.com/mwaskom/seaborn/issues/368
In [101]: data = [np.random.randn(100), [.83,.83,.83]] In [102]: sns.violinplot(data) --------------------------------------------------------------------------- LinAlgError Traceback (most recent call last) <ipython-input-102-d0b7a65512ee> in <module>() ----> 1 sns.violinplot(data) /usr...
LinAlgError
def url_for(self, view_name, **kwargs): """ Same as :func:`sanic.Sanic.url_for`, but automatically determine `scheme` and `netloc` base on the request. Since this method is aiming to generate correct schema & netloc, `_external` is implied. :param kwargs: takes same parameters as in :func:`sanic.Sa...
def url_for(self, view_name, **kwargs): """ Same as :func:`sanic.Sanic.url_for`, but automatically determine `scheme` and `netloc` base on the request. Since this method is aiming to generate correct schema & netloc, `_external` is implied. :param kwargs: takes same parameters as in :func:`sanic.Sa...
https://github.com/sanic-org/sanic/issues/1707
Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/sanic/app.py", line 942, in handle_request response = await response File "/app/tsauth/views/activate.py", line 41, in init_activate request=request) File "/usr/local/lib/python3.7/site-packages/mako/template.py", line 476, in render return...
AttributeError
def __init__( self, name=None, router=None, error_handler=None, load_env=True, request_class=None, strict_slashes=False, log_config=None, configure_logging=True, ): # Get name from previous stack frame if name is None: warnings.warn( "Sanic(name=None) is d...
def __init__( self, name=None, router=None, error_handler=None, load_env=True, request_class=None, strict_slashes=False, log_config=None, configure_logging=True, ): # Get name from previous stack frame if name is None: frame_records = stack()[1] name = getmodu...
https://github.com/sanic-org/sanic/issues/1601
[2019-06-05 03:32:59 +0000] [10] [ERROR] Exception occurred while handling uri: 'http://localhost:5000/' Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/sanic/app.py", line 906, in handle_request handler.__name__ File "/usr/local/lib/python3.7/site-packages/sanic/app.py", line 1355, in _...
TypeError
def get_headers(self, version="1.1", keep_alive=False, keep_alive_timeout=None): # This is all returned in a kind-of funky way # We tried to make this as fast as possible in pure python timeout_header = b"" if keep_alive and keep_alive_timeout is not None: timeout_header = b"Keep-Alive: %d\r\n" ...
def get_headers(self, version="1.1", keep_alive=False, keep_alive_timeout=None): # This is all returned in a kind-of funky way # We tried to make this as fast as possible in pure python timeout_header = b"" if keep_alive and keep_alive_timeout is not None: timeout_header = b"Keep-Alive: %d\r\n" ...
https://github.com/sanic-org/sanic/issues/1323
Traceback (most recent call last): File "/env/lib/python3.6/site-packages/sanic/__main__.py", line 4, in <module> from sanic.log import logger File "/env/lib/python3.6/site-packages/sanic/__init__.py", line 1, in <module> from sanic.app import Sanic File "/env/lib/python3.6/site-packages/sanic/app.py", line 21, in <mod...
ModuleNotFoundError
def output(self, version="1.1", keep_alive=False, keep_alive_timeout=None): # This is all returned in a kind-of funky way # We tried to make this as fast as possible in pure python timeout_header = b"" if keep_alive and keep_alive_timeout is not None: timeout_header = b"Keep-Alive: %d\r\n" % kee...
def output(self, version="1.1", keep_alive=False, keep_alive_timeout=None): # This is all returned in a kind-of funky way # We tried to make this as fast as possible in pure python timeout_header = b"" if keep_alive and keep_alive_timeout is not None: timeout_header = b"Keep-Alive: %d\r\n" % kee...
https://github.com/sanic-org/sanic/issues/1323
Traceback (most recent call last): File "/env/lib/python3.6/site-packages/sanic/__main__.py", line 4, in <module> from sanic.log import logger File "/env/lib/python3.6/site-packages/sanic/__init__.py", line 1, in <module> from sanic.app import Sanic File "/env/lib/python3.6/site-packages/sanic/app.py", line 21, in <mod...
ModuleNotFoundError
async def handle_request(self, request, write_callback, stream_callback): """Take a request from the HTTP Server and return a response object to be sent back The HTTP Server only expects a response object, so exception handling must be done here :param request: HTTP Request object :param write_call...
async def handle_request(self, request, write_callback, stream_callback): """Take a request from the HTTP Server and return a response object to be sent back The HTTP Server only expects a response object, so exception handling must be done here :param request: HTTP Request object :param write_call...
https://github.com/sanic-org/sanic/issues/1042
Error while handling error: File not found Stack: Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/sanic/static.py", line 76, in _handler stats = await stat(file_path) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/asyncio/coro...
FileNotFoundError
def response(self, request, exception): """Fetches and executes an exception handler and returns a response object :param request: Request :param exception: Exception to handle :return: Response object """ handler = self.handlers.get(type(exception), self.default) try: response ...
def response(self, request, exception): """Fetches and executes an exception handler and returns a response object :param request: Request :param exception: Exception to handle :return: Response object """ handler = self.handlers.get(type(exception), self.default) try: response ...
https://github.com/sanic-org/sanic/issues/483
2017-02-24 07:53:18,845 ERROR Process-22219 MainThread sanic.handlers.log:73 Traceback (most recent call last): File "/home/kpath/kpath/venv/lib/python3.6/site-packages/sanic/handlers.py", line 54, in response response = handler(request=request, exception=exception) File "app.py", line 486, in default sentry.capture...
AttributeError
def send(self, body, title="", notify_type=NotifyType.INFO, **kwargs): """ Perform XMPP Notification """ if not self._enabled: self.logger.warning( "XMPP Notifications are not supported by this system " "- install sleekxmpp or slixmpp." ) return False ...
def send(self, body, title="", notify_type=NotifyType.INFO, **kwargs): """ Perform XMPP Notification """ if not self._enabled: self.logger.warning( "XMPP Notifications are not supported by this system - install sleekxmpp." ) return False # Detect our JID if it i...
https://github.com/caronc/apprise/issues/227
2020-04-06 10:04:39,084 - DEBUG - Loaded URL: xmpp://user:password@xmpp.nayr.us/user%40nayr.us?verify=yes&amp;overflow=upstream&amp;xep=30%2C199&amp;format=text 2020-04-06 10:04:39,087 - DEBUG - Loaded Plugin: RFC 6120: Stream Feature: STARTTLS 2020-04-06 10:04:39,087 - DEBUG - Loaded Plugin: RFC 6120: Stream Feature: ...
ValueError
def detect_language(lang=None, detect_fallback=True): """ returns the language (if it's retrievable) """ # We want to only use the 2 character version of this language # hence en_CA becomes en, en_US becomes en. if not isinstance(lang, six.string_types): if detect_fallback is False: ...
def detect_language(lang=None, detect_fallback=True): """ returns the language (if it's retrievable) """ # We want to only use the 2 character version of this language # hence en_CA becomes en, en_US becomes en. if not isinstance(lang, six.string_types): if detect_fallback is False: ...
https://github.com/caronc/apprise/issues/126
(main:220) - Bazarr is being restarted... Bazarr starting... Traceback (most recent call last): File "bazarr/main.py", line 75, in <module> update_notifier() File "/Users/USER/bazarr/bazarr/bazarr/notifier.py", line 13, in update_notifier a = apprise.Apprise() File "/Users/USER/bazarr/bazarr/bazarr/../libs/apprise/Appr...
ValueError
def notify(self, title, body, **kwargs): """ Perform Email Notification """ from_name = self.from_name if not from_name: from_name = self.app_desc self.logger.debug("Email From: %s <%s>" % (self.from_addr, from_name)) self.logger.debug("Email To: %s" % (self.to_addr)) self.logg...
def notify(self, title, body, **kwargs): """ Perform Email Notification """ from_name = self.from_name if not from_name: from_name = self.app_desc self.logger.debug("Email From: %s <%s>" % (self.from_addr, from_name)) self.logger.debug("Email To: %s" % (self.to_addr)) self.logg...
https://github.com/caronc/apprise/issues/15
ERROR:root:notification exception Traceback (most recent call last): File "/home/xxxx/.local/lib/python3.5/site-packages/apprise/Apprise.py", line 259, in notify notify_type=notify_type): File "/home/xxxx/.local/lib/python3.5/site-packages/apprise/plugins/NotifyEmail.py", line 292, in notify socket.quit() UnboundLocalE...
UnboundLocalError
def do_EI(self, obj): """End inline image object""" if isinstance(obj, PDFStream) and "W" in obj and "H" in obj: iobjid = str(id(obj)) self.device.begin_figure(iobjid, (0, 0, 1, 1), MATRIX_IDENTITY) self.device.render_image(iobjid, obj) self.device.end_figure(iobjid) return
def do_EI(self, obj): """End inline image object""" if "W" in obj and "H" in obj: iobjid = str(id(obj)) self.device.begin_figure(iobjid, (0, 0, 1, 1), MATRIX_IDENTITY) self.device.render_image(iobjid, obj) self.device.end_figure(iobjid) return
https://github.com/pdfminer/pdfminer.six/issues/441
Traceback (most recent call last): File "pdf2txt.py", line 188, in <module> sys.exit(main()) File "pdf2txt.py", line 182, in main outfp = extract_text(**vars(A)) File "pdf2txt.py", line 56, in extract_text pdfminer.high_level.extract_text_to_fp(fp, **locals()) File "***/lib/python3.6/site-packages/pdfminer/high_level.p...
TypeError