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 reset_interactive_output_stream(cls, interactive_output_stream): """ Class state: - Overwrites `cls._interactive_output_stream`. OS state: - Overwrites the SIGUSR2 handler. This method registers a SIGUSR2 handler, which permits a non-fatal `kill -31 <pants pid>` for stacktrace retrieval...
def reset_interactive_output_stream(cls, interactive_output_stream): """ Class state: - Overwrites `cls._interactive_output_stream`. OS state: - Overwrites the SIGUSR2 handler. This is where the the error message on exit will be printed to as well. """ try: # NB: mutate process-...
https://github.com/pantsbuild/pants/issues/6847
23:26:42 01:10 [run] ============== test session starts =============== platform darwin -- Python 2.7.10, pytest-3.6.4, py-1.7.0, pluggy-0.7.1 -- /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python cachedir: .pants.d/.pytest_cache rootdir: /Users/travis/build/pantsb...
AssertionError
def _format_traceback(cls, traceback_lines, should_print_backtrace): if should_print_backtrace: traceback_string = "\n{}".format("".join(traceback_lines)) else: traceback_string = " {}".format(cls._traceback_omitted_default_text) return traceback_string
def _format_traceback(cls, tb, should_print_backtrace): if should_print_backtrace: traceback_string = "\n{}".format("".join(traceback.format_tb(tb))) else: traceback_string = " {}".format(cls._traceback_omitted_default_text) return traceback_string
https://github.com/pantsbuild/pants/issues/6847
23:26:42 01:10 [run] ============== test session starts =============== platform darwin -- Python 2.7.10, pytest-3.6.4, py-1.7.0, pluggy-0.7.1 -- /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python cachedir: .pants.d/.pytest_cache rootdir: /Users/travis/build/pantsb...
AssertionError
def _format_unhandled_exception_log(cls, exc, tb, add_newline, should_print_backtrace): exc_type = type(exc) exception_full_name = "{}.{}".format(exc_type.__module__, exc_type.__name__) exception_message = str(exc) if exc else "(no message)" maybe_newline = "\n" if add_newline else "" return cls._UN...
def _format_unhandled_exception_log(cls, exc, tb, add_newline, should_print_backtrace): exc_type = type(exc) exception_full_name = "{}.{}".format(exc_type.__module__, exc_type.__name__) exception_message = str(exc) if exc else "(no message)" maybe_newline = "\n" if add_newline else "" return cls._UN...
https://github.com/pantsbuild/pants/issues/6847
23:26:42 01:10 [run] ============== test session starts =============== platform darwin -- Python 2.7.10, pytest-3.6.4, py-1.7.0, pluggy-0.7.1 -- /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python cachedir: .pants.d/.pytest_cache rootdir: /Users/travis/build/pantsb...
AssertionError
def _exit_with_failure(cls, terminal_msg): formatted_terminal_msg = cls._EXIT_FAILURE_TERMINAL_MESSAGE_FORMAT.format( timestamp=cls._iso_timestamp_for_now(), terminal_msg=terminal_msg or "<no exit reason provided>", ) # Exit with failure, printing a message to the terminal (or whatever the i...
def _exit_with_failure(cls, terminal_msg): formatted_terminal_msg = cls._EXIT_FAILURE_TERMINAL_MESSAGE_FORMAT.format( timestamp=cls._iso_timestamp_for_now(), terminal_msg=terminal_msg or "" ) # Exit with failure, printing a message to the terminal (or whatever the interactive stream is). cls._ex...
https://github.com/pantsbuild/pants/issues/6847
23:26:42 01:10 [run] ============== test session starts =============== platform darwin -- Python 2.7.10, pytest-3.6.4, py-1.7.0, pluggy-0.7.1 -- /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python cachedir: .pants.d/.pytest_cache rootdir: /Users/travis/build/pantsb...
AssertionError
def _log_unhandled_exception_and_exit( cls, exc_class=None, exc=None, tb=None, add_newline=False ): """A sys.excepthook implementation which logs the error and exits with failure.""" exc_class = exc_class or sys.exc_info()[0] exc = exc or sys.exc_info()[1] tb = tb or sys.exc_info()[2] # This ex...
def _log_unhandled_exception_and_exit( cls, exc_class=None, exc=None, tb=None, add_newline=False ): """A sys.excepthook implementation which logs the error and exits with failure.""" exc_class = exc_class or sys.exc_info()[0] exc = exc or sys.exc_info()[1] tb = tb or sys.exc_info()[2] extra_err...
https://github.com/pantsbuild/pants/issues/6847
23:26:42 01:10 [run] ============== test session starts =============== platform darwin -- Python 2.7.10, pytest-3.6.4, py-1.7.0, pluggy-0.7.1 -- /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python cachedir: .pants.d/.pytest_cache rootdir: /Users/travis/build/pantsb...
AssertionError
def __init__(self, *args, **kwargs): """ :param int exit_code: an optional exit code (defaults to nonzero) :param list failed_targets: an optional list of failed targets (default=[]) """ self._exit_code = kwargs.pop("exit_code", PANTS_FAILED_EXIT_CODE) self._failed_targets = kwargs.pop("failed_t...
def __init__(self, *args, **kwargs): """ :param int exit_code: an optional exit code (default=1) :param list failed_targets: an optional list of failed targets (default=[]) """ self._exit_code = kwargs.pop("exit_code", 1) self._failed_targets = kwargs.pop("failed_targets", []) super(TaskErro...
https://github.com/pantsbuild/pants/issues/6847
23:26:42 01:10 [run] ============== test session starts =============== platform darwin -- Python 2.7.10, pytest-3.6.4, py-1.7.0, pluggy-0.7.1 -- /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python cachedir: .pants.d/.pytest_cache rootdir: /Users/travis/build/pantsb...
AssertionError
def exit(self, result=PANTS_SUCCEEDED_EXIT_CODE, msg=None, out=None): """Exits the runtime. :param result: The exit status. Typically either PANTS_SUCCEEDED_EXIT_CODE or PANTS_FAILED_EXIT_CODE, but can be a string as well. (Optional) :param msg: A string message to print to stderr or ano...
def exit(self, result=0, msg=None, out=None): """Exits the runtime. :param result: The exit status. Typically a 0 indicating success or a 1 indicating failure, but can be a string as well. (Optional) :param msg: A string message to print to stderr or another custom file desciptor before ...
https://github.com/pantsbuild/pants/issues/6847
23:26:42 01:10 [run] ============== test session starts =============== platform darwin -- Python 2.7.10, pytest-3.6.4, py-1.7.0, pluggy-0.7.1 -- /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python cachedir: .pants.d/.pytest_cache rootdir: /Users/travis/build/pantsb...
AssertionError
def exit_and_fail(self, msg=None, out=None): """Exits the runtime with a nonzero exit code, indicating failure. :param msg: A string message to print to stderr or another custom file desciptor before exiting. (Optional) :param out: The file descriptor to emit `msg` to. (Optional) """ ...
def exit_and_fail(self, msg=None): """Exits the runtime with an exit code of 1, indicating failure. :param str msg: A string message to print to stderr before exiting. (Optional) """ self.exit(result=1, msg=msg)
https://github.com/pantsbuild/pants/issues/6847
23:26:42 01:10 [run] ============== test session starts =============== platform darwin -- Python 2.7.10, pytest-3.6.4, py-1.7.0, pluggy-0.7.1 -- /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python cachedir: .pants.d/.pytest_cache rootdir: /Users/travis/build/pantsb...
AssertionError
def post_fork_child(self): """Post-fork child process callback executed via ProcessManager.daemonize().""" # Set the Exiter exception hook post-fork so as not to affect the pantsd processes exception # hook with socket-specific behavior. Note that this intentionally points the faulthandler # trace strea...
def post_fork_child(self): """Post-fork child process callback executed via ProcessManager.daemonize().""" # Set the Exiter exception hook post-fork so as not to affect the pantsd processes exception # hook with socket-specific behavior. Note that this intentionally points the faulthandler # trace strea...
https://github.com/pantsbuild/pants/issues/6847
23:26:42 01:10 [run] ============== test session starts =============== platform darwin -- Python 2.7.10, pytest-3.6.4, py-1.7.0, pluggy-0.7.1 -- /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python cachedir: .pants.d/.pytest_cache rootdir: /Users/travis/build/pantsb...
AssertionError
def __init__( self, build_root, exiter, options, options_bootstrapper, build_config, target_roots, graph_session, is_daemon, profile_path, ): """ :param string build_root: The build root for this run. :param Exiter exiter: The Exiter instance to use for this run. ...
def __init__( self, build_root, exiter, options, options_bootstrapper, build_config, target_roots, graph_session, is_daemon, profile_path, ): """ :param string build_root: The build root for this run. :param Exiter exiter: The Exiter instance to use for this run. ...
https://github.com/pantsbuild/pants/issues/6847
23:26:42 01:10 [run] ============== test session starts =============== platform darwin -- Python 2.7.10, pytest-3.6.4, py-1.7.0, pluggy-0.7.1 -- /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python cachedir: .pants.d/.pytest_cache rootdir: /Users/travis/build/pantsb...
AssertionError
def set_start_time(self, start_time): # Launch RunTracker as early as possible (before .run() is called). self._run_tracker = RunTracker.global_instance() self._reporting = Reporting.global_instance() self._run_start_time = start_time self._reporting.initialize( self._run_tracker, self._opt...
def set_start_time(self, start_time): self._run_start_time = start_time
https://github.com/pantsbuild/pants/issues/6847
23:26:42 01:10 [run] ============== test session starts =============== platform darwin -- Python 2.7.10, pytest-3.6.4, py-1.7.0, pluggy-0.7.1 -- /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python cachedir: .pants.d/.pytest_cache rootdir: /Users/travis/build/pantsb...
AssertionError
def _maybe_run_v1(self): if not self._global_options.v1: return PANTS_SUCCEEDED_EXIT_CODE # Setup and run GoalRunner. goal_runner_factory = GoalRunner.Factory( self._build_root, self._options, self._build_config, self._run_tracker, self._reporting, se...
def _maybe_run_v1(self, run_tracker, reporting): if not self._global_options.v1: return 0 # Setup and run GoalRunner. goal_runner_factory = GoalRunner.Factory( self._build_root, self._options, self._build_config, run_tracker, reporting, self._graph_se...
https://github.com/pantsbuild/pants/issues/6847
23:26:42 01:10 [run] ============== test session starts =============== platform darwin -- Python 2.7.10, pytest-3.6.4, py-1.7.0, pluggy-0.7.1 -- /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python cachedir: .pants.d/.pytest_cache rootdir: /Users/travis/build/pantsb...
AssertionError
def _maybe_run_v2(self): # N.B. For daemon runs, @console_rules are invoked pre-fork - # so this path only serves the non-daemon run mode. if self._is_daemon or not self._global_options.v2: return PANTS_SUCCEEDED_EXIT_CODE # If we're a pure --v2 run, validate goals - otherwise some goals specif...
def _maybe_run_v2(self): # N.B. For daemon runs, @console_rules are invoked pre-fork - # so this path only serves the non-daemon run mode. if self._is_daemon or not self._global_options.v2: return 0 # If we're a pure --v2 run, validate goals - otherwise some goals specified # may be provide...
https://github.com/pantsbuild/pants/issues/6847
23:26:42 01:10 [run] ============== test session starts =============== platform darwin -- Python 2.7.10, pytest-3.6.4, py-1.7.0, pluggy-0.7.1 -- /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python cachedir: .pants.d/.pytest_cache rootdir: /Users/travis/build/pantsb...
AssertionError
def _run(self): try: engine_result = self._maybe_run_v2() goal_runner_result = self._maybe_run_v1() finally: try: run_tracker_result = self._run_tracker.end() except ValueError as e: # Calling .end() sometimes writes to a closed file, so we return a dummy ...
def _run(self): # Launch RunTracker as early as possible (just after Subsystem options are initialized). run_tracker = RunTracker.global_instance() reporting = Reporting.global_instance() reporting.initialize(run_tracker, self._options, self._run_start_time) try: # Capture a repro of the 'b...
https://github.com/pantsbuild/pants/issues/6847
23:26:42 01:10 [run] ============== test session starts =============== platform darwin -- Python 2.7.10, pytest-3.6.4, py-1.7.0, pluggy-0.7.1 -- /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python cachedir: .pants.d/.pytest_cache rootdir: /Users/travis/build/pantsb...
AssertionError
def main(): start_time = time.time() exiter = Exiter() ExceptionSink.reset_exiter(exiter) with maybe_profiled(os.environ.get("PANTSC_PROFILE")): try: PantsRunner(exiter, start_time=start_time).run() except KeyboardInterrupt as e: exiter.exit_and_fail("Interrupte...
def main(): start_time = time.time() exiter = Exiter() ExceptionSink.reset_exiter(exiter) with maybe_profiled(os.environ.get("PANTSC_PROFILE")): try: PantsRunner(exiter, start_time=start_time).run() except KeyboardInterrupt: exiter.exit_and_fail("Interrupted by ...
https://github.com/pantsbuild/pants/issues/6847
23:26:42 01:10 [run] ============== test session starts =============== platform darwin -- Python 2.7.10, pytest-3.6.4, py-1.7.0, pluggy-0.7.1 -- /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python cachedir: .pants.d/.pytest_cache rootdir: /Users/travis/build/pantsb...
AssertionError
def _trapped_signals(self, client): """A contextmanager that handles SIGINT (control-c) and SIGQUIT (control-\\) remotely.""" signal_handler = PailgunClientSignalHandler( client, timeout=self._bootstrap_options.for_global_scope().pantsd_pailgun_quit_timeout, ) with ExceptionSink.trapped_...
def _trapped_signals(self, client): """A contextmanager that overrides the SIGINT (control-c) and SIGQUIT (control-\\) handlers and handles them remotely.""" def handle_control_c(signum, frame): client.maybe_send_signal(signum, include_pgrp=True) existing_sigint_handler = signal.signal(signal....
https://github.com/pantsbuild/pants/issues/6847
23:26:42 01:10 [run] ============== test session starts =============== platform darwin -- Python 2.7.10, pytest-3.6.4, py-1.7.0, pluggy-0.7.1 -- /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python cachedir: .pants.d/.pytest_cache rootdir: /Users/travis/build/pantsb...
AssertionError
def _run_pants_with_retry(self, pantsd_handle, retries=3): """Runs pants remotely with retry and recovery for nascent executions. :param PantsDaemon.Handle pantsd_handle: A Handle for the daemon to connect to. """ attempt = 1 while 1: logger.debug( "connecting to pantsd on port ...
def _run_pants_with_retry(self, pantsd_handle, retries=3): """Runs pants remotely with retry and recovery for nascent executions. :param PantsDaemon.Handle pantsd_handle: A Handle for the daemon to connect to. """ attempt = 1 while 1: logger.debug( "connecting to pantsd on port ...
https://github.com/pantsbuild/pants/issues/6847
23:26:42 01:10 [run] ============== test session starts =============== platform darwin -- Python 2.7.10, pytest-3.6.4, py-1.7.0, pluggy-0.7.1 -- /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python cachedir: .pants.d/.pytest_cache rootdir: /Users/travis/build/pantsb...
AssertionError
def _connect_and_execute(self, pantsd_handle): port = pantsd_handle.port # Merge the nailgun TTY capability environment variables with the passed environment dict. ng_env = NailgunProtocol.isatty_to_env(self._stdin, self._stdout, self._stderr) modified_env = combined_dict(self._env, ng_env) modified...
def _connect_and_execute(self, port): # Merge the nailgun TTY capability environment variables with the passed environment dict. ng_env = NailgunProtocol.isatty_to_env(self._stdin, self._stdout, self._stderr) modified_env = combined_dict(self._env, ng_env) modified_env["PANTSD_RUNTRACKER_CLIENT_START_TI...
https://github.com/pantsbuild/pants/issues/6847
23:26:42 01:10 [run] ============== test session starts =============== platform darwin -- Python 2.7.10, pytest-3.6.4, py-1.7.0, pluggy-0.7.1 -- /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python cachedir: .pants.d/.pytest_cache rootdir: /Users/travis/build/pantsb...
AssertionError
def __init__(self, *args, **kwargs): """ :API: public """ super(RunTracker, self).__init__(*args, **kwargs) self._run_timestamp = time.time() self._cmd_line = " ".join(["pants"] + sys.argv[1:]) self._sorted_goal_infos = tuple() # Initialized in `initialize()`. self.run_info_dir = No...
def __init__(self, *args, **kwargs): """ :API: public """ super(RunTracker, self).__init__(*args, **kwargs) self._run_timestamp = time.time() self._cmd_line = " ".join(["pants"] + sys.argv[1:]) self._sorted_goal_infos = tuple() # Initialized in `initialize()`. self.run_info_dir = No...
https://github.com/pantsbuild/pants/issues/6847
23:26:42 01:10 [run] ============== test session starts =============== platform darwin -- Python 2.7.10, pytest-3.6.4, py-1.7.0, pluggy-0.7.1 -- /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python cachedir: .pants.d/.pytest_cache rootdir: /Users/travis/build/pantsb...
AssertionError
def end(self): """This pants run is over, so stop tracking it. Note: If end() has been called once, subsequent calls are no-ops. :return: PANTS_SUCCEEDED_EXIT_CODE or PANTS_FAILED_EXIT_CODE """ if self._end_memoized_result is not None: return self._end_memoized_result if self._backgrou...
def end(self): """This pants run is over, so stop tracking it. Note: If end() has been called once, subsequent calls are no-ops. :return: 0 for success, 1 for failure. """ if self._background_worker_pool: if self._aborted: self.log(Report.INFO, "Aborting background workers.") ...
https://github.com/pantsbuild/pants/issues/6847
23:26:42 01:10 [run] ============== test session starts =============== platform darwin -- Python 2.7.10, pytest-3.6.4, py-1.7.0, pluggy-0.7.1 -- /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python cachedir: .pants.d/.pytest_cache rootdir: /Users/travis/build/pantsb...
AssertionError
def __init__( self, sock, in_file, out_file, err_file, exit_on_broken_pipe=False, remote_pid_callback=None, remote_pgrp_callback=None, ): """ :param bool exit_on_broken_pipe: whether or not to exit when `Broken Pipe` errors are encountered :param remote_pid_ca...
def __init__( self, sock, in_file, out_file, err_file, exit_on_broken_pipe=False, remote_pid_callback=None, remote_pgrp_callback=None, ): """ :param bool exit_on_broken_pipe: whether or not to exit when `Broken Pipe` errors are encountered :param remote_pid_ca...
https://github.com/pantsbuild/pants/issues/6847
23:26:42 01:10 [run] ============== test session starts =============== platform darwin -- Python 2.7.10, pytest-3.6.4, py-1.7.0, pluggy-0.7.1 -- /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python cachedir: .pants.d/.pytest_cache rootdir: /Users/travis/build/pantsb...
AssertionError
def _process_session(self): """Process the outputs of the nailgun session. :raises: :class:`NailgunProtocol.ProcessStreamTimeout` if a timeout set from a signal handler with .set_exit_timeout() completes. :raises: :class:`Exception` if the session ...
def _process_session(self): """Process the outputs of the nailgun session.""" try: for chunk_type, payload in self.iter_chunks(self._sock, return_bytes=True): # TODO(#6579): assert that we have at this point received all the chunk types in # ChunkType.REQUEST_TYPES, then require ...
https://github.com/pantsbuild/pants/issues/6847
23:26:42 01:10 [run] ============== test session starts =============== platform darwin -- Python 2.7.10, pytest-3.6.4, py-1.7.0, pluggy-0.7.1 -- /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python cachedir: .pants.d/.pytest_cache rootdir: /Users/travis/build/pantsb...
AssertionError
def _receive_remote_pid(self, pid): self._current_remote_pid = pid self._maybe_write_pid_file()
def _receive_remote_pid(self, pid): self._current_remote_pid = pid
https://github.com/pantsbuild/pants/issues/6847
23:26:42 01:10 [run] ============== test session starts =============== platform darwin -- Python 2.7.10, pytest-3.6.4, py-1.7.0, pluggy-0.7.1 -- /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python cachedir: .pants.d/.pytest_cache rootdir: /Users/travis/build/pantsb...
AssertionError
def _receive_remote_pgrp(self, pgrp): self._current_remote_pgrp = pgrp self._maybe_write_pid_file()
def _receive_remote_pgrp(self, pgrp): self._current_remote_pgrp = pgrp
https://github.com/pantsbuild/pants/issues/6847
23:26:42 01:10 [run] ============== test session starts =============== platform darwin -- Python 2.7.10, pytest-3.6.4, py-1.7.0, pluggy-0.7.1 -- /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python cachedir: .pants.d/.pytest_cache rootdir: /Users/travis/build/pantsb...
AssertionError
def iter_chunks(cls, sock, return_bytes=False, timeout_object=None): """Generates chunks from a connected socket until an Exit chunk is sent or a timeout occurs. :param sock: the socket to read from. :param bool return_bytes: If False, decode the payload into a utf-8 string. :param cls.TimeoutProvider ...
def iter_chunks(cls, sock, return_bytes=False): """Generates chunks from a connected socket until an Exit chunk is sent.""" while 1: chunk_type, payload = cls.read_chunk(sock, return_bytes) yield chunk_type, payload if chunk_type == ChunkType.EXIT: break
https://github.com/pantsbuild/pants/issues/6847
23:26:42 01:10 [run] ============== test session starts =============== platform darwin -- Python 2.7.10, pytest-3.6.4, py-1.7.0, pluggy-0.7.1 -- /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python cachedir: .pants.d/.pytest_cache rootdir: /Users/travis/build/pantsb...
AssertionError
def register_bootstrap_options(cls, register): """Register bootstrap options. "Bootstrap options" are a small set of options whose values are useful when registering other options. Therefore we must bootstrap them early, before other options are registered, let alone parsed. Bootstrap option value...
def register_bootstrap_options(cls, register): """Register bootstrap options. "Bootstrap options" are a small set of options whose values are useful when registering other options. Therefore we must bootstrap them early, before other options are registered, let alone parsed. Bootstrap option value...
https://github.com/pantsbuild/pants/issues/6847
23:26:42 01:10 [run] ============== test session starts =============== platform darwin -- Python 2.7.10, pytest-3.6.4, py-1.7.0, pluggy-0.7.1 -- /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python cachedir: .pants.d/.pytest_cache rootdir: /Users/travis/build/pantsb...
AssertionError
def write(self, msg): msg = ensure_text(msg) for line in msg.rstrip().splitlines(): # The log only accepts text, and will raise a decoding error if the default encoding is ascii # if provided a bytes input for unicode text. line = ensure_text(line) self._logger.log(self._log_leve...
def write(self, msg): msg = ensure_text(msg) for line in msg.rstrip().splitlines(): self._logger.log(self._log_level, line.rstrip())
https://github.com/pantsbuild/pants/issues/6847
23:26:42 01:10 [run] ============== test session starts =============== platform darwin -- Python 2.7.10, pytest-3.6.4, py-1.7.0, pluggy-0.7.1 -- /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python cachedir: .pants.d/.pytest_cache rootdir: /Users/travis/build/pantsb...
AssertionError
def maybe_launch(cls, options_bootstrapper): """Creates and launches a daemon instance if one does not already exist. :param OptionsBootstrapper options_bootstrapper: The bootstrap options. :returns: A Handle for the running pantsd instance. :rtype: PantsDaemon.Handle """ stub_pantsd = cls.crea...
def maybe_launch(cls, options_bootstrapper): """Creates and launches a daemon instance if one does not already exist. :param OptionsBootstrapper options_bootstrapper: The bootstrap options. :returns: A Handle for the running pantsd instance. :rtype: PantsDaemon.Handle """ stub_pantsd = cls.crea...
https://github.com/pantsbuild/pants/issues/6847
23:26:42 01:10 [run] ============== test session starts =============== platform darwin -- Python 2.7.10, pytest-3.6.4, py-1.7.0, pluggy-0.7.1 -- /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python cachedir: .pants.d/.pytest_cache rootdir: /Users/travis/build/pantsb...
AssertionError
def launch(self): """Launches pantsd in a subprocess. N.B. This should always be called under care of the `lifecycle_lock`. :returns: A Handle for the pantsd instance. :rtype: PantsDaemon.Handle """ self.terminate(include_watchman=False) self.watchman_launcher.maybe_launch() self._logg...
def launch(self): """Launches pantsd in a subprocess. N.B. This should always be called under care of the `lifecycle_lock`. :returns: A Handle for the pantsd instance. :rtype: PantsDaemon.Handle """ self.terminate(include_watchman=False) self.watchman_launcher.maybe_launch() self._logg...
https://github.com/pantsbuild/pants/issues/6847
23:26:42 01:10 [run] ============== test session starts =============== platform darwin -- Python 2.7.10, pytest-3.6.4, py-1.7.0, pluggy-0.7.1 -- /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python cachedir: .pants.d/.pytest_cache rootdir: /Users/travis/build/pantsb...
AssertionError
def __init__(self, message="", exit_code=PANTS_FAILED_EXIT_CODE): """ :param int exit_code: an optional exit code (defaults to PANTS_FAILED_EXIT_CODE) """ super(GracefulTerminationException, self).__init__(message) if exit_code == PANTS_SUCCEEDED_EXIT_CODE: raise ValueError( "Ca...
def __init__(self, message="", exit_code=1): """ :param int exit_code: an optional exit code (default=1) """ super(GracefulTerminationException, self).__init__(message) if exit_code == 0: raise ValueError( "Cannot create GracefulTerminationException with exit code of 0" ...
https://github.com/pantsbuild/pants/issues/6847
23:26:42 01:10 [run] ============== test session starts =============== platform darwin -- Python 2.7.10, pytest-3.6.4, py-1.7.0, pluggy-0.7.1 -- /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python cachedir: .pants.d/.pytest_cache rootdir: /Users/travis/build/pantsb...
AssertionError
def setup_logging(level, console_stream=None, log_dir=None, scope=None, log_name=None): """Configures logging for a given scope, by default the global scope. :param str level: The logging level to enable, must be one of the level names listed here: https://docs.python.org/2/library/loggin...
def setup_logging(level, console_stream=None, log_dir=None, scope=None, log_name=None): """Configures logging for a given scope, by default the global scope. :param str level: The logging level to enable, must be one of the level names listed here: https://docs.python.org/2/library/loggin...
https://github.com/pantsbuild/pants/issues/5354
F0117 15:10:04.500231 12664 process_manager.py:463] Traceback (most recent call last): File "/Users/redacted/.pex/install/pantsbuild.pants-1.4.0.dev20+3346017507-cp27-none-macosx_10_8_x86_64.whl.ac6c80da047e6ed09228262b774906b65ebf6918/pantsbuild.pants-1.4.0.dev20+3346017507-cp27-none-macosx_10_8_x86_64.whl/pants/pants...
ValueError
def __init__(self, logger, log_level, handler): """ :param logging.Logger logger: The logger instance to emit writes to. :param int log_level: The log level to use for the given logger. :param Handler handler: The underlying log handler, for determining the fileno to support ...
def __init__(self, logger, log_level, logger_stream): """ :param logging.Logger logger: The logger instance to emit writes to. :param int log_level: The log level to use for the given logger. :param file logger_stream: The underlying file object the logger is writing to, for ...
https://github.com/pantsbuild/pants/issues/5354
F0117 15:10:04.500231 12664 process_manager.py:463] Traceback (most recent call last): File "/Users/redacted/.pex/install/pantsbuild.pants-1.4.0.dev20+3346017507-cp27-none-macosx_10_8_x86_64.whl.ac6c80da047e6ed09228262b774906b65ebf6918/pantsbuild.pants-1.4.0.dev20+3346017507-cp27-none-macosx_10_8_x86_64.whl/pants/pants...
ValueError
def fileno(self): return self._handler.stream.fileno()
def fileno(self): return self._stream.fileno()
https://github.com/pantsbuild/pants/issues/5354
F0117 15:10:04.500231 12664 process_manager.py:463] Traceback (most recent call last): File "/Users/redacted/.pex/install/pantsbuild.pants-1.4.0.dev20+3346017507-cp27-none-macosx_10_8_x86_64.whl.ac6c80da047e6ed09228262b774906b65ebf6918/pantsbuild.pants-1.4.0.dev20+3346017507-cp27-none-macosx_10_8_x86_64.whl/pants/pants...
ValueError
def _pantsd_logging(self): """A context manager that runs with pantsd logging. Asserts that stdio (represented by file handles 0, 1, 2) is closed to ensure that we can safely reuse those fd numbers. """ # Ensure that stdio is closed so that we can safely reuse those file descriptors. for fd in...
def _pantsd_logging(self): """A context manager that runs with pantsd logging. Asserts that stdio (represented by file handles 0, 1, 2) is closed to ensure that we can safely reuse those fd numbers. """ # Ensure that stdio is closed so that we can safely reuse those file descriptors. for fd in...
https://github.com/pantsbuild/pants/issues/5354
F0117 15:10:04.500231 12664 process_manager.py:463] Traceback (most recent call last): File "/Users/redacted/.pex/install/pantsbuild.pants-1.4.0.dev20+3346017507-cp27-none-macosx_10_8_x86_64.whl.ac6c80da047e6ed09228262b774906b65ebf6918/pantsbuild.pants-1.4.0.dev20+3346017507-cp27-none-macosx_10_8_x86_64.whl/pants/pants...
ValueError
def execute(self): binary = self.require_single_root_target() if isinstance(binary, PythonBinary): # We can't throw if binary isn't a PythonBinary, because perhaps we were called on a # jvm_binary, in which case we have to no-op and let jvm_run do its thing. # TODO(benjy): Use MutexTask ...
def execute(self): binary = self.require_single_root_target() if isinstance(binary, PythonBinary): # We can't throw if binary isn't a PythonBinary, because perhaps we were called on a # jvm_binary, in which case we have to no-op and let jvm_run do its thing. # TODO(benjy): Use MutexTask ...
https://github.com/pantsbuild/pants/issues/4590
Traceback (most recent call last): File "/Users/mike/code/fr/source/.pants.d/run/py/CPython-2.7.10/f4fb689ebb3890a4f8f61526b64dbf8f00714968-DefaultFingerprintStrategy_4fa5ce70a419/.bootstrap/_pex/pex.py", line 360, in execute self._wrap_coverage(self._wrap_profiling, self._execute) File "/Users/mike/code/fr/source/.pan...
KeyError
def create_graph(self, spec_roots): """Construct and return a BuildGraph given a set of input specs.""" graph = self.legacy_graph_cls(self.scheduler, self.engine, self.symbol_table_cls) with self.scheduler.locked(): for _ in graph.inject_specs_closure( spec_roots ): # Ensure the...
def create_graph(self, spec_roots): """Construct and return a BuildGraph given a set of input specs.""" graph = self.legacy_graph_cls(self.scheduler, self.engine, self.symbol_table_cls) for _ in graph.inject_specs_closure( spec_roots ): # Ensure the entire generator is unrolled. pass ...
https://github.com/pantsbuild/pants/issues/3565
W0602 21:35:21.260252 22326 pailgun_service.py:69] encountered exception during SchedulerService.get_build_graph(): Traceback (most recent call last): File "/home/travis/build/pantsbuild/pants/src/python/pants/pantsd/service/pailgun_service.py", line 65, in runner_factory build_graph = self._scheduler_service.get_build...
AttributeError
def __init__( self, server_address, runner_factory, context_lock, handler_class=None, bind_and_activate=True, ): """Override of TCPServer.__init__(). N.B. the majority of this function is copied verbatim from TCPServer.__init__(). :param tuple server_address: An address tuple of (h...
def __init__( self, server_address, runner_factory, handler_class=None, bind_and_activate=True ): """Override of TCPServer.__init__(). N.B. the majority of this function is copied verbatim from TCPServer.__init__(). :param tuple server_address: An address tuple of (hostname, port) for socket.bind(). ...
https://github.com/pantsbuild/pants/issues/3565
W0602 21:35:21.260252 22326 pailgun_service.py:69] encountered exception during SchedulerService.get_build_graph(): Traceback (most recent call last): File "/home/travis/build/pantsbuild/pants/src/python/pants/pantsd/service/pailgun_service.py", line 65, in runner_factory build_graph = self._scheduler_service.get_build...
AttributeError
def process_request(self, request, client_address): """Override of TCPServer.process_request() that provides for forking request handlers and delegates error handling to the request handler.""" # Instantiate the request handler. handler = self.RequestHandlerClass(request, client_address, self) try:...
def process_request(self, request, client_address): """Override of TCPServer.process_request() that provides for forking request handlers and delegates error handling to the request handler.""" # Instantiate the request handler. handler = self.RequestHandlerClass(request, client_address, self) try:...
https://github.com/pantsbuild/pants/issues/3565
W0602 21:35:21.260252 22326 pailgun_service.py:69] encountered exception during SchedulerService.get_build_graph(): Traceback (most recent call last): File "/home/travis/build/pantsbuild/pants/src/python/pants/pantsd/service/pailgun_service.py", line 65, in runner_factory build_graph = self._scheduler_service.get_build...
AttributeError
def _setup_pailgun(self): """Sets up a PailgunServer instance.""" # Constructs and returns a runnable PantsRunner. def runner_factory(sock, arguments, environment): exiter = self._exiter_class(sock) build_graph = None self._logger.debug("execution commandline: %s", arguments) ...
def _setup_pailgun(self): """Sets up a PailgunServer instance.""" # Constructs and returns a runnable PantsRunner. def runner_factory(sock, arguments, environment): exiter = self._exiter_class(sock) build_graph = None self._logger.debug("execution commandline: %s", arguments) ...
https://github.com/pantsbuild/pants/issues/3565
W0602 21:35:21.260252 22326 pailgun_service.py:69] encountered exception during SchedulerService.get_build_graph(): Traceback (most recent call last): File "/home/travis/build/pantsbuild/pants/src/python/pants/pantsd/service/pailgun_service.py", line 65, in runner_factory build_graph = self._scheduler_service.get_build...
AttributeError
def _run(): """ To add additional paths to sys.path, add a block to the config similar to the following: [main] roots: ['src/python/pants_internal/test/',] """ version = get_version() if len(sys.argv) == 2 and sys.argv[1] == _VERSION_OPTION: _do_exit(version) root_dir = get_buil...
def _run(): """ To add additional paths to sys.path, add a block to the config similar to the following: [main] roots: ['src/python/pants_internal/test/',] """ version = get_version() if len(sys.argv) == 2 and sys.argv[1] == _VERSION_OPTION: _do_exit(version) root_dir = get_buil...
https://github.com/pantsbuild/pants/issues/52
[tw-mbp13-tdesai pants]$ ./pants server Failed to execute pants build: Traceback (most recent call last): File "/Users/tdesai/projects/pants/pants.pex/pants/bin/pants_exe.py", line 89, in _synthesize_command Address.parse(root_dir, command) File "/Users/tdesai/projects/pants/pants.pex/pants/base/address.py", line 57, i...
IOError
def _create_launchers(self): """Create launchers""" self._print("Creating launchers") self.create_launcher( "WinPython Command Prompt.exe", "cmd.ico", command="$SYSDIR\cmd.exe", args=r"/k cmd.bat", ) self.create_launcher( "WinPython Interpreter.exe", ...
def _create_launchers(self): """Create launchers""" self._print("Creating launchers") self.create_launcher( "WinPython Command Prompt.exe", "cmd.ico", command="$SYSDIR\cmd.exe", args=r"/k cmd.bat", ) self.create_launcher( "WinPython Interpreter.exe", ...
https://github.com/winpython/winpython/issues/315
Traceback (most recent call last): File "C:\Users\XXX\Documents\zipp\winpython\WinPython-32bit-3.4.4.2Qt5\python-3.4.4\lib\site-packages\llvmlite\binding\ffi.py", line 40, in <module> lib = ctypes.CDLL(os.path.join(_lib_dir, _lib_name)) File "C:\Users\XXX\Documents\zipp\winpython\WinPython-32bit-3.4.4.2Qt5\python-3.4.4...
OSError
def _create_batch_scripts(self): """Create batch scripts""" self._print("Creating batch scripts") self.create_batch_script( "readme.txt", r"""These batch files are required to run WinPython icons. These files should help the user writing his/her own specific batch file to call Python script...
def _create_batch_scripts(self): """Create batch scripts""" self._print("Creating batch scripts") self.create_batch_script( "readme.txt", r"""These batch files are required to run WinPython icons. These files should help the user writing his/her own specific batch file to call Python script...
https://github.com/winpython/winpython/issues/315
Traceback (most recent call last): File "C:\Users\XXX\Documents\zipp\winpython\WinPython-32bit-3.4.4.2Qt5\python-3.4.4\lib\site-packages\llvmlite\binding\ffi.py", line 40, in <module> lib = ctypes.CDLL(os.path.join(_lib_dir, _lib_name)) File "C:\Users\XXX\Documents\zipp\winpython\WinPython-32bit-3.4.4.2Qt5\python-3.4.4...
OSError
def eventstream(f): def new_func(*args, **kwargs): def generate(): for event in chain(f(*args, **kwargs), (None,)): yield ("data: %s\n\n" % json.dumps(event)).encode() return Response( generate(), mimetype="text/event-stream", direct_passthrough=True ...
def eventstream(f): def new_func(*args, **kwargs): def generate(): for event in chain(f(*args, **kwargs), (None,)): yield "data: %s\n\n" % json.dumps(event) return Response( generate(), mimetype="text/event-stream", direct_passthrough=True ) retu...
https://github.com/lektor/lektor/issues/508
Started build Error on request: Traceback (most recent call last): File "/private/tmp/test/lib/python3.6/site-packages/werkzeug/serving.py", line 270, in run_wsgi execute(self.server.app) File "/private/tmp/test/lib/python3.6/site-packages/werkzeug/serving.py", line 261, in execute write(data) File "/private/tmp/test/l...
AssertionError
def new_func(*args, **kwargs): def generate(): for event in chain(f(*args, **kwargs), (None,)): yield ("data: %s\n\n" % json.dumps(event)).encode() return Response(generate(), mimetype="text/event-stream", direct_passthrough=True)
def new_func(*args, **kwargs): def generate(): for event in chain(f(*args, **kwargs), (None,)): yield "data: %s\n\n" % json.dumps(event) return Response(generate(), mimetype="text/event-stream", direct_passthrough=True)
https://github.com/lektor/lektor/issues/508
Started build Error on request: Traceback (most recent call last): File "/private/tmp/test/lib/python3.6/site-packages/werkzeug/serving.py", line 270, in run_wsgi execute(self.server.app) File "/private/tmp/test/lib/python3.6/site-packages/werkzeug/serving.py", line 261, in execute write(data) File "/private/tmp/test/l...
AssertionError
def generate(): for event in chain(f(*args, **kwargs), (None,)): yield ("data: %s\n\n" % json.dumps(event)).encode()
def generate(): for event in chain(f(*args, **kwargs), (None,)): yield "data: %s\n\n" % json.dumps(event)
https://github.com/lektor/lektor/issues/508
Started build Error on request: Traceback (most recent call last): File "/private/tmp/test/lib/python3.6/site-packages/werkzeug/serving.py", line 270, in run_wsgi execute(self.server.app) File "/private/tmp/test/lib/python3.6/site-packages/werkzeug/serving.py", line 261, in execute write(data) File "/private/tmp/test/l...
AssertionError
def portable_popen(cmd, *args, **kwargs): """A portable version of subprocess.Popen that automatically locates executables before invoking them. This also looks for executables in the bundle bin. """ if cmd[0] is None: raise RuntimeError("No executable specified") exe = locate_executabl...
def portable_popen(cmd, *args, **kwargs): """A portable version of subprocess.Popen that automatically locates executables before invoking them. This also looks for executables in the bundle bin. """ if cmd[0] is None: raise RuntimeError("No executable specified") exe = locate_executabl...
https://github.com/lektor/lektor/issues/414
λ lektor build Updating packages in C:\Users\Aperez\AppData\Local\Lektor\Cache\packages\4f6825e8ddb9e94fa8041414ed8a88e0 for project Traceback (most recent call last): File "C:\Users\Aperez\AppData\Local\Programs\Python\Python36-32\Scripts\lektor-script.py", line 11, in <module> load_entry_point('Lektor==3.0', 'console...
TypeError
def rpc(self, method, args): """Returns the result of an rpc call to the Bitcoin Core RPC API. If the connection is permanently or unrecognizably broken, None is returned *and the reactor is shutdown* (because we consider this condition unsafe - TODO possibly create a "freeze" mode that could restar...
def rpc(self, method, args): """Returns the result of an rpc call to the Bitcoin Core RPC API. If the connection is permanently or unrecognizably broken, None is returned *and the reactor is shutdown* (because we consider this condition unsafe - TODO possibly create a "freeze" mode that could restar...
https://github.com/JoinMarket-Org/joinmarket-clientserver/issues/673
2020-08-20 13:51:53,349 [DEBUG] >>privmsg on darkscience: nick=JXXX cmd=pubkey msg=8XXX 2020-08-20 13:52:02,337 [DEBUG] mix depths that have enough = {0: XXX} 2020-08-20 13:52:02,338 [INFO] filling offer, mixdepth=0, amount=2XXX 2020-08-20 13:52:02,893 [INFO] sending output to address=3XXX Unhandled Error Traceback...
jmclient.storage.StorageError
def get_current_block_height(self): try: res = self.rpc("getblockcount", []) except JsonRpcError as e: log.error("Getblockcount RPC failed with: %i, %s" % (e.code, e.message)) res = None return res
def get_current_block_height(self): return self.rpc("getblockcount", [])
https://github.com/JoinMarket-Org/joinmarket-clientserver/issues/673
2020-08-20 13:51:53,349 [DEBUG] >>privmsg on darkscience: nick=JXXX cmd=pubkey msg=8XXX 2020-08-20 13:52:02,337 [DEBUG] mix depths that have enough = {0: XXX} 2020-08-20 13:52:02,338 [INFO] filling offer, mixdepth=0, amount=2XXX 2020-08-20 13:52:02,893 [INFO] sending output to address=3XXX Unhandled Error Traceback...
jmclient.storage.StorageError
def __init__(self, wallet_service): self.active_orders = {} assert isinstance(wallet_service, WalletService) self.wallet_service = wallet_service self.nextoid = -1 self.offerlist = None self.sync_wait_loop = task.LoopingCall(self.try_to_create_my_orders) self.sync_wait_loop.start(2.0, now=Fa...
def __init__(self, wallet_service): self.active_orders = {} assert isinstance(wallet_service, WalletService) self.wallet_service = wallet_service self.nextoid = -1 self.offerlist = None self.sync_wait_loop = task.LoopingCall(self.try_to_create_my_orders) self.sync_wait_loop.start(2.0) se...
https://github.com/JoinMarket-Org/joinmarket-clientserver/issues/673
2020-08-20 13:51:53,349 [DEBUG] >>privmsg on darkscience: nick=JXXX cmd=pubkey msg=8XXX 2020-08-20 13:52:02,337 [DEBUG] mix depths that have enough = {0: XXX} 2020-08-20 13:52:02,338 [INFO] filling offer, mixdepth=0, amount=2XXX 2020-08-20 13:52:02,893 [INFO] sending output to address=3XXX Unhandled Error Traceback...
jmclient.storage.StorageError
def try_to_create_my_orders(self): """Because wallet syncing is not synchronous(!), we cannot calculate our offers until we know the wallet contents, so poll until BlockchainInterface.wallet_synced is flagged as True. TODO: Use a deferred, probably. Note that create_my_orders() is defined by subclas...
def try_to_create_my_orders(self): """Because wallet syncing is not synchronous(!), we cannot calculate our offers until we know the wallet contents, so poll until BlockchainInterface.wallet_synced is flagged as True. TODO: Use a deferred, probably. Note that create_my_orders() is defined by subclas...
https://github.com/JoinMarket-Org/joinmarket-clientserver/issues/673
2020-08-20 13:51:53,349 [DEBUG] >>privmsg on darkscience: nick=JXXX cmd=pubkey msg=8XXX 2020-08-20 13:52:02,337 [DEBUG] mix depths that have enough = {0: XXX} 2020-08-20 13:52:02,338 [INFO] filling offer, mixdepth=0, amount=2XXX 2020-08-20 13:52:02,893 [INFO] sending output to address=3XXX Unhandled Error Traceback...
jmclient.storage.StorageError
def __init__(self, wallet): # The two principal member variables # are the blockchaininterface instance, # which is currently global in JM but # could be more flexible in future, and # the JM wallet object. self.bci = jm_single().bc_interface # main loop used to check for transactions, inst...
def __init__(self, wallet): # The two principal member variables # are the blockchaininterface instance, # which is currently global in JM but # could be more flexible in future, and # the JM wallet object. self.bci = jm_single().bc_interface # main loop used to check for transactions, inst...
https://github.com/JoinMarket-Org/joinmarket-clientserver/issues/673
2020-08-20 13:51:53,349 [DEBUG] >>privmsg on darkscience: nick=JXXX cmd=pubkey msg=8XXX 2020-08-20 13:52:02,337 [DEBUG] mix depths that have enough = {0: XXX} 2020-08-20 13:52:02,338 [INFO] filling offer, mixdepth=0, amount=2XXX 2020-08-20 13:52:02,893 [INFO] sending output to address=3XXX Unhandled Error Traceback...
jmclient.storage.StorageError
def update_blockheight(self): """Can be called manually (on startup, or for tests) but will be called as part of main monitoring loop to ensure new transactions are added at the right height. Any failure of the RPC call must result in this returning False, otherwise return True (means self.curre...
def update_blockheight(self): """Can be called manually (on startup, or for tests) but will be called as part of main monitoring loop to ensure new transactions are added at the right height. Any failure of the RPC call must result in this returning False, otherwise return True (means self.curre...
https://github.com/JoinMarket-Org/joinmarket-clientserver/issues/673
2020-08-20 13:51:53,349 [DEBUG] >>privmsg on darkscience: nick=JXXX cmd=pubkey msg=8XXX 2020-08-20 13:52:02,337 [DEBUG] mix depths that have enough = {0: XXX} 2020-08-20 13:52:02,338 [INFO] filling offer, mixdepth=0, amount=2XXX 2020-08-20 13:52:02,893 [INFO] sending output to address=3XXX Unhandled Error Traceback...
jmclient.storage.StorageError
def critical_error(): jlog.error("Critical error updating blockheight.") # this cleanup (a) closes the wallet, removing the lock # and (b) signals to clients that the service is no longer # in a running state, both of which can be useful # post reactor shutdown. self.stopService() stop_react...
def critical_error(): jlog.error("Failure to get blockheight from Bitcoin Core.") self.stopService() return False
https://github.com/JoinMarket-Org/joinmarket-clientserver/issues/673
2020-08-20 13:51:53,349 [DEBUG] >>privmsg on darkscience: nick=JXXX cmd=pubkey msg=8XXX 2020-08-20 13:52:02,337 [DEBUG] mix depths that have enough = {0: XXX} 2020-08-20 13:52:02,338 [INFO] filling offer, mixdepth=0, amount=2XXX 2020-08-20 13:52:02,893 [INFO] sending output to address=3XXX Unhandled Error Traceback...
jmclient.storage.StorageError
def sync_unspent(self): st = time.time() # block height needs to be real time for addition to our utxos: current_blockheight = self.bci.get_current_block_height() if not current_blockheight: # this failure will shut down the application elsewhere, here # just give up: return ...
def sync_unspent(self): st = time.time() # block height needs to be real time for addition to our utxos: current_blockheight = self.bci.get_current_block_height() wallet_name = self.get_wallet_name() self.reset_utxos() listunspent_args = [] if "listunspent_args" in jm_single().config.option...
https://github.com/JoinMarket-Org/joinmarket-clientserver/issues/673
2020-08-20 13:51:53,349 [DEBUG] >>privmsg on darkscience: nick=JXXX cmd=pubkey msg=8XXX 2020-08-20 13:52:02,337 [DEBUG] mix depths that have enough = {0: XXX} 2020-08-20 13:52:02,338 [INFO] filling offer, mixdepth=0, amount=2XXX 2020-08-20 13:52:02,893 [INFO] sending output to address=3XXX Unhandled Error Traceback...
jmclient.storage.StorageError
def closeEvent(self, event): quit_msg = "Are you sure you want to quit?" reply = JMQtMessageBox(self, quit_msg, mbtype="question") if reply == QMessageBox.Yes: event.accept() if self.reactor.threadpool is not None: self.reactor.threadpool.stop() stop_reactor() else: ...
def closeEvent(self, event): quit_msg = "Are you sure you want to quit?" reply = JMQtMessageBox(self, quit_msg, mbtype="question") if reply == QMessageBox.Yes: event.accept() if self.reactor.threadpool is not None: self.reactor.threadpool.stop() if reactor.running: ...
https://github.com/JoinMarket-Org/joinmarket-clientserver/issues/673
2020-08-20 13:51:53,349 [DEBUG] >>privmsg on darkscience: nick=JXXX cmd=pubkey msg=8XXX 2020-08-20 13:52:02,337 [DEBUG] mix depths that have enough = {0: XXX} 2020-08-20 13:52:02,338 [INFO] filling offer, mixdepth=0, amount=2XXX 2020-08-20 13:52:02,893 [INFO] sending output to address=3XXX Unhandled Error Traceback...
jmclient.storage.StorageError
def wallet_tool_main(wallet_root_path): """Main wallet tool script function; returned is a string (output or error)""" parser = get_wallettool_parser() (options, args) = parser.parse_args() load_program_config(config_path=options.datadir) check_regtest(blockchain_start=False) # full path to the ...
def wallet_tool_main(wallet_root_path): """Main wallet tool script function; returned is a string (output or error)""" parser = get_wallettool_parser() (options, args) = parser.parse_args() load_program_config(config_path=options.datadir) check_regtest(blockchain_start=False) # full path to the ...
https://github.com/JoinMarket-Org/joinmarket-clientserver/issues/673
2020-08-20 13:51:53,349 [DEBUG] >>privmsg on darkscience: nick=JXXX cmd=pubkey msg=8XXX 2020-08-20 13:52:02,337 [DEBUG] mix depths that have enough = {0: XXX} 2020-08-20 13:52:02,338 [INFO] filling offer, mixdepth=0, amount=2XXX 2020-08-20 13:52:02,893 [INFO] sending output to address=3XXX Unhandled Error Traceback...
jmclient.storage.StorageError
def main(): parser = OptionParser( usage="usage: %prog [options] [txid:n]", description="Adds one or more utxos to the list that can be used to make " "commitments for anti-snooping. Note that this utxo, and its " "PUBkey, will be revealed to makers, so consider the privacy " ...
def main(): parser = OptionParser( usage="usage: %prog [options] [txid:n]", description="Adds one or more utxos to the list that can be used to make " "commitments for anti-snooping. Note that this utxo, and its " "PUBkey, will be revealed to makers, so consider the privacy " ...
https://github.com/JoinMarket-Org/joinmarket-clientserver/issues/673
2020-08-20 13:51:53,349 [DEBUG] >>privmsg on darkscience: nick=JXXX cmd=pubkey msg=8XXX 2020-08-20 13:52:02,337 [DEBUG] mix depths that have enough = {0: XXX} 2020-08-20 13:52:02,338 [INFO] filling offer, mixdepth=0, amount=2XXX 2020-08-20 13:52:02,893 [INFO] sending output to address=3XXX Unhandled Error Traceback...
jmclient.storage.StorageError
def selectWallet(self, testnet_seed=None): if jm_single().config.get("BLOCKCHAIN", "blockchain_source") != "regtest": # guaranteed to exist as load_program_config was called on startup: wallets_path = os.path.join(jm_single().datadir, "wallets") firstarg = QFileDialog.getOpenFileName( ...
def selectWallet(self, testnet_seed=None): if jm_single().config.get("BLOCKCHAIN", "blockchain_source") != "regtest": # guaranteed to exist as load_program_config was called on startup: wallets_path = os.path.join(jm_single().datadir, "wallets") firstarg = QFileDialog.getOpenFileName( ...
https://github.com/JoinMarket-Org/joinmarket-clientserver/issues/673
2020-08-20 13:51:53,349 [DEBUG] >>privmsg on darkscience: nick=JXXX cmd=pubkey msg=8XXX 2020-08-20 13:52:02,337 [DEBUG] mix depths that have enough = {0: XXX} 2020-08-20 13:52:02,338 [INFO] filling offer, mixdepth=0, amount=2XXX 2020-08-20 13:52:02,893 [INFO] sending output to address=3XXX Unhandled Error Traceback...
jmclient.storage.StorageError
def loadWalletFromBlockchain(self, firstarg=None, pwd=None): if firstarg: wallet_path = get_wallet_path(str(firstarg), None) try: wallet = open_test_wallet_maybe( wallet_path, str(firstarg), None, ask_for_password=False, ...
def loadWalletFromBlockchain(self, firstarg=None, pwd=None): if firstarg: wallet_path = get_wallet_path(str(firstarg), None) try: wallet = open_test_wallet_maybe( wallet_path, str(firstarg), None, ask_for_password=False, ...
https://github.com/JoinMarket-Org/joinmarket-clientserver/issues/673
2020-08-20 13:51:53,349 [DEBUG] >>privmsg on darkscience: nick=JXXX cmd=pubkey msg=8XXX 2020-08-20 13:52:02,337 [DEBUG] mix depths that have enough = {0: XXX} 2020-08-20 13:52:02,338 [INFO] filling offer, mixdepth=0, amount=2XXX 2020-08-20 13:52:02,893 [INFO] sending output to address=3XXX Unhandled Error Traceback...
jmclient.storage.StorageError
def main(): parser = get_sendpayment_parser() (options, args) = parser.parse_args() load_program_config(config_path=options.datadir) if options.schedule == "": if ( (len(args) < 2) or (btc.is_bip21_uri(args[1]) and len(args) != 2) or (not btc.is_bip21_uri(arg...
def main(): parser = get_sendpayment_parser() (options, args) = parser.parse_args() load_program_config(config_path=options.datadir) if options.schedule == "": if ( (len(args) < 2) or (btc.is_bip21_uri(args[1]) and len(args) != 2) or (not btc.is_bip21_uri(arg...
https://github.com/JoinMarket-Org/joinmarket-clientserver/issues/673
2020-08-20 13:51:53,349 [DEBUG] >>privmsg on darkscience: nick=JXXX cmd=pubkey msg=8XXX 2020-08-20 13:52:02,337 [DEBUG] mix depths that have enough = {0: XXX} 2020-08-20 13:52:02,338 [INFO] filling offer, mixdepth=0, amount=2XXX 2020-08-20 13:52:02,893 [INFO] sending output to address=3XXX Unhandled Error Traceback...
jmclient.storage.StorageError
def main(): tumble_log = get_tumble_log(logsdir) (options, args) = get_tumbler_parser().parse_args() options_org = options options = vars(options) if len(args) < 1: jmprint("Error: Needs a wallet file", "error") sys.exit(EXIT_ARGERROR) load_program_config(config_path=options["dat...
def main(): tumble_log = get_tumble_log(logsdir) (options, args) = get_tumbler_parser().parse_args() options_org = options options = vars(options) if len(args) < 1: jmprint("Error: Needs a wallet file", "error") sys.exit(EXIT_ARGERROR) load_program_config(config_path=options["dat...
https://github.com/JoinMarket-Org/joinmarket-clientserver/issues/673
2020-08-20 13:51:53,349 [DEBUG] >>privmsg on darkscience: nick=JXXX cmd=pubkey msg=8XXX 2020-08-20 13:52:02,337 [DEBUG] mix depths that have enough = {0: XXX} 2020-08-20 13:52:02,338 [INFO] filling offer, mixdepth=0, amount=2XXX 2020-08-20 13:52:02,893 [INFO] sending output to address=3XXX Unhandled Error Traceback...
jmclient.storage.StorageError
def flush_nicks(self): """Any message channel which is not active must wipe any state information on peers connected for that message channel. If a peer is available on another chan, switch the active_channel for that nick to (an)(the) other, to make failure to communicate as unlikely as possibl...
def flush_nicks(self): """Any message channel which is not active must wipe any state information on peers connected for that message channel. If a peer is available on another chan, switch the active_channel for that nick to (an)(the) other, to make failure to communicate as unlikely as possibl...
https://github.com/JoinMarket-Org/joinmarket-clientserver/issues/105
Unhandled Error Traceback (most recent call last): File "/lib/python2.7/site-packages/twisted/protocols/amp.py", line 1043, in _commandReceived deferred = self.dispatchCommand(box) File "/lib/python2.7/site-packages/twisted/protocols/amp.py", line 1101, in dispatchCommand return maybeDeferred(responder, box) File "/lib...
exceptions.Exception
def prepare_privmsg(self, nick, cmd, message, mc=None): # should we encrypt? box, encrypt = self.get_encryption_box(cmd, nick) if encrypt: if not box: log.debug( "error, dont have encryption box object for " + nick + ", dropping message" ...
def prepare_privmsg(self, nick, cmd, message, mc=None): # should we encrypt? box, encrypt = self.get_encryption_box(cmd, nick) if encrypt: if not box: log.debug( "error, dont have encryption box object for " + nick + ", dropping message" ...
https://github.com/JoinMarket-Org/joinmarket-clientserver/issues/105
Unhandled Error Traceback (most recent call last): File "/lib/python2.7/site-packages/twisted/protocols/amp.py", line 1043, in _commandReceived deferred = self.dispatchCommand(box) File "/lib/python2.7/site-packages/twisted/protocols/amp.py", line 1101, in dispatchCommand return maybeDeferred(responder, box) File "/lib...
exceptions.Exception
def on_disconnect_trigger(self, mc): """Mark the specified message channel as disconnected. Track loss of private connections to individual nicks. If no message channels are now connected, fire on_disconnect to calling code. """ self.mc_status[mc] = 2 self.flush_nicks() # construct a rea...
def on_disconnect_trigger(self, mc): """Mark the specified message channel as disconnected. Track loss of private connections to individual nicks. If no message channels are now connected, fire on_disconnect to calling code. """ self.mc_status[mc] = 2 self.flush_nicks() log.debug( ...
https://github.com/JoinMarket-Org/joinmarket-clientserver/issues/105
Unhandled Error Traceback (most recent call last): File "/lib/python2.7/site-packages/twisted/protocols/amp.py", line 1043, in _commandReceived deferred = self.dispatchCommand(box) File "/lib/python2.7/site-packages/twisted/protocols/amp.py", line 1101, in dispatchCommand return maybeDeferred(responder, box) File "/lib...
exceptions.Exception
def on_auth_received(self, nick, offer, commitment, cr, amount, kphex): """Receives data on proposed transaction offer from daemon, verifies commitment, returns necessary data to send ioauth message (utxos etc) """ # check the validity of the proof of discrete log equivalence tries = jm_single().con...
def on_auth_received(self, nick, offer, commitment, cr, amount, kphex): """Receives data on proposed transaction offer from daemon, verifies commitment, returns necessary data to send ioauth message (utxos etc) """ # deserialize the commitment revelation cr_dict = PoDLE.deserialize_revelation(cr) ...
https://github.com/JoinMarket-Org/joinmarket-clientserver/issues/225
Unhandled Error Traceback (most recent call last): File "XXX/joinmarket-clientserver/jmvenv/lib/python2.7/site-packages/twisted/protocols/amp.py", line 1043, in _commandReceived deferred = self.dispatchCommand(box) File "XXX/joinmarket-clientserver/jmvenv/lib/python2.7/site-packages/twisted/protocols/amp.py", line 1101...
jmclient.podle.PoDLEError
def on_JM_FILL_RESPONSE(self, success, ioauth_data): """Receives the entire set of phase 1 data (principally utxos) from the counterparties and passes through to the Taker for tx construction. If there were sufficient makers, data is passed over for exactly those makers that responded. If not, the list ...
def on_JM_FILL_RESPONSE(self, success, ioauth_data): """Receives the entire set of phase 1 data (principally utxos) from the counterparties and passes through to the Taker for tx construction, if successful. Then passes back the phase 2 initiating data to the daemon. """ ioauth_data = json.loads...
https://github.com/JoinMarket-Org/joinmarket-clientserver/issues/169
2018-07-21 00:03:59,900 [MainThread ] [INFO ] Makers didnt respond: [u'J57XBPc4Ub5b3xxO', u'J54nByhefebjZFkB'] 2018-07-21 00:21:32,779 [MainThread ] [INFO ] STALL MONITOR: 2018-07-21 00:21:32,779 [MainThread ] [INFO ] Stall detected. Regenerating transactions and retrying. Unhandled Error Traceback (most recent c...
exceptions.AttributeError
def __init__( self, wallet, schedule, order_chooser=weighted_order_choose, sign_method=None, callbacks=None, tdestaddrs=None, ignored_makers=None, ): """Schedule must be a list of tuples: (see sample_schedule_for_testnet for explanation of syntax, also schedule.py module in this ...
def __init__( self, wallet, schedule, order_chooser=weighted_order_choose, sign_method=None, callbacks=None, tdestaddrs=None, ignored_makers=None, ): """Schedule must be a list of tuples: (see sample_schedule_for_testnet for explanation of syntax, also schedule.py module in this ...
https://github.com/JoinMarket-Org/joinmarket-clientserver/issues/169
2018-07-21 00:03:59,900 [MainThread ] [INFO ] Makers didnt respond: [u'J57XBPc4Ub5b3xxO', u'J54nByhefebjZFkB'] 2018-07-21 00:21:32,779 [MainThread ] [INFO ] STALL MONITOR: 2018-07-21 00:21:32,779 [MainThread ] [INFO ] Stall detected. Regenerating transactions and retrying. Unhandled Error Traceback (most recent c...
exceptions.AttributeError
def add_ignored_makers(self, makers): """Makers should be added to this list when they have refused to complete the protocol honestly, and should remain in this set for the duration of the Taker run (so, the whole schedule). """ self.ignored_makers.extend(makers) self.ignored_makers = list(set(s...
def add_ignored_makers(self, makers): """Makers should be added to this list when they have refused to complete the protocol honestly, and should remain in this set for the duration of the Taker run (so, the whole schedule). """ self.ignored_makers.extend(makers)
https://github.com/JoinMarket-Org/joinmarket-clientserver/issues/169
2018-07-21 00:03:59,900 [MainThread ] [INFO ] Makers didnt respond: [u'J57XBPc4Ub5b3xxO', u'J54nByhefebjZFkB'] 2018-07-21 00:21:32,779 [MainThread ] [INFO ] STALL MONITOR: 2018-07-21 00:21:32,779 [MainThread ] [INFO ] Stall detected. Regenerating transactions and retrying. Unhandled Error Traceback (most recent c...
exceptions.AttributeError
def add_honest_makers(self, makers): """A maker who has shown willigness to complete the protocol by returning a valid signature for a coinjoin can be added to this list, the taker can optionally choose to only source offers from thus-defined "honest" makers. """ self.honest_makers.extend(makers...
def add_honest_makers(self, makers): """A maker who has shown willigness to complete the protocol by returning a valid signature for a coinjoin can be added to this list, the taker can optionally choose to only source offers from thus-defined "honest" makers. """ self.honest_makers.extend(makers...
https://github.com/JoinMarket-Org/joinmarket-clientserver/issues/169
2018-07-21 00:03:59,900 [MainThread ] [INFO ] Makers didnt respond: [u'J57XBPc4Ub5b3xxO', u'J54nByhefebjZFkB'] 2018-07-21 00:21:32,779 [MainThread ] [INFO ] STALL MONITOR: 2018-07-21 00:21:32,779 [MainThread ] [INFO ] Stall detected. Regenerating transactions and retrying. Unhandled Error Traceback (most recent c...
exceptions.AttributeError
def initialize(self, orderbook): """Once the daemon is active and has returned the current orderbook, select offers, re-initialize variables and prepare a commitment, then send it to the protocol to fill offers. """ if self.aborted: return (False,) self.taker_info_callback("INFO", "Recei...
def initialize(self, orderbook): """Once the daemon is active and has returned the current orderbook, select offers, re-initialize variables and prepare a commitment, then send it to the protocol to fill offers. """ if self.aborted: return (False,) self.taker_info_callback("INFO", "Recei...
https://github.com/JoinMarket-Org/joinmarket-clientserver/issues/169
2018-07-21 00:03:59,900 [MainThread ] [INFO ] Makers didnt respond: [u'J57XBPc4Ub5b3xxO', u'J54nByhefebjZFkB'] 2018-07-21 00:21:32,779 [MainThread ] [INFO ] STALL MONITOR: 2018-07-21 00:21:32,779 [MainThread ] [INFO ] Stall detected. Regenerating transactions and retrying. Unhandled Error Traceback (most recent c...
exceptions.AttributeError
def receive_utxos(self, ioauth_data): """Triggered when the daemon returns utxo data from makers who responded; this is the completion of phase 1 of the protocol """ if self.aborted: return (False, "User aborted") # Temporary list used to aggregate all ioauth data that must be removed ...
def receive_utxos(self, ioauth_data): """Triggered when the daemon returns utxo data from makers who responded; this is the completion of phase 1 of the protocol """ if self.aborted: return (False, "User aborted") rejected_counterparties = [] # Enough data, but need to authorize agai...
https://github.com/JoinMarket-Org/joinmarket-clientserver/issues/169
2018-07-21 00:03:59,900 [MainThread ] [INFO ] Makers didnt respond: [u'J57XBPc4Ub5b3xxO', u'J54nByhefebjZFkB'] 2018-07-21 00:21:32,779 [MainThread ] [INFO ] STALL MONITOR: 2018-07-21 00:21:32,779 [MainThread ] [INFO ] Stall detected. Regenerating transactions and retrying. Unhandled Error Traceback (most recent c...
exceptions.AttributeError
def tumbler_taker_finished_update( taker, schedulefile, tumble_log, options, res, fromtx=False, waittime=0.0, txdetails=None, ): """on_finished_callback processing for tumbler. Note that this is *not* the full callback, but provides common processing across command line and o...
def tumbler_taker_finished_update( taker, schedulefile, tumble_log, options, res, fromtx=False, waittime=0.0, txdetails=None, ): """on_finished_callback processing for tumbler. Note that this is *not* the full callback, but provides common processing across command line and o...
https://github.com/JoinMarket-Org/joinmarket-clientserver/issues/169
2018-07-21 00:03:59,900 [MainThread ] [INFO ] Makers didnt respond: [u'J57XBPc4Ub5b3xxO', u'J54nByhefebjZFkB'] 2018-07-21 00:21:32,779 [MainThread ] [INFO ] STALL MONITOR: 2018-07-21 00:21:32,779 [MainThread ] [INFO ] Stall detected. Regenerating transactions and retrying. Unhandled Error Traceback (most recent c...
exceptions.AttributeError
def main(): parser = get_sendpayment_parser() (options, args) = parser.parse_args() load_program_config() if options.schedule == "" and len(args) < 3: parser.error("Needs a wallet, amount and destination address") sys.exit(0) # without schedule file option, use the arguments to crea...
def main(): parser = get_sendpayment_parser() (options, args) = parser.parse_args() load_program_config() if options.schedule == "" and len(args) < 3: parser.error("Needs a wallet, amount and destination address") sys.exit(0) # without schedule file option, use the arguments to crea...
https://github.com/JoinMarket-Org/joinmarket-clientserver/issues/169
2018-07-21 00:03:59,900 [MainThread ] [INFO ] Makers didnt respond: [u'J57XBPc4Ub5b3xxO', u'J54nByhefebjZFkB'] 2018-07-21 00:21:32,779 [MainThread ] [INFO ] STALL MONITOR: 2018-07-21 00:21:32,779 [MainThread ] [INFO ] Stall detected. Regenerating transactions and retrying. Unhandled Error Traceback (most recent c...
exceptions.AttributeError
def taker_finished(res, fromtx=False, waittime=0.0, txdetails=None): if fromtx == "unconfirmed": # If final entry, stop *here*, don't wait for confirmation if taker.schedule_index + 1 == len(taker.schedule): reactor.stop() return if fromtx: if res: txd, tx...
def taker_finished(res, fromtx=False, waittime=0.0, txdetails=None): if fromtx == "unconfirmed": # If final entry, stop *here*, don't wait for confirmation if taker.schedule_index + 1 == len(taker.schedule): reactor.stop() return if fromtx: if res: txd, tx...
https://github.com/JoinMarket-Org/joinmarket-clientserver/issues/169
2018-07-21 00:03:59,900 [MainThread ] [INFO ] Makers didnt respond: [u'J57XBPc4Ub5b3xxO', u'J54nByhefebjZFkB'] 2018-07-21 00:21:32,779 [MainThread ] [INFO ] STALL MONITOR: 2018-07-21 00:21:32,779 [MainThread ] [INFO ] Stall detected. Regenerating transactions and retrying. Unhandled Error Traceback (most recent c...
exceptions.AttributeError
def __getattr__(self, item): """This method is called only when the attribute does not exits usually on access to the direct `Settings` object instead of the `LazySettings`. All first level attributes are stored as UPPERCASE, so self.FOO will always be accessible, however in some cases `self.foo` mi...
def __getattr__(self, name): """Allow getting keys from self.store using dot notation""" if self._wrapped is empty: self._setup() if name in self._wrapped._deleted: # noqa raise AttributeError( f"Attribute {name} was deleted, or belongs to different env" ) if name n...
https://github.com/rochacbruno/dynaconf/issues/482
Traceback (most recent call last): File "app.py", line 11, in <module> assert settings['s3_url'] == expected_value # fails File "/home/user/dev/venv/lib/python3.7/site-packages/dynaconf/utils/functional.py", line 17, in inner return func(self._wrapped, *args) File "/home/user/dev/venv/lib/python3.7/site-packages/dynaco...
AttributeError
def get(self, item, default=None, *args, **kwargs): if item not in self: # toggle case item = item.lower() if item.isupper() else upperfy(item) value = super(DynaBox, self).get(item, empty, *args, **kwargs) if value is empty: # see Issue: #486 return self._case_insensitive_get(item,...
def get(self, item, default=None, *args, **kwargs): if item not in self: # toggle case item = item.lower() if item.isupper() else upperfy(item) return super(DynaBox, self).get(item, default, *args, **kwargs)
https://github.com/rochacbruno/dynaconf/issues/486
Host: localhost Name: Jane Doe Traceback (most recent call last): File "/Users/rene/Downloads/Validation/test.py", line 13, in <module> settings.validators.validate() File "/Users/rene/.pyenv/versions/3.9.0/lib/python3.9/site-packages/dynaconf/validator.py", line 318, in validate validator.validate(self.settings) File ...
dynaconf.validator.ValidationError
def load_file(self, path=None, env=None, silent=True, key=None): """Programmatically load files from ``path``. :param path: A single filename or a file list :param env: Which env to load from file (default current_env) :param silent: Should raise errors? :param key: Load a single key? """ e...
def load_file(self, path=None, env=None, silent=True, key=None): """Programmatically load files from ``path``. :param path: A single filename or a file list :param env: Which env to load from file (default current_env) :param silent: Should raise errors? :param key: Load a single key? """ e...
https://github.com/rochacbruno/dynaconf/issues/494
Traceback (most recent call last): File "/home/kevin/.virtualenvs/pythonic-project-samples-Yf6zzgRF/lib/python3.7/site-packages/dynaconf/loaders/py_loader.py", line 61, in try_to_load_from_py_module_name mod = importlib.import_module(name) File "/usr/lib/python3.7/importlib/__init__.py", line 118, in import_module if n...
AttributeError
def try_to_load_from_py_module_name(obj, name, key=None, identifier="py", silent=False): """Try to load module by its string name. Arguments: obj {LAzySettings} -- Dynaconf settings instance name {str} -- Name of the module e.g: foo.bar.zaz Keyword Arguments: key {str} -- Single ke...
def try_to_load_from_py_module_name(obj, name, key=None, identifier="py", silent=False): """Try to load module by its string name. Arguments: obj {LAzySettings} -- Dynaconf settings instance name {str} -- Name of the module e.g: foo.bar.zaz Keyword Arguments: key {str} -- Single ke...
https://github.com/rochacbruno/dynaconf/issues/494
Traceback (most recent call last): File "/home/kevin/.virtualenvs/pythonic-project-samples-Yf6zzgRF/lib/python3.7/site-packages/dynaconf/loaders/py_loader.py", line 61, in try_to_load_from_py_module_name mod = importlib.import_module(name) File "/usr/lib/python3.7/importlib/__init__.py", line 118, in import_module if n...
AttributeError
def __getitem__(self, key): try: return self._settings[key] except KeyError: return Config.__getitem__(self, key)
def __getitem__(self, key): """ Flask templates always expects a None when key is not found in config """ return self.get(key)
https://github.com/rochacbruno/dynaconf/issues/521
False Traceback (most recent call last): File "dc_poc/1_no_dynaconf.py", line 6, in <module> print(app.config["NON_EXISTING"]) KeyError: 'NON_EXISTING'
KeyError
def __getattr__(self, name): """ First try to get value from dynaconf then from Flask Config """ try: return getattr(self._settings, name) except AttributeError: return self[name]
def __getattr__(self, name): """ First try to get value from dynaconf then from Flask """ try: return getattr(self._settings, name) except AttributeError: return self[name]
https://github.com/rochacbruno/dynaconf/issues/521
False Traceback (most recent call last): File "dc_poc/1_no_dynaconf.py", line 6, in <module> print(app.config["NON_EXISTING"]) KeyError: 'NON_EXISTING'
KeyError
def __new__( cls, *args: Any, box_settings: Any = None, default_box: bool = False, default_box_attr: Any = NO_DEFAULT, default_box_none_transform: bool = True, frozen_box: bool = False, camel_killer_box: bool = False, conversion_box: bool = True, modify_tuples_box: bool = False, ...
def __new__( cls, *args: Any, box_settings: Any, default_box: bool = False, default_box_attr: Any = NO_DEFAULT, default_box_none_transform: bool = True, frozen_box: bool = False, camel_killer_box: bool = False, conversion_box: bool = True, modify_tuples_box: bool = False, box...
https://github.com/rochacbruno/dynaconf/issues/391
# Traceback python error.py (dynaconf) ➜ dynaconf git:(master) ✗ python error.py Traceback (most recent call last): File "error.py", line 5, in <module> data = DynaBox(settings.as_dict()) TypeError: __new__() missing 1 required keyword-only argument: 'box_settings'
TypeError
def __init__( self, *args: Any, box_settings: Any = None, default_box: bool = False, default_box_attr: Any = NO_DEFAULT, default_box_none_transform: bool = True, frozen_box: bool = False, camel_killer_box: bool = False, conversion_box: bool = True, modify_tuples_box: bool = False...
def __init__( self, *args: Any, box_settings: Any, default_box: bool = False, default_box_attr: Any = NO_DEFAULT, default_box_none_transform: bool = True, frozen_box: bool = False, camel_killer_box: bool = False, conversion_box: bool = True, modify_tuples_box: bool = False, b...
https://github.com/rochacbruno/dynaconf/issues/391
# Traceback python error.py (dynaconf) ➜ dynaconf git:(master) ✗ python error.py Traceback (most recent call last): File "error.py", line 5, in <module> data = DynaBox(settings.as_dict()) TypeError: __new__() missing 1 required keyword-only argument: 'box_settings'
TypeError
def yaml_set_comment_before_after_key( self, key, before=None, indent=0, after=None, after_indent=None ): # type: (Any, Any, Any, Any, Any) -> None """ expects comment (before/after) to be without `#` and possible have multiple lines """ from dynaconf.vendor.ruamel.yaml.error import CommentMark ...
def yaml_set_comment_before_after_key( self, key, before=None, indent=0, after=None, after_indent=None ): # type: (Any, Any, Any, Any, Any) -> None """ expects comment (before/after) to be without `#` and possible have multiple lines """ from ruamel.yaml.error import CommentMark from ruamel....
https://github.com/rochacbruno/dynaconf/issues/391
# Traceback python error.py (dynaconf) ➜ dynaconf git:(master) ✗ python error.py Traceback (most recent call last): File "error.py", line 5, in <module> data = DynaBox(settings.as_dict()) TypeError: __new__() missing 1 required keyword-only argument: 'box_settings'
TypeError
def version_tnf(t1, t2=None): # type: (Any, Any) -> Any """ return True if ruamel.yaml version_info < t1, None if t2 is specified and bigger else False """ from dynaconf.vendor.ruamel.yaml import version_info # NOQA if version_info < t1: return True if t2 is not None and version_in...
def version_tnf(t1, t2=None): # type: (Any, Any) -> Any """ return True if ruamel.yaml version_info < t1, None if t2 is specified and bigger else False """ from ruamel.yaml import version_info # NOQA if version_info < t1: return True if t2 is not None and version_info < t2: ...
https://github.com/rochacbruno/dynaconf/issues/391
# Traceback python error.py (dynaconf) ➜ dynaconf git:(master) ✗ python error.py Traceback (most recent call last): File "error.py", line 5, in <module> data = DynaBox(settings.as_dict()) TypeError: __new__() missing 1 required keyword-only argument: 'box_settings'
TypeError
def construct_rt_sequence(self, node, seqtyp, deep=False): # type: (Any, Any, bool) -> Any if not isinstance(node, SequenceNode): raise ConstructorError( None, None, "expected a sequence node, but found %s" % node.id, node.start_mark, ) ret_val...
def construct_rt_sequence(self, node, seqtyp, deep=False): # type: (Any, Any, bool) -> Any if not isinstance(node, SequenceNode): raise ConstructorError( None, None, "expected a sequence node, but found %s" % node.id, node.start_mark, ) ret_val...
https://github.com/rochacbruno/dynaconf/issues/391
# Traceback python error.py (dynaconf) ➜ dynaconf git:(master) ✗ python error.py Traceback (most recent call last): File "error.py", line 5, in <module> data = DynaBox(settings.as_dict()) TypeError: __new__() missing 1 required keyword-only argument: 'box_settings'
TypeError
def construct_mapping(self, node, maptyp, deep=False): # type: ignore # type: (Any, Any, bool) -> Any if not isinstance(node, MappingNode): raise ConstructorError( None, None, "expected a mapping node, but found %s" % node.id, node.start_mark, ) ...
def construct_mapping(self, node, maptyp, deep=False): # type: ignore # type: (Any, Any, bool) -> Any if not isinstance(node, MappingNode): raise ConstructorError( None, None, "expected a mapping node, but found %s" % node.id, node.start_mark, ) ...
https://github.com/rochacbruno/dynaconf/issues/391
# Traceback python error.py (dynaconf) ➜ dynaconf git:(master) ✗ python error.py Traceback (most recent call last): File "error.py", line 5, in <module> data = DynaBox(settings.as_dict()) TypeError: __new__() missing 1 required keyword-only argument: 'box_settings'
TypeError
def construct_setting(self, node, typ, deep=False): # type: (Any, Any, bool) -> Any if not isinstance(node, MappingNode): raise ConstructorError( None, None, "expected a mapping node, but found %s" % node.id, node.start_mark, ) if node.comment:...
def construct_setting(self, node, typ, deep=False): # type: (Any, Any, bool) -> Any if not isinstance(node, MappingNode): raise ConstructorError( None, None, "expected a mapping node, but found %s" % node.id, node.start_mark, ) if node.comment:...
https://github.com/rochacbruno/dynaconf/issues/391
# Traceback python error.py (dynaconf) ➜ dynaconf git:(master) ✗ python error.py Traceback (most recent call last): File "error.py", line 5, in <module> data = DynaBox(settings.as_dict()) TypeError: __new__() missing 1 required keyword-only argument: 'box_settings'
TypeError
def map(self, **kw): # type: (Any) -> Any if "rt" in self.typ: from dynaconf.vendor.ruamel.yaml.comments import CommentedMap return CommentedMap(**kw) else: return dict(**kw)
def map(self, **kw): # type: (Any) -> Any if "rt" in self.typ: from ruamel.yaml.comments import CommentedMap return CommentedMap(**kw) else: return dict(**kw)
https://github.com/rochacbruno/dynaconf/issues/391
# Traceback python error.py (dynaconf) ➜ dynaconf git:(master) ✗ python error.py Traceback (most recent call last): File "error.py", line 5, in <module> data = DynaBox(settings.as_dict()) TypeError: __new__() missing 1 required keyword-only argument: 'box_settings'
TypeError
def seq(self, *args): # type: (Any) -> Any if "rt" in self.typ: from dynaconf.vendor.ruamel.yaml.comments import CommentedSeq return CommentedSeq(*args) else: return list(*args)
def seq(self, *args): # type: (Any) -> Any if "rt" in self.typ: from ruamel.yaml.comments import CommentedSeq return CommentedSeq(*args) else: return list(*args)
https://github.com/rochacbruno/dynaconf/issues/391
# Traceback python error.py (dynaconf) ➜ dynaconf git:(master) ✗ python error.py Traceback (most recent call last): File "error.py", line 5, in <module> data = DynaBox(settings.as_dict()) TypeError: __new__() missing 1 required keyword-only argument: 'box_settings'
TypeError
def walk_tree(base, map=None): # type: (Any, Any) -> None """ the routine here walks over a simple yaml tree (recursing in dict values and list items) and converts strings that have multiple lines to literal scalars You can also provide an explicit (ordered) mapping for multiple transforms ...
def walk_tree(base, map=None): # type: (Any, Any) -> None """ the routine here walks over a simple yaml tree (recursing in dict values and list items) and converts strings that have multiple lines to literal scalars You can also provide an explicit (ordered) mapping for multiple transforms ...
https://github.com/rochacbruno/dynaconf/issues/391
# Traceback python error.py (dynaconf) ➜ dynaconf git:(master) ✗ python error.py Traceback (most recent call last): File "error.py", line 5, in <module> data = DynaBox(settings.as_dict()) TypeError: __new__() missing 1 required keyword-only argument: 'box_settings'
TypeError
def __init__(self, _dict=dict, preserve=False): from dynaconf.vendor.toml.decoder import CommentValue super(TomlPreserveCommentEncoder, self).__init__(_dict, preserve) self.dump_funcs[CommentValue] = lambda v: v.dump(self.dump_value)
def __init__(self, _dict=dict, preserve=False): from toml.decoder import CommentValue super(TomlPreserveCommentEncoder, self).__init__(_dict, preserve) self.dump_funcs[CommentValue] = lambda v: v.dump(self.dump_value)
https://github.com/rochacbruno/dynaconf/issues/391
# Traceback python error.py (dynaconf) ➜ dynaconf git:(master) ✗ python error.py Traceback (most recent call last): File "error.py", line 5, in <module> data = DynaBox(settings.as_dict()) TypeError: __new__() missing 1 required keyword-only argument: 'box_settings'
TypeError
def __init__( self, app=None, instance_relative_config=False, dynaconf_instance=None, extensions_list=False, **kwargs, ): """kwargs holds initial dynaconf configuration""" if not flask_installed: # pragma: no cover raise RuntimeError( "To use this extension Flask mus...
def __init__( self, app=None, instance_relative_config=False, dynaconf_instance=None, **kwargs, ): """kwargs holds initial dynaconf configuration""" if not flask_installed: # pragma: no cover raise RuntimeError( "To use this extension Flask must be installed " ...
https://github.com/rochacbruno/dynaconf/issues/323
200 # Looks OK, defined in development BB # Looks OK, missing in development but defined in default DEV Namespace A # Looks OK, defined in the development.namespace section Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/mnt/data/projects/pkh/rapidxmm/repos/backend/backend/...
box.BoxKeyError
def init_app(self, app, **kwargs): """kwargs holds initial dynaconf configuration""" self.kwargs.update(kwargs) self.settings = self.dynaconf_instance or dynaconf.LazySettings(**self.kwargs) dynaconf.settings = self.settings # rebind customized settings app.config = self.make_config(app) app.dy...
def init_app(self, app, **kwargs): """kwargs holds initial dynaconf configuration""" self.kwargs.update(kwargs) self.settings = self.dynaconf_instance or dynaconf.LazySettings(**self.kwargs) dynaconf.settings = self.settings # rebind customized settings app.config = self.make_config(app) app.dy...
https://github.com/rochacbruno/dynaconf/issues/323
200 # Looks OK, defined in development BB # Looks OK, missing in development but defined in default DEV Namespace A # Looks OK, defined in the development.namespace section Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/mnt/data/projects/pkh/rapidxmm/repos/backend/backend/...
box.BoxKeyError
def load_extensions(self, key="EXTENSIONS", app=None): """Loads flask extensions dynamically.""" app = app or self._app extensions = app.config.get(key) if not extensions: warnings.warn( f"Settings is missing {key} to load Flask Extensions", RuntimeWarning, ) ...
def load_extensions(self, key="EXTENSIONS", app=None): """Loads flask extensions dynamically.""" app = app or self._app for extension in app.config[key]: # Split data in form `extension.path:factory_function` module_name, factory = extension.split(":") # Dynamically import extension ...
https://github.com/rochacbruno/dynaconf/issues/323
200 # Looks OK, defined in development BB # Looks OK, missing in development but defined in default DEV Namespace A # Looks OK, defined in the development.namespace section Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/mnt/data/projects/pkh/rapidxmm/repos/backend/backend/...
box.BoxKeyError
def __getitem__(self, item): """Allow getting variables as dict keys `settings['KEY']`""" value = self.get(item, default=empty) if value is empty: raise KeyError("{0} does not exist".format(item)) return value
def __getitem__(self, item): """Allow getting variables as dict keys `settings['KEY']`""" value = self.get(item) if value is None: raise KeyError("{0} does not exists".format(item)) return value
https://github.com/rochacbruno/dynaconf/issues/288
Hello Traceback (most recent call last): File ".../dynaconf/base.py", line 222, in __getitem__ raise KeyError("{0} does not exists".format(item)) KeyError: 'nulled_name does not exists'
KeyError
def write(filename, data, env=None): """Writes `data` to `filename` infers format by file extension.""" loader_name = "{0}_loader".format(filename.rpartition(".")[-1]) loader = globals().get(loader_name) if not loader: raise IOError("{0} cannot be found.".format(loader_name)) data = DynaBox...
def write(filename, data, env=None): """Writes `data` to `filename` infers format by file extension.""" loader_name = "{0}_loader".format(filename.rpartition(".")[-1]) loader = globals().get(loader_name) if not loader: raise IOError("{0} cannot be found.".format(loader_name)) data = DynaBox...
https://github.com/rochacbruno/dynaconf/issues/288
Hello Traceback (most recent call last): File ".../dynaconf/base.py", line 222, in __getitem__ raise KeyError("{0} does not exists".format(item)) KeyError: 'nulled_name does not exists'
KeyError
def write(settings_path, settings_data, merge=True): """Write data to a settings file. :param settings_path: the filepath :param settings_data: a dictionary with data :param merge: boolean if existing file should be merged with new data """ settings_path = Path(settings_path) if settings_pa...
def write(settings_path, settings_data, merge=True): """Write data to a settings file. :param settings_path: the filepath :param settings_data: a dictionary with data :param merge: boolean if existing file should be merged with new data """ settings_path = Path(settings_path) if settings_pa...
https://github.com/rochacbruno/dynaconf/issues/288
Hello Traceback (most recent call last): File ".../dynaconf/base.py", line 222, in __getitem__ raise KeyError("{0} does not exists".format(item)) KeyError: 'nulled_name does not exists'
KeyError
def get(self, item, default=None, *args, **kwargs): if item not in self: # toggle case item = item.lower() if item.isupper() else upperfy(item) return super(DynaBox, self).get(item, default, *args, **kwargs)
def get(self, item, default=None, *args, **kwargs): value = super(DynaBox, self).get(item, default, *args, **kwargs) if value is None or value == default: n_item = item.lower() if item.isupper() else upperfy(item) value = super(DynaBox, self).get(n_item, default, *args, **kwargs) return valu...
https://github.com/rochacbruno/dynaconf/issues/288
Hello Traceback (most recent call last): File ".../dynaconf/base.py", line 222, in __getitem__ raise KeyError("{0} does not exists".format(item)) KeyError: 'nulled_name does not exists'
KeyError
def _read(self, files, envs, silent=True, key=None): for source_file in files: if source_file.endswith(self.extensions): # pragma: no cover try: source_data = self.file_reader( io.open( find_file( source_fil...
def _read(self, files, envs, silent=True, key=None): for source_file in files: if source_file.endswith(self.extensions): # pragma: no cover try: source_data = self.file_reader( io.open( find_file( source_fil...
https://github.com/rochacbruno/dynaconf/issues/129
In [1]: from dynaconf import settings In [2]: settings.POTATO Out[2]: 'test' In [3]: settings.get_fresh('POTATO') In [4]: settings.POTATO --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) <ipython-input-4-22d467a777...
AttributeError
def write(settings_path, settings_data, merge=True): """Write data to a settings file. :param settings_path: the filepath :param settings_data: a dictionary with data :param merge: boolean if existing file should be merged with new data """ settings_path = Path(settings_path) if settings_pa...
def write(settings_path, settings_data, merge=True): """Write data to a settings file. :param settings_path: the filepath :param settings_data: a dictionary with data :param merge: boolean if existing file should be merged with new data """ if settings_path.exists() and merge: # pragma: no cov...
https://github.com/rochacbruno/dynaconf/issues/129
In [1]: from dynaconf import settings In [2]: settings.POTATO Out[2]: 'test' In [3]: settings.get_fresh('POTATO') In [4]: settings.POTATO --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) <ipython-input-4-22d467a777...
AttributeError