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 dispatchStringRegex(self, update): """ Dispatches an update to all string regex handlers that match the string. Args: command (str): The command keyword update (str): The string that contains the command """ matching_handlers = [] for matcher in self.string_regex_handl...
def dispatchStringRegex(self, update): """ Dispatches an update to all string regex handlers that match the string. Args: command (str): The command keyword update (telegram.Update): The Telegram update that contains the command """ matching_handlers = [] for m...
https://github.com/python-telegram-bot/python-telegram-bot/issues/123
Exception in thread Thread-1: Traceback (most recent call last): File "C:\Program Files\Python 3.5\lib\threading.py", line 923, in _bootstrap_inner self.run() File "C:\Program Files\Python 3.5\lib\threading.py", line 871, in run self._target(*self._args, **self._kwargs) File "C:\Program Files\Python 3.5\lib\site-packag...
TypeError
def dispatchTo(self, handlers, update, **kwargs): """ Dispatches an update to a list of handlers. Args: handlers (list): A list of handler-functions. update (any): The update to be dispatched """ for handler in handlers: self.call_handler(handler, update, **kwargs)
def dispatchTo(self, handlers, update): """ Dispatches an update to a list of handlers. Args: handlers (list): A list of handler-functions. update (any): The update to be dispatched """ for handler in handlers: self.call_handler(handler, update)
https://github.com/python-telegram-bot/python-telegram-bot/issues/123
Exception in thread Thread-1: Traceback (most recent call last): File "C:\Program Files\Python 3.5\lib\threading.py", line 923, in _bootstrap_inner self.run() File "C:\Program Files\Python 3.5\lib\threading.py", line 871, in run self._target(*self._args, **self._kwargs) File "C:\Program Files\Python 3.5\lib\site-packag...
TypeError
def call_handler(self, handler, update, **kwargs): """ Calls an update handler. Checks the handler for keyword arguments and fills them, if possible. Args: handler (function): An update handler function update (any): An update """ target_kwargs = {} fargs = getargspec(handl...
def call_handler(self, handler, update): """ Calls an update handler. Checks the handler for keyword arguments and fills them, if possible. Args: handler (function): An update handler function update (any): An update """ kwargs = {} fargs = getargspec(handler).args if "...
https://github.com/python-telegram-bot/python-telegram-bot/issues/123
Exception in thread Thread-1: Traceback (most recent call last): File "C:\Program Files\Python 3.5\lib\threading.py", line 923, in _bootstrap_inner self.run() File "C:\Program Files\Python 3.5\lib\threading.py", line 871, in run self._target(*self._args, **self._kwargs) File "C:\Program Files\Python 3.5\lib\site-packag...
TypeError
def to_dict(self): data = { "message_id": self.message_id, "from": self.from_user.to_dict(), "chat": self.chat.to_dict(), } try: # Python 3.3+ supports .timestamp() data["date"] = int(self.date.timestamp()) if self.forward_date: data["forward_date...
def to_dict(self): data = { "message_id": self.message_id, "from": self.from_user.to_dict(), "chat": self.chat.to_dict(), } try: # Python 3.3+ supports .timestamp() data["date"] = int(self.date.timestamp()) if self.forward_date: data["forward_date...
https://github.com/python-telegram-bot/python-telegram-bot/issues/38
Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/rq/worker.py", line 558, in perform_job rv = job.perform() File "/usr/local/lib/python2.7/dist-packages/rq/job.py", line 495, in perform self._result = self.func(*self.args, **self.kwargs) File "/home/joker/projects/bot/operations.py", line...
TypeError
def sendDocument(self, chat_id, document, reply_to_message_id=None, reply_markup=None): """Use this method to send general files. Args: chat_id: Unique identifier for the message recipient - User or GroupChat id. document: File to send. You can either pass a file_id as String to res...
def sendDocument(self, chat_id, document, reply_to_message_id=None, reply_markup=None): """Use this method to send Lesser files. Args: chat_id: Unique identifier for the message recipient - User or GroupChat id. document: File to send. You can either pass a file_id as String to rese...
https://github.com/python-telegram-bot/python-telegram-bot/issues/31
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python2.7/pickle.py", line 1370, in dump Pickler(file, protocol).dump(obj) File "/usr/lib/python2.7/pickle.py", line 224, in dump self.save(obj) File "/usr/lib/python2.7/pickle.py", line 331, in save self.save_reduce(obj=obj, *rv) Fil...
TypeError
def sendChatAction(self, chat_id, action): """Use this method when you need to tell the user that something is happening on the bot's side. The status is set for 5 seconds or less (when a message arrives from your bot, Telegram clients clear its typing status). Args: chat_id: Unique i...
def sendChatAction(self, chat_id, action): """Use this method when you need to tell the user that something is happening on the bot's side. The status is set for 5 seconds or less (when a message arrives from your bot, Telegram clients clear its typing status). Args: chat_id: Unique i...
https://github.com/python-telegram-bot/python-telegram-bot/issues/31
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python2.7/pickle.py", line 1370, in dump Pickler(file, protocol).dump(obj) File "/usr/lib/python2.7/pickle.py", line 224, in dump self.save(obj) File "/usr/lib/python2.7/pickle.py", line 331, in save self.save_reduce(obj=obj, *rv) Fil...
TypeError
def read(self, filenames): # RawConfigParser takes a filename or list of filenames, but we only # ever call this with a single filename. assert isinstance(filenames, path_types) filename = filenames if env.PYVERSION >= (3, 6): filename = os.fspath(filename) try: with io.open(fil...
def read(self, filenames): from coverage.optional import toml # RawConfigParser takes a filename or list of filenames, but we only # ever call this with a single filename. assert isinstance(filenames, path_types) filename = filenames if env.PYVERSION >= (3, 6): filename = os.fspath(file...
https://github.com/nedbat/coveragepy/issues/1084
Traceback (most recent call last): ... File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/coverage/control.py", line 195, in __init__ self.config = read_coverage_config( File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/coverage/conf...
KeyError
def execute(self, sql, parameters=()): """Same as :meth:`python:sqlite3.Connection.execute`.""" if self.debug: tail = " with {!r}".format(parameters) if parameters else "" self.debug.write("Executing {!r}{}".format(sql, tail)) try: try: return self.con.execute(sql, parame...
def execute(self, sql, parameters=()): """Same as :meth:`python:sqlite3.Connection.execute`.""" if self.debug: tail = " with {!r}".format(parameters) if parameters else "" self.debug.write("Executing {!r}{}".format(sql, tail)) try: return self.con.execute(sql, parameters) except ...
https://github.com/nedbat/coveragepy/issues/1010
Traceback (most recent call last): File "/home/runner/work/pytest/pytest/.tox/pypy3-coverage/bin/coverage", line 8, in <module> sys.exit(main()) File "/home/runner/work/pytest/pytest/.tox/pypy3-coverage/site-packages/coverage/cmdline.py", line 865, in main status = CoverageScript().command_line(argv) File "/home/runner...
_sqlite3.InterfaceError
def prepare(self): """Set sys.path properly. This needs to happen before any importing, and without importing anything. """ if self.as_module: if env.PYBEHAVIOR.actual_syspath0_dash_m: path0 = os.getcwd() else: path0 = "" elif os.path.isdir(self.arg0): ...
def prepare(self): """Set sys.path properly. This needs to happen before any importing, and without importing anything. """ should_update_sys_path = True if self.as_module: if env.PYBEHAVIOR.actual_syspath0_dash_m: path0 = os.getcwd() else: path0 = "" ...
https://github.com/nedbat/coveragepy/issues/862
Traceback (most recent call last): File "manage.py", line 21, in <module> main() File "manage.py", line 17, in main execute_from_command_line(sys.argv) File "c:\users\spaceofmiah\.virtualenvs\backend--o8je5ax\lib\site-packages\django\core\management\__init__.py", line 401, in execute_from_command_line utility.execute()...
ModuleNotFoundError
def do_zip_mods(): """Build the zipmods.zip file.""" zf = zipfile.ZipFile("tests/zipmods.zip", "w") # Take one file from disk. zf.write("tests/covmodzip1.py", "covmodzip1.py") # The others will be various encodings. source = textwrap.dedent("""\ # coding: {encoding} text = u"{t...
def do_zip_mods(): """Build the zipmods.zip file.""" zf = zipfile.ZipFile("tests/zipmods.zip", "w") # Take one file from disk. zf.write("tests/covmodzip1.py", "covmodzip1.py") # The others will be various encodings. source = textwrap.dedent("""\ # coding: {encoding} text = u"{t...
https://github.com/nedbat/coveragepy/issues/862
Traceback (most recent call last): File "manage.py", line 21, in <module> main() File "manage.py", line 17, in main execute_from_command_line(sys.argv) File "c:\users\spaceofmiah\.virtualenvs\backend--o8je5ax\lib\site-packages\django\core\management\__init__.py", line 401, in execute_from_command_line utility.execute()...
ModuleNotFoundError
def sys_info(self): """Return a list of (key, value) pairs showing internal information.""" import coverage as covmod self._init() self._post_init() def plugin_info(plugins): """Make an entry for the sys_info from a list of plug-ins.""" entries = [] for plugin in plugins: ...
def sys_info(self): """Return a list of (key, value) pairs showing internal information.""" import coverage as covmod self._init() self._post_init() def plugin_info(plugins): """Make an entry for the sys_info from a list of plug-ins.""" entries = [] for plugin in plugins: ...
https://github.com/nedbat/coveragepy/issues/907
$ coverage run --debug=sys foo.py Traceback (most recent call last): File ".tox/py36/bin/coverage", line 11, in <module> load_entry_point('coverage', 'console_scripts', 'coverage')() File "/Users/ned/coverage/trunk/coverage/cmdline.py", line 824, in main status = CoverageScript().command_line(argv) File "/Users/ned/cov...
AttributeError
def from_file(self, filename, our_file): """Read configuration from a .rc file. `filename` is a file name to read. `our_file` is True if this config file is specifically for coverage, False if we are examining another config file (tox.ini, setup.cfg) for possible settings. Returns True or Fal...
def from_file(self, filename, our_file): """Read configuration from a .rc file. `filename` is a file name to read. `our_file` is True if this config file is specifically for coverage, False if we are examining another config file (tox.ini, setup.cfg) for possible settings. Returns True or Fal...
https://github.com/nedbat/coveragepy/issues/890
Traceback (most recent call last): File "repro.py", line 7, in <module> with multiprocessing.Manager() as manager: File "/usr/lib/python3.8/multiprocessing/context.py", line 57, in Manager m.start() File "/usr/lib/python3.8/multiprocessing/managers.py", line 583, in start self._address = reader.recv() File "/usr/lib/py...
EOFError
def patch_multiprocessing(rcfile): """Monkey-patch the multiprocessing module. This enables coverage measurement of processes started by multiprocessing. This involves aggressive monkey-patching. `rcfile` is the path to the rcfile being used. """ if hasattr(multiprocessing, PATCHED_MARKER): ...
def patch_multiprocessing(rcfile): """Monkey-patch the multiprocessing module. This enables coverage measurement of processes started by multiprocessing. This involves aggressive monkey-patching. `rcfile` is the path to the rcfile being used. """ if hasattr(multiprocessing, PATCHED_MARKER): ...
https://github.com/nedbat/coveragepy/issues/890
Traceback (most recent call last): File "repro.py", line 7, in <module> with multiprocessing.Manager() as manager: File "/usr/lib/python3.8/multiprocessing/context.py", line 57, in Manager m.start() File "/usr/lib/python3.8/multiprocessing/managers.py", line 583, in start self._address = reader.recv() File "/usr/lib/py...
EOFError
def execute(self, sql, parameters=()): """Same as :meth:`python:sqlite3.Connection.execute`.""" if self.debug: tail = " with {!r}".format(parameters) if parameters else "" self.debug.write("Executing {!r}{}".format(sql, tail)) try: return self.con.execute(sql, parameters) except ...
def execute(self, sql, parameters=()): """Same as :meth:`python:sqlite3.Connection.execute`.""" if self.debug: tail = " with {!r}".format(parameters) if parameters else "" self.debug.write("Executing {!r}{}".format(sql, tail)) try: return self.con.execute(sql, parameters) except ...
https://github.com/nedbat/coveragepy/issues/886
Traceback (most recent call last): File "/Users/ellbosch/Repos/mssql-cli/.tox/py37/lib/python3.7/site-packages/coverage/sqldata.py", line 1025, in execute return self.con.execute(sql, parameters) sqlite3.DatabaseError: file is not a database During handling of the above exception, another exception occurred: Tracebac...
sqlite3.DatabaseError
def _connect(self): """Connect to the db and do universal initialization.""" if self.con is not None: return # SQLite on Windows on py2 won't open a file if the filename argument # has non-ascii characters in it. Opening a relative file name avoids # a problem if the current directory has n...
def _connect(self): """Connect to the db and do universal initialization.""" if self.con is not None: return # SQLite on Windows on py2 won't open a file if the filename argument # has non-ascii characters in it. Opening a relative file name avoids # a problem if the current directory has n...
https://github.com/nedbat/coveragepy/issues/895
E AssertionError: Error in atexit._run_exitfuncs: E Traceback (most recent call last): E File "c:\miniconda\envs\testvenv\lib\ntpath.py", line 562, in relpath E path_drive, start_drive)) E ValueError: path is on mount 'D:', ...
AssertionError
def __init__(self, args, as_module=False): self.args = args self.as_module = as_module self.arg0 = args[0] self.package = self.modulename = self.pathname = self.loader = self.spec = None
def __init__(self, args, as_module=False): self.args = args self.as_module = as_module self.arg0 = args[0] self.package = self.modulename = self.pathname = None
https://github.com/nedbat/coveragepy/issues/838
$ python --version Python 3.5.6 :: Anaconda, Inc. $ coverage --version Coverage.py, version 4.5.1 with C extension Documentation at https://coverage.readthedocs.io $ cat foo.py print(__name__) print(__spec__.name) $ python -m foo # Behaves as expected __main__ foo $ coverage run -m foo # Observe __spec__ is None ...
AttributeError
def prepare(self): """Do initial preparation to run Python code. Includes finding the module to run, adjusting sys.argv[0], and changing sys.path to match what Python does. """ should_update_sys_path = True if self.as_module: if env.PYBEHAVIOR.actual_syspath0_dash_m: path0...
def prepare(self): """Do initial preparation to run Python code. Includes finding the module to run, adjusting sys.argv[0], and changing sys.path to match what Python does. """ should_update_sys_path = True if self.as_module: if env.PYBEHAVIOR.actual_syspath0_dash_m: path0...
https://github.com/nedbat/coveragepy/issues/838
$ python --version Python 3.5.6 :: Anaconda, Inc. $ coverage --version Coverage.py, version 4.5.1 with C extension Documentation at https://coverage.readthedocs.io $ cat foo.py print(__name__) print(__spec__.name) $ python -m foo # Behaves as expected __main__ foo $ coverage run -m foo # Observe __spec__ is None ...
AttributeError
def run(self): """Run the Python code!""" # Create a module to serve as __main__ main_mod = types.ModuleType("__main__") from_pyc = self.arg0.endswith((".pyc", ".pyo")) main_mod.__file__ = self.arg0 if from_pyc: main_mod.__file__ = main_mod.__file__[:-1] if self.package is not None...
def run(self): """Run the Python code!""" # Create a module to serve as __main__ main_mod = types.ModuleType("__main__") sys.modules["__main__"] = main_mod main_mod.__file__ = self.arg0 if self.package: main_mod.__package__ = self.package if self.modulename: main_mod.__loade...
https://github.com/nedbat/coveragepy/issues/838
$ python --version Python 3.5.6 :: Anaconda, Inc. $ coverage --version Coverage.py, version 4.5.1 with C extension Documentation at https://coverage.readthedocs.io $ cat foo.py print(__name__) print(__spec__.name) $ python -m foo # Behaves as expected __main__ foo $ coverage run -m foo # Observe __spec__ is None ...
AttributeError
def find_module(modulename): """Find the module named `modulename`. Returns the file path of the module, the name of the enclosing package, and None (where a spec would have been). """ openfile = None glo, loc = globals(), locals() try: # Search for the module - inside its parent pa...
def find_module(modulename): """Find the module named `modulename`. Returns the file path of the module, and the name of the enclosing package. """ openfile = None glo, loc = globals(), locals() try: # Search for the module - inside its parent package, if any - using # stand...
https://github.com/nedbat/coveragepy/issues/838
$ python --version Python 3.5.6 :: Anaconda, Inc. $ coverage --version Coverage.py, version 4.5.1 with C extension Documentation at https://coverage.readthedocs.io $ cat foo.py print(__name__) print(__spec__.name) $ python -m foo # Behaves as expected __main__ foo $ coverage run -m foo # Observe __spec__ is None ...
AttributeError
def qualname_from_frame(frame): """Get a qualified name for the code running in `frame`.""" co = frame.f_code fname = co.co_name method = None if co.co_argcount and co.co_varnames[0] == "self": self = frame.f_locals["self"] method = getattr(self, fname, None) if method is None: ...
def qualname_from_frame(frame): """Get a qualified name for the code running in `frame`.""" co = frame.f_code fname = co.co_name method = None if co.co_argcount and co.co_varnames[0] == "self": self = frame.f_locals["self"] method = getattr(self, fname, None) if method is None: ...
https://github.com/nedbat/coveragepy/issues/829
Traceback (most recent call last): File "/eggpath/p/pytest-3.1.0-py2.7.egg/_pytest/config.py", line 367, in _importconftest mod = conftestpath.pyimport() File "/eggpath/p/py-1.4.31-py2.7.egg/py/_path/local.py", line 650, in pyimport __import__(modname) File "/eggpath/p/pytest-3.1.0-py2.7.egg/_pytest/assertion/rewrite.p...
KeyError
def pip(args): # First things first, get a recent (stable) version of pip. if not os.path.exists(TOX_PIP_DIR): subprocess.check_call( [ sys.executable, "-m", "pip", "--disable-pip-version-check", "install", ...
def pip(args): # First things first, get a recent (stable) version of pip. if not os.path.exists(TOX_PIP_DIR): subprocess.check_call( [ sys.executable, "-m", "pip", "--disable-pip-version-check", "install", ...
https://github.com/pypa/setuptools/issues/1644
setuptools fix_889_and_non-ascii_in_setup.cfg_take_2 $ tox -e py27 py27 create: /Users/jaraco/code/main/setuptools/.tox/py27 py27 installdeps: -rtests/requirements.txt py27 develop-inst: /Users/jaraco/code/main/setuptools ERROR: invocation failed (exit code 2), logfile: /Users/jaraco/code/main/setuptools/.tox/py27/log/...
Exception
def pip(args): # First things first, get a recent (stable) version of pip. if not os.path.exists(TOX_PIP_DIR): subprocess.check_call( [ sys.executable, "-m", "pip", "--disable-pip-version-check", "install", ...
def pip(args): # First things first, get a recent (stable) version of pip. if not os.path.exists(TOX_PIP_DIR): subprocess.check_call( [ sys.executable, "-m", "pip", "--disable-pip-version-check", "install", ...
https://github.com/pypa/setuptools/issues/1644
setuptools fix_889_and_non-ascii_in_setup.cfg_take_2 $ tox -e py27 py27 create: /Users/jaraco/code/main/setuptools/.tox/py27 py27 installdeps: -rtests/requirements.txt py27 develop-inst: /Users/jaraco/code/main/setuptools ERROR: invocation failed (exit code 2), logfile: /Users/jaraco/code/main/setuptools/.tox/py27/log/...
Exception
def finalize_options(self): upload.finalize_options(self) if self.upload_dir is None: if self.has_sphinx(): build_sphinx = self.get_finalized_command("build_sphinx") self.target_dir = dict(build_sphinx.builder_target_dirs)["html"] else: build = self.get_finali...
def finalize_options(self): upload.finalize_options(self) if self.upload_dir is None: if self.has_sphinx(): build_sphinx = self.get_finalized_command("build_sphinx") self.target_dir = build_sphinx.builder_target_dir else: build = self.get_finalized_command("bu...
https://github.com/pypa/setuptools/issues/1060
Traceback (most recent call last): File "setup.py", line 67, in <module> setup(**setup_args) File "/usr/lib/python3.5/distutils/core.py", line 148, in setup dist.run_commands() File "/usr/lib/python3.5/distutils/dist.py", line 955, in run_commands self.run_command(cmd) File "/usr/lib/python3.5/distutils/dist.py", line ...
AttributeError
def spec_for_distutils(self): import importlib.abc import importlib.util class DistutilsLoader(importlib.abc.Loader): def create_module(self, spec): return importlib.import_module("setuptools._distutils") def exec_module(self, module): pass return importlib.uti...
def spec_for_distutils(self): import importlib.abc import importlib.util class DistutilsLoader(importlib.abc.Loader): def create_module(self, spec): return importlib.import_module("._distutils", "setuptools") def exec_module(self, module): pass return importlib...
https://github.com/pypa/setuptools/issues/2352
$ python --version Python 3.5.1 $ python -c "import distutils" Traceback (most recent call last): File "<string>", line 1, in <module> File "<frozen importlib._bootstrap>", line 969, in _find_and_load File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 6...
SystemError
def create_module(self, spec): return importlib.import_module("setuptools._distutils")
def create_module(self, spec): return importlib.import_module("._distutils", "setuptools")
https://github.com/pypa/setuptools/issues/2352
$ python --version Python 3.5.1 $ python -c "import distutils" Traceback (most recent call last): File "<string>", line 1, in <module> File "<frozen importlib._bootstrap>", line 969, in _find_and_load File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 6...
SystemError
def assert_string_list(dist, attr, value): """Verify that value is a string list""" try: # verify that value is a list or tuple to exclude unordered # or single-use iterables assert isinstance(value, (list, tuple)) # verify that elements of value are strings assert "".joi...
def assert_string_list(dist, attr, value): """Verify that value is a string list or None""" try: assert "".join(value) != value except (TypeError, ValueError, AttributeError, AssertionError): raise DistutilsSetupError( "%r must be a list of strings (got %r)" % (attr, value) ...
https://github.com/pypa/setuptools/issues/1459
%CMD_IN_ENV% pip install . Processing c:\projects\manubot Complete output from command python setup.py egg_info: running egg_info creating pip-egg-info\manubot.egg-info writing pip-egg-info\manubot.egg-info\PKG-INFO writing dependency_links to pip-egg-info\manubot.egg-info\dependency_links.txt writing entry points to p...
ValueError
def check_package_data(dist, attr, value): """Verify that value is a dictionary of package names to glob lists""" if not isinstance(value, dict): raise DistutilsSetupError( "{!r} must be a dictionary mapping package names to lists of " "string wildcard patterns".format(attr) ...
def check_package_data(dist, attr, value): """Verify that value is a dictionary of package names to glob lists""" if isinstance(value, dict): for k, v in value.items(): if not isinstance(k, str): break try: iter(v) except TypeError: ...
https://github.com/pypa/setuptools/issues/1459
%CMD_IN_ENV% pip install . Processing c:\projects\manubot Complete output from command python setup.py egg_info: running egg_info creating pip-egg-info\manubot.egg-info writing pip-egg-info\manubot.egg-info\PKG-INFO writing dependency_links to pip-egg-info\manubot.egg-info\dependency_links.txt writing entry points to p...
ValueError
def assert_string_list(dist, attr, value): """Verify that value is a string list""" try: # verify that value is a list or tuple to exclude unordered # or single-use iterables assert isinstance(value, (list, tuple)) # verify that elements of value are strings assert "".joi...
def assert_string_list(dist, attr, value): """Verify that value is a string list""" try: assert "".join(value) != value except (TypeError, ValueError, AttributeError, AssertionError): raise DistutilsSetupError( "%r must be a list of strings (got %r)" % (attr, value) )
https://github.com/pypa/setuptools/issues/1459
%CMD_IN_ENV% pip install . Processing c:\projects\manubot Complete output from command python setup.py egg_info: running egg_info creating pip-egg-info\manubot.egg-info writing pip-egg-info\manubot.egg-info\PKG-INFO writing dependency_links to pip-egg-info\manubot.egg-info\dependency_links.txt writing entry points to p...
ValueError
def _parse_config_files(self, filenames=None): """ Adapted from distutils.dist.Distribution.parse_config_files, this method provides the same functionality in subtly-improved ways. """ from setuptools.extern.six.moves.configparser import ConfigParser # Ignore install directory options if we...
def _parse_config_files(self, filenames=None): """ Adapted from distutils.dist.Distribution.parse_config_files, this method provides the same functionality in subtly-improved ways. """ from setuptools.extern.six.moves.configparser import ConfigParser # Ignore install directory options if we...
https://github.com/pypa/setuptools/issues/1702
configparser # easy_install --version setuptools 40.8.0 from c:\python37\lib\site-packages (Python 3.7) configparser 3.7.2 # python setup.py egg_info Traceback (most recent call last): File "setup.py", line 5, in <module> package_dir={'': 'src'}, File "C:\Python37\lib\site-packages\setuptools\__init__.py", line 144, in...
UnicodeDecodeError
def create_certificate(self, csr, issuer_options): """ Creates a CFSSL certificate. :param csr: :param issuer_options: :return: """ current_app.logger.info( "Requesting a new cfssl certificate with csr: {0}".format(csr) ) url = "{0}{1}".format(current_app.config.get("CFSSL_...
def create_certificate(self, csr, issuer_options): """ Creates a CFSSL certificate. :param csr: :param issuer_options: :return: """ current_app.logger.info( "Requesting a new cfssl certificate with csr: {0}".format(csr) ) url = "{0}{1}".format(current_app.config.get("CFSSL_...
https://github.com/Netflix/lemur/issues/2879
[2020-01-07 17:46:32,386] ERROR in service: Exception minting certificate Traceback (most recent call last): File "/www/lemur/lemur/certificates/service.py", line 273, in create cert_body, private_key, cert_chain, external_id, csr = mint(**kwargs) File "/www/lemur/lemur/certificates/service.py", line 223, in mint cert_...
TypeError
def validate_options(options): """ Ensures that the plugin options are valid. :param options: :return: """ interval = get_plugin_option("interval", options) unit = get_plugin_option("unit", options) if not interval and not unit: return if unit == "month": interval *...
def validate_options(options): """ Ensures that the plugin options are valid. :param options: :return: """ interval = get_plugin_option("interval", options) unit = get_plugin_option("unit", options) if not interval and not unit: return if interval == "month": unit *...
https://github.com/Netflix/lemur/issues/752
2017-04-12 17:35:33,074 ERROR: Exception on /api/1/notifications/950 [PUT] [in /apps/lemur/lib/python3.5/site-packages/flask/app.py:1560] Traceback (most recent call last): File "/apps/lemur/lib/python3.5/site-packages/flask/app.py", line 1612, in full_dispatch_request rv = self.dispatch_request() File "/apps/lemur/lib...
TypeError
def create(kwargs): """ Create a new authority. :return: """ issuer = plugins.get(kwargs.get("pluginName")) kwargs["creator"] = g.current_user.email cert_body, intermediate, issuer_roles = issuer.create_authority(kwargs) cert = Certificate(cert_body, chain=intermediate) cert.owne...
def create(kwargs): """ Create a new authority. :return: """ issuer = plugins.get(kwargs.get("pluginName")) kwargs["creator"] = g.current_user.email cert_body, intermediate, issuer_roles = issuer.create_authority(kwargs) cert = Certificate(cert_body, chain=intermediate) cert.owne...
https://github.com/Netflix/lemur/issues/261
2016-03-31 16:21:39,507 ERROR: 'NoneType' object has no attribute 'authority' [in /apps/lemur/lemur/common/utils.py:60] Traceback (most recent call last): File "/apps/lemur/lemur/common/utils.py", line 46, in wrapper resp = f(*args, **kwargs) File "/apps/lemur/lemur/authorities/views.py", line 201, in post return servi...
AttributeError
def mint(issuer_options): """ Minting is slightly different for each authority. Support for multiple authorities is handled by individual plugins. :param issuer_options: """ authority = issuer_options["authority"] issuer = plugins.get(authority.plugin_name) # allow the CSR to be speci...
def mint(issuer_options): """ Minting is slightly different for each authority. Support for multiple authorities is handled by individual plugins. :param issuer_options: """ authority = issuer_options["authority"] issuer = plugins.get(authority.plugin_name) # allow the CSR to be speci...
https://github.com/Netflix/lemur/issues/246
2016-02-19 21:19:04,405 ERROR: 45 [in /apps/lemur/lemur/common/utils.py:60] Traceback (most recent call last): File "/apps/lemur/lemur/common/utils.py", line 46, in wrapper resp = f(*args, **kwargs) File "/apps/lemur/lemur/certificates/views.py", line 387, in post return service.create(**args) File "/apps/lemur/lemur/c...
KeyError
def post(self): """ .. http:post:: /certificates Creates a new certificate **Example request**: .. sourcecode:: http POST /certificates HTTP/1.1 Host: example.com Accept: application/json, text/javascript { "country": "US", ...
def post(self): """ .. http:post:: /certificates Creates a new certificate **Example request**: .. sourcecode:: http POST /certificates HTTP/1.1 Host: example.com Accept: application/json, text/javascript { "country": "US", ...
https://github.com/Netflix/lemur/issues/246
2016-02-19 21:19:04,405 ERROR: 45 [in /apps/lemur/lemur/common/utils.py:60] Traceback (most recent call last): File "/apps/lemur/lemur/common/utils.py", line 46, in wrapper resp = f(*args, **kwargs) File "/apps/lemur/lemur/certificates/views.py", line 387, in post return service.create(**args) File "/apps/lemur/lemur/c...
KeyError
def put(self, certificate_id): """ .. http:put:: /certificates/1 Update a certificate **Example request**: .. sourcecode:: http PUT /certificates/1 HTTP/1.1 Host: example.com Accept: application/json, text/javascript { "owner": "jimb...
def put(self, certificate_id): """ .. http:put:: /certificates/1 Update a certificate **Example request**: .. sourcecode:: http PUT /certificates/1 HTTP/1.1 Host: example.com Accept: application/json, text/javascript { "owner": "jimb...
https://github.com/Netflix/lemur/issues/55
2015-08-26 20:33:36,751 ERROR: 'NoneType' object has no attribute 'name' [in /apps/lemur/lemur/common/utils.py:60] Traceback (most recent call last): File "/apps/lemur/lemur/common/utils.py", line 46, in wrapper resp = f(*args, **kwargs) File "/apps/lemur/lemur/certificates/views.py", line 575, in put permission = Upda...
AttributeError
async def graphql_http_server(self, request: Request) -> Response: try: data = await self.extract_data_from_request(request) except HttpError as error: return PlainTextResponse(error.message or error.status, status_code=400) context_value = await self.get_context_for_request(request) ex...
async def graphql_http_server(self, request: Request) -> Response: try: data = await self.extract_data_from_request(request) except HttpError as error: return PlainTextResponse(error.message or error.status, status_code=400) success, response = await self.execute_graphql_query(request, data...
https://github.com/mirumee/ariadne/issues/320
Traceback (most recent call last):", File \"/Users/...REDACTED.../virtualenvs/graphql-Pfr5HTvn/lib/python3.7/site-packages/graphql/execution/execute.py\", line 625, in resolve_field_value_or_error", result = resolve_fn(source, info, **args)", File \"/Users/...REDACTED.../app/__init__.py\", line 26, in counter_resolver"...
TypeError
async def handle_websocket_message( self, message: dict, websocket: WebSocket, subscriptions: Dict[str, AsyncGenerator], ): operation_id = cast(str, message.get("id")) message_type = cast(str, message.get("type")) if message_type == GQL_CONNECTION_INIT: await websocket.send_json({"t...
async def handle_websocket_message( self, message: dict, websocket: WebSocket, subscriptions: Dict[str, AsyncGenerator], ): operation_id = cast(str, message.get("id")) message_type = cast(str, message.get("type")) if message_type == GQL_CONNECTION_INIT: await websocket.send_json({"t...
https://github.com/mirumee/ariadne/issues/320
Traceback (most recent call last):", File \"/Users/...REDACTED.../virtualenvs/graphql-Pfr5HTvn/lib/python3.7/site-packages/graphql/execution/execute.py\", line 625, in resolve_field_value_or_error", result = resolve_fn(source, info, **args)", File \"/Users/...REDACTED.../app/__init__.py\", line 26, in counter_resolver"...
TypeError
def conv2d_winograd_nhwc_cuda( data, weight, strides, padding, dilation, out_dtype, pre_computed=False ): """Conv2D Winograd in NHWC layout. This is a clean version to be used by the auto-scheduler for both CPU and GPU. """ tile_size = _infer_tile_size(data, weight, layout="NHWC") return _conv2d...
def conv2d_winograd_nhwc_cuda( data, weight, strides, padding, dilation, out_dtype, pre_computed=False ): """Conv2D Winograd in NHWC layout. This is a clean version to be used by the auto-scheduler for both CPU and GPU. """ tile_size = _infer_tile_size(data, weight) return _conv2d_winograd_nhwc_...
https://github.com/apache/tvm/issues/7090
Exception in thread Thread-1: Traceback (most recent call last): File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner self.run() File "/usr/lib/python3.6/threading.py", line 864, in run self._target(*self._args, **self._kwargs) File "/home/ubuntu/cody-tvm/python/tvm/auto_scheduler/relay_integration.py"...
tvm._ffi.base.TVMError
async def _run_backfill(self) -> None: await self._begin_backfill.wait() if self._next_trie_root_hash is None: raise RuntimeError( "Cannot start backfill when a recent trie root hash is unknown" ) loop = asyncio.get_event_loop() while self.manager.is_running: # Colle...
async def _run_backfill(self) -> None: await self._begin_backfill.wait() if self._next_trie_root_hash is None: raise RuntimeError( "Cannot start backfill when a recent trie root hash is unknown" ) loop = asyncio.get_event_loop() while self.manager.is_running: # Colle...
https://github.com/ethereum/trinity/issues/2008
f2b7-40b4-a77a-6ba6d13da819>: Timed out waiting for NodeDataV65 request lock or connection: Connection-<Session <Node(0xd4062d@91.13.194.238)> 1c231c61-f2b7-40b4-a77a-6ba6d13da819>�[0m DEBUG 2020-09-02 12:59:58,686 BeamDownloader Problem downloading nodes from peer, dropping... Traceback (most recent call last...
p2p.exceptions.ConnectionBusy
async def _match_predictive_node_requests_to_peers(self) -> None: """ Monitor for predictive nodes. These might be required by future blocks. They might not, because we run a speculative execution which might follow a different code path than the final block import does. When predictive nodes are q...
async def _match_predictive_node_requests_to_peers(self) -> None: """ Monitor for predictive nodes. These might be required by future blocks. They might not, because we run a speculative execution which might follow a different code path than the final block import does. When predictive nodes are q...
https://github.com/ethereum/trinity/issues/2008
f2b7-40b4-a77a-6ba6d13da819>: Timed out waiting for NodeDataV65 request lock or connection: Connection-<Session <Node(0xd4062d@91.13.194.238)> 1c231c61-f2b7-40b4-a77a-6ba6d13da819>�[0m DEBUG 2020-09-02 12:59:58,686 BeamDownloader Problem downloading nodes from peer, dropping... Traceback (most recent call last...
p2p.exceptions.ConnectionBusy
async def add(self, tasks: Tuple[TTask, ...]) -> None: """ add() will insert as many tasks as can be inserted until the queue fills up. Then it will pause until the queue is no longer full, and continue adding tasks. It will finally return when all tasks have been inserted. """ if not isinstance...
async def add(self, tasks: Tuple[TTask, ...]) -> None: """ add() will insert as many tasks as can be inserted until the queue fills up. Then it will pause until the queue is no longer full, and continue adding tasks. It will finally return when all tasks have been inserted. """ if not isinstance...
https://github.com/ethereum/trinity/issues/2027
DEBUG 2020-09-03 21:51:33,790 SkeletonSyncer Skeleton sync with ETHPeer (eth, 63) <Session <Node(0x1fbb02@34.239.157.14)> a55e806f-fd96-4963-8e5f-73243d2a6820> ended DEBUG 2020-09-03 21:51:33,791 SkeletonSyncer Skeleton syncer had 0 pending headers when it was cancelled DEBUG 2020-09-03 21:51:33,789 ...
trio.MultiError
async def disconnect(self, reason: DisconnectReason) -> None: """ Send a Disconnect msg to the remote peer and stop ourselves. """ self.disconnect_nowait(reason) await self.manager.stop()
async def disconnect(self, reason: DisconnectReason) -> None: """ On completion of this method, the peer will be disconnected and not in the peer pool anymore. """ self.disconnect_nowait(reason) await self.manager.stop()
https://github.com/ethereum/trinity/issues/2033
�[1m�[31m ERROR 2020-09-10 09:35:40,267 ETHPeerPool unexpected error during peer connection Traceback (most recent call last): File "/usr/src/app/trinity/trinity/protocol/common/peer.py", line 228, in maybe_connect_more_peers for backend in self.peer_backends File "/usr/src/app/trinity/p2p/peer_pool.py", ...
AttributeError
async def add_outbound_peer(self, peer: BasePeer) -> None: try: await self._start_peer(peer) except asyncio.TimeoutError as err: self.logger.debug("Timeout waiting for %s to start: %s", peer, err) return # Check again to see if we have *become* full since the previous check. if ...
async def add_outbound_peer(self, peer: BasePeer) -> None: try: await self._start_peer(peer) except asyncio.TimeoutError as err: self.logger.debug("Timeout waiting for %s to start: %s", peer, err) return await self._add_peer_and_bootstrap(peer)
https://github.com/ethereum/trinity/issues/2033
�[1m�[31m ERROR 2020-09-10 09:35:40,267 ETHPeerPool unexpected error during peer connection Traceback (most recent call last): File "/usr/src/app/trinity/trinity/protocol/common/peer.py", line 228, in maybe_connect_more_peers for backend in self.peer_backends File "/usr/src/app/trinity/p2p/peer_pool.py", ...
AttributeError
async def connect_to_node(self, node: NodeAPI) -> None: """ Connect to a single node quietly aborting if the peer pool is full or shutting down, or one of the expected peer level exceptions is raised while connecting. """ if self.is_full or not self.manager.is_running: self.logger.warnin...
async def connect_to_node(self, node: NodeAPI) -> None: """ Connect to a single node quietly aborting if the peer pool is full or shutting down, or one of the expected peer level exceptions is raised while connecting. """ if self.is_full or not self.manager.is_running: self.logger.warnin...
https://github.com/ethereum/trinity/issues/2033
�[1m�[31m ERROR 2020-09-10 09:35:40,267 ETHPeerPool unexpected error during peer connection Traceback (most recent call last): File "/usr/src/app/trinity/trinity/protocol/common/peer.py", line 228, in maybe_connect_more_peers for backend in self.peer_backends File "/usr/src/app/trinity/p2p/peer_pool.py", ...
AttributeError
async def run_behaviors(self, behaviors: Tuple[BehaviorAPI, ...]) -> None: async with contextlib.AsyncExitStack() as stack: futures: List[asyncio.Task[Any]] = [ create_task( self.manager.wait_finished(), "Connection/run_behaviors/wait_finished" ) ] for...
async def run_behaviors(self, behaviors: Tuple[BehaviorAPI, ...]) -> None: async with contextlib.AsyncExitStack() as stack: futures: List[asyncio.Task[Any]] = [ create_task( self.manager.wait_finished(), "Connection/run_behaviors/wait_finished" ) ] for...
https://github.com/ethereum/trinity/issues/2018
�[1m�[33m WARNING 2020-09-04 04:19:18,179 Sync / PeerPool Event loop blocked or overloaded: delay=2.005s, tasks=74�[0m �[1m�[31m ERROR 2020-09-04 04:19:18,181 asyncio Exception in callback <TaskWakeupMethWrapper object at 0x7fa47b456e90> handle: <Handle <TaskWakeupMethWrapper object at 0x7fa47...
trio.MultiError
async def do_run(self, event_bus: EndpointAPI) -> None: boot_info = self._boot_info if boot_info.args.enable_metrics: metrics_service = metrics_service_from_args( boot_info.args, AsyncioMetricsService ) else: # Use a NoopMetricsService so that no code branches need to be...
async def do_run(self, event_bus: EndpointAPI) -> None: boot_info = self._boot_info if boot_info.args.enable_metrics: metrics_service = metrics_service_from_args( boot_info.args, AsyncioMetricsService ) else: # Use a NoopMetricsService so that no code branches need to be...
https://github.com/ethereum/trinity/issues/2018
�[1m�[33m WARNING 2020-09-04 04:19:18,179 Sync / PeerPool Event loop blocked or overloaded: delay=2.005s, tasks=74�[0m �[1m�[31m ERROR 2020-09-04 04:19:18,181 asyncio Exception in callback <TaskWakeupMethWrapper object at 0x7fa47b456e90> handle: <Handle <TaskWakeupMethWrapper object at 0x7fa47...
trio.MultiError
async def _do_run(self) -> None: with child_process_logging(self._boot_info): endpoint_name = self.get_endpoint_name() event_bus_service = AsyncioEventBusService( self._boot_info.trinity_config, endpoint_name, ) async with background_asyncio_service(event_bus_...
async def _do_run(self) -> None: with child_process_logging(self._boot_info): endpoint_name = self.get_endpoint_name() event_bus_service = AsyncioEventBusService( self._boot_info.trinity_config, endpoint_name, ) async with background_asyncio_service(event_bus_...
https://github.com/ethereum/trinity/issues/2018
�[1m�[33m WARNING 2020-09-04 04:19:18,179 Sync / PeerPool Event loop blocked or overloaded: delay=2.005s, tasks=74�[0m �[1m�[31m ERROR 2020-09-04 04:19:18,181 asyncio Exception in callback <TaskWakeupMethWrapper object at 0x7fa47b456e90> handle: <Handle <TaskWakeupMethWrapper object at 0x7fa47...
trio.MultiError
def run_asyncio_eth1_component( component_type: Type["AsyncioIsolatedComponent"], ) -> None: import asyncio from p2p.asyncio_utils import wait_first loop = asyncio.get_event_loop() got_sigint = asyncio.Event() loop.add_signal_handler(signal.SIGINT, got_sigint.set) loop.add_signal_handler(si...
def run_asyncio_eth1_component( component_type: Type["AsyncioIsolatedComponent"], ) -> None: import asyncio from p2p.asyncio_utils import wait_first loop = asyncio.get_event_loop() got_sigint = asyncio.Event() loop.add_signal_handler(signal.SIGINT, got_sigint.set) loop.add_signal_handler(si...
https://github.com/ethereum/trinity/issues/2018
�[1m�[33m WARNING 2020-09-04 04:19:18,179 Sync / PeerPool Event loop blocked or overloaded: delay=2.005s, tasks=74�[0m �[1m�[31m ERROR 2020-09-04 04:19:18,181 asyncio Exception in callback <TaskWakeupMethWrapper object at 0x7fa47b456e90> handle: <Handle <TaskWakeupMethWrapper object at 0x7fa47...
trio.MultiError
async def run() -> None: component, connect_to_endpoints = _setup_standalone_component( component_type, APP_IDENTIFIER_ETH1 ) async with _run_eventbus_for_component( component, connect_to_endpoints ) as event_bus: async with _run_asyncio_component_in_proc( component, ...
async def run() -> None: component, connect_to_endpoints = _setup_standalone_component( component_type, APP_IDENTIFIER_ETH1 ) async with _run_eventbus_for_component( component, connect_to_endpoints ) as event_bus: async with _run_asyncio_component_in_proc( component, ...
https://github.com/ethereum/trinity/issues/2018
�[1m�[33m WARNING 2020-09-04 04:19:18,179 Sync / PeerPool Event loop blocked or overloaded: delay=2.005s, tasks=74�[0m �[1m�[31m ERROR 2020-09-04 04:19:18,181 asyncio Exception in callback <TaskWakeupMethWrapper object at 0x7fa47b456e90> handle: <Handle <TaskWakeupMethWrapper object at 0x7fa47...
trio.MultiError
async def run_background_asyncio_services(services: Sequence[ServiceAPI]) -> None: async with contextlib.AsyncExitStack() as stack: managers = tuple( [ await stack.enter_async_context(background_asyncio_service(service)) for service in services ] ...
async def run_background_asyncio_services(services: Sequence[ServiceAPI]) -> None: await _run_background_services(services, background_asyncio_service)
https://github.com/ethereum/trinity/issues/1903
Traceback (most recent call last): File "/usr/src/app/trinity/trinity/extensibility/trio.py", line 50, in run_process await self.do_run(event_bus) File "/usr/src/app/trinity/trinity/components/builtin/metrics/component.py", line 171, in do_run await managers[0].wait_finished() File "/usr/local/lib/python3.7/contextlib....
combined_error
async def run_background_trio_services(services: Sequence[ServiceAPI]) -> None: async with contextlib.AsyncExitStack() as stack: managers = tuple( [ await stack.enter_async_context(background_trio_service(service)) for service in services ] ) ...
async def run_background_trio_services(services: Sequence[ServiceAPI]) -> None: await _run_background_services(services, background_trio_service)
https://github.com/ethereum/trinity/issues/1903
Traceback (most recent call last): File "/usr/src/app/trinity/trinity/extensibility/trio.py", line 50, in run_process await self.do_run(event_bus) File "/usr/src/app/trinity/trinity/components/builtin/metrics/component.py", line 171, in do_run await managers[0].wait_finished() File "/usr/local/lib/python3.7/contextlib....
combined_error
async def continuously_report(self) -> None: while self.manager.is_running: super().report_now() await asyncio.sleep(self._reporting_frequency)
async def continuously_report(self) -> None: while self.manager.is_running: self._reporter.report_now() await asyncio.sleep(self._reporting_frequency)
https://github.com/ethereum/trinity/issues/1903
Traceback (most recent call last): File "/usr/src/app/trinity/trinity/extensibility/trio.py", line 50, in run_process await self.do_run(event_bus) File "/usr/src/app/trinity/trinity/components/builtin/metrics/component.py", line 171, in do_run await managers[0].wait_finished() File "/usr/local/lib/python3.7/contextlib....
combined_error
def __init__( self, influx_server: str, influx_user: str, influx_password: str, influx_database: str, host: str, port: int, protocol: str, reporting_frequency: int, ): self._unreported_error: Exception = None self._last_time_reported: float = 0.0 self._influx_server = inf...
def __init__( self, influx_server: str, influx_user: str, influx_password: str, influx_database: str, host: str, port: int, protocol: str, reporting_frequency: int, ): self._influx_server = influx_server self._reporting_frequency = reporting_frequency self._registry = Hos...
https://github.com/ethereum/trinity/issues/1903
Traceback (most recent call last): File "/usr/src/app/trinity/trinity/extensibility/trio.py", line 50, in run_process await self.do_run(event_bus) File "/usr/src/app/trinity/trinity/components/builtin/metrics/component.py", line 171, in do_run await managers[0].wait_finished() File "/usr/local/lib/python3.7/contextlib....
combined_error
async def continuously_report(self) -> None: async for _ in trio_utils.every(self._reporting_frequency): super().report_now()
async def continuously_report(self) -> None: async for _ in trio_utils.every(self._reporting_frequency): self._reporter.report_now()
https://github.com/ethereum/trinity/issues/1903
Traceback (most recent call last): File "/usr/src/app/trinity/trinity/extensibility/trio.py", line 50, in run_process await self.do_run(event_bus) File "/usr/src/app/trinity/trinity/components/builtin/metrics/component.py", line 171, in do_run await managers[0].wait_finished() File "/usr/local/lib/python3.7/contextlib....
combined_error
def __init__( self, transport: TransportAPI, base_protocol: BaseP2PProtocol, protocols: Sequence[ProtocolAPI], token: CancelToken = None, max_queue_size: int = 4096, ) -> None: if token is None: loop = None else: loop = token.loop base_token = CancelToken(f"multiplexe...
def __init__( self, transport: TransportAPI, base_protocol: BaseP2PProtocol, protocols: Sequence[ProtocolAPI], token: CancelToken = None, max_queue_size: int = 4096, ) -> None: if token is None: loop = None else: loop = token.loop base_token = CancelToken(f"multiplexe...
https://github.com/ethereum/trinity/issues/1405
DEBUG 12-18 15:21:47 async_process_runner.py b'\x1b[1m\x1b[31m ERROR 2019-12-18 15:21:47,268 LESPeerPool unexpected error during peer connection\n' DEBUG 12-18 15:21:47 async_process_runner.py b'Traceback (most recent call last):\n' DEBUG 12-18 15:21:47 async_process_runner.py b' File "/home/cir...
KeyError
def stream_protocol_messages( self, protocol_identifier: Union[ProtocolAPI, Type[ProtocolAPI]], ) -> AsyncIterator[CommandAPI[Any]]: """ Stream the messages for the specified protocol. """ if isinstance(protocol_identifier, ProtocolAPI): protocol_class = type(protocol_identifier) eli...
def stream_protocol_messages( self, protocol_identifier: Union[ProtocolAPI, Type[ProtocolAPI]], ) -> AsyncIterator[CommandAPI[Any]]: """ Stream the messages for the specified protocol. """ if isinstance(protocol_identifier, ProtocolAPI): protocol_class = type(protocol_identifier) eli...
https://github.com/ethereum/trinity/issues/1405
DEBUG 12-18 15:21:47 async_process_runner.py b'\x1b[1m\x1b[31m ERROR 2019-12-18 15:21:47,268 LESPeerPool unexpected error during peer connection\n' DEBUG 12-18 15:21:47 async_process_runner.py b'Traceback (most recent call last):\n' DEBUG 12-18 15:21:47 async_process_runner.py b' File "/home/cir...
KeyError
async def _stream_protocol_messages( self, protocol_class: Type[ProtocolAPI], ) -> AsyncIterator[CommandAPI[Any]]: """ Stream the messages for the specified protocol. """ async with self._protocol_locks[protocol_class]: msg_queue = self._protocol_queues[protocol_class] if not has...
async def _stream_protocol_messages( self, protocol_class: Type[ProtocolAPI], ) -> AsyncIterator[CommandAPI[Any]]: """ Stream the messages for the specified protocol. """ async with self._protocol_locks.lock(protocol_class): msg_queue = self._protocol_queues[protocol_class] if no...
https://github.com/ethereum/trinity/issues/1405
DEBUG 12-18 15:21:47 async_process_runner.py b'\x1b[1m\x1b[31m ERROR 2019-12-18 15:21:47,268 LESPeerPool unexpected error during peer connection\n' DEBUG 12-18 15:21:47 async_process_runner.py b'Traceback (most recent call last):\n' DEBUG 12-18 15:21:47 async_process_runner.py b' File "/home/cir...
KeyError
def lock_node_for_handshake(self, node: NodeAPI) -> AsyncContextManager[None]: return self._handshake_locks.lock(node)
def lock_node_for_handshake(self, node: NodeAPI) -> asyncio.Lock: return self._handshake_locks.lock(node)
https://github.com/ethereum/trinity/issues/1405
DEBUG 12-18 15:21:47 async_process_runner.py b'\x1b[1m\x1b[31m ERROR 2019-12-18 15:21:47,268 LESPeerPool unexpected error during peer connection\n' DEBUG 12-18 15:21:47 async_process_runner.py b'Traceback (most recent call last):\n' DEBUG 12-18 15:21:47 async_process_runner.py b' File "/home/cir...
KeyError
def __init__(self) -> None: self._locks = {} self._reference_counts = defaultdict(int)
def __init__(self) -> None: self._locks = weakref.WeakKeyDictionary()
https://github.com/ethereum/trinity/issues/1405
DEBUG 12-18 15:21:47 async_process_runner.py b'\x1b[1m\x1b[31m ERROR 2019-12-18 15:21:47,268 LESPeerPool unexpected error during peer connection\n' DEBUG 12-18 15:21:47 async_process_runner.py b'Traceback (most recent call last):\n' DEBUG 12-18 15:21:47 async_process_runner.py b' File "/home/cir...
KeyError
async def lock(self, resource: TResource) -> AsyncIterator[None]: if resource not in self._locks: self._locks[resource] = asyncio.Lock() try: self._reference_counts[resource] += 1 async with self._locks[resource]: yield finally: self._reference_counts[resource] -...
def lock(self, resource: Hashable) -> asyncio.Lock: if resource not in self._locks: self._locks[resource] = asyncio.Lock() lock = self._locks[resource] return lock
https://github.com/ethereum/trinity/issues/1405
DEBUG 12-18 15:21:47 async_process_runner.py b'\x1b[1m\x1b[31m ERROR 2019-12-18 15:21:47,268 LESPeerPool unexpected error during peer connection\n' DEBUG 12-18 15:21:47 async_process_runner.py b'Traceback (most recent call last):\n' DEBUG 12-18 15:21:47 async_process_runner.py b' File "/home/cir...
KeyError
def is_locked(self, resource: TResource) -> bool: if resource not in self._locks: return False else: return self._locks[resource].locked()
def is_locked(self, resource: Hashable) -> bool: if resource not in self._locks: return False else: return self._locks[resource].locked()
https://github.com/ethereum/trinity/issues/1405
DEBUG 12-18 15:21:47 async_process_runner.py b'\x1b[1m\x1b[31m ERROR 2019-12-18 15:21:47,268 LESPeerPool unexpected error during peer connection\n' DEBUG 12-18 15:21:47 async_process_runner.py b'Traceback (most recent call last):\n' DEBUG 12-18 15:21:47 async_process_runner.py b' File "/home/cir...
KeyError
async def schedule_segment( self, parent_header: BlockHeader, gap_length: int, skeleton_peer: TChainPeer ) -> None: """ :param parent_header: the parent of the gap to fill :param gap_length: how long is the header gap :param skeleton_peer: the peer that provided the parent_header - will not use to f...
async def schedule_segment( self, parent_header: BlockHeader, gap_length: int, skeleton_peer: TChainPeer ) -> None: """ :param parent_header: the parent of the gap to fill :param gap_length: how long is the header gap :param skeleton_peer: the peer that provided the parent_header - will not use to f...
https://github.com/ethereum/trinity/issues/1083
ERROR 09-09 11:44:41 ETHHeaderChainSyncer Unexpected error in <trinity.protocol.eth.sync.ETHHeaderChainSyncer object at 0x7fc3dfd1beb8>, exiting Traceback (most recent call last): File "/home/ubuntu/trinity/p2p/service.py", line 118, in run File "/home/ubuntu/trinity/trinity/sync/common/headers.py", line 866, in _ru...
eth_utils.exceptions.ValidationError
def _unpack_v4( message: bytes, ) -> Tuple[datatypes.PublicKey, int, Tuple[Any, ...], Hash32]: """Unpack a discovery v4 UDP message received from a remote node. Returns the public key used to sign the message, the cmd ID, payload and hash. """ message_hash = Hash32(message[:MAC_SIZE]) if messag...
def _unpack_v4( message: bytes, ) -> Tuple[datatypes.PublicKey, int, Tuple[Any, ...], Hash32]: """Unpack a discovery v4 UDP message received from a remote node. Returns the public key used to sign the message, the cmd ID, payload and hash. """ message_hash = Hash32(message[:MAC_SIZE]) if messag...
https://github.com/ethereum/trinity/issues/1062
ERROR 09-05 09:51:49 asyncio Exception in callback UDPTransport._on_read_ready handle: <Handle UDPTransport._on_read_ready> Traceback (most recent call last): File "uvloop/cbhandles.pyx", line 69, in uvloop.loop.Handle._run File "uvloop/handles/udp.pyx", line 64, in uvloop.loop.UDPTransport._on_read_rea...
KeyError
async def receive_handshake( self, reader: asyncio.StreamReader, writer: asyncio.StreamWriter ) -> None: def _cleanup_reader_and_writer() -> None: if not reader.at_eof(): reader.feed_eof() writer.close() try: await self._receive_handshake(reader, writer) except COMMO...
async def receive_handshake( self, reader: asyncio.StreamReader, writer: asyncio.StreamWriter ) -> None: expected_exceptions = ( TimeoutError, PeerConnectionLost, HandshakeFailure, NoMatchingPeerCapabilities, asyncio.IncompleteReadError, ) def _cleanup_reader_and...
https://github.com/ethereum/trinity/issues/1031
ERROR 09-02 13:55:52 FullServer Unexpected error handling handshake Traceback (most recent call last): File "/home/ubuntu/trinity/trinity/server.py", line 156, in receive_handshake await self._receive_handshake(reader, writer) File "/home/ubuntu/trinity/trinity/server.py", line 176, in _receive_handshake t...
p2p.exceptions.NoMatchingPeerCapabilities
async def receive_handshake( self, reader: asyncio.StreamReader, writer: asyncio.StreamWriter ) -> None: expected_exceptions = ( TimeoutError, PeerConnectionLost, HandshakeFailure, NoMatchingPeerCapabilities, asyncio.IncompleteReadError, ) def _cleanup_reader_and...
async def receive_handshake( self, reader: asyncio.StreamReader, writer: asyncio.StreamWriter ) -> None: expected_exceptions = ( TimeoutError, PeerConnectionLost, HandshakeFailure, asyncio.IncompleteReadError, ) def _cleanup_reader_and_writer() -> None: if not re...
https://github.com/ethereum/trinity/issues/1031
ERROR 09-02 13:55:52 FullServer Unexpected error handling handshake Traceback (most recent call last): File "/home/ubuntu/trinity/trinity/server.py", line 156, in receive_handshake await self._receive_handshake(reader, writer) File "/home/ubuntu/trinity/trinity/server.py", line 176, in _receive_handshake t...
p2p.exceptions.NoMatchingPeerCapabilities
async def do_p2p_handshake(self) -> None: """Perform the handshake for the P2P base protocol. Raises HandshakeFailure if the handshake is not successful. """ self.base_protocol.send_handshake() cmd, msg = await self.read_msg() if isinstance(cmd, Disconnect): msg = cast(Dict[str, Any],...
async def do_p2p_handshake(self) -> None: """Perform the handshake for the P2P base protocol. Raises HandshakeFailure if the handshake is not successful. """ self.base_protocol.send_handshake() try: cmd, msg = await self.read_msg() except rlp.DecodingError: raise HandshakeFailu...
https://github.com/ethereum/trinity/issues/292
b'\x1b[1m\x1b[31m ERROR 02-19 09:50:08 ETHPeerPool Unexpected error during auth/p2p handshake with <Node(0x865a63255b3bb68023b6bffd5095118fcc13e79dcf014fe4e47e065c350c7cc72af2e53eff895f11ba1bbb6a2b33271c1116ee870f266618eadfc2e78aa7349c@52.176.100.77:30303)>\n' b'Traceback (most recent call last):\n' b' F...
snappy.CompressedLengthError
def decompress_payload(self, raw_payload: bytes) -> bytes: # Do the Snappy Decompression only if Snappy Compression is supported by the protocol if self.snappy_support: try: return snappy.decompress(raw_payload) except Exception as err: # log this just in case it's a libr...
def decompress_payload(self, raw_payload: bytes) -> bytes: # Do the Snappy Decompression only if Snappy Compression is supported by the protocol if self.snappy_support: return snappy.decompress(raw_payload) else: return raw_payload
https://github.com/ethereum/trinity/issues/292
b'\x1b[1m\x1b[31m ERROR 02-19 09:50:08 ETHPeerPool Unexpected error during auth/p2p handshake with <Node(0x865a63255b3bb68023b6bffd5095118fcc13e79dcf014fe4e47e065c350c7cc72af2e53eff895f11ba1bbb6a2b33271c1116ee870f266618eadfc2e78aa7349c@52.176.100.77:30303)>\n' b'Traceback (most recent call last):\n' b' F...
snappy.CompressedLengthError
def _parse_parameter_file(self): # hardcoded for now # These should be explicitly obtained from the file, but for now that # will wait until a reorganization of the source tree and better # generalization. self.dimensionality = 3 self.refine_by = 2 self.parameters["HydroMethod"] = "ramses" ...
def _parse_parameter_file(self): # hardcoded for now # These should be explicitly obtained from the file, but for now that # will wait until a reorganization of the source tree and better # generalization. self.dimensionality = 3 self.refine_by = 2 self.parameters["HydroMethod"] = "ramses" ...
https://github.com/yt-project/yt/issues/2959
IndexError Traceback (most recent call last) <ipython-input-7-49e2114551c4> in <module> ----> 1 ds = yt.load('output_00131/info_00131.txt') ~/.local/lib/python3.6/site-packages/yt/convenience.py in load(*args, **kwargs) 84 candidates = find_lowest_subclasses(candidates) 85 if len...
IndexError
def _set_center(self, center): if center is None: self.center = None return elif isinstance(center, YTArray): self.center = self.ds.arr(center.astype("float64")) self.center.convert_to_units("code_length") elif isinstance(center, (list, tuple, np.ndarray)): if isinsta...
def _set_center(self, center): if center is None: self.center = None return elif isinstance(center, YTArray): self.center = self.ds.arr(center.astype("float64")) self.center.convert_to_units("code_length") elif isinstance(center, (list, tuple, np.ndarray)): if isinsta...
https://github.com/yt-project/yt/issues/2393
Traceback (most recent call last): File "/tmp/fail.py", line 13, in <module> sp['density'] File "/home/ccc/Documents/prog/yt/yt/data_objects/data_containers.py", line 256, in __getitem__ self.get_data(f) File "/home/ccc/Documents/prog/yt/yt/data_objects/data_containers.py", line 1482, in get_data self.index._identify_b...
TypeError
def _fill_fields(self, fields): fields = [f for f in fields if f not in self.field_data] if len(fields) == 0: return ls = self._initialize_level_state(fields) min_level = self._compute_minimum_level() # NOTE: This usage of "refine_by" is actually *okay*, because it's # being used with re...
def _fill_fields(self, fields): fields = [f for f in fields if f not in self.field_data] if len(fields) == 0: return ls = self._initialize_level_state(fields) min_level = self._compute_minimum_level() # NOTE: This usage of "refine_by" is actually *okay*, because it's # being used with re...
https://github.com/yt-project/yt/issues/2710
--------------------------------------------------------------------------- NeedsGridType Traceback (most recent call last) ~/codes/yt/yt/data_objects/data_containers.py in _generate_fluid_field(self, field) 308 try: --> 309 finfo.check_available(gen_obj) 310 exce...
RuntimeError
def __str__(self): s = "s" if self.ghost_zones != 1 else "" return f"fields {self.fields} require {self.ghost_zones} ghost zone{s}."
def __str__(self): return f"({self.ghost_zones}, {self.fields})"
https://github.com/yt-project/yt/issues/2710
--------------------------------------------------------------------------- NeedsGridType Traceback (most recent call last) ~/codes/yt/yt/data_objects/data_containers.py in _generate_fluid_field(self, field) 308 try: --> 309 finfo.check_available(gen_obj) 310 exce...
RuntimeError
def _create_unit_registry(self, unit_system): # yt assumes a CGS unit system by default (for back compat reasons). # Since unyt is MKS by default we specify the MKS values of the base # units in the CGS system. So, for length, 1 cm = .01 m. And so on. self.unit_registry = UnitRegistry(unit_system=unit_s...
def _create_unit_registry(self, unit_system): from yt.units import dimensions as dimensions # yt assumes a CGS unit system by default (for back compat reasons). # Since unyt is MKS by default we specify the MKS values of the base # units in the CGS system. So, for length, 1 cm = .01 m. And so on. s...
https://github.com/yt-project/yt/issues/2700
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-29-01d8197cb9a9> in <module> 6 return data["x"].base * unyt.msun 7 ds = yt.testing.fake_amr_ds(fields=["density"]) ----> 8 ds.add_field(name="test", ...
TypeError
def set_units(self): """ Creates the unit registry for this dataset. """ if getattr(self, "cosmological_simulation", False): # this dataset is cosmological, so add cosmological units. self.unit_registry.modify("h", self.hubble_constant) # Comoving lengths for my_unit in...
def set_units(self): """ Creates the unit registry for this dataset. """ from yt.units.dimensions import length if getattr(self, "cosmological_simulation", False): # this dataset is cosmological, so add cosmological units. self.unit_registry.modify("h", self.hubble_constant) ...
https://github.com/yt-project/yt/issues/2700
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-29-01d8197cb9a9> in <module> 6 return data["x"].base * unyt.msun 7 ds = yt.testing.fake_amr_ds(fields=["density"]) ----> 8 ds.add_field(name="test", ...
TypeError
def add_field(self, name, function, sampling_type, **kwargs): """ Dataset-specific call to add_field Add a new field, along with supplemental metadata, to the list of available fields. This respects a number of arguments, all of which are passed on to the constructor for :class:`~yt.data_objec...
def add_field(self, name, function=None, sampling_type=None, **kwargs): """ Dataset-specific call to add_field Add a new field, along with supplemental metadata, to the list of available fields. This respects a number of arguments, all of which are passed on to the constructor for :class:`~yt....
https://github.com/yt-project/yt/issues/2700
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-29-01d8197cb9a9> in <module> 6 return data["x"].base * unyt.msun 7 ds = yt.testing.fake_amr_ds(fields=["density"]) ----> 8 ds.add_field(name="test", ...
TypeError
def add_field(self, name, function, sampling_type, **kwargs): """ Add a new field, along with supplemental metadata, to the list of available fields. This respects a number of arguments, all of which are passed on to the constructor for :class:`~yt.data_objects.api.DerivedField`. Parameters ...
def add_field(self, name, sampling_type, function=None, **kwargs): """ Add a new field, along with supplemental metadata, to the list of available fields. This respects a number of arguments, all of which are passed on to the constructor for :class:`~yt.data_objects.api.DerivedField`. Paramete...
https://github.com/yt-project/yt/issues/2700
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-29-01d8197cb9a9> in <module> 6 return data["x"].base * unyt.msun 7 ds = yt.testing.fake_amr_ds(fields=["density"]) ----> 8 ds.add_field(name="test", ...
TypeError
def add_field(self, name, function, sampling_type, **kwargs): sampling_type = self._sanitize_sampling_type( sampling_type, kwargs.get("particle_type") ) if isinstance(name, str) or not iterable(name): if sampling_type == "particle": ftype = "all" else: ftype ...
def add_field(self, name, function=None, sampling_type=None, **kwargs): if not isinstance(name, tuple): if kwargs.setdefault("particle_type", False): name = ("all", name) else: name = ("gas", name) override = kwargs.get("force_override", False) # Handle the case where...
https://github.com/yt-project/yt/issues/2700
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-29-01d8197cb9a9> in <module> 6 return data["x"].base * unyt.msun 7 ds = yt.testing.fake_amr_ds(fields=["density"]) ----> 8 ds.add_field(name="test", ...
TypeError
def __init__( self, filename, dataset_type="gadget_binary", additional_fields=(), unit_base=None, index_order=None, index_filename=None, kdtree_filename=None, kernel_name=None, bounding_box=None, header_spec="default", field_spec="default", ptype_spec="default", l...
def __init__( self, filename, dataset_type="gadget_binary", additional_fields=(), unit_base=None, index_order=None, index_filename=None, kdtree_filename=None, kernel_name=None, bounding_box=None, header_spec="default", field_spec="default", ptype_spec="default", l...
https://github.com/yt-project/yt/issues/2778
Traceback (most recent call last): File "ala.py", line 2, in <module> ds = OWLSDataset("/home/xarth/codes/yt_data/snapshot_033/") File "/home/xarth/codes/xarthisius/yt/yt/frontends/gadget/data_structures.py", line 571, in __init__ super(GadgetHDF5Dataset, self).__init__( File "/home/xarth/codes/xarthisius/yt/yt/fronten...
OSError
def _is_valid(self, *args, **kwargs): need_groups = ["Header"] veto_groups = ["FOF", "Group", "Subhalo"] valid = True valid_fname = args[0] # If passed arg is a directory, look for the .0 file in that dir if os.path.isdir(args[0]): valid_files = [] for f in os.listdir(args[0]): ...
def _is_valid(self, *args, **kwargs): need_groups = ["Header"] veto_groups = ["FOF", "Group", "Subhalo"] valid = True valid_fname = args[0] # If passed arg is a directory, look for the .0 file in that dir if os.path.isdir(args[0]): valid_files = [] for f in os.listdir(args[0]): ...
https://github.com/yt-project/yt/issues/2778
Traceback (most recent call last): File "ala.py", line 2, in <module> ds = OWLSDataset("/home/xarth/codes/yt_data/snapshot_033/") File "/home/xarth/codes/xarthisius/yt/yt/frontends/gadget/data_structures.py", line 571, in __init__ super(GadgetHDF5Dataset, self).__init__( File "/home/xarth/codes/xarthisius/yt/yt/fronten...
OSError
def _is_valid(self, *args, **kwargs): need_groups = ["Constants", "Header", "Parameters", "Units"] veto_groups = [ "SUBFIND", "FOF", "PartType0/ChemistryAbundances", "PartType0/ChemicalAbundances", "RuntimePars", "HashTable", ] valid = True valid_fname...
def _is_valid(self, *args, **kwargs): need_groups = ["Constants", "Header", "Parameters", "Units"] veto_groups = [ "SUBFIND", "FOF", "PartType0/ChemistryAbundances", "PartType0/ChemicalAbundances", "RuntimePars", "HashTable", ] valid = True valid_fname...
https://github.com/yt-project/yt/issues/2778
Traceback (most recent call last): File "ala.py", line 2, in <module> ds = OWLSDataset("/home/xarth/codes/yt_data/snapshot_033/") File "/home/xarth/codes/xarthisius/yt/yt/frontends/gadget/data_structures.py", line 571, in __init__ super(GadgetHDF5Dataset, self).__init__( File "/home/xarth/codes/xarthisius/yt/yt/fronten...
OSError
def write_hdf5(self, filename, dataset_name=None, info=None, group_name=None): r"""Writes a YTArray to hdf5 file. Parameters ---------- filename: string The filename to create and write a dataset to dataset_name: string The name of the dataset to create in the file. info: dict...
def write_hdf5(self, filename, dataset_name=None, info=None, group_name=None): r"""Writes a YTArray to hdf5 file. Parameters ---------- filename: string The filename to create and write a dataset to dataset_name: string The name of the dataset to create in the file. info: dict...
https://github.com/yt-project/yt/issues/2642
Traceback (most recent call last): File "/tmp/ala.py", line 8, in <module> read_dens = YTArray.from_hdf5("my_data.h5", dataset_name="density") File "/home/xarth/codes/xarthisius/yt/yt/units/yt_array.py", line 1019, in from_hdf5 dataset = g[dataset_name] File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrap...
KeyError
def get_time_series( self, time_data=True, redshift_data=True, initial_time=None, final_time=None, initial_redshift=None, final_redshift=None, initial_cycle=None, final_cycle=None, times=None, redshifts=None, tolerance=None, parallel=True, setup_function=None, ): ...
def get_time_series( self, time_data=True, redshift_data=True, initial_time=None, final_time=None, initial_redshift=None, final_redshift=None, initial_cycle=None, final_cycle=None, times=None, redshifts=None, tolerance=None, parallel=True, setup_function=None, ): ...
https://github.com/yt-project/yt/issues/2578
Traceback (most recent call last): File "bug.py", line 4, in <module> es.get_time_series(initial_time=(10.0, "Gyr"), final_time=(13.7, "Gyr")) File "yt/frontends/enzo/simulation_handling.py", line 282, in get_time_series my_initial_time.convert_to_units("s") UnboundLocalError: local variable 'my_initial_time' reference...
UnboundLocalError
def box(self, left_edge, right_edge, **kwargs): """ box is a wrapper to the Region object for creating a region without having to specify a *center* value. It assumes the center is the midpoint between the left_edge and right_edge. """ # we handle units in the region data object # but need ...
def box(self, left_edge, right_edge, **kwargs): """ box is a wrapper to the Region object for creating a region without having to specify a *center* value. It assumes the center is the midpoint between the left_edge and right_edge. """ # we handle units in the region data object # but need ...
https://github.com/yt-project/yt/issues/2560
$ python3 test_region.py yt : [INFO ] 2020-04-25 14:16:34,930 Parameters: current_time = 7.24422756567562 yt : [INFO ] 2020-04-25 14:16:34,930 Parameters: domain_dimensions = [512 512 512] yt : [INFO ] 2020-04-25 14:16:34,930 Parameters: domain_left_edge = [-5.12e+09 -5.12e+09 ...
yt.utilities.exceptions.YTUnitOperationError
def __array_ufunc__(self, ufunc, method, *inputs, **kwargs): func = getattr(ufunc, method) if "out" in kwargs: out_orig = kwargs.pop("out") if ufunc in multiple_output_operators: outs = [] for arr in out_orig: outs.append(arr.view(np.ndarray)) ...
def __array_ufunc__(self, ufunc, method, *inputs, **kwargs): func = getattr(ufunc, method) if "out" in kwargs: out_orig = kwargs.pop("out") out = np.asarray(out_orig[0]) else: out = None if len(inputs) == 1: _, inp, u = get_inp_u_unary(ufunc, inputs) out_arr = fun...
https://github.com/yt-project/yt/issues/2445
Traceback (most recent call last): 3233 File "C:\Miniconda36-x64\envs\test\lib\site-packages\nose\case.py", line 197, in runTest 3234 self.test(*self.arg) 3235 File "C:\projects\yt\yt\units\tests\test_ytarray.py", line 878, in test_ufuncs 3236 unary_ufunc_comparison(ufunc, YTArray([.3, .4, .5], 'cm')) 3237 Fil...
3241TypeError
def make_colormap(ctuple_list, name=None, interpolate=True): """ This generates a custom colormap based on the colors and spacings you provide. Enter a ctuple_list, which consists of tuples of (color, spacing) to return a colormap appropriate for use in yt. If you specify a name, it will automatic...
def make_colormap(ctuple_list, name=None, interpolate=True): """ This generates a custom colormap based on the colors and spacings you provide. Enter a ctuple_list, which consists of tuples of (color, spacing) to return a colormap appropriate for use in yt. If you specify a name, it will automatic...
https://github.com/yt-project/yt/issues/2445
Traceback (most recent call last): 3233 File "C:\Miniconda36-x64\envs\test\lib\site-packages\nose\case.py", line 197, in runTest 3234 self.test(*self.arg) 3235 File "C:\projects\yt\yt\units\tests\test_ytarray.py", line 878, in test_ufuncs 3236 unary_ufunc_comparison(ufunc, YTArray([.3, .4, .5], 'cm')) 3237 Fil...
3241TypeError
def __init__( self, data_source, conditionals, ds=None, field_parameters=None, base_object=None ): validate_object(data_source, YTSelectionContainer) validate_iterable(conditionals) for condition in conditionals: validate_object(condition, string_types) validate_object(ds, Dataset) valid...
def __init__( self, data_source, conditionals, ds=None, field_parameters=None, base_object=None ): validate_object(data_source, YTSelectionContainer) validate_iterable(conditionals) for condition in conditionals: validate_object(condition, string_types) validate_object(ds, Dataset) valid...
https://github.com/yt-project/yt/issues/2104
--------------------------------------------------------------------------- IndexError Traceback (most recent call last) <ipython-input-83-3704089812fe> in <module> 5 sp = ds.sphere((0.5, 0.5, 0.5), (5, "kpc")) 6 dense_sp = sp.cut_region(['obj["H_p0_number_density"]>= 1e-2']) ----> 7 dens...
IndexError
def _part_ind(self, ptype): # If scipy is installed, use the fast KD tree # implementation. Else, fall back onto the direct # brute-force algorithm. try: _scipy.spatial.KDTree return self._part_ind_KDTree(ptype) except ImportError: return self._part_ind_brute_force(ptype)
def _part_ind(self, ptype): if self._particle_mask.get(ptype) is None: # If scipy is installed, use the fast KD tree # implementation. Else, fall back onto the direct # brute-force algorithm. try: _scipy.spatial.KDTree mask = self._part_ind_KDTree(ptype) ...
https://github.com/yt-project/yt/issues/2104
--------------------------------------------------------------------------- IndexError Traceback (most recent call last) <ipython-input-83-3704089812fe> in <module> 5 sp = ds.sphere((0.5, 0.5, 0.5), (5, "kpc")) 6 dense_sp = sp.cut_region(['obj["H_p0_number_density"]>= 1e-2']) ----> 7 dens...
IndexError
def _get_gadget_format(filename, header_size): # check and return gadget binary format with file endianness ff = open(filename, "rb") (rhead,) = struct.unpack("<I", ff.read(4)) ff.close() if rhead == _byte_swap_32(8): return 2, ">" elif rhead == 8: return 2, "<" elif rhead ==...
def _get_gadget_format(filename): # check and return gadget binary format with file endianness ff = open(filename, "rb") (rhead,) = struct.unpack("<I", ff.read(4)) ff.close() if rhead == 134217728: return 2, ">" elif rhead == 8: return 2, "<" elif rhead == 65536: retu...
https://github.com/yt-project/yt/issues/1846
Traceback (most recent call last): File "./plot_solution.py", line 519, in <module> pf.add_field(("gas", "density_squared"), function=_density_squared, units="g**2/cm**6") File "/usr/local/lib/python2.7/dist-packages/yt/data_objects/static_output.py", line 1191, in add_field self.index File "/usr/local/lib/python2.7/di...
TypeError
def __init__(self, ds, io, filename, file_id): gformat = _get_gadget_format(filename, ds._header_size) with open(filename, "rb") as f: if gformat[0] == 2: f.seek(f.tell() + SNAP_FORMAT_2_OFFSET) self.header = read_record(f, ds._header_spec, endian=gformat[1]) if gformat[0] ==...
def __init__(self, ds, io, filename, file_id): gformat = _get_gadget_format(filename) with open(filename, "rb") as f: if gformat[0] == 2: f.seek(f.tell() + SNAP_FORMAT_2_OFFSET) self.header = read_record(f, ds._header_spec, endian=gformat[1]) if gformat[0] == 2: f...
https://github.com/yt-project/yt/issues/1846
Traceback (most recent call last): File "./plot_solution.py", line 519, in <module> pf.add_field(("gas", "density_squared"), function=_density_squared, units="g**2/cm**6") File "/usr/local/lib/python2.7/dist-packages/yt/data_objects/static_output.py", line 1191, in add_field self.index File "/usr/local/lib/python2.7/di...
TypeError
def __init__( self, filename, dataset_type="gadget_binary", additional_fields=(), unit_base=None, n_ref=64, over_refine_factor=1, kernel_name=None, index_ptype="all", bounding_box=None, header_spec="default", field_spec="default", ptype_spec="default", units_overr...
def __init__( self, filename, dataset_type="gadget_binary", additional_fields=(), unit_base=None, n_ref=64, over_refine_factor=1, kernel_name=None, index_ptype="all", bounding_box=None, header_spec="default", field_spec="default", ptype_spec="default", units_overr...
https://github.com/yt-project/yt/issues/1846
Traceback (most recent call last): File "./plot_solution.py", line 519, in <module> pf.add_field(("gas", "density_squared"), function=_density_squared, units="g**2/cm**6") File "/usr/local/lib/python2.7/dist-packages/yt/data_objects/static_output.py", line 1191, in add_field self.index File "/usr/local/lib/python2.7/di...
TypeError
def _setup_binary_spec(cls, spec, spec_dict): if isinstance(spec, str): _hs = () for hs in spec.split("+"): _hs += spec_dict[hs] spec = _hs return spec
def _setup_binary_spec(self, spec, spec_dict): if isinstance(spec, str): _hs = () for hs in spec.split("+"): _hs += spec_dict[hs] spec = _hs return spec
https://github.com/yt-project/yt/issues/1846
Traceback (most recent call last): File "./plot_solution.py", line 519, in <module> pf.add_field(("gas", "density_squared"), function=_density_squared, units="g**2/cm**6") File "/usr/local/lib/python2.7/dist-packages/yt/data_objects/static_output.py", line 1191, in add_field self.index File "/usr/local/lib/python2.7/di...
TypeError
def _get_hvals(self): # The entries in this header are capitalized and named to match Table 4 # in the GADGET-2 user guide. gformat = _get_gadget_format(self.parameter_filename, self._header_size) f = open(self.parameter_filename, "rb") if gformat[0] == 2: f.seek(f.tell() + SNAP_FORMAT_2_OFF...
def _get_hvals(self): # The entries in this header are capitalized and named to match Table 4 # in the GADGET-2 user guide. gformat = _get_gadget_format(self.parameter_filename) f = open(self.parameter_filename, "rb") if gformat[0] == 2: f.seek(f.tell() + SNAP_FORMAT_2_OFFSET) hvals = re...
https://github.com/yt-project/yt/issues/1846
Traceback (most recent call last): File "./plot_solution.py", line 519, in <module> pf.add_field(("gas", "density_squared"), function=_density_squared, units="g**2/cm**6") File "/usr/local/lib/python2.7/dist-packages/yt/data_objects/static_output.py", line 1191, in add_field self.index File "/usr/local/lib/python2.7/di...
TypeError
def _validate_header(filename, header_size): """ This method automatically detects whether the Gadget file is big/little endian and is not corrupt/invalid using the first 4 bytes in the file. It returns a tuple of (Valid, endianswap) where Valid is a boolean that is true if the file is a Gadget bin...
def _validate_header(filename): """ This method automatically detects whether the Gadget file is big/little endian and is not corrupt/invalid using the first 4 bytes in the file. It returns a tuple of (Valid, endianswap) where Valid is a boolean that is true if the file is a Gadget binary file, and...
https://github.com/yt-project/yt/issues/1846
Traceback (most recent call last): File "./plot_solution.py", line 519, in <module> pf.add_field(("gas", "density_squared"), function=_density_squared, units="g**2/cm**6") File "/usr/local/lib/python2.7/dist-packages/yt/data_objects/static_output.py", line 1191, in add_field self.index File "/usr/local/lib/python2.7/di...
TypeError
def _is_valid(cls, *args, **kwargs): if "header_spec" in kwargs: # Compute header size if header is customized header_spec = cls._setup_binary_spec(kwargs["header_spec"], gadget_header_specs) header_size = _compute_header_size(header_spec) else: header_size = 256 # First 4 by...
def _is_valid(self, *args, **kwargs): # First 4 bytes used to check load return GadgetDataset._validate_header(args[0])[0]
https://github.com/yt-project/yt/issues/1846
Traceback (most recent call last): File "./plot_solution.py", line 519, in <module> pf.add_field(("gas", "density_squared"), function=_density_squared, units="g**2/cm**6") File "/usr/local/lib/python2.7/dist-packages/yt/data_objects/static_output.py", line 1191, in add_field self.index File "/usr/local/lib/python2.7/di...
TypeError
def __init__(self, ds, *args, **kwargs): self._vector_fields = dict(self._vector_fields) self._fields = ds._field_spec self._ptypes = ds._ptype_spec self.data_files = set([]) gformat = _get_gadget_format(ds.parameter_filename, ds._header_size) # gadget format 1 original, 2 with block name se...
def __init__(self, ds, *args, **kwargs): self._vector_fields = dict(self._vector_fields) self._fields = ds._field_spec self._ptypes = ds._ptype_spec self.data_files = set([]) gformat = _get_gadget_format(ds.parameter_filename) # gadget format 1 original, 2 with block name self._format = gfor...
https://github.com/yt-project/yt/issues/1846
Traceback (most recent call last): File "./plot_solution.py", line 519, in <module> pf.add_field(("gas", "density_squared"), function=_density_squared, units="g**2/cm**6") File "/usr/local/lib/python2.7/dist-packages/yt/data_objects/static_output.py", line 1191, in add_field self.index File "/usr/local/lib/python2.7/di...
TypeError
def _initialize_index(self, data_file, regions): DLE = data_file.ds.domain_left_edge DRE = data_file.ds.domain_right_edge self._float_type = data_file.ds._validate_header( data_file.filename, data_file.ds._header_size )[1] if self.index_ptype == "all": count = sum(data_file.total_par...
def _initialize_index(self, data_file, regions): DLE = data_file.ds.domain_left_edge DRE = data_file.ds.domain_right_edge self._float_type = data_file.ds._validate_header(data_file.filename)[1] if self.index_ptype == "all": count = sum(data_file.total_particles.values()) return self._get...
https://github.com/yt-project/yt/issues/1846
Traceback (most recent call last): File "./plot_solution.py", line 519, in <module> pf.add_field(("gas", "density_squared"), function=_density_squared, units="g**2/cm**6") File "/usr/local/lib/python2.7/dist-packages/yt/data_objects/static_output.py", line 1191, in add_field self.index File "/usr/local/lib/python2.7/di...
TypeError
def __init__(self, ds, io, filename, file_id): header = ds._header self.header = header.value self._position_offset = header.position_offset with header.open() as f: self._file_size = f.seek(0, os.SEEK_END) super(GadgetBinaryFile, self).__init__(ds, io, filename, file_id)
def __init__(self, ds, io, filename, file_id): gformat = _get_gadget_format(filename, ds._header_size) with open(filename, "rb") as f: if gformat[0] == 2: f.seek(f.tell() + SNAP_FORMAT_2_OFFSET) self.header = read_record(f, ds._header_spec, endian=gformat[1]) if gformat[0] ==...
https://github.com/yt-project/yt/issues/1846
Traceback (most recent call last): File "./plot_solution.py", line 519, in <module> pf.add_field(("gas", "density_squared"), function=_density_squared, units="g**2/cm**6") File "/usr/local/lib/python2.7/dist-packages/yt/data_objects/static_output.py", line 1191, in add_field self.index File "/usr/local/lib/python2.7/di...
TypeError
def __init__( self, filename, dataset_type="gadget_binary", additional_fields=(), unit_base=None, n_ref=64, over_refine_factor=1, kernel_name=None, index_ptype="all", bounding_box=None, header_spec="default", field_spec="default", ptype_spec="default", units_overr...
def __init__( self, filename, dataset_type="gadget_binary", additional_fields=(), unit_base=None, n_ref=64, over_refine_factor=1, kernel_name=None, index_ptype="all", bounding_box=None, header_spec="default", field_spec="default", ptype_spec="default", units_overr...
https://github.com/yt-project/yt/issues/1846
Traceback (most recent call last): File "./plot_solution.py", line 519, in <module> pf.add_field(("gas", "density_squared"), function=_density_squared, units="g**2/cm**6") File "/usr/local/lib/python2.7/dist-packages/yt/data_objects/static_output.py", line 1191, in add_field self.index File "/usr/local/lib/python2.7/di...
TypeError
def _setup_binary_spec(cls, spec, spec_dict): if isinstance(spec, string_types): _hs = () for hs in spec.split("+"): _hs += spec_dict[hs] spec = _hs return spec
def _setup_binary_spec(cls, spec, spec_dict): if isinstance(spec, str): _hs = () for hs in spec.split("+"): _hs += spec_dict[hs] spec = _hs return spec
https://github.com/yt-project/yt/issues/1846
Traceback (most recent call last): File "./plot_solution.py", line 519, in <module> pf.add_field(("gas", "density_squared"), function=_density_squared, units="g**2/cm**6") File "/usr/local/lib/python2.7/dist-packages/yt/data_objects/static_output.py", line 1191, in add_field self.index File "/usr/local/lib/python2.7/di...
TypeError
def _get_hvals(self): return self._header.value
def _get_hvals(self): # The entries in this header are capitalized and named to match Table 4 # in the GADGET-2 user guide. gformat = _get_gadget_format(self.parameter_filename, self._header_size) f = open(self.parameter_filename, "rb") if gformat[0] == 2: f.seek(f.tell() + SNAP_FORMAT_2_OFF...
https://github.com/yt-project/yt/issues/1846
Traceback (most recent call last): File "./plot_solution.py", line 519, in <module> pf.add_field(("gas", "density_squared"), function=_density_squared, units="g**2/cm**6") File "/usr/local/lib/python2.7/dist-packages/yt/data_objects/static_output.py", line 1191, in add_field self.index File "/usr/local/lib/python2.7/di...
TypeError
def _is_valid(cls, *args, **kwargs): if "header_spec" in kwargs: header_spec = kwargs["header_spec"] else: header_spec = "default" header = GadgetBinaryHeader(args[0], header_spec) return header.validate()
def _is_valid(cls, *args, **kwargs): if "header_spec" in kwargs: # Compute header size if header is customized header_spec = cls._setup_binary_spec(kwargs["header_spec"], gadget_header_specs) header_size = _compute_header_size(header_spec) else: header_size = 256 # First 4 by...
https://github.com/yt-project/yt/issues/1846
Traceback (most recent call last): File "./plot_solution.py", line 519, in <module> pf.add_field(("gas", "density_squared"), function=_density_squared, units="g**2/cm**6") File "/usr/local/lib/python2.7/dist-packages/yt/data_objects/static_output.py", line 1191, in add_field self.index File "/usr/local/lib/python2.7/di...
TypeError