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 show_config(config): parser = configparser.RawConfigParser() if not config.envlist_explicit or reporter.verbosity() >= reporter.Verbosity.INFO: tox_info(config, parser) version_info(parser) tox_envs_info(config, parser) content = StringIO() parser.write(content) value = con...
def show_config(config): parser = configparser.ConfigParser() if not config.envlist_explicit or reporter.verbosity() >= reporter.Verbosity.INFO: tox_info(config, parser) version_info(parser) tox_envs_info(config, parser) content = StringIO() parser.write(content) value = conten...
https://github.com/tox-dev/tox/issues/1584
test git:(master) βœ— do_not_interpolate=test tox --showconfig -rvv -e test using tox.ini: /home/avass/git/opendev/zuul/zuul-jobs/test/tox.ini (pid 1006532) removing /home/avass/git/opendev/zuul/zuul-jobs/test/.tox/log using tox-3.11.0 from /home/avass/.local/lib/python3.7/site-packages/tox/__init__.py (pid 1006532) Trac...
ValueError
def tox_addoption(parser): parser.add_argument( "--version", action="store_true", help="report version information to stdout." ) parser.add_argument( "-h", "--help", action="store_true", help="show help about options" ) parser.add_argument( "--help-ini", "--hi", ...
def tox_addoption(parser): parser.add_argument( "--version", action="store_true", help="report version information to stdout." ) parser.add_argument( "-h", "--help", action="store_true", help="show help about options" ) parser.add_argument( "--help-ini", "--hi", ...
https://github.com/tox-dev/tox/issues/1444
$ tox -p all β Έ [3] py36 | py37 | py38ERROR: invocation failed (exit code 1), logfile: /home/churchyard/tmp/totox/.tox/py37/log/py37-5.log =================================================== log start =================================================== py37 run-test-pre: PYTHONHASHSEED='1114882869' py37 run-test: comman...
AssertionError
def passenv(testenv_config, value): # Flatten the list to deal with space-separated values. value = list(itertools.chain.from_iterable([x.split(" ") for x in value])) passenv = { "PATH", "PIP_INDEX_URL", "LANG", "LANGUAGE", "LD_LIBRARY_PATH", "TOX_WORK_DIR", ...
def passenv(testenv_config, value): # Flatten the list to deal with space-separated values. value = list(itertools.chain.from_iterable([x.split(" ") for x in value])) passenv = { "PATH", "PIP_INDEX_URL", "LANG", "LANGUAGE", "LD_LIBRARY_PATH", "TOX_WORK_DIR", ...
https://github.com/tox-dev/tox/issues/1444
$ tox -p all β Έ [3] py36 | py37 | py38ERROR: invocation failed (exit code 1), logfile: /home/churchyard/tmp/totox/.tox/py37/log/py37-5.log =================================================== log start =================================================== py37 run-test-pre: PYTHONHASHSEED='1114882869' py37 run-test: comman...
AssertionError
def __init__(self, config, ini_path, ini_data): # noqa config.toxinipath = ini_path using("tox.ini: {} (pid {})".format(config.toxinipath, os.getpid())) config.toxinidir = config.toxinipath.dirpath() self._cfg = py.iniconfig.IniConfig(config.toxinipath, ini_data) previous_line_of = self._cfg.lineo...
def __init__(self, config, ini_path, ini_data): # noqa config.toxinipath = ini_path using("tox.ini: {} (pid {})".format(config.toxinipath, os.getpid())) config.toxinidir = config.toxinipath.dirpath() self._cfg = py.iniconfig.IniConfig(config.toxinipath, ini_data) previous_line_of = self._cfg.lineo...
https://github.com/tox-dev/tox/issues/1444
$ tox -p all β Έ [3] py36 | py37 | py38ERROR: invocation failed (exit code 1), logfile: /home/churchyard/tmp/totox/.tox/py37/log/py37-5.log =================================================== log start =================================================== py37 run-test-pre: PYTHONHASHSEED='1114882869' py37 run-test: comman...
AssertionError
def _getenvdata(self, reader, config): from_option = self.config.option.env from_environ = os.environ.get("TOXENV") from_config = reader.getstring("envlist", replace=False) env_list = [] envlist_explicit = False if (from_option and "ALL" in from_option) or ( not from_option and from_env...
def _getenvdata(self, reader, config): from_option = self.config.option.env from_environ = os.environ.get("TOXENV") from_config = reader.getstring("envlist", replace=False) env_list = [] envlist_explicit = False if (from_option and "ALL" in from_option) or ( not from_option and from_env...
https://github.com/tox-dev/tox/issues/1444
$ tox -p all β Έ [3] py36 | py37 | py38ERROR: invocation failed (exit code 1), logfile: /home/churchyard/tmp/totox/.tox/py37/log/py37-5.log =================================================== log start =================================================== py37 run-test-pre: PYTHONHASHSEED='1114882869' py37 run-test: comman...
AssertionError
def _summary(self): is_parallel_child = PARALLEL_ENV_VAR_KEY_PRIVATE in os.environ if not is_parallel_child: reporter.separator("_", "summary", reporter.Verbosity.QUIET) exit_code = 0 for venv in self.venv_dict.values(): report = reporter.good status = getattr(venv, "status", "un...
def _summary(self): is_parallel_child = PARALLEL_ENV_VAR_KEY in os.environ if not is_parallel_child: reporter.separator("_", "summary", reporter.Verbosity.QUIET) exit_code = 0 for venv in self.venv_dict.values(): report = reporter.good status = getattr(venv, "status", "undefined"...
https://github.com/tox-dev/tox/issues/1444
$ tox -p all β Έ [3] py36 | py37 | py38ERROR: invocation failed (exit code 1), logfile: /home/churchyard/tmp/totox/.tox/py37/log/py37-5.log =================================================== log start =================================================== py37 run-test-pre: PYTHONHASHSEED='1114882869' py37 run-test: comman...
AssertionError
def run_parallel(config, venv_dict): """here we'll just start parallel sub-processes""" live_out = config.option.parallel_live disable_spinner = bool(os.environ.get("TOX_PARALLEL_NO_SPINNER") == "1") args = [sys.executable, MAIN_FILE] + config.args try: position = args.index("--") except...
def run_parallel(config, venv_dict): """here we'll just start parallel sub-processes""" live_out = config.option.parallel_live disable_spinner = bool(os.environ.get("TOX_PARALLEL_NO_SPINNER") == "1") args = [sys.executable, MAIN_FILE] + config.args try: position = args.index("--") except...
https://github.com/tox-dev/tox/issues/1444
$ tox -p all β Έ [3] py36 | py37 | py38ERROR: invocation failed (exit code 1), logfile: /home/churchyard/tmp/totox/.tox/py37/log/py37-5.log =================================================== log start =================================================== py37 run-test-pre: PYTHONHASHSEED='1114882869' py37 run-test: comman...
AssertionError
def run_in_thread(tox_env, os_env, processes): output = None env_name = tox_env.envconfig.envname status = "skipped tests" if config.option.notest else None try: os_env[str(PARALLEL_ENV_VAR_KEY_PRIVATE)] = str(env_name) os_env[str(PARALLEL_ENV_VAR_KEY_PUBLIC)] = str(env_name) arg...
def run_in_thread(tox_env, os_env, processes): output = None env_name = tox_env.envconfig.envname status = "skipped tests" if config.option.notest else None try: os_env[str(PARALLEL_ENV_VAR_KEY)] = str(env_name) args_sub = list(args) if hasattr(tox_env, "package"): ar...
https://github.com/tox-dev/tox/issues/1444
$ tox -p all β Έ [3] py36 | py37 | py38ERROR: invocation failed (exit code 1), logfile: /home/churchyard/tmp/totox/.tox/py37/log/py37-5.log =================================================== log start =================================================== py37 run-test-pre: PYTHONHASHSEED='1114882869' py37 run-test: comman...
AssertionError
def cleanup_for_venv(venv): within_parallel = PARALLEL_ENV_VAR_KEY_PRIVATE in os.environ # if the directory exists and it doesn't look like a virtualenv, produce # an error if venv.path.exists(): dir_items = set(os.listdir(str(venv.path))) - {".lock", "log"} dir_items = { p f...
def cleanup_for_venv(venv): within_parallel = PARALLEL_ENV_VAR_KEY in os.environ # if the directory exists and it doesn't look like a virtualenv, produce # an error if venv.path.exists(): dir_items = set(os.listdir(str(venv.path))) - {".lock", "log"} dir_items = { p for p in ...
https://github.com/tox-dev/tox/issues/1444
$ tox -p all β Έ [3] py36 | py37 | py38ERROR: invocation failed (exit code 1), logfile: /home/churchyard/tmp/totox/.tox/py37/log/py37-5.log =================================================== log start =================================================== py37 run-test-pre: PYTHONHASHSEED='1114882869' py37 run-test: comman...
AssertionError
def process_set(hive, hive_name, key, flags, default_arch): try: with winreg.OpenKeyEx(hive, key, 0, winreg.KEY_READ | flags) as root_key: for company in enum_keys(root_key): if company == "PyLauncher": # reserved continue for spec in process_...
def process_set(hive, hive_name, key, flags, default_arch): try: with winreg.OpenKeyEx(hive, key, access=winreg.KEY_READ | flags) as root_key: for company in enum_keys(root_key): if company == "PyLauncher": # reserved continue for spec in proc...
https://github.com/tox-dev/tox/issues/1315
$ tox -e py37 GLOB sdist-make: C:\Users\Anthony\AppData\Local\Temp\x\tox\aspy.yaml\setup.py py37 create: C:\Users\Anthony\AppData\Local\Temp\x\tox\aspy.yaml\.tox\py37 ___________________________________ summary ___________________________________ py37: commands succeeded congratulations :) Traceback (most recent call l...
ImportError
def run_and_get_interpreter_info(name, executable): assert executable try: result = exec_on_interpreter(str(executable), VERSION_QUERY_SCRIPT) result["version_info"] = tuple( result["version_info"] ) # fix json dump transformation del result["name"] del resul...
def run_and_get_interpreter_info(name, executable): assert executable try: result = exec_on_interpreter(str(executable), VERSION_QUERY_SCRIPT) result["version_info"] = tuple( result["version_info"] ) # fix json dump transformation del result["name"] del resul...
https://github.com/tox-dev/tox/issues/1300
using tox.ini: /home/asw/dev/amazepackage/tox.ini (pid 42122) removing /home/asw/dev/amazepackage/.tox/log using tox-3.8.0 from /usr/lib/python2.7/site-packages/tox/__init__.pyc (pid 42122) skipping sdist step secretpy27 start: getenv /home/asw/dev/amazepackage/.tox/secretpy27 secretpy27 cannot reuse: -r flag secretpy2...
ImportError
def set_python_info(self, python_executable): cmd = [str(python_executable), VERSION_QUERY_SCRIPT] result = subprocess.check_output(cmd, universal_newlines=True) answer = json.loads(result) answer["executable"] = python_executable self.dict["python"] = answer
def set_python_info(self, python_executable): cmd = [str(python_executable), VERSION_QUERY_SCRIPT] result = subprocess.check_output(cmd, universal_newlines=True) answer = json.loads(result) self.dict["python"] = answer
https://github.com/tox-dev/tox/issues/1300
using tox.ini: /home/asw/dev/amazepackage/tox.ini (pid 42122) removing /home/asw/dev/amazepackage/.tox/log using tox-3.8.0 from /usr/lib/python2.7/site-packages/tox/__init__.pyc (pid 42122) skipping sdist step secretpy27 start: getenv /home/asw/dev/amazepackage/.tox/secretpy27 secretpy27 cannot reuse: -r flag secretpy2...
ImportError
def parse_build_isolation(self, config, reader): config.isolated_build = reader.getbool("isolated_build", False) config.isolated_build_env = reader.getstring("isolated_build_env", ".package") if config.isolated_build is True: name = config.isolated_build_env section_name = "testenv:{}".forma...
def parse_build_isolation(self, config, reader): config.isolated_build = reader.getbool("isolated_build", False) config.isolated_build_env = reader.getstring("isolated_build_env", ".package") if config.isolated_build is True: name = config.isolated_build_env section_name = "testenv:{}".forma...
https://github.com/tox-dev/tox/issues/1239
$ tox -e metadata-validation --notest -vv using tox.ini: ~/src/github/ansible/molecule/tox.ini (pid 8030) removing ~/src/github/ansible/molecule/.tox/log using tox-3.8.4 from ~/.pyenv/versions/3.7.1/lib/python3.7/site-packages/tox/__init__.py (pid 8030) .package start: getenv ~/src/github/ansible/molecule/.tox/.package...
pkg_resources.RequirementParseError
def main(args): setup_reporter(args) try: config = load_config(args) config.logdir.ensure(dir=1) ensure_empty_dir(config.logdir) with set_os_env_var("TOX_WORK_DIR", config.toxworkdir): session = build_session(config) exit_code = session.runcommand() ...
def main(args): setup_reporter(args) try: config = load_config(args) config.logdir.ensure(dir=1) ensure_empty_dir(config.logdir) with set_os_env_var("TOX_WORK_DIR", config.toxworkdir): session = build_session(config) retcode = session.runcommand() ...
https://github.com/tox-dev/tox/issues/1228
========================================================= FAILURES ========================================================== ______________________________________________ test_init_sets_given_attributes ______________________________________________ def test_init_sets_given_attributes(): group = models.Group(name="M...
tox.exception.InvocationError
def runcommand(self): reporter.using( "tox-{} from {} (pid {})".format(tox.__version__, tox.__file__, os.getpid()) ) show_description = reporter.has_level(reporter.Verbosity.DEFAULT) if self.config.run_provision: provision_tox_venv = self.getvenv(self.config.provision_tox_env) re...
def runcommand(self): reporter.using( "tox-{} from {} (pid {})".format(tox.__version__, tox.__file__, os.getpid()) ) show_description = reporter.has_level(reporter.Verbosity.DEFAULT) if self.config.run_provision: provision_tox_venv = self.getvenv(self.config.provision_tox_env) pr...
https://github.com/tox-dev/tox/issues/1228
========================================================= FAILURES ========================================================== ______________________________________________ test_init_sets_given_attributes ______________________________________________ def test_init_sets_given_attributes(): group = models.Group(name="M...
tox.exception.InvocationError
def provision_tox(provision_venv, args): ensure_meta_env_up_to_date(provision_venv) with provision_venv.new_action("provision") as action: provision_args = [str(provision_venv.envconfig.envpython), "-m", "tox"] + args try: action.popen(provision_args, redirect=False, report_fail=Fals...
def provision_tox(provision_venv, args): ensure_meta_env_up_to_date(provision_venv) with provision_venv.new_action("provision") as action: provision_args = [str(provision_venv.envconfig.envpython), "-m", "tox"] + args action.popen(provision_args, redirect=False)
https://github.com/tox-dev/tox/issues/1228
========================================================= FAILURES ========================================================== ______________________________________________ test_init_sets_given_attributes ______________________________________________ def test_init_sets_given_attributes(): group = models.Group(name="M...
tox.exception.InvocationError
def tox_addoption(parser): parser.add_argument( "--version", action="store_true", dest="version", help="report version information to stdout.", ) parser.add_argument( "-h", "--help", action="store_true", dest="help", help="show help about options" ) parser.add...
def tox_addoption(parser): parser.add_argument( "--version", action="store_true", dest="version", help="report version information to stdout.", ) parser.add_argument( "-h", "--help", action="store_true", dest="help", help="show help about options" ) parser.add...
https://github.com/tox-dev/tox/issues/1227
ci\appveyor\build.cmd py -3.5 -m tox Using default MSVC build environment C:\Python35-x64\lib\site-packages\tox\config\__init__.py:576: UserWarning: conflicting basepython version (set 36, should be 27) for env 'py27-test-deps';resolve conflict or set ignore_basepython_conflict proposed_version, implied_version, testen...
TypeError
def basepython_default(testenv_config, value): """either user set or proposed from the factor name in both cases we check that the factor name implied python version and the resolved python interpreter version match up; if they don't we warn, unless ignore base python conflict is set in which case the ...
def basepython_default(testenv_config, value): """either user set or proposed from the factor name in both cases we check that the factor name implied python version and the resolved python interpreter version match up; if they don't we warn, unless ignore base python conflict is set in which case the ...
https://github.com/tox-dev/tox/issues/1227
ci\appveyor\build.cmd py -3.5 -m tox Using default MSVC build environment C:\Python35-x64\lib\site-packages\tox\config\__init__.py:576: UserWarning: conflicting basepython version (set 36, should be 27) for env 'py27-test-deps';resolve conflict or set ignore_basepython_conflict proposed_version, implied_version, testen...
TypeError
def _file_support_encoding(chars, file): encoding = getattr(file, "encoding", None) if encoding is not None: for char in chars: try: char.encode(encoding) except UnicodeEncodeError: break else: return True return False
def _file_support_encoding(chars, file): encoding = getattr(file, "encoding", None) if encoding is not None: for char in chars: try: char.encode(encoding) except UnicodeDecodeError: break else: return True return False
https://github.com/tox-dev/tox/issues/1223
Traceback (most recent call last): File "/usr/local/bin/tox", line 11, in <module> sys.exit(cmdline()) File "/usr/local/lib/python3.5/dist-packages/tox/session/__init__.py", line 42, in cmdline main(args) File "/usr/local/lib/python3.5/dist-packages/tox/session/__init__.py", line 63, in main retcode = session.runcomman...
UnicodeEncodeError
def _needs_reinstall(self, setupdir, action): setup_py = setupdir.join("setup.py") setup_cfg = setupdir.join("setup.cfg") args = [self.envconfig.envpython, str(setup_py), "--name"] env = self._get_os_environ() output = action.popen(args, cwd=setupdir, redirect=False, returnout=True, env=env) nam...
def _needs_reinstall(self, setupdir, action): setup_py = setupdir.join("setup.py") setup_cfg = setupdir.join("setup.cfg") args = [self.envconfig.envpython, str(setup_py), "--name"] env = self._getenv() output = action.popen(args, cwd=setupdir, redirect=False, returnout=True, env=env) name = outp...
https://github.com/tox-dev/tox/issues/838
GLOB sdist-make: /tmp/foo/setup.py py36 inst-nodeps: /tmp/foo/.tox/dist/foo-0.0.0.zip ERROR: invocation failed (exit code 1), logfile: /tmp/foo/.tox/py36/log/py36-3.log ERROR: actionid: py36 msg: installpkg cmdargs: ['/tmp/foo/.tox/py36/bin/pip', 'install', '-U', '--no-deps', '/tmp/foo/.tox/dist/foo-0.0.0.zip'] Can no...
pip._internal.exceptions.InstallationError
def run_install_command(self, packages, action, options=()): def expand(val): # expand an install command if val == "{packages}": for package in packages: yield package elif val == "{opts}": for opt in options: yield opt else: ...
def run_install_command(self, packages, action, options=()): argv = self.envconfig.install_command[:] i = argv.index("{packages}") argv[i : i + 1] = packages if "{opts}" in argv: i = argv.index("{opts}") argv[i : i + 1] = list(options) for x in ( "PIP_RESPECT_VIRTUALENV", ...
https://github.com/tox-dev/tox/issues/838
GLOB sdist-make: /tmp/foo/setup.py py36 inst-nodeps: /tmp/foo/.tox/dist/foo-0.0.0.zip ERROR: invocation failed (exit code 1), logfile: /tmp/foo/.tox/py36/log/py36-3.log ERROR: actionid: py36 msg: installpkg cmdargs: ['/tmp/foo/.tox/py36/bin/pip', 'install', '-U', '--no-deps', '/tmp/foo/.tox/dist/foo-0.0.0.zip'] Can no...
pip._internal.exceptions.InstallationError
def _pcall( self, args, cwd, venv=True, is_test_command=False, action=None, redirect=True, ignore_ret=False, ): # construct environment variables os.environ.pop("VIRTUALENV_PYTHON", None) env = self._get_os_environ(is_test_command=is_test_command) bin_dir = str(self.envco...
def _pcall( self, args, cwd, venv=True, testcommand=False, action=None, redirect=True, ignore_ret=False, ): os.environ.pop("VIRTUALENV_PYTHON", None) cwd.ensure(dir=1) args[0] = self.getcommandpath(args[0], venv, cwd) if sys.platform != "win32" and "TOX_LIMITED_SHEBANG" ...
https://github.com/tox-dev/tox/issues/838
GLOB sdist-make: /tmp/foo/setup.py py36 inst-nodeps: /tmp/foo/.tox/dist/foo-0.0.0.zip ERROR: invocation failed (exit code 1), logfile: /tmp/foo/.tox/py36/log/py36-3.log ERROR: actionid: py36 msg: installpkg cmdargs: ['/tmp/foo/.tox/py36/bin/pip', 'install', '-U', '--no-deps', '/tmp/foo/.tox/dist/foo-0.0.0.zip'] Can no...
pip._internal.exceptions.InstallationError
def prepend_shebang_interpreter(args): # prepend interpreter directive (if any) to argument list # # When preparing virtual environments in a file container which has large # length, the system might not be able to invoke shebang scripts which # define interpreters beyond system limits (e.x. Linux a...
def prepend_shebang_interpreter(args): # prepend interpreter directive (if any) to argument list # # When preparing virtual environments in a file container which has large # length, the system might not be able to invoke shebang scripts which # define interpreters beyond system limits (e.x. Linux a...
https://github.com/tox-dev/tox/issues/931
(.venv) [vlotorev@cygnus-pc infra-ci-scripts]$ export TOX_LIMITED_SHEBANG=1 (.venv) [vlotorev@cygnus-pc infra-ci-scripts]$ tox ERROR: invocation failed (errno 2), args: [b'/homefs/vlotorev/projects/infra-ci-scripts/.tox/py34/bin/python3.4', '/homefs/vlotorev/projects/infra-ci-scripts/.tox/py34/bin/pip', 'freeze'], cwd:...
FileNotFoundError
def popen( self, args, cwd=None, env=None, redirect=True, returnout=False, ignore_ret=False ): stdout = outpath = None resultjson = self.session.config.option.resultjson if resultjson or redirect: fout = self._initlogpath(self.id) fout.write("actionid: %s\nmsg: %s\ncmdargs: %r\n\n" % (se...
def popen( self, args, cwd=None, env=None, redirect=True, returnout=False, ignore_ret=False ): stdout = outpath = None resultjson = self.session.config.option.resultjson if resultjson or redirect: fout = self._initlogpath(self.id) fout.write("actionid: %s\nmsg: %s\ncmdargs: %r\n\n" % (se...
https://github.com/tox-dev/tox/issues/426
Traceback (most recent call last): File "/home/devpi/devpi/bin/devpi", line 11, in <module> sys.exit(main()) File "/home/devpi/devpi/local/lib/python3.5/site-packages/devpi/main.py", line 30, in main return method(hub, hub.args) File "/home/devpi/devpi/local/lib/python3.5/site-packages/devpi/test.py", line 223, in main...
TypeError
def main(): version = sys.version_info[:2] virtualenv_open = ["virtualenv>=1.11.2"] virtualenv_capped = ["virtualenv>=1.11.2,<14"] install_requires = ["py>=1.4.17", "pluggy>=0.3.0,<1.0", "six"] extras_require = {} if has_environment_marker_support(): extras_require[':python_version=="2.6...
def main(): version = sys.version_info[:2] virtualenv_open = ["virtualenv>=1.11.2"] virtualenv_capped = ["virtualenv>=1.11.2,<14"] install_requires = ["py>=1.4.17", "pluggy>=0.3.0,<1.0", "six"] extras_require = {} if has_environment_marker_support(): extras_require[':python_version=="2.6...
https://github.com/tox-dev/tox/issues/651
running test running egg_info writing requirements to tox.egg-info/requires.txt writing tox.egg-info/PKG-INFO writing top-level names to tox.egg-info/top_level.txt writing dependency_links to tox.egg-info/dependency_links.txt writing entry points to tox.egg-info/entry_points.txt reading manifest file 'tox.egg-info/SOUR...
IOError
def getdict(self, name, default=None, sep="\n", replace=True): value = self.getstring(name, None, replace=replace) return self._getdict(value, default=default, sep=sep, replace=replace)
def getdict(self, name, default=None, sep="\n", replace=True): value = self.getstring(name, None, replace=replace) return self._getdict(value, default=default, sep=sep)
https://github.com/tox-dev/tox/issues/595
2017-09-01 18:22:20.661 | ++ lib/tempest:install_tempest:612 : pushd /opt/stack/new/tempest 2017-09-01 18:22:20.661 | ~/tempest ~/devstack 2017-09-01 18:22:20.662 | ++ lib/tempest:install_tempest:613 : tox -r --notest -efull 2017-09-01 18:22:21.720 | Traceback (most recent call last): 2017-09-01 1...
ValueError
def getdict_setenv(self, name, default=None, sep="\n", replace=True): value = self.getstring(name, None, replace=replace, crossonly=True) definitions = self._getdict(value, default=default, sep=sep, replace=replace) self._setenv = SetenvDict(definitions, reader=self) return self._setenv
def getdict_setenv(self, name, default=None, sep="\n", replace=True): value = self.getstring(name, None, replace=replace, crossonly=True) definitions = self._getdict(value, default=default, sep=sep) self._setenv = SetenvDict(definitions, reader=self) return self._setenv
https://github.com/tox-dev/tox/issues/595
2017-09-01 18:22:20.661 | ++ lib/tempest:install_tempest:612 : pushd /opt/stack/new/tempest 2017-09-01 18:22:20.661 | ~/tempest ~/devstack 2017-09-01 18:22:20.662 | ++ lib/tempest:install_tempest:613 : tox -r --notest -efull 2017-09-01 18:22:21.720 | Traceback (most recent call last): 2017-09-01 1...
ValueError
def _getdict(self, value, default, sep, replace=True): if value is None or not replace: return default or {} d = {} for line in value.split(sep): if line.strip(): name, rest = line.split("=", 1) d[name.strip()] = rest.strip() return d
def _getdict(self, value, default, sep): if value is None: return default or {} d = {} for line in value.split(sep): if line.strip(): name, rest = line.split("=", 1) d[name.strip()] = rest.strip() return d
https://github.com/tox-dev/tox/issues/595
2017-09-01 18:22:20.661 | ++ lib/tempest:install_tempest:612 : pushd /opt/stack/new/tempest 2017-09-01 18:22:20.661 | ~/tempest ~/devstack 2017-09-01 18:22:20.662 | ++ lib/tempest:install_tempest:613 : tox -r --notest -efull 2017-09-01 18:22:21.720 | Traceback (most recent call last): 2017-09-01 1...
ValueError
def getbool(self, name, default=None, replace=True): s = self.getstring(name, default, replace=replace) if not s or not replace: s = default if s is None: raise KeyError("no config value [%s] %s found" % (self.section_name, name)) if not isinstance(s, bool): if s.lower() == "tru...
def getbool(self, name, default=None, replace=True): s = self.getstring(name, default, replace=replace) if not s: s = default if s is None: raise KeyError("no config value [%s] %s found" % (self.section_name, name)) if not isinstance(s, bool): if s.lower() == "true": ...
https://github.com/tox-dev/tox/issues/595
2017-09-01 18:22:20.661 | ++ lib/tempest:install_tempest:612 : pushd /opt/stack/new/tempest 2017-09-01 18:22:20.661 | ~/tempest ~/devstack 2017-09-01 18:22:20.662 | ++ lib/tempest:install_tempest:613 : tox -r --notest -efull 2017-09-01 18:22:21.720 | Traceback (most recent call last): 2017-09-01 1...
ValueError
def __init__(self, envname, config, factors, reader): #: test environment name self.envname = envname #: global tox config object self.config = config #: set of factors self.factors = factors self._reader = reader self.missing_subs = [] """Holds substitutions that could not be resolv...
def __init__(self, envname, config, factors, reader): #: test environment name self.envname = envname #: global tox config object self.config = config #: set of factors self.factors = factors self._reader = reader
https://github.com/tox-dev/tox/issues/595
2017-09-01 18:22:20.661 | ++ lib/tempest:install_tempest:612 : pushd /opt/stack/new/tempest 2017-09-01 18:22:20.661 | ~/tempest ~/devstack 2017-09-01 18:22:20.662 | ++ lib/tempest:install_tempest:613 : tox -r --notest -efull 2017-09-01 18:22:21.720 | Traceback (most recent call last): 2017-09-01 1...
ValueError
def __init__(self, config, inipath): config.toxinipath = inipath config.toxinidir = config.toxinipath.dirpath() self._cfg = py.iniconfig.IniConfig(config.toxinipath) config._cfg = self._cfg self.config = config if inipath.basename == "setup.cfg": prefix = "tox" else: prefix...
def __init__(self, config, inipath): config.toxinipath = inipath config.toxinidir = config.toxinipath.dirpath() self._cfg = py.iniconfig.IniConfig(config.toxinipath) config._cfg = self._cfg self.config = config if inipath.basename == "setup.cfg": prefix = "tox" else: prefix...
https://github.com/tox-dev/tox/issues/595
2017-09-01 18:22:20.661 | ++ lib/tempest:install_tempest:612 : pushd /opt/stack/new/tempest 2017-09-01 18:22:20.661 | ~/tempest ~/devstack 2017-09-01 18:22:20.662 | ++ lib/tempest:install_tempest:613 : tox -r --notest -efull 2017-09-01 18:22:21.720 | Traceback (most recent call last): 2017-09-01 1...
ValueError
def make_envconfig(self, name, section, subs, config, replace=True): factors = set(name.split("-")) reader = SectionReader( section, self._cfg, fallbacksections=["testenv"], factors=factors ) tc = TestenvConfig(name, config, factors, reader) reader.addsubstitutions( envname=name, ...
def make_envconfig(self, name, section, subs, config, replace=True): factors = set(name.split("-")) reader = SectionReader( section, self._cfg, fallbacksections=["testenv"], factors=factors ) vc = TestenvConfig(config=config, envname=name, factors=factors, reader=reader) reader.addsubstituti...
https://github.com/tox-dev/tox/issues/595
2017-09-01 18:22:20.661 | ++ lib/tempest:install_tempest:612 : pushd /opt/stack/new/tempest 2017-09-01 18:22:20.661 | ~/tempest ~/devstack 2017-09-01 18:22:20.662 | ++ lib/tempest:install_tempest:613 : tox -r --notest -efull 2017-09-01 18:22:21.720 | Traceback (most recent call last): 2017-09-01 1...
ValueError
def _replace(self, value, name=None, section_name=None, crossonly=False): if "{" not in value: return value section_name = section_name if section_name else self.section_name self._subststack.append((section_name, name)) try: replaced = Replacer(self, crossonly=crossonly).do_replace(val...
def _replace(self, value, name=None, section_name=None, crossonly=False): if "{" not in value: return value section_name = section_name if section_name else self.section_name self._subststack.append((section_name, name)) try: return Replacer(self, crossonly=crossonly).do_replace(value) ...
https://github.com/tox-dev/tox/issues/595
2017-09-01 18:22:20.661 | ++ lib/tempest:install_tempest:612 : pushd /opt/stack/new/tempest 2017-09-01 18:22:20.661 | ~/tempest ~/devstack 2017-09-01 18:22:20.662 | ++ lib/tempest:install_tempest:613 : tox -r --notest -efull 2017-09-01 18:22:21.720 | Traceback (most recent call last): 2017-09-01 1...
ValueError
def _replace_env(self, match): envkey = match.group("substitution_value") if not envkey: raise tox.exception.ConfigError("env: requires an environment variable name") default = match.group("default_value") envvalue = self.reader.get_environ_value(envkey) if envvalue is not None: retu...
def _replace_env(self, match): envkey = match.group("substitution_value") if not envkey: raise tox.exception.ConfigError("env: requires an environment variable name") default = match.group("default_value") envvalue = self.reader.get_environ_value(envkey) if envvalue is None: if def...
https://github.com/tox-dev/tox/issues/595
2017-09-01 18:22:20.661 | ++ lib/tempest:install_tempest:612 : pushd /opt/stack/new/tempest 2017-09-01 18:22:20.661 | ~/tempest ~/devstack 2017-09-01 18:22:20.662 | ++ lib/tempest:install_tempest:613 : tox -r --notest -efull 2017-09-01 18:22:21.720 | Traceback (most recent call last): 2017-09-01 1...
ValueError
def setupenv(self, venv): if venv.envconfig.missing_subs: venv.status = ( "unresolvable substitution(s): %s. " "Environment variables are missing or defined recursively." % (",".join(["'%s'" % m for m in venv.envconfig.missing_subs])) ) return if not v...
def setupenv(self, venv): if not venv.matching_platform(): venv.status = "platform mismatch" return # we simply omit non-matching platforms action = self.newaction(venv, "getenv", venv.envconfig.envdir) with action: venv.status = 0 envlog = self.resultlog.get_envlog(venv.nam...
https://github.com/tox-dev/tox/issues/595
2017-09-01 18:22:20.661 | ++ lib/tempest:install_tempest:612 : pushd /opt/stack/new/tempest 2017-09-01 18:22:20.661 | ~/tempest ~/devstack 2017-09-01 18:22:20.662 | ++ lib/tempest:install_tempest:613 : tox -r --notest -efull 2017-09-01 18:22:21.720 | Traceback (most recent call last): 2017-09-01 1...
ValueError
def write_po( fileobj, catalog, width=76, no_location=False, omit_header=False, sort_output=False, sort_by_file=False, ignore_obsolete=False, include_previous=False, include_lineno=True, ): r"""Write a ``gettext`` PO (portable object) template file for a given message cat...
def write_po( fileobj, catalog, width=76, no_location=False, omit_header=False, sort_output=False, sort_by_file=False, ignore_obsolete=False, include_previous=False, include_lineno=True, ): r"""Write a ``gettext`` PO (portable object) template file for a given message cat...
https://github.com/python-babel/babel/issues/612
Not Changed: locale/vi/LC_MESSAGES/animation/actions.po Traceback (most recent call last): File "/usr/local/bin/sphinx-intl", line 11, in <module> sys.exit(main()) File "/usr/local/lib64/python3.6/site-packages/click/core.py", line 764, in __call__ return self.main(*args, **kwargs) File "/usr/local/lib64/python3.6/site...
TypeError
def get_display_name(self, locale=None): """Return the display name of the locale using the given locale. The display name will include the language, territory, script, and variant, if those are specified. >>> Locale('zh', 'CN', script='Hans').get_display_name('en') u'Chinese (Simplified, China)' ...
def get_display_name(self, locale=None): """Return the display name of the locale using the given locale. The display name will include the language, territory, script, and variant, if those are specified. >>> Locale('zh', 'CN', script='Hans').get_display_name('en') u'Chinese (Simplified, China)' ...
https://github.com/python-babel/babel/issues/601
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/will/tmp/babel-bug/env/lib/python3.6/site-packages/babel/core.py", line 392, in get_display_name retval += ' (%s)' % u', '.join(details) TypeError: unsupported operand type(s) for +=: 'NoneType' and 'str'
TypeError
def __init__( self, locale=None, domain=None, header_comment=DEFAULT_HEADER, project=None, version=None, copyright_holder=None, msgid_bugs_address=None, creation_date=None, revision_date=None, last_translator=None, language_team=None, charset=None, fuzzy=True, ): ...
def __init__( self, locale=None, domain=None, header_comment=DEFAULT_HEADER, project=None, version=None, copyright_holder=None, msgid_bugs_address=None, creation_date=None, revision_date=None, last_translator=None, language_team=None, charset=None, fuzzy=True, ): ...
https://github.com/python-babel/babel/issues/555
Traceback (most recent call last): File "/usr/local/bin/pybabel", line 11, in <module> sys.exit(main()) File "/usr/local/lib/python3.5/dist-packages/babel/messages/frontend.py", line 908, in main return CommandLineInterface().run(sys.argv) File "/usr/local/lib/python3.5/dist-packages/babel/messages/frontend.py", line 8...
babel.core.UnknownLocaleError
def _get_header_comment(self): comment = self._header_comment year = datetime.now(LOCALTZ).strftime("%Y") if hasattr(self.revision_date, "strftime"): year = self.revision_date.strftime("%Y") comment = ( comment.replace("PROJECT", self.project) .replace("VERSION", self.version) ...
def _get_header_comment(self): comment = self._header_comment year = datetime.now(LOCALTZ).strftime("%Y") if hasattr(self.revision_date, "strftime"): year = self.revision_date.strftime("%Y") comment = ( comment.replace("PROJECT", self.project) .replace("VERSION", self.version) ...
https://github.com/python-babel/babel/issues/555
Traceback (most recent call last): File "/usr/local/bin/pybabel", line 11, in <module> sys.exit(main()) File "/usr/local/lib/python3.5/dist-packages/babel/messages/frontend.py", line 908, in main return CommandLineInterface().run(sys.argv) File "/usr/local/lib/python3.5/dist-packages/babel/messages/frontend.py", line 8...
babel.core.UnknownLocaleError
def _get_mime_headers(self): headers = [] headers.append(("Project-Id-Version", "%s %s" % (self.project, self.version))) headers.append(("Report-Msgid-Bugs-To", self.msgid_bugs_address)) headers.append( ( "POT-Creation-Date", format_datetime(self.creation_date, "yyyy-MM-d...
def _get_mime_headers(self): headers = [] headers.append(("Project-Id-Version", "%s %s" % (self.project, self.version))) headers.append(("Report-Msgid-Bugs-To", self.msgid_bugs_address)) headers.append( ( "POT-Creation-Date", format_datetime(self.creation_date, "yyyy-MM-d...
https://github.com/python-babel/babel/issues/555
Traceback (most recent call last): File "/usr/local/bin/pybabel", line 11, in <module> sys.exit(main()) File "/usr/local/lib/python3.5/dist-packages/babel/messages/frontend.py", line 908, in main return CommandLineInterface().run(sys.argv) File "/usr/local/lib/python3.5/dist-packages/babel/messages/frontend.py", line 8...
babel.core.UnknownLocaleError
def _set_mime_headers(self, headers): for name, value in headers: name = name.lower() if name == "project-id-version": parts = value.split(" ") self.project = " ".join(parts[:-1]) self.version = parts[-1] elif name == "report-msgid-bugs-to": se...
def _set_mime_headers(self, headers): for name, value in headers: name = name.lower() if name == "project-id-version": parts = value.split(" ") self.project = " ".join(parts[:-1]) self.version = parts[-1] elif name == "report-msgid-bugs-to": se...
https://github.com/python-babel/babel/issues/555
Traceback (most recent call last): File "/usr/local/bin/pybabel", line 11, in <module> sys.exit(main()) File "/usr/local/lib/python3.5/dist-packages/babel/messages/frontend.py", line 908, in main return CommandLineInterface().run(sys.argv) File "/usr/local/lib/python3.5/dist-packages/babel/messages/frontend.py", line 8...
babel.core.UnknownLocaleError
def plural_expr(self): """The plural expression used by the catalog or locale. >>> Catalog(locale='en').plural_expr '(n != 1)' >>> Catalog(locale='ga').plural_expr '(n==1 ? 0 : n==2 ? 1 : n>=3 && n<=6 ? 2 : n>=7 && n<=10 ? 3 : 4)' >>> Catalog(locale='ding').plural_expr # unknown locale '(n...
def plural_expr(self): """The plural expression used by the catalog or locale. >>> Catalog(locale='en').plural_expr '(n != 1)' >>> Catalog(locale='ga').plural_expr '(n==1 ? 0 : n==2 ? 1 : n>=3 && n<=6 ? 2 : n>=7 && n<=10 ? 3 : 4)' :type: `string_types`""" if self._plural_expr is None: ...
https://github.com/python-babel/babel/issues/555
Traceback (most recent call last): File "/usr/local/bin/pybabel", line 11, in <module> sys.exit(main()) File "/usr/local/lib/python3.5/dist-packages/babel/messages/frontend.py", line 908, in main return CommandLineInterface().run(sys.argv) File "/usr/local/lib/python3.5/dist-packages/babel/messages/frontend.py", line 8...
babel.core.UnknownLocaleError
def __getitem__(self, name): char = name[0] num = len(name) if char == "G": return self.format_era(char, num) elif char in ("y", "Y", "u"): return self.format_year(char, num) elif char in ("Q", "q"): return self.format_quarter(char, num) elif char in ("M", "L"): r...
def __getitem__(self, name): char = name[0] num = len(name) if char == "G": return self.format_era(char, num) elif char in ("y", "Y", "u"): return self.format_year(char, num) elif char in ("Q", "q"): return self.format_quarter(char, num) elif char in ("M", "L"): r...
https://github.com/python-babel/babel/issues/378
import babel babel.__version__ '2.3.1' from datetime import datetime from babel.dates import format_time format_time(datetime(2016, 4, 8, 12, 34, 56), locale='zh_TW') Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/dev/shm/babel231/local/lib/python2.7/site-packages/babel/dates.py", line 78...
KeyError
def format_period(self, char): period = {0: "am", 1: "pm"}[int(self.value.hour >= 12)] for width in ("wide", "narrow", "abbreviated"): period_names = get_period_names( context="format", width=width, locale=self.locale ) if period in period_names: return period_nam...
def format_period(self, char): period = {0: "am", 1: "pm"}[int(self.value.hour >= 12)] return get_period_names(locale=self.locale)[period]
https://github.com/python-babel/babel/issues/378
import babel babel.__version__ '2.3.1' from datetime import datetime from babel.dates import format_time format_time(datetime(2016, 4, 8, 12, 34, 56), locale='zh_TW') Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/dev/shm/babel231/local/lib/python2.7/site-packages/babel/dates.py", line 78...
KeyError
def check_http_service(endpoint): if endpoint.family == socket.AF_INET: url = "http://{host}:{port}/health".format( host=endpoint.address.host, port=endpoint.address.port ) elif endpoint.family == socket.AF_UNIX: quoted_path = quote(endpoint.address, safe="") url = "h...
def check_http_service(endpoint): if endpoint.family == socket.AF_INET: url = "http://{host}:{port}/health".format( host=endpoint.address.host, port=endpoint.address.port ) elif endpoint.family == socket.AF_UNIX: quoted_path = urllib.quote(endpoint.address, safe="") u...
https://github.com/reddit/baseplate.py/issues/157
Traceback (most recent call last): File "/usr/local/bin/baseplate-healthcheck3", line 9, in <module> load_entry_point('baseplate', 'console_scripts', 'baseplate-healthcheck3')() File "/usr/lib/python3/dist-packages/baseplate/server/healthcheck.py", line 68, in run_healthchecks checker(args.endpoint) File "/usr/lib/pyth...
AttributeError
def get_private_keys(): """Find SSH keys in standard folder.""" key_formats = [RSAKey, ECDSAKey, Ed25519Key] ssh_folder = os.path.expanduser("~/.ssh") available_private_keys = [] if os.path.isdir(ssh_folder): for key in os.listdir(ssh_folder): key_file = os.path.join(ssh_folder...
def get_private_keys(): """Find SSH keys in standard folder.""" key_formats = [RSAKey, ECDSAKey, Ed25519Key] ssh_folder = os.path.expanduser("~/.ssh") available_private_keys = [] if os.path.isdir(ssh_folder): for key in os.listdir(ssh_folder): key_file = os.path.join(ssh_folder...
https://github.com/borgbase/vorta/issues/725
2020-11-24 00:24:57,883 - vorta.i18n - DEBUG - Loading translation succeeded for ['de', 'de-DE', 'de-Latn-DE']. 2020-11-24 00:24:57,912 - apscheduler.scheduler - INFO - Scheduler started 2020-11-24 00:24:57,914 - apscheduler.scheduler - INFO - Added job "VortaScheduler.create_backup" to job store "default" 2020-11-24 0...
ValueError
def prepare(cls, profile): """ Prepare for running Borg. This function in the base class should be called from all subclasses and calls that define their own `cmd`. The `prepare()` step does these things: - validate if all conditions to run command are met - build borg command `prepare()` ...
def prepare(cls, profile): """ Prepare for running Borg. This function in the base class should be called from all subclasses and calls that define their own `cmd`. The `prepare()` step does these things: - validate if all conditions to run command are met - build borg command `prepare()` ...
https://github.com/borgbase/vorta/issues/606
2020-08-31 20:53:34,066 - vorta.borg.borg_thread - DEBUG - Using VortaSecretStorageKeyring keyring to store passwords. 2020-08-31 20:53:34,066 - asyncio - DEBUG - Using selector: EpollSelector Traceback (most recent call last): File "/home/user/.local/lib/python3.8/site-packages/vorta/views/repo_add_dialog.py", line 64...
dbus.exceptions.DBusException
def prepare(cls, params): """ Used to validate existing repository when added. """ # Build fake profile because we don't have it in the DB yet. Assume unencrypted. profile = FakeProfile( FakeRepo(params["repo_url"], 999, params["extra_borg_arguments"], "none"), "New Repo", p...
def prepare(cls, params): """ Used to validate existing repository when added. """ # Build fake profile because we don't have it in the DB yet. profile = FakeProfile( FakeRepo(params["repo_url"], 999, params["extra_borg_arguments"]), "New Repo", params["ssh_key"], ) ...
https://github.com/borgbase/vorta/issues/606
2020-08-31 20:53:34,066 - vorta.borg.borg_thread - DEBUG - Using VortaSecretStorageKeyring keyring to store passwords. 2020-08-31 20:53:34,066 - asyncio - DEBUG - Using selector: EpollSelector Traceback (most recent call last): File "/home/user/.local/lib/python3.8/site-packages/vorta/views/repo_add_dialog.py", line 64...
dbus.exceptions.DBusException
def prepare(cls, params): # Build fake profile because we don't have it in the DB yet. profile = FakeProfile( FakeRepo( params["repo_url"], 999, params["extra_borg_arguments"], params["encryption"], ), "Init Repo", params["ssh_key"]...
def prepare(cls, params): # Build fake profile because we don't have it in the DB yet. profile = FakeProfile( FakeRepo(params["repo_url"], 999, params["extra_borg_arguments"]), "Init Repo", params["ssh_key"], ) ret = super().prepare(profile) if not ret["ok"]: return ...
https://github.com/borgbase/vorta/issues/606
2020-08-31 20:53:34,066 - vorta.borg.borg_thread - DEBUG - Using VortaSecretStorageKeyring keyring to store passwords. 2020-08-31 20:53:34,066 - asyncio - DEBUG - Using selector: EpollSelector Traceback (most recent call last): File "/home/user/.local/lib/python3.8/site-packages/vorta/views/repo_add_dialog.py", line 64...
dbus.exceptions.DBusException
def set_password(self, service, repo_url, password): """ Writes a password to the underlying store. """ raise NotImplementedError
def set_password(self, service, repo_url, password): raise NotImplementedError
https://github.com/borgbase/vorta/issues/606
2020-08-31 20:53:34,066 - vorta.borg.borg_thread - DEBUG - Using VortaSecretStorageKeyring keyring to store passwords. 2020-08-31 20:53:34,066 - asyncio - DEBUG - Using selector: EpollSelector Traceback (most recent call last): File "/home/user/.local/lib/python3.8/site-packages/vorta/views/repo_add_dialog.py", line 64...
dbus.exceptions.DBusException
def get_keyring(): """ Attempts to get secure keyring at runtime if current keyring is insecure. Once it finds a secure keyring, it wil always use that keyring """ global _keyring if _keyring is None or not _keyring.is_primary: if sys.platform == "darwin": # Use Keychain on macOS ...
def get_keyring(): """ Attempts to get secure keyring at runtime if current keyring is insecure. Once it finds a secure keyring, it wil always use that keyring """ global _keyring if _keyring is None or not _keyring.is_primary: if sys.platform == "darwin": # Use Keychain on macOS ...
https://github.com/borgbase/vorta/issues/606
2020-08-31 20:53:34,066 - vorta.borg.borg_thread - DEBUG - Using VortaSecretStorageKeyring keyring to store passwords. 2020-08-31 20:53:34,066 - asyncio - DEBUG - Using selector: EpollSelector Traceback (most recent call last): File "/home/user/.local/lib/python3.8/site-packages/vorta/views/repo_add_dialog.py", line 64...
dbus.exceptions.DBusException
def _set_keychain(self): """ Lazy import to avoid conflict with pytest-xdist. """ import objc from Foundation import NSBundle Security = NSBundle.bundleWithIdentifier_("com.apple.security") # https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/ObjCRuntimeGuide/Articl...
def _set_keychain(self): """ Lazy import to avoid conflict with pytest-xdist. """ import objc from Foundation import NSBundle Security = NSBundle.bundleWithIdentifier_("com.apple.security") S_functions = [ ("SecKeychainGetTypeID", b"I"), ("SecKeychainItemGetTypeID", b"I"), ...
https://github.com/borgbase/vorta/issues/606
2020-08-31 20:53:34,066 - vorta.borg.borg_thread - DEBUG - Using VortaSecretStorageKeyring keyring to store passwords. 2020-08-31 20:53:34,066 - asyncio - DEBUG - Using selector: EpollSelector Traceback (most recent call last): File "/home/user/.local/lib/python3.8/site-packages/vorta/views/repo_add_dialog.py", line 64...
dbus.exceptions.DBusException
def set_password(self, service, repo_url, password): try: asyncio.set_event_loop(asyncio.new_event_loop()) collection = secretstorage.get_default_collection(self.connection) attributes = { "application": "Vorta", "service": service, "repo_url": repo_url, ...
def set_password(self, service, repo_url, password): asyncio.set_event_loop(asyncio.new_event_loop()) collection = secretstorage.get_default_collection(self.connection) attributes = { "application": "Vorta", "service": service, "repo_url": repo_url, "xdg:schema": "org.freedes...
https://github.com/borgbase/vorta/issues/606
2020-08-31 20:53:34,066 - vorta.borg.borg_thread - DEBUG - Using VortaSecretStorageKeyring keyring to store passwords. 2020-08-31 20:53:34,066 - asyncio - DEBUG - Using selector: EpollSelector Traceback (most recent call last): File "/home/user/.local/lib/python3.8/site-packages/vorta/views/repo_add_dialog.py", line 64...
dbus.exceptions.DBusException
def get_password(self, service, repo_url): if self.is_unlocked: asyncio.set_event_loop(asyncio.new_event_loop()) collection = secretstorage.get_default_collection(self.connection) attributes = {"application": "Vorta", "service": service, "repo_url": repo_url} items = list(collection....
def get_password(self, service, repo_url): asyncio.set_event_loop(asyncio.new_event_loop()) collection = secretstorage.get_default_collection(self.connection) if collection.is_locked(): collection.unlock() attributes = {"application": "Vorta", "service": service, "repo_url": repo_url} items ...
https://github.com/borgbase/vorta/issues/606
2020-08-31 20:53:34,066 - vorta.borg.borg_thread - DEBUG - Using VortaSecretStorageKeyring keyring to store passwords. 2020-08-31 20:53:34,066 - asyncio - DEBUG - Using selector: EpollSelector Traceback (most recent call last): File "/home/user/.local/lib/python3.8/site-packages/vorta/views/repo_add_dialog.py", line 64...
dbus.exceptions.DBusException
def get_keyring(cls): """ Attempts to get secure keyring at runtime if current keyring is insecure. Once it finds a secure keyring, it wil always use that keyring """ if cls._keyring is None or not cls._keyring.is_primary: if sys.platform == "darwin": # Use Keychain on macOS fro...
def get_keyring(cls): """ Attempts to get secure keyring at runtime if current keyring is insecure. Once it finds a secure keyring, it wil always use that keyring """ if cls._keyring is None or not cls._keyring.is_primary: if sys.platform == "darwin": # Use Keychain on macOS fro...
https://github.com/borgbase/vorta/issues/606
2020-08-31 20:53:34,066 - vorta.borg.borg_thread - DEBUG - Using VortaSecretStorageKeyring keyring to store passwords. 2020-08-31 20:53:34,066 - asyncio - DEBUG - Using selector: EpollSelector Traceback (most recent call last): File "/home/user/.local/lib/python3.8/site-packages/vorta/views/repo_add_dialog.py", line 64...
dbus.exceptions.DBusException
def get_network_status_monitor(cls) -> "NetworkStatusMonitor": if sys.platform == "darwin": from .darwin import DarwinNetworkStatus return DarwinNetworkStatus() else: from .network_manager import ( NetworkManagerMonitor, UnsupportedException, DBusExce...
def get_network_status_monitor(cls) -> "NetworkStatusMonitor": if sys.platform == "darwin": from .darwin import DarwinNetworkStatus return DarwinNetworkStatus() else: from .network_manager import NetworkManagerMonitor, UnsupportedException try: return NetworkManager...
https://github.com/borgbase/vorta/issues/669
Traceback (most recent call last): File "/usr/bin/vorta", line 33, in <module> sys.exit(load_entry_point('vorta==0.7.1', 'gui_scripts', 'vorta')()) File "/usr/lib/python3.8/site-packages/vorta/__main__.py", line 37, in main app = VortaApp(sys.argv, single_app=True) File "/usr/lib/python3.8/site-packages/vorta/applicati...
vorta.network_status.network_manager.DBusException
def validate(self): """Pre-flight check for valid input and borg binary.""" if self.is_remote_repo and not re.match(r".+:.+", self.values["repo_url"]): self._set_status( self.tr("Please enter a valid repo URL or select a local path.") ) return False if RepoModel.get_or_n...
def validate(self): """Pre-flight check for valid input and borg binary.""" if self.is_remote_repo and not re.match(r".+:.+", self.values["repo_url"]): self._set_status( self.tr("Please enter a valid repo URL or select a local path.") ) return False if self.__class__ == ...
https://github.com/borgbase/vorta/issues/473
Traceback (most recent call last): File "/app/lib/python3.7/site-packages/peewee.py", line 6665, in get return clone.execute(database)[0] File "/app/lib/python3.7/site-packages/peewee.py", line 4121, in __getitem__ return self.row_cache[item] IndexError: list index out of range During handling of the above exception, ...
IndexError
def __init__(self, parent=None): super().__init__(parent) self.setupUi(parent) # Populate dropdowns self.repoSelector.model().item(0).setEnabled(False) self.repoSelector.addItem(self.tr("+ Initialize New Repository"), "new") self.repoSelector.addItem(self.tr("+ Add Existing Repository"), "exist...
def __init__(self, parent=None): super().__init__(parent) self.setupUi(parent) # Populate dropdowns self.repoSelector.model().item(0).setEnabled(False) self.repoSelector.addItem(self.tr("+ Initialize New Repository"), "new") self.repoSelector.addItem(self.tr("+ Add Existing Repository"), "exist...
https://github.com/borgbase/vorta/issues/473
Traceback (most recent call last): File "/app/lib/python3.7/site-packages/peewee.py", line 6665, in get return clone.execute(database)[0] File "/app/lib/python3.7/site-packages/peewee.py", line 4121, in __getitem__ return self.row_cache[item] IndexError: list index out of range During handling of the above exception, ...
IndexError
def process_new_repo(self, result): if result["returncode"] == 0: new_repo = RepoModel.get(url=result["params"]["repo_url"]) profile = self.profile() profile.repo = new_repo.id profile.save() self.set_repos() self.repoSelector.setCurrentIndex(self.repoSelector.count(...
def process_new_repo(self, result): if result["returncode"] == 0: new_repo = RepoModel.get(url=result["params"]["repo_url"]) profile = self.profile() profile.repo = new_repo.id profile.save() self.repoSelector.addItem(new_repo.url, new_repo.id) self.repoSelector.setC...
https://github.com/borgbase/vorta/issues/473
Traceback (most recent call last): File "/app/lib/python3.7/site-packages/peewee.py", line 6665, in get return clone.execute(database)[0] File "/app/lib/python3.7/site-packages/peewee.py", line 4121, in __getitem__ return self.row_cache[item] IndexError: list index out of range During handling of the above exception, ...
IndexError
def from_public_key_recovery( klass, signature, data, curve, hashfunc=sha1, sigdecode=sigdecode_string ): # Given a signature and corresponding message this function # returns a list of verifying keys for this signature and message digest = hashfunc(data).digest() return klass.from_public_key_recov...
def from_public_key_recovery( klass, signature, data, curve, hashfunc=sha1, sigdecode=sigdecode_string ): # Given a signature and corresponding message this function # returns a list of verifying keys for this signature and message digest = hashfunc(data).digest() return klass.from_public_key_recov...
https://github.com/tlsfuzzer/python-ecdsa/issues/108
correct 88546510979682037774707173221481493851486333744139811890585270440885638210651 25114176564622922097833533925221099216470038098832442934481636541806701930216 88546510979682037774707173221481493851486333744139811890585270440885638210651 25114176564622922097833533925221099216470038098832442934481636541806701930216...
AssertionError
def __lt__(self, a): if isinstance(a, visidata.Path): return self._path.__lt__(a._path) return self._path.__lt__(a)
def __lt__(self, a): return self._path.__lt__(a)
https://github.com/saulpw/visidata/issues/897
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/visidata/basesheet.py", line 136, in execCommand exec(code, vdglobals, LazyChainMap(vd, self)) File "sort-desc", line 1, in <module> File "/usr/lib/python3.9/site-packages/visidata/sort.py", line 28, in orderBy sheet.sort() File "/usr/lib/python3...
TypeError
def vd_cli(): vd.status(__version_info__) rc = -1 try: rc = main_vd() except BrokenPipeError: os.dup2( os.open(os.devnull, os.O_WRONLY), sys.stdout.fileno() ) # handle broken pipe gracefully except visidata.ExpectedException as e: print("Error: " + str(e)...
def vd_cli(): vd.status(__version_info__) rc = -1 try: rc = main_vd() except visidata.ExpectedException as e: print("Error: " + str(e)) except FileNotFoundError as e: print(e) if options.debug: raise sys.stderr.flush() sys.stdout.flush() os._ex...
https://github.com/saulpw/visidata/issues/851
seq 10000 | awk 'BEGIN{print "x,y"} {print $1","2*$1}' | vd -f csv -b - | head opening - as csv saving 1 sheets to - as tsv x y 1 2 2 4 3 6 4 8 5 10 6 12 7 14 8 16 9 18 Traceback (most recent call last): File "/home/rob/envs/base/bin/vd", line 6, in <module> v...
BrokenPipeError
def setMacro(ks, vs): vd.macrobindings[ks] = vs if vd.isLongname(ks): BaseSheet.addCommand("", ks, "runMacro(vd.macrobindings[longname])") else: BaseSheet.addCommand(ks, vs.name, "runMacro(vd.macrobindings[keystrokes])")
def setMacro(ks, vs): vd.macrobindings[ks] = vs BaseSheet.addCommand(ks, vs.name, "runMacro(vd.macrobindings[keystrokes])")
https://github.com/saulpw/visidata/issues/787
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/visidata/basesheet.py", line 136, in execCommand exec(code, vdglobals, LazyChainMap(vd, self)) File "macro-record", line 1, in <module> File "/usr/lib/python3.9/site-packages/visidata/macros.py", line 52, in startMacro vd.cmdlog.saveMacro(vd.macr...
AttributeError
def macrosheet(vd): macrospath = Path(os.path.join(options.visidata_dir, "macros.tsv")) macrosheet = vd.loadInternalSheet( TsvSheet, macrospath, columns=(ColumnItem("command", 0), ColumnItem("filename", 1)), ) or vd.error("error loading macros") real_macrosheet = IndexSheet("use...
def macrosheet(vd): macrospath = Path(os.path.join(options.visidata_dir, "macros.tsv")) macrosheet = vd.loadInternalSheet( TsvSheet, macrospath, columns=(ColumnItem("command", 0), ColumnItem("filename", 1)), ) or vd.error("error loading macros") real_macrosheet = IndexSheet("use...
https://github.com/saulpw/visidata/issues/787
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/visidata/basesheet.py", line 136, in execCommand exec(code, vdglobals, LazyChainMap(vd, self)) File "macro-record", line 1, in <module> File "/usr/lib/python3.9/site-packages/visidata/macros.py", line 52, in startMacro vd.cmdlog.saveMacro(vd.macr...
AttributeError
def saveMacro(self, rows, ks): vs = copy(self) vs.rows = rows macropath = Path(fnSuffix(options.visidata_dir + "macro")) vd.save_vd(macropath, vs) setMacro(ks, vs) append_tsv_row(vd.macrosheet.source, (ks, macropath))
def saveMacro(self, rows, ks): vs = copy(self) vs.rows = rows macropath = Path(fnSuffix(options.visidata_dir + "macro")) vd.save_vd(macropath, vs) setMacro(ks, vs) append_tsv_row(vd.macrosheet, (ks, macropath))
https://github.com/saulpw/visidata/issues/787
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/visidata/basesheet.py", line 136, in execCommand exec(code, vdglobals, LazyChainMap(vd, self)) File "macro-record", line 1, in <module> File "/usr/lib/python3.9/site-packages/visidata/macros.py", line 52, in startMacro vd.cmdlog.saveMacro(vd.macr...
AttributeError
def afterExecSheet(cmdlog, sheet, escaped, err): if ( vd.macroMode and (vd.activeCommand is not None) and (vd.activeCommand is not UNLOADED) ): cmd = copy(vd.activeCommand) cmd.row = cmd.col = cmd.sheet = "" vd.macroMode.addRow(cmd) # the following needs to h...
def afterExecSheet(cmdlog, sheet, escaped, err): cmdlog.afterExecSheet.__wrapped__(cmdlog, sheet, escaped, err) if ( vd.macroMode and (vd.activeCommand is not None) and (vd.activeCommand is not UNLOADED) ): cmd = copy(vd.activeCommand) cmd.row = cmd.col = cmd.sheet = ...
https://github.com/saulpw/visidata/issues/787
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/visidata/basesheet.py", line 136, in execCommand exec(code, vdglobals, LazyChainMap(vd, self)) File "macro-record", line 1, in <module> File "/usr/lib/python3.9/site-packages/visidata/macros.py", line 52, in startMacro vd.cmdlog.saveMacro(vd.macr...
AttributeError
def reload(self): import pandas as pd if isinstance(self.source, pd.DataFrame): df = self.source elif isinstance(self.source, Path): filetype = getattr(self, "filetype", self.source.ext) if filetype == "tsv": readfunc = self.read_tsv elif filetype == "jsonl": ...
def reload(self): import pandas as pd if isinstance(self.source, pd.DataFrame): df = self.source elif isinstance(self.source, Path): filetype = getattr(self, "filetype", self.source.ext) if filetype == "tsv": readfunc = self.read_tsv elif filetype == "jsonl": ...
https://github.com/saulpw/visidata/issues/798
In [3]: import visidata In [4]: visidata.view_pandas(None) --------------------------------------------------------------------------- UnboundLocalError Traceback (most recent call last) <ipython-input-4-5d0ae9b435d5> in <module> ----> 1 visidata.view_pandas(None) ~/opt/anaconda3/lib/python3.7...
UnboundLocalError
def iterload(self): import openpyxl self.workbook = openpyxl.load_workbook( str(self.source), data_only=True, read_only=True ) for sheetname in self.workbook.sheetnames: src = self.workbook[sheetname] vs = XlsxSheet(self.name, sheetname, source=src) if isinstance(src, op...
def iterload(self): import openpyxl self.workbook = openpyxl.load_workbook( str(self.source), data_only=True, read_only=True ) for sheetname in self.workbook.sheetnames: vs = XlsxSheet(self.name, sheetname, source=self.workbook[sheetname]) vs.reload() yield vs
https://github.com/saulpw/visidata/issues/797
opening _20112020100242.xlsx as xlsx Traceback (most recent call last): File "/home/aborruso/.local/bin/vd", line 6, in <module> visidata.main.vd_cli() File "/home/aborruso/.local/lib/python3.8/site-packages/visidata/main.py", line 298, in vd_cli rc = main_vd() File "/home/aborruso/.local/lib/python3.8/site-packages/vi...
AttributeError
def __new__(cls, v=0): if isinstance(v, (vlen, int, float)): return super(vlen, cls).__new__(cls, v) else: return super(vlen, cls).__new__(cls, len(v))
def __new__(cls, v): if isinstance(v, (vlen, int, float)): return super(vlen, cls).__new__(cls, v) else: return super(vlen, cls).__new__(cls, len(v))
https://github.com/saulpw/visidata/issues/690
Traceback (most recent call last): File "/usr/lib/python3.8/site-packages/visidata/threads.py", line 207, in _toplevelTryFunc t.status = func(*args, **kwargs) File "/usr/lib/python3.8/site-packages/visidata/pivot.py", line 203, in groupRows numericGroupRows = {formatRange(numericCols[0], numRange): PivotGroupRow(discre...
TypeError
def setCols(self, headerrows): self.columns = [] for i, colnamelines in enumerate(itertools.zip_longest(*headerrows, fillvalue="")): colnamelines = ["" if c is None else c for c in colnamelines] self.addColumn(ColumnItem("".join(colnamelines), i)) self._rowtype = namedlist("tsvobj", [(c.nam...
def setCols(self, headerrows): self.columns = [] for i, colnamelines in enumerate(itertools.zip_longest(*headerrows, fillvalue="")): self.addColumn(ColumnItem("".join(colnamelines), i)) self._rowtype = namedlist("tsvobj", [(c.name or "_") for c in self.columns])
https://github.com/saulpw/visidata/issues/680
Traceback (most recent call last): File "[...]/visidata/threads.py", line 207, in _toplevelTryFunc t.status = func(*args, **kwargs) File "[...]/visidata/sheets.py", line 878, in reload self.setCols(list(self.optlines(itsource, 'header'))) File "[...]/visidata/sheets.py", line 845, in setCols self.addColumn(ColumnItem('...
TypeError
def beforeExecHook(self, sheet, cmd, args, keystrokes): if vd.activeCommand: self.afterExecSheet(sheet, False, "") colname, rowname, sheetname = "", "", None if sheet and not cmd.longname.startswith("open-"): sheetname = sheet contains = lambda s, *substrs: any((a in s) for a in su...
def beforeExecHook(self, sheet, cmd, args, keystrokes): if vd.activeCommand: self.afterExecSheet(sheet, False, "") colname, rowname, sheetname = "", "", None if sheet and not cmd.longname.startswith("open-"): sheetname = sheet contains = lambda s, *substrs: any((a in s) for a in su...
https://github.com/saulpw/visidata/issues/637
Traceback (most recent call last): File "/Users/Documents/pyv/py3/lib/python3.7/site-packages/visidata/basesheet.py", line 127, in execCommand exec(code, vdglobals, LazyChainMap(vd, self)) File "release-mouse", line 1, in <module> import math NameError: name 'mouseX' is not defined
NameError
def add_y_axis_label(self, frac): txt = self.formatY(self.visibleBox.ymin + frac * self.visibleBox.h) # plot y-axis labels on the far left of the canvas, but within the plotview height-wise attr = colors.color_graph_axis self.plotlabel( 0, self.plotviewBox.ymin + (1.0 - frac) * self.plotviewBox...
def add_y_axis_label(self, frac): amt = self.visibleBox.ymin + frac * self.visibleBox.h srccol = self.ycols[0] txt = srccol.format(srccol.type(amt)) # plot y-axis labels on the far left of the canvas, but within the plotview height-wise attr = colors.color_graph_axis self.plotlabel( 0, ...
https://github.com/saulpw/visidata/issues/637
Traceback (most recent call last): File "/Users/Documents/pyv/py3/lib/python3.7/site-packages/visidata/basesheet.py", line 127, in execCommand exec(code, vdglobals, LazyChainMap(vd, self)) File "release-mouse", line 1, in <module> import math NameError: name 'mouseX' is not defined
NameError
def add_x_axis_label(self, frac): txt = self.formatX(self.visibleBox.xmin + frac * self.visibleBox.w) # plot x-axis labels below the plotviewBox.ymax, but within the plotview width-wise attr = colors.color_graph_axis xmin = self.plotviewBox.xmin + frac * self.plotviewBox.w if frac == 1.0: #...
def add_x_axis_label(self, frac): amt = self.visibleBox.xmin + frac * self.visibleBox.w txt = ",".join( xcol.format(xcol.type(amt)) for xcol in self.xcols if isNumeric(xcol) ) # plot x-axis labels below the plotviewBox.ymax, but within the plotview width-wise attr = colors.color_graph_axis ...
https://github.com/saulpw/visidata/issues/637
Traceback (most recent call last): File "/Users/Documents/pyv/py3/lib/python3.7/site-packages/visidata/basesheet.py", line 127, in execCommand exec(code, vdglobals, LazyChainMap(vd, self)) File "release-mouse", line 1, in <module> import math NameError: name 'mouseX' is not defined
NameError
def set_y(sheet, s): ymin, ymax = map(float, map(sheet.parseY, s.split())) sheet.zoomTo(BoundingBox(sheet.visibleBox.xmin, ymin, sheet.visibleBox.xmax, ymax)) sheet.refresh()
def set_y(sheet, s): ymin, ymax = map(float, map(sheet.ycols[0].type, s.split())) sheet.zoomTo(BoundingBox(sheet.visibleBox.xmin, ymin, sheet.visibleBox.xmax, ymax)) sheet.refresh()
https://github.com/saulpw/visidata/issues/637
Traceback (most recent call last): File "/Users/Documents/pyv/py3/lib/python3.7/site-packages/visidata/basesheet.py", line 127, in execCommand exec(code, vdglobals, LazyChainMap(vd, self)) File "release-mouse", line 1, in <module> import math NameError: name 'mouseX' is not defined
NameError
def set_x(sheet, s): xmin, xmax = map(float, map(sheet.parseX, s.split())) sheet.zoomTo(BoundingBox(xmin, sheet.visibleBox.ymin, xmax, sheet.visibleBox.ymax)) sheet.refresh()
def set_x(sheet, s): xmin, xmax = map(float, map(sheet.xcols[0].type, s.split())) sheet.zoomTo(BoundingBox(xmin, sheet.visibleBox.ymin, xmax, sheet.visibleBox.ymax)) sheet.refresh()
https://github.com/saulpw/visidata/issues/637
Traceback (most recent call last): File "/Users/Documents/pyv/py3/lib/python3.7/site-packages/visidata/basesheet.py", line 127, in execCommand exec(code, vdglobals, LazyChainMap(vd, self)) File "release-mouse", line 1, in <module> import math NameError: name 'mouseX' is not defined
NameError
def reload(self): # key rows become column names col = Column( "_".join(c.name for c in self.source.keyCols), getter=lambda c, origcol: origcol.name, ) # associate column with sheet col.recalc(self) self.columns = [col] self.setKeys(self.columns) # rows become columns ...
def reload(self): # key rows become column names col = Column( "_".join(c.name for c in self.source.keyCols), getter=lambda c, origcol: origcol.name, ) # associate column with sheet col.recalc(self) self.columns = [col] self.setKeys(self.columns) # rows become columns ...
https://github.com/saulpw/visidata/issues/631
Traceback (most recent call last): File "/usr/env/lib/python3.8/site-packages/visidata/threads.py", line 207, in _toplevelTryFunc t.status = func(*args, **kwargs) File "/usr/env/lib/python3.8/site-packages/visidata/transpose.py", line 18, in reload self.addColumn(Column('_'.join(self.source.rowkey(row)), TypeError: seq...
TypeError
def parseArgs(vd, parser: argparse.ArgumentParser): addOptions(parser) args, remaining = parser.parse_known_args() # add visidata_dir to path before loading config file (can only be set from cli) sys.path.append(str(visidata.Path(args.visidata_dir or options.visidata_dir))) # import plugins from ....
def parseArgs(vd, parser: argparse.ArgumentParser): addOptions(parser) args, remaining = parser.parse_known_args() # add visidata_dir to path before loading config file (can only be set from cli) sys.path.append(str(visidata.Path(args.visidata_dir or options.visidata_dir))) # import plugins from ....
https://github.com/saulpw/visidata/issues/614
Traceback (most recent call last): File "/usr/bin/vd", line 6, in <module> visidata.main.vd_cli() File "/usr/lib/python3.8/site-packages/visidata/main.py", line 220, in vd_cli rc = main_vd() File "/usr/lib/python3.8/site-packages/visidata/main.py", line 75, in main_vd args = vd.parseArgs(parser) File "/usr/lib/python3....
ModuleNotFoundError
def drawRightStatus(vd, scr, vs): "Draw right side of status bar. Return length displayed." rightx = vs.windowWidth ret = 0 statcolors = [ (vd.rightStatus(vs), "color_status"), ] active = vs is vd.sheets[0] # active sheet if active: statcolors.append((vd.keystrokes or ""...
def drawRightStatus(vd, scr, vs): "Draw right side of status bar. Return length displayed." rightx = vs.windowWidth ret = 0 statcolors = [ (vd.rightStatus(vs), "color_status"), ] active = vs is vd.sheets[0] # active sheet if active: statcolors.append((vd.keystrokes, "col...
https://github.com/saulpw/visidata/issues/577
Traceback (most recent call last): File "/Users/akerrigan/code/visidata/visidata/statusbar.py", line 183, in drawRightStatus rstatus = ' '+rstatus TypeError: can only concatenate str (not "NoneType") to str
TypeError
def numericFormatter(fmtstr, typedval): try: fmtstr = fmtstr or options["disp_" + type(typedval).__name__ + "_fmt"] if fmtstr[0] == "%": return locale.format_string(fmtstr, typedval, grouping=True) else: return fmtstr.format(typedval) except ValueError: re...
def numericFormatter(fmtstr, typedval): fmtstr = fmtstr or options["disp_" + type(typedval).__name__ + "_fmt"] if fmtstr: if fmtstr[0] == "%": return locale.format_string(fmtstr, typedval, grouping=True) else: return fmtstr.format(typedval) return str(typedval)
https://github.com/saulpw/visidata/issues/584
Traceback (most recent call last): File "/usr/lib/python3.8/site-packages/visidata/column.py", line 247, in getCell dw.display = self.format(typedval) or '' File "/usr/lib/python3.8/site-packages/visidata/column.py", line 140, in format return getType(self.type).formatter(self.fmtstr, typedval) File "/usr/lib/python3.8...
visidata.errors.ExpectedException
def reload(self): # key rows become column names col = Column( "_".join(c.name for c in self.source.keyCols), getter=lambda c, origcol: origcol.name, ) # associate column with sheet col.recalc(self) self.columns = [col] self.setKeys(self.columns) # rows become columns ...
def reload(self): # key rows become column names self.columns = [ Column( "_".join(c.name for c in self.source.keyCols), getter=lambda c, origcol: origcol.name, ) ] self.setKeys(self.columns) # rows become columns for row in Progress(self.source.rows, "tr...
https://github.com/saulpw/visidata/issues/581
Traceback (most recent call last): File "/usr/lib/python3.8/site-packages/visidata/basesheet.py", line 127, in execCommand exec(code, vdglobals, LazyChainMap(vd, self)) File "pyobj-cell", line 1, in <module> import math File "/usr/lib/python3.8/site-packages/visidata/basesheet.py", line 30, in __getitem__ return getatt...
AttributeError
def openRow(self, row): k = self.rowkey(row) or [self.cursorRowIndex] name = f"{self.name}[{self.keystr(row)}]" return vd.load_pyobj(name, tuple(c.getTypedValue(row) for c in self.visibleCols))
def openRow(self, row): k = self.rowkey(row) or [self.cursorRowIndex] name = f"{self.name}[{self.keystr(row)}]" return vd.load_pyobj(tuple(c.getTypedValue(row) for c in self.visibleCols))
https://github.com/saulpw/visidata/issues/557
Traceback (most recent call last): File "/usr/lib/visidata/basesheet.py", line 126, in execCommand exec(code, vdglobals, LazyChainMap(vd, self)) File "dive-row", line 1, in <module> import math File "/usr/lib/visidata/sheets.py", line 241, in openRow return vd.load_pyobj(tuple(c.getTypedValue(row) for c in self.visible...
TypeError
def openRow(self, row): return load_pyobj("%s[%s]" % (self.name, self.keystr(row)), row)
def openRow(self, row): return load_pyobj("%s[%s]" % (name, rowIndex), row)
https://github.com/saulpw/visidata/issues/557
Traceback (most recent call last): File "/usr/lib/visidata/basesheet.py", line 126, in execCommand exec(code, vdglobals, LazyChainMap(vd, self)) File "dive-row", line 1, in <module> import math File "/usr/lib/visidata/sheets.py", line 241, in openRow return vd.load_pyobj(tuple(c.getTypedValue(row) for c in self.visible...
TypeError
def openRow(self, row): k = self.rowkey(row) or [self.cursorRowIndex] name = f"{self.name}[{k}]" return vd.load_pyobj(name, tuple(c.getTypedValue(row) for c in self.visibleCols))
def openRow(self, row): k = self.rowkey(row) or [self.cursorRowIndex] name = f"{self.name}[{self.keystr(row)}]" return vd.load_pyobj(name, tuple(c.getTypedValue(row) for c in self.visibleCols))
https://github.com/saulpw/visidata/issues/557
Traceback (most recent call last): File "/usr/lib/visidata/basesheet.py", line 126, in execCommand exec(code, vdglobals, LazyChainMap(vd, self)) File "dive-row", line 1, in <module> import math File "/usr/lib/visidata/sheets.py", line 241, in openRow return vd.load_pyobj(tuple(c.getTypedValue(row) for c in self.visible...
TypeError
def openCell(self, col, row): k = self.keystr(row) or [str(self.cursorRowIndex)] name = f"{self.name}.{col.name}[{k}]" return vd.load_pyobj(name, col.getTypedValue(row))
def openCell(self, col, row): k = self.keystr(row) or [str(self.cursorRowIndex)] name = f"{self.name}.{col.name}[{self.keystr(row)}]" return vd.load_pyobj(name, col.getTypedValue(row))
https://github.com/saulpw/visidata/issues/557
Traceback (most recent call last): File "/usr/lib/visidata/basesheet.py", line 126, in execCommand exec(code, vdglobals, LazyChainMap(vd, self)) File "dive-row", line 1, in <module> import math File "/usr/lib/visidata/sheets.py", line 241, in openRow return vd.load_pyobj(tuple(c.getTypedValue(row) for c in self.visible...
TypeError
def save_html(vd, p, *vsheets): "Save vsheets as HTML tables in a single file" with open(p, "w", encoding="ascii", errors="xmlcharrefreplace") as fp: for sheet in vsheets: fp.write( '<h2 class="sheetname">%s</h2>\n'.format( sheetname=html.escape(sheet.nam...
def save_html(vd, p, *vsheets): "Save vsheets as HTML tables in a single file" with open(p, "w", encoding="ascii", errors="xmlcharrefreplace") as fp: for sheet in vsheets: fp.write( '<h2 class="sheetname">%s</h2>\n'.format( sheetname=html.escape(sheet.nam...
https://github.com/saulpw/visidata/issues/501
Traceback (most recent call last): File "/Documents/pyv/py3/lib/python3.7/site-packages/visidata/threads.py", line 201, in _toplevelTryFunc t.status = func(*args, **kwargs) File "/Documents/pyv/py3/lib/python3.7/site-packages/visidata/loaders/html.py", line 124, in save_html fp.write(html.escape(val)) File "/usr/local/...
AttributeError
def __getattr__(self, k): if hasattr(self.__dict__, k): r = getattr(self.__dict__, k) else: if self.__dict__.get("_path", None) is not None: r = getattr(self._path, k) else: raise AttributeError(k) if isinstance(r, pathlib.Path): return Path(r) ret...
def __getattr__(self, k): if hasattr(self.__dict__, k): r = getattr(self.__dict__, k) else: r = getattr(self._path, k) if isinstance(r, pathlib.Path): return Path(r) return r
https://github.com/saulpw/visidata/issues/489
Traceback (most recent call last): File "/path/vd_plugins/radare2/r2/lib/python3.7/site-packages/visidata-2._4dev-py3.7.egg/visidata/threads.py", line 201, in _toplevelTryFunc t.status = func(*args, **kwargs) File "/path/vd_plugins/radare2/r2/lib/python3.7/site-packages/visidata-2._4dev-py3.7.egg/visidata/threads.py", ...
RecursionError
def open_fixed(p): return FixedWidthColumnsSheet(p.name, source=p, headerlines=[])
def open_fixed(p): return FixedWidthColumnsSheet(p.name, source=p)
https://github.com/saulpw/visidata/issues/439
Traceback (most recent call last): File "/usr/lib/python3/site-packages/visidata/threads.py", line 202, in _toplevelTryFunc t.status = func(*args, **kwargs) File "/usr/lib/python3/site-packages/visidata/sheets.py", line 828, in reload list(self.optlines(itsource, 'skip')) File "/usr/lib/python3/site-packages/visidata/s...
AttributeError
def bindkey(keystrokes, longname): bindkeys.setdefault(keystrokes, longname)
def bindkey(cls, keystrokes, longname): oldlongname = bindkeys._get(keystrokes, cls) if oldlongname: vd.warning("%s was already bound to %s" % (keystrokes, oldlongname)) bindkeys.set(keystrokes, longname, cls)
https://github.com/saulpw/visidata/issues/379
Traceback (most recent call last): File "/home/sfranky/.local/lib/python3.7/site-packages/visidata/settings.py", line 257, in loadConfigFile exec(code, _globals or globals()) File "/home/sfranky/.visidatarc", line 19, in <module> bindkey('0', 'go-leftmost') TypeError: 'classmethod' object is not callable
TypeError
def unbindkey(keystrokes): bindkeys.unset(keystrokes)
def unbindkey(cls, keystrokes): bindkeys.unset(keystrokes, cls)
https://github.com/saulpw/visidata/issues/379
Traceback (most recent call last): File "/home/sfranky/.local/lib/python3.7/site-packages/visidata/settings.py", line 257, in loadConfigFile exec(code, _globals or globals()) File "/home/sfranky/.visidatarc", line 19, in <module> bindkey('0', 'go-leftmost') TypeError: 'classmethod' object is not callable
TypeError
def reload(self): from pkg_resources import resource_filename cmdlist = TsvSheet( "cmdlist", source=Path(resource_filename(__name__, "commands.tsv")) ) options.set("delimiter", vd_system_sep, cmdlist) cmdlist.reload_sync() self.rows = [] for (k, o), v in commands.iter(self.source):...
def reload(self): from pkg_resources import resource_filename cmdlist = TsvSheet( "cmdlist", source=Path(resource_filename(__name__, "commands.tsv")) ) cmdlist.reload_sync() self.rows = [] for (k, o), v in commands.iter(self.source): self.addRow(v) v.sheet = o self...
https://github.com/saulpw/visidata/issues/323
==> cell_err.txt <== Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/visidata/wrappers.py", line 95, in wrapply return func(*args, **kwargs) File "/usr/lib/python3.6/site-packages/visidata/column.py", line 168, in getValue return self.calcValue(row) File "/usr/lib/python3.6/site-packages/visid...
KeyError
def execute(self, conn, sql, where={}, parms=None): parms = parms or [] if where: sql += " WHERE %s" % " AND ".join('"%s"=?' % k for k in where) status(sql) parms += list(where.values()) return conn.execute(sql, parms)
def execute(self, conn, sql, where={}, parms=None): parms = parms or [] if where: sql += " WHERE %s" % " AND ".join("%s=?" % k for k in where) status(sql) parms += list(where.values()) return conn.execute(sql, parms)
https://github.com/saulpw/visidata/issues/369
Traceback (most recent call last): β€– File "/usr/lib/python3/dist-packages/visidata/vdtui.py", line 1115, in exec_command β€– exec(cmd.execstr, vdglobals, LazyMap(self)) β€– File "<string>", line 1, in <module> ...
sqlite3.OperationalError
def reload_sync(self, _conn=None): self.reset() with _conn or self.conn() as conn: tblname = self.tableName self.columns = self.getColumns(tblname, conn) self.recalc() r = self.execute(conn, 'SELECT COUNT(*) FROM "%s"' % tblname).fetchall() rowcount = r[0][0] self...
def reload_sync(self, _conn=None): self.reset() with _conn or self.conn() as conn: tblname = self.tableName self.columns = self.getColumns(tblname, conn) self.recalc() r = self.execute(conn, "SELECT COUNT(*) FROM %s" % tblname).fetchall() rowcount = r[0][0] self.r...
https://github.com/saulpw/visidata/issues/369
Traceback (most recent call last): β€– File "/usr/lib/python3/dist-packages/visidata/vdtui.py", line 1115, in exec_command β€– exec(cmd.execstr, vdglobals, LazyMap(self)) β€– File "<string>", line 1, in <module> ...
sqlite3.OperationalError
def commit(self, adds, changes, deletes): options_safe_error = options.safe_error def value(row, col): v = col.getTypedValue(row) if isinstance(v, TypedWrapper): if isinstance(v, TypedExceptionWrapper): return options_safe_error else: retu...
def commit(self, adds, changes, deletes): options_safe_error = options.safe_error def value(row, col): v = col.getTypedValue(row) if isinstance(v, TypedWrapper): if isinstance(v, TypedExceptionWrapper): return options_safe_error else: retu...
https://github.com/saulpw/visidata/issues/369
Traceback (most recent call last): β€– File "/usr/lib/python3/dist-packages/visidata/vdtui.py", line 1115, in exec_command β€– exec(cmd.execstr, vdglobals, LazyMap(self)) β€– File "<string>", line 1, in <module> ...
sqlite3.OperationalError
def getColumns(self, tableName, conn): cols = [] for i, r in enumerate(self.execute(conn, 'PRAGMA TABLE_INFO("%s")' % tableName)): c = DeferredSetColumn( r[1], getter=lambda col, row, idx=i: row[idx], setter=lambda col, row, val: col.sheet.commit(), ) ...
def getColumns(self, tableName, conn): cols = [] for i, r in enumerate(self.execute(conn, "PRAGMA TABLE_INFO(%s)" % tableName)): c = DeferredSetColumn( r[1], getter=lambda col, row, idx=i: row[idx], setter=lambda col, row, val: col.sheet.commit(), ) t ...
https://github.com/saulpw/visidata/issues/369
Traceback (most recent call last): β€– File "/usr/lib/python3/dist-packages/visidata/vdtui.py", line 1115, in exec_command β€– exec(cmd.execstr, vdglobals, LazyMap(self)) β€– File "<string>", line 1, in <module> ...
sqlite3.OperationalError
def multisave_sqlite(p, *vsheets): import sqlite3 conn = sqlite3.connect(p.resolve()) c = conn.cursor() for vs in vsheets: tblname = clean_to_id(vs.name) sqlcols = [] for col in vs.visibleCols: sqlcols.append('"%s" %s' % (col.name, sqlite_type(col.type))) sq...
def multisave_sqlite(p, *vsheets): import sqlite3 conn = sqlite3.connect(p.resolve()) c = conn.cursor() for vs in vsheets: tblname = clean_to_id(vs.name) sqlcols = [] for col in vs.visibleCols: sqlcols.append("%s %s" % (col.name, sqlite_type(col.type))) sql ...
https://github.com/saulpw/visidata/issues/369
Traceback (most recent call last): β€– File "/usr/lib/python3/dist-packages/visidata/vdtui.py", line 1115, in exec_command β€– exec(cmd.execstr, vdglobals, LazyMap(self)) β€– File "<string>", line 1, in <module> ...
sqlite3.OperationalError
def reload_sync(self, _conn=None): with _conn or self.conn() as conn: tblname = self.tableName self.columns = self.getColumns(tblname, conn) self.recalc() r = self.execute(conn, 'SELECT COUNT(*) FROM "%s"' % tblname).fetchall() rowcount = r[0][0] self.rows = [] ...
def reload_sync(self, _conn=None): with _conn or self.conn() as conn: tblname = self.tableName self.columns = self.getColumns(tblname, conn) self.recalc() r = self.execute(conn, "SELECT COUNT(*) FROM %s" % tblname).fetchall() rowcount = r[0][0] self.rows = [] ...
https://github.com/saulpw/visidata/issues/369
Traceback (most recent call last): β€– File "/usr/lib/python3/dist-packages/visidata/vdtui.py", line 1115, in exec_command β€– exec(cmd.execstr, vdglobals, LazyMap(self)) β€– File "<string>", line 1, in <module> ...
sqlite3.OperationalError
def putChanges(self, path, adds, mods, dels): options_safe_error = options.safe_error def value(row, col): v = col.getTypedValue(row) if isinstance(v, TypedWrapper): if isinstance(v, TypedExceptionWrapper): return options_safe_error else: ...
def putChanges(self, path, adds, mods, dels): options_safe_error = options.safe_error def value(row, col): v = col.getTypedValue(row) if isinstance(v, TypedWrapper): if isinstance(v, TypedExceptionWrapper): return options_safe_error else: ...
https://github.com/saulpw/visidata/issues/369
Traceback (most recent call last): β€– File "/usr/lib/python3/dist-packages/visidata/vdtui.py", line 1115, in exec_command β€– exec(cmd.execstr, vdglobals, LazyMap(self)) β€– File "<string>", line 1, in <module> ...
sqlite3.OperationalError
def getColumns(self, tableName, conn): cols = [] for i, r in enumerate(self.execute(conn, 'PRAGMA TABLE_INFO("%s")' % tableName)): c = Column(r[1], getter=lambda col, row, idx=i: row[idx]) t = r[2].lower() if t == "integer": c.type = int elif t == "text": ...
def getColumns(self, tableName, conn): cols = [] for i, r in enumerate(self.execute(conn, "PRAGMA TABLE_INFO(%s)" % tableName)): c = Column(r[1], getter=lambda col, row, idx=i: row[idx]) t = r[2].lower() if t == "integer": c.type = int elif t == "text": c....
https://github.com/saulpw/visidata/issues/369
Traceback (most recent call last): β€– File "/usr/lib/python3/dist-packages/visidata/vdtui.py", line 1115, in exec_command β€– exec(cmd.execstr, vdglobals, LazyMap(self)) β€– File "<string>", line 1, in <module> ...
sqlite3.OperationalError
def multisave_sqlite(p, *vsheets): import sqlite3 conn = sqlite3.connect(str(p)) c = conn.cursor() for vs in vsheets: tblname = clean_to_id(vs.name) sqlcols = [] for col in vs.visibleCols: sqlcols.append('"%s" %s' % (col.name, sqlite_type(col.type))) sql = '...
def multisave_sqlite(p, *vsheets): import sqlite3 conn = sqlite3.connect(str(p)) c = conn.cursor() for vs in vsheets: tblname = clean_to_id(vs.name) sqlcols = [] for col in vs.visibleCols: sqlcols.append("%s %s" % (col.name, sqlite_type(col.type))) sql = "CR...
https://github.com/saulpw/visidata/issues/369
Traceback (most recent call last): β€– File "/usr/lib/python3/dist-packages/visidata/vdtui.py", line 1115, in exec_command β€– exec(cmd.execstr, vdglobals, LazyMap(self)) β€– File "<string>", line 1, in <module> ...
sqlite3.OperationalError
def __init__(self, *objs): self.locals = {} self.objs = list(objs) + [self.locals]
def __init__(self, *objs): self.objs = objs
https://github.com/saulpw/visidata/issues/251
$ vd --debug -b -p newCol.vd Think about what you're doing opening newCol as vd "." opening . as dir "1" c=addColumn(SettableColumn("", width=options.default_width), cursorColIndex+1); draw(vd.scr); cursorVisibleColIndex=visibleCols.index(c); c.name=editCell(cursorVisibleColIndex, -1); c.width=None AttributeError: 'Non...
AttributeError