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 e1(self): left = self.e2() if self.accept("plusassign"): value = self.e1() if not isinstance(left, IdNode): raise ParseException( "Plusassignment target must be an id.", self.getline(), left.lineno, left.colno, ...
def e1(self): left = self.e2() if self.accept("plusassign"): value = self.e1() if not isinstance(left, IdNode): raise ParseException( "Plusassignment target must be an id.", self.getline(), left.lineno, left.colno, ...
https://github.com/mesonbuild/meson/issues/2404
Traceback (most recent call last): File "/home/adrian/.local/lib/python3.5/site-packages/mesonbuild/mesonmain.py", line 353, in run app.generate() File "/home/adrian/.local/lib/python3.5/site-packages/mesonbuild/mesonmain.py", line 148, in generate self._generate(env) File "/home/adrian/.local/lib/python3.5/site-packag...
AttributeError
def _func_custom_target_impl(self, node, args, kwargs): "Implementation-only, without FeatureNew checks, for internal use" name = args[0] kwargs["install_mode"] = self._get_kwarg_install_mode(kwargs) if "input" in kwargs: try: kwargs["input"] = self.source_strings_to_files( ...
def _func_custom_target_impl(self, node, args, kwargs): "Implementation-only, without FeatureNew checks, for internal use" name = args[0] kwargs["install_mode"] = self._get_kwarg_install_mode(kwargs) tg = CustomTargetHolder( build.CustomTarget(name, self.subdir, self.subproject, kwargs), self ...
https://github.com/mesonbuild/meson/issues/2783
$ meson -v 0.44.0 $ meson introspect --target-files egd_tables.h@cus Traceback (most recent call last): File "/usr/bin/meson", line 37, in <module> sys.exit(main()) File "/usr/bin/meson", line 34, in main return mesonmain.run(sys.argv[1:], launcher) File "/usr/lib/python3.6/site-packages/mesonbuild/mesonmain.py", line...
AttributeError
def source_strings_to_files(self, sources): results = [] mesonlib.check_direntry_issues(sources) if not isinstance(sources, list): sources = [sources] for s in sources: if isinstance( s, (mesonlib.File, GeneratedListHolder, TargetHolder, CustomTargetIndexHolder), ...
def source_strings_to_files(self, sources): results = [] mesonlib.check_direntry_issues(sources) if not isinstance(sources, list): sources = [sources] for s in sources: if isinstance( s, ( mesonlib.File, GeneratedListHolder, ...
https://github.com/mesonbuild/meson/issues/2783
$ meson -v 0.44.0 $ meson introspect --target-files egd_tables.h@cus Traceback (most recent call last): File "/usr/bin/meson", line 37, in <module> sys.exit(main()) File "/usr/bin/meson", line 34, in main return mesonmain.run(sys.argv[1:], launcher) File "/usr/lib/python3.6/site-packages/mesonbuild/mesonmain.py", line...
AttributeError
def __init__(self, build): self.build = build self.environment = build.environment self.processed_targets = {} self.build_to_src = mesonlib.relpath( self.environment.get_source_dir(), self.environment.get_build_dir() )
def __init__(self, build): self.build = build self.environment = build.environment self.processed_targets = {} self.build_to_src = os.path.relpath( self.environment.get_source_dir(), self.environment.get_build_dir() )
https://github.com/mesonbuild/meson/issues/3239
Stdout: Traceback (most recent call last): File "D:\dev\meson\mesonbuild\mesonmain.py", line 368, in run app.generate() File "D:\dev\meson\mesonbuild\mesonmain.py", line 150, in generate self._generate(env) File "D:\dev\meson\mesonbuild\mesonmain.py", line 168, in _generate g = ninjabackend.NinjaBackend(b) File "D:\dev...
ValueError
def method_call(self, method_name, args, kwargs): try: fn = getattr(self.held_object, method_name) except AttributeError: raise InvalidArguments( "Module %s does not have method %s." % (self.modname, method_name) ) if method_name.startswith("_"): raise InvalidArgu...
def method_call(self, method_name, args, kwargs): try: fn = getattr(self.held_object, method_name) except AttributeError: raise InvalidArguments( "Module %s does not have method %s." % (self.modname, method_name) ) if method_name.startswith("_"): raise InvalidArgu...
https://github.com/mesonbuild/meson/issues/3239
Stdout: Traceback (most recent call last): File "D:\dev\meson\mesonbuild\mesonmain.py", line 368, in run app.generate() File "D:\dev\meson\mesonbuild\mesonmain.py", line 150, in generate self._generate(env) File "D:\dev\meson\mesonbuild\mesonmain.py", line 168, in _generate g = ninjabackend.NinjaBackend(b) File "D:\dev...
ValueError
def run_command_impl(self, node, args, kwargs, in_builddir=False): if len(args) < 1: raise InterpreterException("Not enough arguments") cmd = args[0] cargs = args[1:] capture = kwargs.get("capture", True) srcdir = self.environment.get_source_dir() builddir = self.environment.get_build_di...
def run_command_impl(self, node, args, kwargs, in_builddir=False): if len(args) < 1: raise InterpreterException("Not enough arguments") cmd = args[0] cargs = args[1:] capture = kwargs.get("capture", True) srcdir = self.environment.get_source_dir() builddir = self.environment.get_build_di...
https://github.com/mesonbuild/meson/issues/3239
Stdout: Traceback (most recent call last): File "D:\dev\meson\mesonbuild\mesonmain.py", line 368, in run app.generate() File "D:\dev\meson\mesonbuild\mesonmain.py", line 150, in generate self._generate(env) File "D:\dev\meson\mesonbuild\mesonmain.py", line 168, in _generate g = ninjabackend.NinjaBackend(b) File "D:\dev...
ValueError
def __init__( self, fname, outdir, aliases, strip, install_name_mappings, install_rpath, install_mode, optional=False, ): self.fname = fname self.outdir = outdir self.aliases = aliases self.strip = strip self.install_name_mappings = install_name_mappings self....
def __init__( self, fname, outdir, aliases, strip, install_name_mappings, install_rpath, install_mode, ): self.fname = fname self.outdir = outdir self.aliases = aliases self.strip = strip self.install_name_mappings = install_name_mappings self.install_rpath = inst...
https://github.com/mesonbuild/meson/issues/3965
Traceback (most recent call last): File "d:\\projects\\cerbero\\meson\\master\\build\\build-tools\\Scripts\\meson.py", line 4, in <module> __import__('pkg_resources').run_script('meson==0.47.0', 'meson.py') File "c:\Python36-32\lib\site-packages\pkg_resources\__init__.py", line 658, in run_script self.require(requires)...
FileNotFoundError
def generate_target_install(self, d): for t in self.build.get_targets().values(): if not t.should_install(): continue outdirs, custom_install_dir = self.get_target_install_dirs(t) # Sanity-check the outputs and install_dirs num_outdirs, num_out = len(outdirs), len(t.get_o...
def generate_target_install(self, d): for t in self.build.get_targets().values(): if not t.should_install(): continue outdirs, custom_install_dir = self.get_target_install_dirs(t) # Sanity-check the outputs and install_dirs num_outdirs, num_out = len(outdirs), len(t.get_o...
https://github.com/mesonbuild/meson/issues/3965
Traceback (most recent call last): File "d:\\projects\\cerbero\\meson\\master\\build\\build-tools\\Scripts\\meson.py", line 4, in <module> __import__('pkg_resources').run_script('meson==0.47.0', 'meson.py') File "c:\Python36-32\lib\site-packages\pkg_resources\__init__.py", line 658, in run_script self.require(requires)...
FileNotFoundError
def install_targets(self, d): for t in d.targets: if not os.path.exists(t.fname): # For example, import libraries of shared modules are optional if t.optional: print("File {!r} not found, skipping".format(t.fname)) continue else: ...
def install_targets(self, d): for t in d.targets: fname = check_for_stampfile(t.fname) outdir = get_destdir_path(d, t.outdir) outname = os.path.join(outdir, os.path.basename(fname)) final_path = os.path.join(d.prefix, t.outdir, os.path.basename(fname)) aliases = t.aliases ...
https://github.com/mesonbuild/meson/issues/3965
Traceback (most recent call last): File "d:\\projects\\cerbero\\meson\\master\\build\\build-tools\\Scripts\\meson.py", line 4, in <module> __import__('pkg_resources').run_script('meson==0.47.0', 'meson.py') File "c:\Python36-32\lib\site-packages\pkg_resources\__init__.py", line 658, in run_script self.require(requires)...
FileNotFoundError
def decode_match(match): try: return codecs.decode(match.group(0), "unicode_escape") except UnicodeDecodeError as err: raise MesonUnicodeDecodeError(match.group(0))
def decode_match(match): return codecs.decode(match.group(0), "unicode_escape")
https://github.com/mesonbuild/meson/issues/3169
tansell@tansell:~/github/mesonbuild/meson/test cases/common/100 print null$ meson build . The Meson build system Version: 0.45.0.dev1 Source dir: XXXX/github/mesonbuild/meson/test cases/common/100 print null Build dir: XXXX/github/mesonbuild/meson/test cases/common/100 print null/build Build type: native build Project ...
ValueError
def lex(self, subdir): line_start = 0 lineno = 1 loc = 0 par_count = 0 bracket_count = 0 col = 0 while loc < len(self.code): matched = False value = None for tid, reg in self.token_specification: mo = reg.match(self.code, loc) if mo: ...
def lex(self, subdir): line_start = 0 lineno = 1 loc = 0 par_count = 0 bracket_count = 0 col = 0 while loc < len(self.code): matched = False value = None for tid, reg in self.token_specification: mo = reg.match(self.code, loc) if mo: ...
https://github.com/mesonbuild/meson/issues/3169
tansell@tansell:~/github/mesonbuild/meson/test cases/common/100 print null$ meson build . The Meson build system Version: 0.45.0.dev1 Source dir: XXXX/github/mesonbuild/meson/test cases/common/100 print null Build dir: XXXX/github/mesonbuild/meson/test cases/common/100 print null/build Build type: native build Project ...
ValueError
def lex(self, subdir): line_start = 0 lineno = 1 loc = 0 par_count = 0 bracket_count = 0 col = 0 while loc < len(self.code): matched = False value = None for tid, reg in self.token_specification: mo = reg.match(self.code, loc) if mo: ...
def lex(self, subdir): line_start = 0 lineno = 1 loc = 0 par_count = 0 bracket_count = 0 col = 0 newline_rx = re.compile(r"(?<!\\)((?:\\\\)*)\\n") while loc < len(self.code): matched = False value = None for tid, reg in self.token_specification: mo = r...
https://github.com/mesonbuild/meson/issues/3169
tansell@tansell:~/github/mesonbuild/meson/test cases/common/100 print null$ meson build . The Meson build system Version: 0.45.0.dev1 Source dir: XXXX/github/mesonbuild/meson/test cases/common/100 print null Build dir: XXXX/github/mesonbuild/meson/test cases/common/100 print null/build Build type: native build Project ...
ValueError
def generate_msvc_pch_command(self, target, compiler, pch): if len(pch) != 2: raise MesonException( "MSVC requires one header and one source to produce precompiled headers." ) header = pch[0] source = pch[1] pchname = compiler.get_pch_name(header) dst = os.path.join(self....
def generate_msvc_pch_command(self, target, compiler, pch): if len(pch) != 2: raise RuntimeError( "MSVC requires one header and one source to produce precompiled headers." ) header = pch[0] source = pch[1] pchname = compiler.get_pch_name(header) dst = os.path.join(self.ge...
https://github.com/mesonbuild/meson/issues/2833
Traceback (most recent call last): File "mesonbuild\mesonmain.py", line 352, in run File "mesonbuild\mesonmain.py", line 147, in generate File "mesonbuild\mesonmain.py", line 197, in _generate File "mesonbuild\backend\vs2010backend.py", line 161, in generate File "mesonbuild\backend\vs2010backend.py", line 311, in gene...
IndexError
def gen_vcxproj(self, target, ofname, guid): mlog.debug("Generating vcxproj %s." % target.name) entrypoint = "WinMainCRTStartup" subsystem = "Windows" if isinstance(target, build.Executable): conftype = "Application" if not target.gui_app: subsystem = "Console" en...
def gen_vcxproj(self, target, ofname, guid): mlog.debug("Generating vcxproj %s." % target.name) entrypoint = "WinMainCRTStartup" subsystem = "Windows" if isinstance(target, build.Executable): conftype = "Application" if not target.gui_app: subsystem = "Console" en...
https://github.com/mesonbuild/meson/issues/2833
Traceback (most recent call last): File "mesonbuild\mesonmain.py", line 352, in run File "mesonbuild\mesonmain.py", line 147, in generate File "mesonbuild\mesonmain.py", line 197, in _generate File "mesonbuild\backend\vs2010backend.py", line 161, in generate File "mesonbuild\backend\vs2010backend.py", line 311, in gene...
IndexError
def autodetect_vs_version(build): vs_version = os.getenv("VisualStudioVersion", None) vs_install_dir = os.getenv("VSINSTALLDIR", None) if not vs_install_dir: raise MesonException( "Could not detect Visual Studio: Environment variable VSINSTALLDIR is not set!\n" "Are you runni...
def autodetect_vs_version(build): vs_version = os.getenv("VisualStudioVersion", None) vs_install_dir = os.getenv("VSINSTALLDIR", None) if not vs_version and not vs_install_dir: raise MesonException( "Could not detect Visual Studio: VisualStudioVersion and VSINSTALLDIR are unset!\n" ...
https://github.com/mesonbuild/meson/issues/2848
1>------ Build started: Project: REGEN, Configuration: debug Win32 ------ 1>Checking whether solution needs to be regenerated. 1>The Meson build system 1>Version: 0.45.0.dev1 1>Source dir: C:\msys64\home\Polarina\mysa 1>Build dir: C:\msys64\home\Polarina\mysa\build 1>Build type: native build 1>Traceback (most recent ca...
TypeError
def _generate(self, env): mlog.debug("Build started at", datetime.datetime.now().isoformat()) mlog.debug("Main binary:", sys.executable) mlog.debug("Python system:", platform.system()) mlog.log(mlog.bold("The Meson build system")) self.check_pkgconfig_envvar(env) mlog.log("Version:", coredata.ve...
def _generate(self, env): mlog.debug("Build started at", datetime.datetime.now().isoformat()) mlog.debug("Main binary:", sys.executable) mlog.debug("Python system:", platform.system()) mlog.log(mlog.bold("The Meson build system")) self.check_pkgconfig_envvar(env) mlog.log("Version:", coredata.ve...
https://github.com/mesonbuild/meson/issues/2848
1>------ Build started: Project: REGEN, Configuration: debug Win32 ------ 1>Checking whether solution needs to be regenerated. 1>The Meson build system 1>Version: 0.45.0.dev1 1>Source dir: C:\msys64\home\Polarina\mysa 1>Build dir: C:\msys64\home\Polarina\mysa\build 1>Build type: native build 1>Traceback (most recent ca...
TypeError
def _detect_c_or_cpp_compiler(self, lang, evar, want_cross): popen_exceptions = {} compilers, ccache, is_cross, exe_wrap = self._get_compilers(lang, evar, want_cross) for compiler in compilers: if isinstance(compiler, str): compiler = [compiler] if "cl" in compiler or "cl.exe" in...
def _detect_c_or_cpp_compiler(self, lang, evar, want_cross): popen_exceptions = {} compilers, ccache, is_cross, exe_wrap = self._get_compilers(lang, evar, want_cross) for compiler in compilers: if isinstance(compiler, str): compiler = [compiler] if "cl" in compiler or "cl.exe" in...
https://github.com/mesonbuild/meson/issues/1989
$ CC=cgcc meson ../ --prefix=/home/hughsie/.root The Meson build system Version: 0.42.0.dev1 Source dir: /home/hughsie/Code/fwupd Build dir: /home/hughsie/Code/fwupd/build Build type: native build Project name: fwupd Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/mesonbuild/mesonmain.py", lin...
TypeError
def detect_fortran_compiler(self, want_cross): popen_exceptions = {} compilers, ccache, is_cross, exe_wrap = self._get_compilers( "fortran", "FC", want_cross ) for compiler in compilers: if isinstance(compiler, str): compiler = [compiler] for arg in ["--version", "-V"...
def detect_fortran_compiler(self, want_cross): popen_exceptions = {} compilers, ccache, is_cross, exe_wrap = self._get_compilers( "fortran", "FC", want_cross ) for compiler in compilers: if isinstance(compiler, str): compiler = [compiler] for arg in ["--version", "-V"...
https://github.com/mesonbuild/meson/issues/1989
$ CC=cgcc meson ../ --prefix=/home/hughsie/.root The Meson build system Version: 0.42.0.dev1 Source dir: /home/hughsie/Code/fwupd Build dir: /home/hughsie/Code/fwupd/build Build type: native build Project name: fwupd Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/mesonbuild/mesonmain.py", lin...
TypeError
def detect_objc_compiler(self, want_cross): popen_exceptions = {} compilers, ccache, is_cross, exe_wrap = self._get_compilers( "objc", "OBJC", want_cross ) for compiler in compilers: if isinstance(compiler, str): compiler = [compiler] arg = ["--version"] try: ...
def detect_objc_compiler(self, want_cross): popen_exceptions = {} compilers, ccache, is_cross, exe_wrap = self._get_compilers( "objc", "OBJC", want_cross ) for compiler in compilers: if isinstance(compiler, str): compiler = [compiler] arg = ["--version"] try: ...
https://github.com/mesonbuild/meson/issues/1989
$ CC=cgcc meson ../ --prefix=/home/hughsie/.root The Meson build system Version: 0.42.0.dev1 Source dir: /home/hughsie/Code/fwupd Build dir: /home/hughsie/Code/fwupd/build Build type: native build Project name: fwupd Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/mesonbuild/mesonmain.py", lin...
TypeError
def detect_objcpp_compiler(self, want_cross): popen_exceptions = {} compilers, ccache, is_cross, exe_wrap = self._get_compilers( "objcpp", "OBJCXX", want_cross ) for compiler in compilers: if isinstance(compiler, str): compiler = [compiler] arg = ["--version"] ...
def detect_objcpp_compiler(self, want_cross): popen_exceptions = {} compilers, ccache, is_cross, exe_wrap = self._get_compilers( "objcpp", "OBJCXX", want_cross ) for compiler in compilers: if isinstance(compiler, str): compiler = [compiler] arg = ["--version"] ...
https://github.com/mesonbuild/meson/issues/1989
$ CC=cgcc meson ../ --prefix=/home/hughsie/.root The Meson build system Version: 0.42.0.dev1 Source dir: /home/hughsie/Code/fwupd Build dir: /home/hughsie/Code/fwupd/build Build type: native build Project name: fwupd Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/mesonbuild/mesonmain.py", lin...
TypeError
def _find_source_script(self, name, args): # Prefer scripts in the current source directory search_dir = os.path.join( self.interpreter.environment.source_dir, self.interpreter.subdir ) key = (name, search_dir) if key in self._found_source_scripts: found = self._found_source_scripts[...
def _find_source_script(self, name, args): # Prefer scripts in the current source directory search_dir = os.path.join( self.interpreter.environment.source_dir, self.interpreter.subdir ) key = (name, search_dir) if key in self._found_source_scripts: found = self._found_source_scripts[...
https://github.com/mesonbuild/meson/issues/1600
Traceback (most recent call last): File "/usr/bin/meson", line 37, in <module> sys.exit(main()) File "/usr/bin/meson", line 34, in main return mesonmain.run(launcher, sys.argv[1:]) File "/home/zbyszek/.local/lib/python3.5/site-packages/meson-0.40.0.dev1-py3.5.egg/mesonbuild/mesonmain.py", line 260, in run sys.exit(run_...
TypeError
def generate_custom_generator_commands(self, target, parent_node): generator_output_files = [] custom_target_include_dirs = [] custom_target_output_files = [] target_private_dir = self.relpath( self.get_target_private_dir(target), self.get_target_dir(target) ) down = self.target_to_build...
def generate_custom_generator_commands(self, target, parent_node): generator_output_files = [] commands = [] inputs = [] outputs = [] custom_target_include_dirs = [] custom_target_output_files = [] target_private_dir = self.relpath( self.get_target_private_dir(target), self.get_targe...
https://github.com/mesonbuild/meson/issues/1004
Traceback (most recent call last): File "C:\projects\meson\mesonbuild\mesonmain.py", line 279, in run app.generate() File "C:\projects\meson\mesonbuild\mesonmain.py", line 169, in generate g.generate(intr) File "C:\projects\meson\mesonbuild\backend\vs2010backend.py", line 168, in generate self.generate_solution(sln_fil...
AttributeError
def get_target_deps(self, t, recursive=False): all_deps = {} for target in t.values(): if isinstance(target, build.CustomTarget): for d in target.get_target_dependencies(): all_deps[d.get_id()] = d elif isinstance(target, build.RunTarget): for d in [target...
def get_target_deps(self, t, recursive=False): all_deps = {} for target in t.values(): if isinstance(target, build.CustomTarget): for d in target.get_target_dependencies(): all_deps[d.get_id()] = d elif isinstance(target, build.RunTarget): for d in [target...
https://github.com/mesonbuild/meson/issues/1004
Traceback (most recent call last): File "C:\projects\meson\mesonbuild\mesonmain.py", line 279, in run app.generate() File "C:\projects\meson\mesonbuild\mesonmain.py", line 169, in generate g.generate(intr) File "C:\projects\meson\mesonbuild\backend\vs2010backend.py", line 168, in generate self.generate_solution(sln_fil...
AttributeError
def gen_custom_target_vcxproj(self, target, ofname, guid): root = self.create_basic_crap(target) action = ET.SubElement(root, "ItemDefinitionGroup") customstep = ET.SubElement(action, "CustomBuildStep") # We need to always use absolute paths because our invocation is always # from the target dir, no...
def gen_custom_target_vcxproj(self, target, ofname, guid): root = self.create_basic_crap(target) action = ET.SubElement(root, "ItemDefinitionGroup") customstep = ET.SubElement(action, "CustomBuildStep") # We need to always use absolute paths because our invocation is always # from the target dir, no...
https://github.com/mesonbuild/meson/issues/1004
Traceback (most recent call last): File "C:\projects\meson\mesonbuild\mesonmain.py", line 279, in run app.generate() File "C:\projects\meson\mesonbuild\mesonmain.py", line 169, in generate g.generate(intr) File "C:\projects\meson\mesonbuild\backend\vs2010backend.py", line 168, in generate self.generate_solution(sln_fil...
AttributeError
def has_objects(objects, additional_objects, generated_objects): # Ignore generated objects, those are automatically used by MSBuild because they are part of # the CustomBuild Outputs. return len(objects) + len(additional_objects) > 0
def has_objects(objects, additional_objects, generated_objects): # Ignore generated objects, those are automatically used by MSBuild for VS2010, because they are part of # the CustomBuildStep Outputs. return len(objects) + len(additional_objects) > 0
https://github.com/mesonbuild/meson/issues/1004
Traceback (most recent call last): File "C:\projects\meson\mesonbuild\mesonmain.py", line 279, in run app.generate() File "C:\projects\meson\mesonbuild\mesonmain.py", line 169, in generate g.generate(intr) File "C:\projects\meson\mesonbuild\backend\vs2010backend.py", line 168, in generate self.generate_solution(sln_fil...
AttributeError
def add_generated_objects(node, generated_objects): # Do not add generated objects to project file. Those are automatically used by MSBuild, because # they are part of the CustomBuild Outputs. return
def add_generated_objects(node, generated_objects): # Do not add generated objects to project file. Those are automatically used by MSBuild for VS2010, because # they are part of the CustomBuildStep Outputs. return
https://github.com/mesonbuild/meson/issues/1004
Traceback (most recent call last): File "C:\projects\meson\mesonbuild\mesonmain.py", line 279, in run app.generate() File "C:\projects\meson\mesonbuild\mesonmain.py", line 169, in generate g.generate(intr) File "C:\projects\meson\mesonbuild\backend\vs2010backend.py", line 168, in generate self.generate_solution(sln_fil...
AttributeError
def get_target_dependencies(self): deps = self.dependencies[:] deps += self.extra_depends for c in self.sources: if hasattr(c, "held_object"): c = c.held_object if isinstance(c, (BuildTarget, CustomTarget)): deps.append(c) return deps
def get_target_dependencies(self): deps = self.dependencies[:] deps += self.extra_depends for c in self.sources: if hasattr(c, "held_object"): c = c.held_object if isinstance(c, (BuildTarget, CustomTarget, GeneratedList)): deps.append(c) return deps
https://github.com/mesonbuild/meson/issues/1004
Traceback (most recent call last): File "C:\projects\meson\mesonbuild\mesonmain.py", line 279, in run app.generate() File "C:\projects\meson\mesonbuild\mesonmain.py", line 169, in generate g.generate(intr) File "C:\projects\meson\mesonbuild\backend\vs2010backend.py", line 168, in generate self.generate_solution(sln_fil...
AttributeError
def get_generated_sources(self): return self.get_generated_lists()
def get_generated_sources(self): return []
https://github.com/mesonbuild/meson/issues/1004
Traceback (most recent call last): File "C:\projects\meson\mesonbuild\mesonmain.py", line 279, in run app.generate() File "C:\projects\meson\mesonbuild\mesonmain.py", line 169, in generate g.generate(intr) File "C:\projects\meson\mesonbuild\backend\vs2010backend.py", line 168, in generate self.generate_solution(sln_fil...
AttributeError
def unpack_env_kwarg(self, kwargs): envlist = kwargs.get("env", EnvironmentVariablesHolder()) if isinstance(envlist, EnvironmentVariablesHolder): env = envlist.held_object else: if not isinstance(envlist, list): envlist = [envlist] env = {} for e in envlist: ...
def unpack_env_kwarg(self, kwargs): envlist = kwargs.get("env", []) if isinstance(envlist, EnvironmentVariablesHolder): env = envlist.held_object else: if not isinstance(envlist, list): envlist = [envlist] env = {} for e in envlist: if "=" not in e: ...
https://github.com/mesonbuild/meson/issues/1371
$ /home/cassidy/dev/meson/mesontest.py -C build --setup leaks ninja: Entering directory `/home/cassidy/dev/gst/master/gst-build/build' ninja: no work to do. Traceback (most recent call last): File "/home/cassidy/dev/meson/mesontest.py", line 579, in <module> sys.exit(run(sys.argv[1:])) File "/home/cassidy/dev/meson/mes...
IndexError
def get_option_link_args(self, options): # FIXME: See GnuCCompiler.get_option_link_args if "c_winlibs" in options: return options["c_winlibs"].value[:] else: return msvc_winlibs[:]
def get_option_link_args(self, options): return options["c_winlibs"].value[:]
https://github.com/mesonbuild/meson/issues/1029
The Meson build system Version: 0.35.1 Source dir: F:\avian\test Build dir: F:\avian\test\build\linux-64 Build type: cross build Project name: avian 18:22Native cpp compiler: c++ (gcc 4.8.1) Cross cpp compiler: f:/cygwin64/b...
KeyError
def get_option_link_args(self, options): # FIXME: See GnuCCompiler.get_option_link_args if "cpp_winlibs" in options: return options["cpp_winlibs"].value[:] else: return msvc_winlibs[:]
def get_option_link_args(self, options): return options["cpp_winlibs"].value[:]
https://github.com/mesonbuild/meson/issues/1029
The Meson build system Version: 0.35.1 Source dir: F:\avian\test Build dir: F:\avian\test\build\linux-64 Build type: cross build Project name: avian 18:22Native cpp compiler: c++ (gcc 4.8.1) Cross cpp compiler: f:/cygwin64/b...
KeyError
def get_option_link_args(self, options): if self.gcc_type == GCC_MINGW: # FIXME: This check is needed because we currently pass # cross-compiler options to the native compiler too and when # cross-compiling from Windows to Linux, `options` will contain # Linux-specific options which ...
def get_option_link_args(self, options): if self.gcc_type == GCC_MINGW: return options["c_winlibs"].value return []
https://github.com/mesonbuild/meson/issues/1029
The Meson build system Version: 0.35.1 Source dir: F:\avian\test Build dir: F:\avian\test\build\linux-64 Build type: cross build Project name: avian 18:22Native cpp compiler: c++ (gcc 4.8.1) Cross cpp compiler: f:/cygwin64/b...
KeyError
def get_options(self): opts = { "cpp_std": coredata.UserComboOption( "cpp_std", "C++ language standard to use", [ "none", "c++03", "c++11", "c++14", "c++1z", "gnu++03", ...
def get_options(self): opts = { "cpp_std": coredata.UserComboOption( "cpp_std", "C++ language standard to use", [ "none", "c++03", "c++11", "c++14", "c++1z", "gnu++03", ...
https://github.com/mesonbuild/meson/issues/1029
The Meson build system Version: 0.35.1 Source dir: F:\avian\test Build dir: F:\avian\test\build\linux-64 Build type: cross build Project name: avian 18:22Native cpp compiler: c++ (gcc 4.8.1) Cross cpp compiler: f:/cygwin64/b...
KeyError
def get_option_link_args(self, options): if self.gcc_type == GCC_MINGW: # FIXME: See GnuCCompiler.get_option_link_args if "cpp_winlibs" in options: return options["cpp_winlibs"].value[:] else: return gnu_winlibs[:] return []
def get_option_link_args(self, options): if self.gcc_type == GCC_MINGW: return options["cpp_winlibs"].value return []
https://github.com/mesonbuild/meson/issues/1029
The Meson build system Version: 0.35.1 Source dir: F:\avian\test Build dir: F:\avian\test\build\linux-64 Build type: cross build Project name: avian 18:22Native cpp compiler: c++ (gcc 4.8.1) Cross cpp compiler: f:/cygwin64/b...
KeyError
def __init__(self, env, kwargs): QtBaseDependency.__init__(self, "qt5", env, kwargs)
def __init__(self, environment, kwargs): Dependency.__init__(self, "qt5") self.name = "qt5" self.root = "/usr" mods = kwargs.get("modules", []) self.cargs = [] self.largs = [] self.is_found = False if isinstance(mods, str): mods = [mods] if len(mods) == 0: raise Depen...
https://github.com/mesonbuild/meson/issues/758
Traceback (most recent call last): File "/home/jenkins/workspace/meson/mesonbuild/mesonmain.py", line 282, in run app.generate() File "/home/jenkins/workspace/meson/mesonbuild/mesonmain.py", line 169, in generate g.generate(intr) File "/home/jenkins/workspace/meson/mesonbuild/backend/ninjabackend.py", line 184, in gene...
AttributeError
def __init__(self, env, kwargs): QtBaseDependency.__init__(self, "qt4", env, kwargs)
def __init__(self, environment, kwargs): Dependency.__init__(self, "qt4") self.name = "qt4" self.root = "/usr" self.modules = [] mods = kwargs.get("modules", []) if isinstance(mods, str): mods = [mods] for module in mods: self.modules.append(PkgConfigDependency("Qt" + module,...
https://github.com/mesonbuild/meson/issues/758
Traceback (most recent call last): File "/home/jenkins/workspace/meson/mesonbuild/mesonmain.py", line 282, in run app.generate() File "/home/jenkins/workspace/meson/mesonbuild/mesonmain.py", line 169, in generate g.generate(intr) File "/home/jenkins/workspace/meson/mesonbuild/backend/ninjabackend.py", line 184, in gene...
AttributeError
def preprocess(self, state, args, kwargs): rcc_files = kwargs.pop("qresources", []) if not isinstance(rcc_files, list): rcc_files = [rcc_files] ui_files = kwargs.pop("ui_files", []) if not isinstance(ui_files, list): ui_files = [ui_files] moc_headers = kwargs.pop("moc_headers", []) ...
def preprocess(self, state, args, kwargs): rcc_files = kwargs.pop("qresources", []) if not isinstance(rcc_files, list): rcc_files = [rcc_files] ui_files = kwargs.pop("ui_files", []) if not isinstance(ui_files, list): ui_files = [ui_files] moc_headers = kwargs.pop("moc_headers", []) ...
https://github.com/mesonbuild/meson/issues/758
Traceback (most recent call last): File "/home/jenkins/workspace/meson/mesonbuild/mesonmain.py", line 282, in run app.generate() File "/home/jenkins/workspace/meson/mesonbuild/mesonmain.py", line 169, in generate g.generate(intr) File "/home/jenkins/workspace/meson/mesonbuild/backend/ninjabackend.py", line 184, in gene...
AttributeError
def preprocess(self, state, args, kwargs): rcc_files = kwargs.pop("qresources", []) if not isinstance(rcc_files, list): rcc_files = [rcc_files] ui_files = kwargs.pop("ui_files", []) if not isinstance(ui_files, list): ui_files = [ui_files] moc_headers = kwargs.pop("moc_headers", []) ...
def preprocess(self, state, args, kwargs): rcc_files = kwargs.pop("qresources", []) if not isinstance(rcc_files, list): rcc_files = [rcc_files] ui_files = kwargs.pop("ui_files", []) if not isinstance(ui_files, list): ui_files = [ui_files] moc_headers = kwargs.pop("moc_headers", []) ...
https://github.com/mesonbuild/meson/issues/758
Traceback (most recent call last): File "/home/jenkins/workspace/meson/mesonbuild/mesonmain.py", line 282, in run app.generate() File "/home/jenkins/workspace/meson/mesonbuild/mesonmain.py", line 169, in generate g.generate(intr) File "/home/jenkins/workspace/meson/mesonbuild/backend/ninjabackend.py", line 184, in gene...
AttributeError
def eval_custom_target_command(self, target, absolute_paths=False): if not absolute_paths: ofilenames = [ os.path.join(self.get_target_dir(target), i) for i in target.output ] else: ofilenames = [ os.path.join( self.environment.get_build_dir(), sel...
def eval_custom_target_command(self, target, absolute_paths=False): if not absolute_paths: ofilenames = [ os.path.join(self.get_target_dir(target), i) for i in target.output ] else: ofilenames = [ os.path.join( self.environment.get_build_dir(), sel...
https://github.com/mesonbuild/meson/issues/436
(dev_env)[meh@meh-host build]$ rm -rf * &amp;&amp; meson.py .. The Meson build system Version: 0.30.0.dev1 Source dir: /home/meh/devel/hotdoc/test_hotdoc Build dir: /home/meh/devel/hotdoc/test_hotdoc/build Build type: native build Build machine cpu family: x86_64 Build machine cpu: x86_64 Project name: Hotdoc-Test Nati...
AttributeError
def can_compile(self, filename): suffix = filename.split(".")[-1] return suffix in ("vala", "vapi")
def can_compile(self, fname): return fname.endswith(".vala") or fname.endswith(".vapi")
https://github.com/mesonbuild/meson/issues/189
Traceback (most recent call last): File "/usr/share/meson/meson.py", line 188, in run app.generate() File "/usr/share/meson/meson.py", line 141, in generate g.generate() File "/usr/share/meson/ninjabackend.py", line 132, in generate [self.generate_target(t, outfile) for t in self.build.get_targets().values()] File "/us...
AttributeError
def _hval(value): value = tonat(value) if "\n" in value or "\r" in value or "\0" in value: raise ValueError("Header value must not contain control characters: %r" % value) return value
def _hval(value): value = value if isinstance(value, unicode) else str(value) if "\n" in value or "\r" in value or "\0" in value: raise ValueError("Header value must not contain control characters: %r" % value) return value
https://github.com/bottlepy/bottle/issues/923
Critical error while processing request: / Error: TypeError("WSGI response header value u'text/plain' is not of type str.",) Traceback: Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/bottle.py", line 960, in wsgi start_response(response._status_line, response.headerlist) File "/usr/lib/python...
TypeError
def _AddVersionResource(self, exe): try: from win32verstamp import stamp except: print("*** WARNING *** unable to create version resource") print("install pywin32 extensions first") return fileName = exe.targetName versionInfo = VersionInfo( self.metadata.version,...
def _AddVersionResource(self, fileName): try: from win32verstamp import stamp except: print("*** WARNING *** unable to create version resource") print("install pywin32 extensions first") return versionInfo = VersionInfo( self.metadata.version, comments=self.me...
https://github.com/marcelotduarte/cx_Freeze/issues/94
C:\Users\Belli\Desktop\failing_cx_freeze>python setup.py build running build running build_exe creating directory demo copying C:\Miniconda\lib\site-packages\cx_Freeze\bases\Win32GUI.exe -> demo\demo.exe Stamped: demo\demo.exe writing zip file demo\demo.zip Name File ---- ----...
cx_Freeze.freezer.ConfigError
def _FreezeExecutable(self, exe): finder = self.finder finder.IncludeFile(exe.script, exe.moduleName) finder.IncludeFile(exe.initScript, exe.initModuleName) self._CopyFile(exe.base, exe.targetName, copyDependentFiles=True, includeMode=True) if self.includeMSVCR: self._IncludeMSVCR(exe) ...
def _FreezeExecutable(self, exe): finder = self.finder finder.IncludeFile(exe.script, exe.moduleName) finder.IncludeFile(exe.initScript, exe.initModuleName) self._CopyFile(exe.base, exe.targetName, copyDependentFiles=True, includeMode=True) if self.includeMSVCR: self._IncludeMSVCR(exe) ...
https://github.com/marcelotduarte/cx_Freeze/issues/94
C:\Users\Belli\Desktop\failing_cx_freeze>python setup.py build running build running build_exe creating directory demo copying C:\Miniconda\lib\site-packages\cx_Freeze\bases\Win32GUI.exe -> demo\demo.exe Stamped: demo\demo.exe writing zip file demo\demo.zip Name File ---- ----...
cx_Freeze.freezer.ConfigError
def __init__( self, script, initScript=None, base=None, targetName=None, icon=None, shortcutName=None, shortcutDir=None, copyright=None, trademarks=None, ): self.script = script self.initScript = initScript or "Console" self.base = base or "Console" self.targetNam...
def __init__( self, script, initScript=None, base=None, targetName=None, icon=None, shortcutName=None, shortcutDir=None, ): self.script = script self.initScript = initScript or "Console" self.base = base or "Console" self.targetName = targetName self.icon = icon s...
https://github.com/marcelotduarte/cx_Freeze/issues/94
C:\Users\Belli\Desktop\failing_cx_freeze>python setup.py build running build running build_exe creating directory demo copying C:\Miniconda\lib\site-packages\cx_Freeze\bases\Win32GUI.exe -> demo\demo.exe Stamped: demo\demo.exe writing zip file demo\demo.zip Name File ---- ----...
cx_Freeze.freezer.ConfigError
def _ReplacePathsInCode(self, topLevelModule, co): """Replace paths in the code as directed, returning a new code object with the modified paths in place.""" # Prepare the new filename. origFileName = newFileName = os.path.normpath(co.co_filename) for searchValue, replaceValue in self.replacePaths: ...
def _ReplacePathsInCode(self, topLevelModule, co): """Replace paths in the code as directed, returning a new code object with the modified paths in place.""" # Prepare the new filename. origFileName = newFileName = os.path.normpath(co.co_filename) for searchValue, replaceValue in self.replacePaths: ...
https://github.com/marcelotduarte/cx_Freeze/issues/543
Outputting to: build\exe.win-amd64-3.8 running build_exe Traceback (most recent call last): File "E:/ConParser/setup.py", line 110, in <module> cx_Freeze.setup( File "C:\Program Files\Python38\lib\site-packages\cx_Freeze\dist.py", line 348, in setup distutils.core.setup(**attrs) File "C:\Program Files\Python38\lib\dist...
TypeError
def _ScanCode(self, co, module, deferredImports, topLevel=True): """Scan code, looking for imported modules and keeping track of the constants that have been created in order to better tell which modules are truly missing.""" arguments = [] importedModule = None method = ( dis._unpack_op...
def _ScanCode(self, co, module, deferredImports, topLevel=True): """Scan code, looking for imported modules and keeping track of the constants that have been created in order to better tell which modules are truly missing.""" opIndex = 0 arguments = [] code = co.co_code numOps = len(code) ...
https://github.com/marcelotduarte/cx_Freeze/issues/215
#!python [vagrant@localhost curator_source]$ python3.6 setup.py build_exe running build_exe Traceback (most recent call last): File "setup.py", line 124, in <module> executables = [curator_exe,curator_cli_exe,repomgr_exe] File "/home/vagrant/.local/lib/python3.6/site-packages/cx_Freeze/dist.py", line 337, in setup dis...
IndexError
def clone(self, default_value=NoDefaultSpecified, **metadata): """Copy, optionally modifying default value and metadata. Clones the contents of this object into a new instance of the same class, and then modifies the cloned copy using the specified ``default_value`` and ``metadata``. Returns the cloned...
def clone(self, default_value=NoDefaultSpecified, **metadata): """Copy, optionally modifying default value and metadata. Clones the contents of this object into a new instance of the same class, and then modifies the cloned copy using the specified ``default_value`` and ``metadata``. Returns the cloned...
https://github.com/enthought/traits/issues/495
In [4]: foo.instance_date = None --------------------------------------------------------------------------- TraitError Traceback (most recent call last) <ipython-input-4-fa663306bb41> in <module>() ----> 1 foo.instance_date = None /Users/kchoi/.edm/envs/resist-py36/lib/python3.6/site-pa...
TraitError
def notifier(self, trait_dict, removed, added, changed): """Fire the TraitDictEvent with the provided parameters. Parameters ---------- trait_dict : dict The complete dictionary. removed : dict Dict of removed items. added : dict Dict of added items. changed : dict ...
def notifier(self, trait_dict, removed, added, changed): """Fire the TraitDictEvent with the provided parameters. Parameters ---------- trait_dict : dict The complete dictionary. removed : dict Dict of removed items. added : dict Dict of added items. changed : dict ...
https://github.com/enthought/traits/issues/25
Traceback (most recent call last): File "/home/punchagan/tmp/foo.py", line 12, in <module> a.foo[0]['x'] = 20 File "/home/punchagan/work/traits/traits/trait_handlers.py", line 3159, in __setitem__ raise excp traits.trait_errors.TraitError: Each value of the 'foo_items' trait of an A instance must be an implementor of, ...
traits.trait_errors.TraitError
def notifier(self, trait_list, index, removed, added): """Converts and consolidates the parameters to a TraitListEvent and then fires the event. Parameters ---------- trait_list : list The list index : int or slice Index or slice that was modified removed : list Valu...
def notifier(self, trait_list, index, removed, added): """Converts and consolidates the parameters to a TraitListEvent and then fires the event. Parameters ---------- trait_list : list The list index : int or slice Index or slice that was modified removed : list Valu...
https://github.com/enthought/traits/issues/25
Traceback (most recent call last): File "/home/punchagan/tmp/foo.py", line 12, in <module> a.foo[0]['x'] = 20 File "/home/punchagan/work/traits/traits/trait_handlers.py", line 3159, in __setitem__ raise excp traits.trait_errors.TraitError: Each value of the 'foo_items' trait of an A instance must be an implementor of, ...
traits.trait_errors.TraitError
def notifier(self, trait_set, removed, added): """Converts and consolidates the parameters to a TraitSetEvent and then fires the event. Parameters ---------- trait_set : set The complete set removed : set Set of values that were removed. added : set Set of values tha...
def notifier(self, trait_set, removed, added): """Converts and consolidates the parameters to a TraitSetEvent and then fires the event. Parameters ---------- trait_set : set The complete set removed : set Set of values that were removed. added : set Set of values tha...
https://github.com/enthought/traits/issues/25
Traceback (most recent call last): File "/home/punchagan/tmp/foo.py", line 12, in <module> a.foo[0]['x'] = 20 File "/home/punchagan/work/traits/traits/trait_handlers.py", line 3159, in __setitem__ raise excp traits.trait_errors.TraitError: Each value of the 'foo_items' trait of an A instance must be an implementor of, ...
traits.trait_errors.TraitError
def validate(self, object, name, value): if isinstance(value, object.__class__): return value self.error(object, name, value)
def validate(self, object, name, value): if isinstance(value, object.__class__): return value self.validate_failed(object, name, value)
https://github.com/enthought/traits/issues/623
from traits.api import * class A(HasTraits): ... foo = List(This(allow_none=False)) ... a = A() a.foo = [None] Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/mdickinson/Enthought/ETS/traits/traits/trait_types.py", line 2452, in validate return TraitListObject(self, object, name,...
traits.trait_errors.TraitError
def validate_none(self, object, name, value): if isinstance(value, object.__class__) or (value is None): return value self.error(object, name, value)
def validate_none(self, object, name, value): if isinstance(value, object.__class__) or (value is None): return value self.validate_failed(object, name, value)
https://github.com/enthought/traits/issues/623
from traits.api import * class A(HasTraits): ... foo = List(This(allow_none=False)) ... a = A() a.foo = [None] Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/mdickinson/Enthought/ETS/traits/traits/trait_types.py", line 2452, in validate return TraitListObject(self, object, name,...
traits.trait_errors.TraitError
def plot_pair( ax, infdata_group, numvars, figsize, textsize, kind, kde_kwargs, hexbin_kwargs, contour, # pylint: disable=unused-argument plot_kwargs, # pylint: disable=unused-argument fill_last, # pylint: disable=unused-argument divergences, diverging_mask, fl...
def plot_pair( ax, infdata_group, numvars, figsize, textsize, kind, kde_kwargs, hexbin_kwargs, contour, # pylint: disable=unused-argument plot_kwargs, # pylint: disable=unused-argument fill_last, # pylint: disable=unused-argument divergences, diverging_mask, fl...
https://github.com/arviz-devs/arviz/issues/1166
/Users/alex_andorra/opt/anaconda3/envs/stat-rethink-pymc3/lib/python3.7/site-packages/arviz/plots/pairplot.py:167: UserWarning: fill_last and contour will be deprecated. Please use kde_kwargs "fill_last and contour will be deprecated. Please use kde_kwargs", UserWarning, -----------------------------------------------...
TypeError
def plot_pair( ax, infdata_group, numvars, figsize, textsize, kind, fill_last, # pylint: disable=unused-argument contour, # pylint: disable=unused-argument plot_kwargs, # pylint: disable=unused-argument scatter_kwargs, kde_kwargs, hexbin_kwargs, gridsize, color...
def plot_pair( ax, infdata_group, numvars, figsize, textsize, kind, fill_last, # pylint: disable=unused-argument contour, # pylint: disable=unused-argument plot_kwargs, # pylint: disable=unused-argument scatter_kwargs, kde_kwargs, hexbin_kwargs, gridsize, color...
https://github.com/arviz-devs/arviz/issues/1166
/Users/alex_andorra/opt/anaconda3/envs/stat-rethink-pymc3/lib/python3.7/site-packages/arviz/plots/pairplot.py:167: UserWarning: fill_last and contour will be deprecated. Please use kde_kwargs "fill_last and contour will be deprecated. Please use kde_kwargs", UserWarning, -----------------------------------------------...
TypeError
def plot_pair( data, group="posterior", var_names: Optional[List[str]] = None, filter_vars: Optional[str] = None, coords=None, figsize=None, textsize=None, kind: Union[str, List[str]] = "scatter", gridsize="auto", contour: Optional[bool] = None, plot_kwargs=None, fill_las...
def plot_pair( data, group="posterior", var_names: Optional[List[str]] = None, filter_vars: Optional[str] = None, coords=None, figsize=None, textsize=None, kind: Union[str, List[str]] = "scatter", gridsize="auto", contour: Optional[bool] = None, plot_kwargs=None, fill_las...
https://github.com/arviz-devs/arviz/issues/1166
/Users/alex_andorra/opt/anaconda3/envs/stat-rethink-pymc3/lib/python3.7/site-packages/arviz/plots/pairplot.py:167: UserWarning: fill_last and contour will be deprecated. Please use kde_kwargs "fill_last and contour will be deprecated. Please use kde_kwargs", UserWarning, -----------------------------------------------...
TypeError
def plot_pair( ax, infdata_group, numvars, figsize, textsize, kind, fill_last, # pylint: disable=unused-argument contour, # pylint: disable=unused-argument plot_kwargs, # pylint: disable=unused-argument scatter_kwargs, kde_kwargs, hexbin_kwargs, gridsize, color...
def plot_pair( ax, infdata_group, numvars, figsize, textsize, kind, fill_last, # pylint: disable=unused-argument contour, # pylint: disable=unused-argument plot_kwargs, # pylint: disable=unused-argument scatter_kwargs, kde_kwargs, hexbin_kwargs, gridsize, color...
https://github.com/arviz-devs/arviz/issues/1130
Traceback (most recent call last): File "test_model_pyro_torch_jit.py", line 311, in <module> coords = {"Mc_dim_1": [0, 1], "Mc_dim_0": [0]}, ax=axes) File "/Users/landerson/.local/lib/python3.7/site-packages/arviz-0.7.0-py3.7.egg/arviz/plots/pairplot.py", line 298, in plot_pair ax = plot(**pairplot_kwargs) File "/User...
KeyError
def run(self): """ Blocking and long running tasks for application startup should be called from here. """ venv.ensure_and_create() self.finished.emit() # Always called last.
def run(self): """ Blocking and long running tasks for application startup should be called from here. """ venv.ensure() self.finished.emit() # Always called last.
https://github.com/mu-editor/mu/issues/1291
2021-02-11 08:24:50,511 - root:172(run) INFO: ----------------- Starting Mu 1.1.0.beta.1 2021-02-11 08:24:50,516 - root:173(run) INFO: uname_result(system='Darwin', node='Carlos-MBP-8.local', release='18.7.0', version='Darwin Kernel Version 18.7.0: Tue Jan 12 22:04:47 PST 2021; root:xnu-4903.278.56~1/RELEASE_X86_64',...
mu.virtual_environment.VirtualEnvironmentError
def __init__(self, dirpath=None): self.process = Process() self._is_windows = sys.platform == "win32" self._bin_extension = ".exe" if self._is_windows else "" self.settings = settings.VirtualEnvironmentSettings() self.settings.init() dirpath_to_use = dirpath or self.settings.get("dirpath") or se...
def __init__(self, dirpath=None): self.process = Process() self._is_windows = sys.platform == "win32" self._bin_extension = ".exe" if self._is_windows else "" self.settings = settings.VirtualEnvironmentSettings() self.settings.init() self.relocate(dirpath or self.settings["dirpath"])
https://github.com/mu-editor/mu/issues/1291
2021-02-11 08:24:50,511 - root:172(run) INFO: ----------------- Starting Mu 1.1.0.beta.1 2021-02-11 08:24:50,516 - root:173(run) INFO: uname_result(system='Darwin', node='Carlos-MBP-8.local', release='18.7.0', version='Darwin Kernel Version 18.7.0: Tue Jan 12 22:04:47 PST 2021; root:xnu-4903.278.56~1/RELEASE_X86_64',...
mu.virtual_environment.VirtualEnvironmentError
def relocate(self, dirpath): """Relocate sets up variables for, eg, the expected location and name of the Python and Pip binaries, but doesn't access the file system. That's done by code in or called from `create` """ self.path = str(dirpath) self.name = os.path.basename(self.path) self._bin...
def relocate(self, dirpath): self.path = str(dirpath) self.name = os.path.basename(self.path) self._bin_directory = os.path.join( self.path, "scripts" if self._is_windows else "bin" ) # # Pip and the interpreter will be set up when the virtualenv is created # self.interpreter = o...
https://github.com/mu-editor/mu/issues/1291
2021-02-11 08:24:50,511 - root:172(run) INFO: ----------------- Starting Mu 1.1.0.beta.1 2021-02-11 08:24:50,516 - root:173(run) INFO: uname_result(system='Darwin', node='Carlos-MBP-8.local', release='18.7.0', version='Darwin Kernel Version 18.7.0: Tue Jan 12 22:04:47 PST 2021; root:xnu-4903.278.56~1/RELEASE_X86_64',...
mu.virtual_environment.VirtualEnvironmentError
def ensure(self): """Ensure that virtual environment exists and is in a good state""" self.ensure_path() self.ensure_interpreter() self.ensure_interpreter_version() self.ensure_pip() self.ensure_key_modules()
def ensure(self): """Ensure that a virtual environment exists, creating it if needed""" if not os.path.exists(self.path): logger.debug("%s does not exist; creating", self.path) self.create() elif not os.path.isdir(self.path): message = "%s exists but is not a directory" % self.path ...
https://github.com/mu-editor/mu/issues/1291
2021-02-11 08:24:50,511 - root:172(run) INFO: ----------------- Starting Mu 1.1.0.beta.1 2021-02-11 08:24:50,516 - root:173(run) INFO: uname_result(system='Darwin', node='Carlos-MBP-8.local', release='18.7.0', version='Darwin Kernel Version 18.7.0: Tue Jan 12 22:04:47 PST 2021; root:xnu-4903.278.56~1/RELEASE_X86_64',...
mu.virtual_environment.VirtualEnvironmentError
def ensure_interpreter(self): """Ensure there is an interpreter of the expected name at the expected location, given the platform and naming conventions NB if the interpreter is present as a symlink to a system interpreter (likely for a venv) but the link is broken, then os.path.isfile will fail as tho...
def ensure_interpreter(self): if os.path.isfile(self.interpreter): logger.info("Interpreter found at %s", self.interpreter) else: message = "Interpreter not found where expected at %s" % self.interpreter logger.error(message) raise VirtualEnvironmentError(message)
https://github.com/mu-editor/mu/issues/1291
2021-02-11 08:24:50,511 - root:172(run) INFO: ----------------- Starting Mu 1.1.0.beta.1 2021-02-11 08:24:50,516 - root:173(run) INFO: uname_result(system='Darwin', node='Carlos-MBP-8.local', release='18.7.0', version='Darwin Kernel Version 18.7.0: Tue Jan 12 22:04:47 PST 2021; root:xnu-4903.278.56~1/RELEASE_X86_64',...
mu.virtual_environment.VirtualEnvironmentError
def install_jupyter_kernel(self): kernel_name = '"Python/Mu ({})"'.format(self.name) logger.info("Installing Jupyter Kernel %s", kernel_name) return self.run_python( "-m", "ipykernel", "install", "--user", "--name", self.name, "--display-name", ...
def install_jupyter_kernel(self): logger.info("Installing Jupyter Kernel") return self.run_python( "-m", "ipykernel", "install", "--user", "--name", self.name, "--display-name", '"Python/Mu ({})"'.format(self.name), )
https://github.com/mu-editor/mu/issues/1291
2021-02-11 08:24:50,511 - root:172(run) INFO: ----------------- Starting Mu 1.1.0.beta.1 2021-02-11 08:24:50,516 - root:173(run) INFO: uname_result(system='Darwin', node='Carlos-MBP-8.local', release='18.7.0', version='Darwin Kernel Version 18.7.0: Tue Jan 12 22:04:47 PST 2021; root:xnu-4903.278.56~1/RELEASE_X86_64',...
mu.virtual_environment.VirtualEnvironmentError
def get_dialog_directory(self, default=None): """ Return the directory folder which a load/save dialog box should open into. In order of precedence this function will return: 0) If not None, the value of default. 1) The last location used by a load/save dialog. 2) The directory containing the c...
def get_dialog_directory(self, default=None): """ Return the directory folder which a load/save dialog box should open into. In order of precedence this function will return: 0) If not None, the value of default. 1) The last location used by a load/save dialog. 2) The directory containing the c...
https://github.com/mu-editor/mu/issues/1237
(base) me@ubuntu:~$ mu-editor Logging to /home/me/snap/mu-editor/common/.cache/mu/log/mu.log Gtk-Message: Failed to load module "gail" Gtk-Message: Failed to load module "atk-bridge" Gtk-Message: Failed to load module "canberra-gtk-module" Traceback (most recent call last): File "/snap/mu-editor/4/lib/python3.5/site-pa...
PermissionError
def change_mode(self, mode): """ Given the name of a mode, will make the necessary changes to put the editor into the new mode. """ # Remove the old mode's REPL / filesystem / plotter if required. old_mode = self.modes[self.mode] if hasattr(old_mode, "remove_repl"): old_mode.remove_r...
def change_mode(self, mode): """ Given the name of a mode, will make the necessary changes to put the editor into the new mode. """ # Remove the old mode's REPL / filesystem / plotter if required. old_mode = self.modes[self.mode] if hasattr(old_mode, "remove_repl"): old_mode.remove_r...
https://github.com/mu-editor/mu/issues/1237
(base) me@ubuntu:~$ mu-editor Logging to /home/me/snap/mu-editor/common/.cache/mu/log/mu.log Gtk-Message: Failed to load module "gail" Gtk-Message: Failed to load module "atk-bridge" Gtk-Message: Failed to load module "canberra-gtk-module" Traceback (most recent call last): File "/snap/mu-editor/4/lib/python3.5/site-pa...
PermissionError
def workspace_dir(self): """ Return the default location on the filesystem for opening and closing files. """ device_dir = None # Attempts to find the path on the filesystem that represents the # plugged in CIRCUITPY board. if os.name == "posix": # We're on Linux or OSX f...
def workspace_dir(self): """ Return the default location on the filesystem for opening and closing files. """ device_dir = None # Attempts to find the path on the filesystem that represents the # plugged in CIRCUITPY board. if os.name == "posix": # We're on Linux or OSX f...
https://github.com/mu-editor/mu/issues/1237
(base) me@ubuntu:~$ mu-editor Logging to /home/me/snap/mu-editor/common/.cache/mu/log/mu.log Gtk-Message: Failed to load module "gail" Gtk-Message: Failed to load module "atk-bridge" Gtk-Message: Failed to load module "canberra-gtk-module" Traceback (most recent call last): File "/snap/mu-editor/4/lib/python3.5/site-pa...
PermissionError
def __init__(self, connection, theme="day", parent=None): super().__init__(parent) self.connection = connection self.setFont(Font().load()) self.setAcceptRichText(False) self.setReadOnly(False) self.setUndoRedoEnabled(False) self.setContextMenuPolicy(Qt.CustomContextMenu) self.customCont...
def __init__(self, connection, theme="day", parent=None): super().__init__(parent) self.connection = connection self.setFont(Font().load()) self.setAcceptRichText(False) self.setReadOnly(False) self.setUndoRedoEnabled(False) self.setContextMenuPolicy(Qt.CustomContextMenu) self.customCont...
https://github.com/mu-editor/mu/issues/1124
Starting Mu 1.1.0.alpha.2 2020-10-01 08:53:24,342 - root:123(run) INFO: uname_result(system='Darwin', node='dybber', release='18.7.0', version='Darwin Kernel Version 18.7.0: Tue Aug 20 16:57:14 PDT 2019; root:xnu-4903.271.2~2/RELEASE_X86_64', machine='x86_64', processor='i386') 2020-10-01 08:53:24,342 - root:124(run) I...
UnicodeDecodeError
def _get_link(self, soup): # Gets: # <input type="hidden" id="id" value="MTEyMzg1"> # <input type="hidden" id="title" value="Yakusoku+no+Neverland"> # <input type="hidden" id="typesub" value="SUB"> # Used to create a download url. soup_id = soup.select("input#id")[0]["value"] soup_title = so...
def _get_link(self, soup): """ Matches something like f("MTE2MDIw&title=Yakusoku+no+Neverland"); """ sources_regex = r'>\s*?f\("(.*?)"\);' sources_url = re.search(sources_regex, str(soup)).group(1) sources_json = helpers.get( f"https://vidstreaming.io/ajax.php?id={sources_url}", refe...
https://github.com/anime-dl/anime-downloader/issues/484
2020-08-22 13:17:39 arch anime_downloader.session[11021] DEBUG uncached request 2020-08-22 13:17:39 arch anime_downloader.sites.helpers.request[11021] DEBUG https://vidstreaming.io/load.php?id=NDkyNzA=&amp;title=Ansatsu+Kyoushitsu&amp;typesub=SUB&amp;sub=eyJlbiI6bnVsbCwiZXMiOm51bGx9&amp;cover=aW1hZ2VzL3VwbG9hZC82NDU5NS...
AttributeError
def search(cls, query): soup = helpers.soupify( helpers.get("https://dreamanime.fun/search", params={"term": query}) ) result_data = soup.select("a#epilink") search_results = [ SearchResult(title=result.text, url=result.get("href")) for result in result_data ] return se...
def search(cls, query): results = helpers.get("https://dreamanime.fun/search", params={"term": query}).text soup = helpers.soupify(results) result_data = soup.find_all("a", {"id": "epilink"}) search_results = [ SearchResult(title=result.text, url=result.get("href")) for result in result...
https://github.com/anime-dl/anime-downloader/issues/385
matt@matt:~$ anime -ll DEBUG dl 'penguin highway' --provider ryuanime 2020-05-31 19:09:54 matt.local anime_downloader.util[41614] INFO anime-downloader 4.3.0 2020-05-31 19:09:54 matt.local anime_downloader.util[41614] DEBUG Platform: macOS-10.14.6-x86_64-i386-64bit 2020-05-31 19:09:54 matt.local anime_downloader.util[4...
json.decoder.JSONDecodeError
def _scrape_episodes(self): version = self.config.get("version", "subbed") soup = helpers.soupify(helpers.get(self.url)) episodes = [] _all = soup.select("div.episode-wrap") for i in _all: ep_type = i.find("div", {"class": re.compile("ep-type type-.* dscd")}).text if ep_type == "Su...
def _scrape_episodes(self): version = self.config.get("version", "subbed") soup = helpers.soupify(helpers.get(self.url)) episodes = [] _all = soup.find_all("div", {"class": "episode-wrap"}) for i in _all: ep_type = i.find("div", {"class": re.compile("ep-type type-.* dscd")}).text i...
https://github.com/anime-dl/anime-downloader/issues/385
matt@matt:~$ anime -ll DEBUG dl 'penguin highway' --provider ryuanime 2020-05-31 19:09:54 matt.local anime_downloader.util[41614] INFO anime-downloader 4.3.0 2020-05-31 19:09:54 matt.local anime_downloader.util[41614] DEBUG Platform: macOS-10.14.6-x86_64-i386-64bit 2020-05-31 19:09:54 matt.local anime_downloader.util[4...
json.decoder.JSONDecodeError
def _get_sources(self): server = self.config.get("server", "trollvid") resp = helpers.get(self.url).text hosts = json.loads(re.search("var\s+episode\s+=\s+({.*})", resp).group(1))["videos"] _type = hosts[0]["type"] try: host = list( filter( lambda video: video["ho...
def _get_sources(self): server = self.config.get("server", "trollvid") soup = helpers.soupify(helpers.get(self.url)) hosts = json.loads( soup.find("div", {"class": "spatry"}).previous_sibling.previous_sibling.text[ 21:-2 ] )["videos"] _type = hosts[0]["type"] try: ...
https://github.com/anime-dl/anime-downloader/issues/385
matt@matt:~$ anime -ll DEBUG dl 'penguin highway' --provider ryuanime 2020-05-31 19:09:54 matt.local anime_downloader.util[41614] INFO anime-downloader 4.3.0 2020-05-31 19:09:54 matt.local anime_downloader.util[41614] DEBUG Platform: macOS-10.14.6-x86_64-i386-64bit 2020-05-31 19:09:54 matt.local anime_downloader.util[4...
json.decoder.JSONDecodeError
def search(cls, query): soup = helpers.soupify( helpers.get("https://www4.ryuanime.com/search", params={"term": query}) ) result_data = soup.select("ul.list-inline")[0].select("a") search_results = [ SearchResult(title=result.text, url=result.get("href")) for result in result_da...
def search(cls, query): results = helpers.get( "https://www4.ryuanime.com/search", params={"term": query} ).text soup = helpers.soupify(results) result_data = soup.find("ul", {"class": "list-inline"}).find_all("a") search_results = [ SearchResult(title=result.text, url=result.get("h...
https://github.com/anime-dl/anime-downloader/issues/385
matt@matt:~$ anime -ll DEBUG dl 'penguin highway' --provider ryuanime 2020-05-31 19:09:54 matt.local anime_downloader.util[41614] INFO anime-downloader 4.3.0 2020-05-31 19:09:54 matt.local anime_downloader.util[41614] DEBUG Platform: macOS-10.14.6-x86_64-i386-64bit 2020-05-31 19:09:54 matt.local anime_downloader.util[4...
json.decoder.JSONDecodeError
def _scrape_episodes(self): version = self.config.get("version", "subbed") soup = helpers.soupify(helpers.get(self.url)) ep_list = [ x for x in soup.select("div.col-sm-6") if x.find("h5").text == version.title() ][0].find_all("a") episodes = [x.get("href") for x in ep_list] if len(episo...
def _scrape_episodes(self): version = self.config.get("version", "subbed") soup = helpers.soupify(helpers.get(self.url)) ep_list = [ x for x in soup.find_all("div", {"class": "col-sm-6"}) if x.find("h5").text == version.title() ][0].find_all("a") episodes = [x.get("href") for...
https://github.com/anime-dl/anime-downloader/issues/385
matt@matt:~$ anime -ll DEBUG dl 'penguin highway' --provider ryuanime 2020-05-31 19:09:54 matt.local anime_downloader.util[41614] INFO anime-downloader 4.3.0 2020-05-31 19:09:54 matt.local anime_downloader.util[41614] DEBUG Platform: macOS-10.14.6-x86_64-i386-64bit 2020-05-31 19:09:54 matt.local anime_downloader.util[4...
json.decoder.JSONDecodeError
def _scrape_metadata(self): soup = helpers.soupify(helpers.get(self.url)) self.title = soup.select("div.card-header")[0].find("h1").text
def _scrape_metadata(self): soup = helpers.soupify(helpers.get(self.url)) self.title = soup.find("div", {"class": "card-header"}).find("h1").text
https://github.com/anime-dl/anime-downloader/issues/385
matt@matt:~$ anime -ll DEBUG dl 'penguin highway' --provider ryuanime 2020-05-31 19:09:54 matt.local anime_downloader.util[41614] INFO anime-downloader 4.3.0 2020-05-31 19:09:54 matt.local anime_downloader.util[41614] DEBUG Platform: macOS-10.14.6-x86_64-i386-64bit 2020-05-31 19:09:54 matt.local anime_downloader.util[4...
json.decoder.JSONDecodeError
def _get_sources(self): server = self.config.get("server", "trollvid") soup = helpers.soupify(helpers.get(self.url)) hosts = json.loads( re.search( "\[.*?\]", soup.select("div.col-sm-9")[0].select("script")[0].text ).group() ) _type = hosts[0]["type"] try: h...
def _get_sources(self): server = self.config.get("server", "trollvid") soup = helpers.soupify(helpers.get(self.url)) hosts = json.loads( soup.find("div", {"class": "col-sm-9"}).find("script").text[30:-6] ) _type = hosts[0]["type"] try: host = list( filter( ...
https://github.com/anime-dl/anime-downloader/issues/385
matt@matt:~$ anime -ll DEBUG dl 'penguin highway' --provider ryuanime 2020-05-31 19:09:54 matt.local anime_downloader.util[41614] INFO anime-downloader 4.3.0 2020-05-31 19:09:54 matt.local anime_downloader.util[41614] DEBUG Platform: macOS-10.14.6-x86_64-i386-64bit 2020-05-31 19:09:54 matt.local anime_downloader.util[4...
json.decoder.JSONDecodeError
def _get_ongoing_dict_key(self, result): if not isinstance(result, BaseResult): raise ValueError( "Any result using _get_ongoing_dict_key must subclass from " "BaseResult. Provided result is of type: %s" % type(result) ) key_parts = [] for result_property in [result.t...
def _get_ongoing_dict_key(self, result): if not isinstance(result, BaseResult): raise ValueError( "Any result using _get_ongoing_dict_key must subclass from " "BaseResult. Provided result is of type: %s" % type(result) ) return ":".join(str(el) for el in [result.transfer_...
https://github.com/aws/aws-cli/issues/2738
UnicodeEncodeError: 'ascii' codec can't encode character u'\u0303' in position 11: ordinal not in range(128) 2017-07-29 00:49:40,775 - Thread-1 - awscli.customizations.s3.results - DEBUG - Error processing result QueuedResult(transfer_type='upload' Traceback (most recent call last): File "/Users/jasonsturges/Library/P...
UnicodeEncodeError
def validate_arguments(self, args): """ Validates command line arguments using the retrieved information. """ if args.hostname: instances = self.opsworks.describe_instances(StackId=self._stack["StackId"])[ "Instances" ] if any(args.hostname.lower() == instance["Hostn...
def validate_arguments(self, args): """ Validates command line arguments using the retrieved information. """ if args.hostname: instances = self.opsworks.describe_instances(StackId=self._stack["StackId"])[ "Instances" ] if any(args.hostname.lower() == instance["Hostn...
https://github.com/aws/aws-cli/issues/2247
aws --debug opsworks register --infrastructure-class ec2 --override-hostname 'somehostname' --region us-east-1 --stack-id 'some-stack-id' --local --use-instance-profile 2016-10-22 18:05:56,267 - MainThread - awscli.clidriver - DEBUG - CLI version: aws-cli/1.11.8 Python/3.5.2 Linux/4.4.0-45-generic botocore/1.4.65 2016-...
TypeError
def __init__(self): # `autoreset` allows us to not have to sent reset sequences for every # string. `strip` lets us preserve color when redirecting. colorama.init(autoreset=True, strip=False)
def __init__(self): # autoreset allows us to not have to sent # reset sequences for every string. colorama.init(autoreset=True)
https://github.com/aws/aws-cli/issues/2043
root@jeff-desktop:~# pip install awscli Collecting awscli Downloading awscli-1.10.43-py2.py3-none-any.whl (969kB) 100% |████████████████████████████████| 972kB 1.9MB/s Exception: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/pip/req/req_install.py", line 1006, in check_if_exists self.satisfied...
AttributeError
def _send_output_to_pager(self, output): cmdline = self.get_pager_cmdline() if not self._exists_on_path(cmdline[0]): LOG.debug("Pager '%s' not found in PATH, printing raw help." % cmdline[0]) self.output_stream.write(output.decode("utf-8") + "\n") self.output_stream.flush() retur...
def _send_output_to_pager(self, output): cmdline = self.get_pager_cmdline() LOG.debug("Running command: %s", cmdline) with ignore_ctrl_c(): # We can't rely on the KeyboardInterrupt from # the CLIDriver being caught because when we # send the output to a pager it will use various ...
https://github.com/aws/aws-cli/issues/1957
root@redacted:~# aws --debug help 2016-05-05 16:32:19,477 - MainThread - awscli.clidriver - DEBUG - CLI version: aws-cli/1.10.25 Python/2.7.9 Linux/4.4.5-15.26.amzn1.x86_64 botocore/1.4.16 2016-05-05 16:32:19,477 - MainThread - awscli.clidriver - DEBUG - Arguments entered to CLI: ['--debug', 'help'] 2016-05-05 16:32:19...
OSError
def unify_paging_params(argument_table, operation_model, event_name, session, **kwargs): paginator_config = get_paginator_config( session, operation_model.service_model.service_name, operation_model.name ) if paginator_config is None: # We only apply these customizations to paginated respons...
def unify_paging_params(argument_table, operation_model, event_name, session, **kwargs): paginator_config = get_paginator_config( session, operation_model.service_model.service_name, operation_model.name ) if paginator_config is None: # We only apply these customizations to paginated respons...
https://github.com/aws/aws-cli/issues/1247
2015-03-26 06:10:27,908 - MainThread - awscli.clidriver - DEBUG - CLI version: aws-cli/1.7.16 Python/2.7.6 Linux/3.13.0-48-generic, botocore version: 0.97.0 2015-03-26 06:10:27,908 - MainThread - awscli.clidriver - DEBUG - Arguments entered to CLI: ['route53', 'list-resource-record-sets', '--hosted-zone-id', 'XYZABC', ...
ParamValidationError
def check_should_enable_pagination( input_tokens, shadowed_args, argument_table, parsed_args, parsed_globals, **kwargs ): normalized_paging_args = ["start_token", "max_items"] for token in input_tokens: py_name = token.replace("-", "_") if ( getattr(parsed_args, py_name) is not N...
def check_should_enable_pagination(input_tokens, parsed_args, parsed_globals, **kwargs): normalized_paging_args = ["start_token", "max_items"] for token in input_tokens: py_name = token.replace("-", "_") if ( getattr(parsed_args, py_name) is not None and py_name not in no...
https://github.com/aws/aws-cli/issues/1247
2015-03-26 06:10:27,908 - MainThread - awscli.clidriver - DEBUG - CLI version: aws-cli/1.7.16 Python/2.7.6 Linux/3.13.0-48-generic, botocore version: 0.97.0 2015-03-26 06:10:27,908 - MainThread - awscli.clidriver - DEBUG - Arguments entered to CLI: ['route53', 'list-resource-record-sets', '--hosted-zone-id', 'XYZABC', ...
ParamValidationError
def add_to_params(self, parameters, value): if value: try: if value == "-1" or value == "all": fromstr = "-1" tostr = "-1" elif "-" in value: # We can get away with simple logic here because # argparse will not allow val...
def add_to_params(self, parameters, value): if value: try: if value == "-1" or value == "all": fromstr = "-1" tostr = "-1" elif "-" in value: fromstr, tostr = value.split("-") else: fromstr, tostr = (value, v...
https://github.com/aws/aws-cli/issues/1075
2014-12-30 15:27:33,378 - MainThread - awscli.clidriver - DEBUG - CLI version: aws-cli/1.6.10 Python/2.7.8 Linux/3.17.7-300.fc21.x86_64, botocore version: 0.80.0 2014-12-30 15:27:33,378 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function add_scalar_parsers at 0x7fa461ddded8> 201...
ClientError
def save_file(self, parsed, **kwargs): if self._response_key not in parsed: # If the response key is not in parsed, then # we've received an error message and we'll let the AWS CLI # error handler print out an error message. We have no # file to save in this situation. retur...
def save_file(self, parsed, **kwargs): body = parsed[self._response_key] buffer_size = self._buffer_size with open(self._output_file, "wb") as fp: data = body.read(buffer_size) while data: fp.write(data) data = body.read(buffer_size) # We don't want to include the...
https://github.com/aws/aws-cli/issues/1006
685b3588202f:lego_iam maitreyr$ aws s3api get-object --bucket maitreyr-kms-test --key ngc6960_FinalPugh900.jpg ./ngc.jpg --debug 2014-11-16 10:58:31,128 - MainThread - awscli.clidriver - DEBUG - CLI version: aws-cli/1.6.2 Python/2.7.6 Darwin/13.4.0, botocore version: 0.73.0 2014-11-16 10:58:31,128 - MainThread - botoco...
KeyError
def _complete_command(self): retval = [] if self.current_word == self.command_name: if self.command_hc: retval = self.command_hc.command_table.keys() elif self.current_word.startswith("-"): retval = self._find_possible_options() else: # See if they have entered a part...
def _complete_command(self): retval = [] if self.current_word == self.command_name: retval = self.command_hc.command_table.keys() elif self.current_word.startswith("-"): retval = self._find_possible_options() else: # See if they have entered a partial command name retval ...
https://github.com/aws/aws-cli/issues/309
$ aws emr Traceback (most recent call last): File "/usr/local/bin/aws_completer", line 22, in <module> awscli.completer.complete(cline, cpoint) File "/usr/local/lib/python2.7/dist-packages/awscli/completer.py", line 153, in complete choices = Completer().complete(cmdline, point) File "/usr/local/lib/python2.7/dist-pack...
AttributeError
def _process_command_line(self): # Process the command line and try to find: # - command_name # - subcommand_name # - words # - current_word # - previous_word # - non_options # - options self.command_name = None self.subcommand_name = None self.wor...
def _process_command_line(self): # Process the command line and try to find: # - command_name # - subcommand_name # - words # - current_word # - previous_word # - non_options # - options self.command_name = None self.subcommand_name = None self.wor...
https://github.com/aws/aws-cli/issues/309
$ aws emr Traceback (most recent call last): File "/usr/local/bin/aws_completer", line 22, in <module> awscli.completer.complete(cline, cpoint) File "/usr/local/lib/python2.7/dist-packages/awscli/completer.py", line 153, in complete choices = Completer().complete(cmdline, point) File "/usr/local/lib/python2.7/dist-pack...
AttributeError
def __init__( self, schema: BaseSchema, root_value: typing.Any = None, graphiql: bool = True, keep_alive: bool = False, keep_alive_interval: float = 1, debug: bool = False, ) -> None: self.schema = schema self.graphiql = graphiql self.root_value = root_value self.keep_alive =...
def __init__( self, schema: GraphQLSchema, root_value: typing.Any = None, graphiql: bool = True, keep_alive: bool = False, keep_alive_interval: float = 1, debug: bool = False, ) -> None: self.schema = schema self.graphiql = graphiql self.root_value = root_value self.keep_aliv...
https://github.com/strawberry-graphql/strawberry/issues/349
Traceback (most recent call last): File "/home/ignormies/.local/share/virtualenvs/gql-bf-XGX4szKA-py3.8/lib/python3.8/site-packages/graphql/type/definition.py", line 735, in fields fields = resolve_thunk(self._fields) File "/home/ignormies/.local/share/virtualenvs/gql-bf-XGX4szKA-py3.8/lib/python3.8/site-packages/graph...
AttributeError
async def start_subscription(self, data, operation_id: str, websocket: WebSocket): query = data["query"] variables = data.get("variables") operation_name = data.get("operation_name") if self.debug: pretty_print_graphql_operation(operation_name, query, variables) context = {"websocket": web...
async def start_subscription(self, data, operation_id: str, websocket: WebSocket): query = data["query"] variables = data.get("variables") operation_name = data.get("operation_name") if self.debug: pretty_print_graphql_operation(operation_name, query, variables) context = {"websocket": web...
https://github.com/strawberry-graphql/strawberry/issues/349
Traceback (most recent call last): File "/home/ignormies/.local/share/virtualenvs/gql-bf-XGX4szKA-py3.8/lib/python3.8/site-packages/graphql/type/definition.py", line 735, in fields fields = resolve_thunk(self._fields) File "/home/ignormies/.local/share/virtualenvs/gql-bf-XGX4szKA-py3.8/lib/python3.8/site-packages/graph...
AttributeError
async def execute(self, query, variables=None, context=None, operation_name=None): if self.debug: pretty_print_graphql_operation(operation_name, query, variables) return await self.schema.execute( query, root_value=self.root_value, variable_values=variables, operation_na...
async def execute(self, query, variables=None, context=None, operation_name=None): if self.debug: pretty_print_graphql_operation(operation_name, query, variables) return await execute( self.schema, query, root_value=self.root_value, variable_values=variables, ope...
https://github.com/strawberry-graphql/strawberry/issues/349
Traceback (most recent call last): File "/home/ignormies/.local/share/virtualenvs/gql-bf-XGX4szKA-py3.8/lib/python3.8/site-packages/graphql/type/definition.py", line 735, in fields fields = resolve_thunk(self._fields) File "/home/ignormies/.local/share/virtualenvs/gql-bf-XGX4szKA-py3.8/lib/python3.8/site-packages/graph...
AttributeError
def run(): # pragma: no cover pass
def run(): pass
https://github.com/strawberry-graphql/strawberry/issues/349
Traceback (most recent call last): File "/home/ignormies/.local/share/virtualenvs/gql-bf-XGX4szKA-py3.8/lib/python3.8/site-packages/graphql/type/definition.py", line 735, in fields fields = resolve_thunk(self._fields) File "/home/ignormies/.local/share/virtualenvs/gql-bf-XGX4szKA-py3.8/lib/python3.8/site-packages/graph...
AttributeError
def _process_scalar( cls, *, name: str, description: str, serialize: Callable, parse_value: Callable, parse_literal: Callable, ): name = name or to_camel_case(cls.__name__) wrapper = ScalarWrapper(cls) wrapper._scalar_definition = ScalarDefinition( name=name, des...
def _process_scalar(cls, *, name, description, serialize, parse_value, parse_literal): if name is None: name = cls.__name__ graphql_type = GraphQLScalarType( name=name, description=description, serialize=serialize, parse_value=parse_value, parse_literal=parse_lit...
https://github.com/strawberry-graphql/strawberry/issues/349
Traceback (most recent call last): File "/home/ignormies/.local/share/virtualenvs/gql-bf-XGX4szKA-py3.8/lib/python3.8/site-packages/graphql/type/definition.py", line 735, in fields fields = resolve_thunk(self._fields) File "/home/ignormies/.local/share/virtualenvs/gql-bf-XGX4szKA-py3.8/lib/python3.8/site-packages/graph...
AttributeError
def scalar( cls=None, *, name: str = None, description: str = None, serialize: Callable = identity, parse_value: Optional[Callable] = None, parse_literal: Optional[Callable] = None, ): """Annotates a class or type as a GraphQL custom scalar. Example usages: >>> strawberry.scala...
def scalar( cls=None, *, name=None, description=None, serialize=identity, parse_value=None, parse_literal=None, ): """Annotates a class or type as a GraphQL custom scalar. Example usages: >>> strawberry.scalar( >>> datetime.date, >>> serialize=lambda value: valu...
https://github.com/strawberry-graphql/strawberry/issues/349
Traceback (most recent call last): File "/home/ignormies/.local/share/virtualenvs/gql-bf-XGX4szKA-py3.8/lib/python3.8/site-packages/graphql/type/definition.py", line 735, in fields fields = resolve_thunk(self._fields) File "/home/ignormies/.local/share/virtualenvs/gql-bf-XGX4szKA-py3.8/lib/python3.8/site-packages/graph...
AttributeError
def directive(*, locations: List[DirectiveLocation], description=None, name=None): def _wrap(f): directive_name = name or to_camel_case(f.__name__) f.directive_definition = DirectiveDefinition( name=directive_name, locations=locations, description=description, ...
def directive( *, locations: typing.List[DirectiveLocation], description=None, name=None ): def _wrap(func): directive_name = name or to_camel_case(func.__name__) func.directive = GraphQLDirective( name=directive_name, locations=locations, args=_get_arguments...
https://github.com/strawberry-graphql/strawberry/issues/349
Traceback (most recent call last): File "/home/ignormies/.local/share/virtualenvs/gql-bf-XGX4szKA-py3.8/lib/python3.8/site-packages/graphql/type/definition.py", line 735, in fields fields = resolve_thunk(self._fields) File "/home/ignormies/.local/share/virtualenvs/gql-bf-XGX4szKA-py3.8/lib/python3.8/site-packages/graph...
AttributeError
def _wrap(f): directive_name = name or to_camel_case(f.__name__) f.directive_definition = DirectiveDefinition( name=directive_name, locations=locations, description=description, resolver=f, ) return f
def _wrap(func): directive_name = name or to_camel_case(func.__name__) func.directive = GraphQLDirective( name=directive_name, locations=locations, args=_get_arguments(func), description=description, ) DIRECTIVE_REGISTRY[directive_name] = func return func
https://github.com/strawberry-graphql/strawberry/issues/349
Traceback (most recent call last): File "/home/ignormies/.local/share/virtualenvs/gql-bf-XGX4szKA-py3.8/lib/python3.8/site-packages/graphql/type/definition.py", line 735, in fields fields = resolve_thunk(self._fields) File "/home/ignormies/.local/share/virtualenvs/gql-bf-XGX4szKA-py3.8/lib/python3.8/site-packages/graph...
AttributeError
def __init__(self, schema: BaseSchema, graphiql=True): self.schema = schema self.graphiql = graphiql
def __init__(self, schema=None, graphiql=True): if not schema: raise ValueError("You must pass in a schema to GraphQLView") if not isinstance(schema, GraphQLSchema): raise ValueError("You must pass in a valid schema to GraphQLView") self.schema = schema self.graphiql = graphiql
https://github.com/strawberry-graphql/strawberry/issues/349
Traceback (most recent call last): File "/home/ignormies/.local/share/virtualenvs/gql-bf-XGX4szKA-py3.8/lib/python3.8/site-packages/graphql/type/definition.py", line 735, in fields fields = resolve_thunk(self._fields) File "/home/ignormies/.local/share/virtualenvs/gql-bf-XGX4szKA-py3.8/lib/python3.8/site-packages/graph...
AttributeError
def dispatch(self, request, *args, **kwargs): if request.method.lower() not in ("get", "post"): return HttpResponseNotAllowed( ["GET", "POST"], "GraphQL only supports GET and POST requests." ) if "text/html" in request.META.get("HTTP_ACCEPT", ""): if not self.graphiql: ...
def dispatch(self, request, *args, **kwargs): if request.method.lower() not in ("get", "post"): return HttpResponseNotAllowed( ["GET", "POST"], "GraphQL only supports GET and POST requests." ) if "text/html" in request.META.get("HTTP_ACCEPT", ""): if not self.graphiql: ...
https://github.com/strawberry-graphql/strawberry/issues/349
Traceback (most recent call last): File "/home/ignormies/.local/share/virtualenvs/gql-bf-XGX4szKA-py3.8/lib/python3.8/site-packages/graphql/type/definition.py", line 735, in fields fields = resolve_thunk(self._fields) File "/home/ignormies/.local/share/virtualenvs/gql-bf-XGX4szKA-py3.8/lib/python3.8/site-packages/graph...
AttributeError
def _process_enum(cls, name=None, description=None): if not isinstance(cls, EnumMeta): raise NotAnEnum() if not name: name = cls.__name__ description = description cls._enum_definition = EnumDefinition( name=name, values=[EnumValue(item.name, item.value) for item in cl...
def _process_enum(cls, name=None, description=None): if not isinstance(cls, EnumMeta): raise NotAnEnum() if not name: name = cls.__name__ description = description or cls.__doc__ graphql_type = GraphQLEnumType( name=name, values=[(item.name, GraphQLEnumValue(item.value...
https://github.com/strawberry-graphql/strawberry/issues/349
Traceback (most recent call last): File "/home/ignormies/.local/share/virtualenvs/gql-bf-XGX4szKA-py3.8/lib/python3.8/site-packages/graphql/type/definition.py", line 735, in fields fields = resolve_thunk(self._fields) File "/home/ignormies/.local/share/virtualenvs/gql-bf-XGX4szKA-py3.8/lib/python3.8/site-packages/graph...
AttributeError
def __init__(self, field_name: str, annotation): message = ( f'The type "{annotation.__name__}" of the field "{field_name}" ' f"is generic, but no type has been passed" ) super().__init__(message)
def __init__(self, field_name: str, annotation): message = ( f'The type "{annotation}" of the field "{field_name}" ' f"is generic, but no type has been passed" ) super().__init__(message)
https://github.com/strawberry-graphql/strawberry/issues/349
Traceback (most recent call last): File "/home/ignormies/.local/share/virtualenvs/gql-bf-XGX4szKA-py3.8/lib/python3.8/site-packages/graphql/type/definition.py", line 735, in fields fields = resolve_thunk(self._fields) File "/home/ignormies/.local/share/virtualenvs/gql-bf-XGX4szKA-py3.8/lib/python3.8/site-packages/graph...
AttributeError
def type( cls: Type = None, *, name: str = None, description: str = None, keys: List[str] = None, extend: bool = False, ): return base_type( cls, name=name, description=description, federation=FederationTypeParams(keys=keys or [], extend=extend), )
def type(cls=None, *args, **kwargs): def wrap(cls): keys = kwargs.pop("keys", []) extend = kwargs.pop("extend", False) wrapped = _process_type(cls, *args, **kwargs) wrapped._federation_keys = keys wrapped._federation_extend = extend return wrapped if cls is Non...
https://github.com/strawberry-graphql/strawberry/issues/349
Traceback (most recent call last): File "/home/ignormies/.local/share/virtualenvs/gql-bf-XGX4szKA-py3.8/lib/python3.8/site-packages/graphql/type/definition.py", line 735, in fields fields = resolve_thunk(self._fields) File "/home/ignormies/.local/share/virtualenvs/gql-bf-XGX4szKA-py3.8/lib/python3.8/site-packages/graph...
AttributeError
def field( f=None, *, name: Optional[str] = None, provides: Optional[List[str]] = None, requires: Optional[List[str]] = None, external: bool = False, is_subscription: bool = False, description: Optional[str] = None, resolver: Optional[Callable] = None, permission_classes: Optiona...
def field(wrap=None, *args, **kwargs): field = strawberry_federation_field(*args, **kwargs) if wrap is None: return field return field(wrap)
https://github.com/strawberry-graphql/strawberry/issues/349
Traceback (most recent call last): File "/home/ignormies/.local/share/virtualenvs/gql-bf-XGX4szKA-py3.8/lib/python3.8/site-packages/graphql/type/definition.py", line 735, in fields fields = resolve_thunk(self._fields) File "/home/ignormies/.local/share/virtualenvs/gql-bf-XGX4szKA-py3.8/lib/python3.8/site-packages/graph...
AttributeError
def _get_entity_type(type_map: TypeMap): # https://www.apollographql.com/docs/apollo-server/federation/federation-spec/#resolve-requests-for-entities # To implement the _Entity union, each type annotated with @key # should be added to the _Entity union. federation_key_types = [ type.implementa...
def _get_entity_type(self): # https://www.apollographql.com/docs/apollo-server/federation/federation-spec/#resolve-requests-for-entities # To implement the _Entity union, each type annotated with @key # should be added to the _Entity union. federation_key_types = [ graphql_type for gra...
https://github.com/strawberry-graphql/strawberry/issues/349
Traceback (most recent call last): File "/home/ignormies/.local/share/virtualenvs/gql-bf-XGX4szKA-py3.8/lib/python3.8/site-packages/graphql/type/definition.py", line 735, in fields fields = resolve_thunk(self._fields) File "/home/ignormies/.local/share/virtualenvs/gql-bf-XGX4szKA-py3.8/lib/python3.8/site-packages/graph...
AttributeError
def _resolve_type(self, value, _type): return type_map[self._type_definition.name].implementation
def _resolve_type(self, value, _type): return self.graphql_type
https://github.com/strawberry-graphql/strawberry/issues/349
Traceback (most recent call last): File "/home/ignormies/.local/share/virtualenvs/gql-bf-XGX4szKA-py3.8/lib/python3.8/site-packages/graphql/type/definition.py", line 735, in fields fields = resolve_thunk(self._fields) File "/home/ignormies/.local/share/virtualenvs/gql-bf-XGX4szKA-py3.8/lib/python3.8/site-packages/graph...
AttributeError