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 perform_action(self, user, technique, target=None): """Do something with the thing: animated :param user: :param technique: Not a dict: a Technique or Item :param target: :returns: """ technique.advance_round() result = technique.use(user, target) try: tools.load_soun...
def perform_action(self, user, technique, target=None): """Do something with the thing: animated :param user: :param technique: Not a dict: a Technique or Item :param target: :returns: """ technique.advance_round() result = technique.use(user, target) try: tools.load_soun...
https://github.com/Tuxemon/Tuxemon/issues/160
Traceback (most recent call last): File "./tuxemon.py", line 60, in <module> main() File "/tmp/Tuxemon/tuxemon/core/main.py", line 109, in main control.main() File "/tmp/Tuxemon/tuxemon/core/control.py", line 512, in main self.main_loop() File "/tmp/Tuxemon/tuxemon/core/control.py", line 573, in main_loop self.update(t...
KeyError
def open_technique_menu(self): """Open menus to choose a Technique to use :return: None """ def choose_technique(): # open menu to choose technique menu = self.game.push_state("Menu") menu.shrink_to_items = True # add techniques to the menu for tech in self.mon...
def open_technique_menu(self): """Open menus to choose a Technique to use :return: None """ def choose_technique(): # open menu to choose technique menu = self.game.push_state("Menu") menu.shrink_to_items = True # add techniques to the menu for tech in self.mon...
https://github.com/Tuxemon/Tuxemon/issues/160
Traceback (most recent call last): File "./tuxemon.py", line 60, in <module> main() File "/tmp/Tuxemon/tuxemon/core/main.py", line 109, in main control.main() File "/tmp/Tuxemon/tuxemon/core/control.py", line 512, in main self.main_loop() File "/tmp/Tuxemon/tuxemon/core/control.py", line 573, in main_loop self.update(t...
KeyError
def choose_technique(): # open menu to choose technique menu = self.game.push_state("Menu") menu.shrink_to_items = True # add techniques to the menu for tech in self.monster.moves: image = self.shadow_text(tech.name_trans) item = MenuItem(image, None, None, tech) menu.add(it...
def choose_technique(): # open menu to choose technique menu = self.game.push_state("Menu") menu.shrink_to_items = True # add techniques to the menu for tech in self.monster.moves: image = self.shadow_text(tech.name) item = MenuItem(image, tech.name, None, tech) menu.add(ite...
https://github.com/Tuxemon/Tuxemon/issues/160
Traceback (most recent call last): File "./tuxemon.py", line 60, in <module> main() File "/tmp/Tuxemon/tuxemon/core/main.py", line 109, in main control.main() File "/tmp/Tuxemon/tuxemon/core/control.py", line 512, in main self.main_loop() File "/tmp/Tuxemon/tuxemon/core/control.py", line 573, in main_loop self.update(t...
KeyError
def startup(self, **kwargs): self.state = "normal" # this sprite is used to display the item # its also animated to pop out of the backpack self.item_center = self.rect.width * 0.164, self.rect.height * 0.13 self.item_sprite = Sprite() self.item_sprite.image = None self.sprites.add(self.ite...
def startup(self, **kwargs): self.state = "normal" # this sprite is used to display the item # its also animated to pop out of the backpack self.item_center = self.rect.width * 0.164, self.rect.height * 0.13 self.item_sprite = Sprite() self.item_sprite.image = None self.sprites.add(self.ite...
https://github.com/Tuxemon/Tuxemon/issues/160
Traceback (most recent call last): File "./tuxemon.py", line 60, in <module> main() File "/tmp/Tuxemon/tuxemon/core/main.py", line 109, in main control.main() File "/tmp/Tuxemon/tuxemon/core/control.py", line 512, in main self.main_loop() File "/tmp/Tuxemon/tuxemon/core/control.py", line 573, in main_loop self.update(t...
KeyError
def on_menu_selection(self, menu_item): """Called when player has selected something from the inventory Currently, opens a new menu depending on the state context :param menu_item: :return: """ item = menu_item.game_object state = self.determine_state_called_from() if state in item.us...
def on_menu_selection(self, menu_item): """Called when player has selected something from the inventory Currently, opens a new menu depending on the state context :param menu_item: :return: """ item = menu_item.game_object state = self.determine_state_called_from() if state in item.us...
https://github.com/Tuxemon/Tuxemon/issues/160
Traceback (most recent call last): File "./tuxemon.py", line 60, in <module> main() File "/tmp/Tuxemon/tuxemon/core/main.py", line 109, in main control.main() File "/tmp/Tuxemon/tuxemon/core/control.py", line 512, in main self.main_loop() File "/tmp/Tuxemon/tuxemon/core/control.py", line 573, in main_loop self.update(t...
KeyError
def initialize_items(self): """Get all player inventory items and add them to menu :return: """ for name, properties in self.game.player1.inventory.items(): obj = properties["item"] image = self.shadow_text(obj.name_trans, bg=(128, 128, 128)) yield MenuItem(image, obj.name_trans...
def initialize_items(self): """Get all player inventory items and add them to menu :return: """ for name, properties in self.game.player1.inventory.items(): obj = properties["item"] image = self.shadow_text(obj.name, bg=(128, 128, 128)) yield MenuItem(image, obj.name, obj.descri...
https://github.com/Tuxemon/Tuxemon/issues/160
Traceback (most recent call last): File "./tuxemon.py", line 60, in <module> main() File "/tmp/Tuxemon/tuxemon/core/main.py", line 109, in main control.main() File "/tmp/Tuxemon/tuxemon/core/control.py", line 512, in main self.main_loop() File "/tmp/Tuxemon/tuxemon/core/control.py", line 573, in main_loop self.update(t...
KeyError
def animate_open(self): """Animate the menu sliding in :return: """ self.state = "opening" # required # position the menu off screen. it will be slid into view with an animation right, height = prepare.SCREEN_SIZE # TODO: more robust API for sizing (kivy esque?) # this is highly irr...
def animate_open(self): """Animate the menu sliding in :return: """ self.state = "opening" # required # position the menu off screen. it will be slid into view with an animation right, height = prepare.SCREEN_SIZE # TODO: more robust API for sizing (kivy esque?) # TODO: after menu "...
https://github.com/Tuxemon/Tuxemon/issues/160
Traceback (most recent call last): File "./tuxemon.py", line 60, in <module> main() File "/tmp/Tuxemon/tuxemon/core/main.py", line 109, in main control.main() File "/tmp/Tuxemon/tuxemon/core/control.py", line 512, in main self.main_loop() File "/tmp/Tuxemon/tuxemon/core/control.py", line 573, in main_loop self.update(t...
KeyError
def startup(self, **kwargs): self.state = "normal" # this sprite is used to display the item # its also animated to pop out of the backpack self.item_center = self.rect.width * 0.164, self.rect.height * 0.13 self.item_sprite = Sprite() self.item_sprite.image = None self.sprites.add(self.ite...
def startup(self, **kwargs): self.state = "normal" # this sprite is used to display the item # its also animated to pop out of the backpack self.item_center = self.rect.width * 0.164, self.rect.height * 0.13 self.item_sprite = Sprite() self.item_sprite.image = None self.sprites.add(self.ite...
https://github.com/Tuxemon/Tuxemon/issues/160
Traceback (most recent call last): File "./tuxemon.py", line 60, in <module> main() File "/tmp/Tuxemon/tuxemon/core/main.py", line 109, in main control.main() File "/tmp/Tuxemon/tuxemon/core/control.py", line 512, in main self.main_loop() File "/tmp/Tuxemon/tuxemon/core/control.py", line 573, in main_loop self.update(t...
KeyError
def animate_open(self): """Animate the menu sliding in :return: """ self.state = "opening" # required # position the menu off screen. it will be slid into view with an animation right, height = prepare.SCREEN_SIZE # TODO: more robust API for sizing (kivy esque?) # this is highly irr...
def animate_open(self): """Animate the menu sliding in :return: """ self.state = "opening" # required # position the menu off screen. it will be slid into view with an animation right, height = prepare.SCREEN_SIZE # TODO: more robust API for sizing (kivy esque?) # TODO: after menu "...
https://github.com/Tuxemon/Tuxemon/issues/160
Traceback (most recent call last): File "./tuxemon.py", line 60, in <module> main() File "/tmp/Tuxemon/tuxemon/core/main.py", line 109, in main control.main() File "/tmp/Tuxemon/tuxemon/core/control.py", line 512, in main self.main_loop() File "/tmp/Tuxemon/tuxemon/core/control.py", line 573, in main_loop self.update(t...
KeyError
def main(): args = _options.options.parse_args() if args.help: _options.options.print_help() return if args.version: print(metadata.version("nox"), file=sys.stderr) return setup_logging(color=args.color, verbose=args.verbose) # Execute the appropriate tasks. e...
def main(): args = _options.options.parse_args() if args.help: _options.options.print_help() return if args.version: dist = pkg_resources.get_distribution("nox") print(dist.version, file=sys.stderr) return setup_logging(color=args.color, verbose=args.verbose) ...
https://github.com/theacodes/nox/issues/271
nox --help Traceback (most recent call last): File "...\python38\lib\runpy.py", line 193, in _run_module_as_main return _run_code(code, main_globals, None, File "...\python38\lib\runpy.py", line 86, in _run_code exec(code, run_globals) File "...\AppData\Roaming\Python\Python38\Scripts\nox.exe\__main__.py", line 5, in <...
ModuleNotFoundError
def __init__(self, shape, default=None): """ The basic shape class to be set in InputType. Attribute: shape: list of (int), symbolic values, RangeDim object The valid shape of the input default: tuple of int or None The default shape that is used for initiating the model, and set i...
def __init__(self, shape, default=None): """ The basic shape class to be set in InputType. Attribute: shape: list of (int), symbolic values, RangeDim object The valid shape of the input default: tuple of int or None The default shape that is used for initiating the model, and set i...
https://github.com/apple/coremltools/issues/877
import coremltools as ct shape = ct.Shape(shape=(-1,224,224,3), default=(1,224,224,3)) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/lib/python3.6/dist-packages/coremltools/converters/mil/input_types.py", line 300, in __init__ raise ValueError(msg.format(idx, s)) ValueError: D...
ValueError
def _remove_internal_identity_nodes(nnssa): """ remove identity nodes that are not connected to the model outputs """ delete_count = 0 for fn_key in list(nnssa.functions.keys()): f = nnssa.functions[fn_key] for name in list(f.graph.keys()): if name not in f.graph: ...
def _remove_internal_identity_nodes(nnssa): """ remove identity nodes that are not connected to the model outputs """ delete_count = 0 for fn_key in list(nnssa.functions.keys()): f = nnssa.functions[fn_key] keys = list(f.graph.keys()) for k in keys: if k not in f....
https://github.com/apple/coremltools/issues/623
Converting pb model to .mlmodel...... 0 assert nodes deleted 872 nodes deleted 36 nodes deleted 0 nodes deleted [Op Fusion] fuse_bias_add() deleted 24 nodes. 77 identity nodes deleted Traceback (most recent call last): File "tf2coreml.py", line 198, in <module> convertModel(model=_TRAIN_MODEL, ml_model=_ML_MODEL, pb_mo...
ValueError
def check_connections(gd): """ Given a graph, checks that all - inputs/outputs are symmetric - control_inputs/control_outputs are symmetric - The graph does not reference vertices outside of the graph Takes a graph in "dict{str, ParsedNode}" form. Does not return, asserts false on failur...
def check_connections(gd): """ Given a graph, checks that all - inputs/outputs are symmetric - control_inputs/control_outputs are symmetric - The graph does not reference vertices outside of the graph Takes a graph in "dict{str, ParsedNode}" form. Does not return, asserts false on failur...
https://github.com/apple/coremltools/issues/554
0 assert nodes deleted 5 nodes deleted 0 nodes deleted 0 nodes deleted [Op Fusion] fuse_bias_add() deleted 4 nodes. 1 identity nodes deleted 2 disconnected nodes deleted --------------------------------------------------------------------------- AssertionError Traceback (most recent call last...
AssertionError
def transform_nhwc_to_nchw(nnssa): """ Mark each one of the node with "NHWC", so that the conversion process could avoid inserting unnecessary transpositions. A node's format is "NHWC" if and only if: (1) it is a conv or pooling or image_resize layer with "NHWC" data format (2) it is a rank-pres...
def transform_nhwc_to_nchw(nnssa): """ Mark each one of the node with "NHWC", so that the conversion process could avoid inserting unnecessary transpositions. A node's format is "NHWC" if and only if: (1) it is a conv or pooling or image_resize layer with "NHWC" data format (2) it is a rank-pres...
https://github.com/apple/coremltools/issues/554
0 assert nodes deleted 5 nodes deleted 0 nodes deleted 0 nodes deleted [Op Fusion] fuse_bias_add() deleted 4 nodes. 1 identity nodes deleted 2 disconnected nodes deleted --------------------------------------------------------------------------- AssertionError Traceback (most recent call last...
AssertionError
def fuse_batch_norm(ssa): """ A graph pass that match and fuses following op patterns into a single BatchNorm op. Pattern 1: [Const] [Const] | | V V [...] --> [Mul] --> [Add] --> [...] to [...] --> [BatchNorm] --> [...] Pattern 2: ...
def fuse_batch_norm(ssa): """ A graph pass that match and fuses following op patterns into a single BatchNorm op. Pattern 1: [Const] [Const] | | V V [...] --> [Mul] --> [Add] --> [...] to [...] --> [BatchNorm] --> [...] Pattern 2: ...
https://github.com/apple/coremltools/issues/554
0 assert nodes deleted 5 nodes deleted 0 nodes deleted 0 nodes deleted [Op Fusion] fuse_bias_add() deleted 4 nodes. 1 identity nodes deleted 2 disconnected nodes deleted --------------------------------------------------------------------------- AssertionError Traceback (most recent call last...
AssertionError
def _merge_batch_norm(graph, nodes, pattern_id=1): expected_num_nodes = 4 if pattern_id == 2: expected_num_nodes = 6 elif pattern_id == 3: expected_num_nodes = 8 assert len(nodes) == expected_num_nodes current_node = graph[nodes[1].inputs[0]] out_node = nodes[-1] bn_outputs ...
def _merge_batch_norm(graph, nodes, pattern_id=1): expected_num_nodes = 4 if pattern_id == 2: expected_num_nodes = 6 elif pattern_id == 3: expected_num_nodes = 8 assert len(nodes) == expected_num_nodes current_node = graph[nodes[1].inputs[0]] out_node = nodes[-1] bn_outputs ...
https://github.com/apple/coremltools/issues/554
0 assert nodes deleted 5 nodes deleted 0 nodes deleted 0 nodes deleted [Op Fusion] fuse_bias_add() deleted 4 nodes. 1 identity nodes deleted 2 disconnected nodes deleted --------------------------------------------------------------------------- AssertionError Traceback (most recent call last...
AssertionError
def _remove_output_identity_nodes(nnssa): """ remove identity nodes that ARE connected to the model outputs """ delete_count = 0 for fn_key in list(nnssa.functions.keys()): f = nnssa.functions[fn_key] keys = list(f.graph.keys()) for k in keys: if k not in f.graph:...
def _remove_output_identity_nodes(nnssa): """ remove identity nodes that ARE connected to the model outputs """ delete_count = 0 for fn_key in list(nnssa.functions.keys()): f = nnssa.functions[fn_key] keys = list(f.graph.keys()) for k in keys: if k not in f.graph:...
https://github.com/apple/coremltools/issues/554
0 assert nodes deleted 5 nodes deleted 0 nodes deleted 0 nodes deleted [Op Fusion] fuse_bias_add() deleted 4 nodes. 1 identity nodes deleted 2 disconnected nodes deleted --------------------------------------------------------------------------- AssertionError Traceback (most recent call last...
AssertionError
def __init__(self, tfnode=None): super(ParsedTFNode, self).__init__() self.original_node = tfnode if tfnode is not None: from .parse import parse_attr self.name = tfnode.name if tfnode.op == "PlaceholderWithDefault": self.op = "Placeholder" else: sel...
def __init__(self, tfnode=None): ParsedNode.__init__(self) self.original_node = tfnode if tfnode is not None: from .parse import parse_attr self.name = tfnode.name if tfnode.op == "PlaceholderWithDefault": self.op = "Placeholder" else: self.op = tfnod...
https://github.com/apple/coremltools/issues/554
0 assert nodes deleted 5 nodes deleted 0 nodes deleted 0 nodes deleted [Op Fusion] fuse_bias_add() deleted 4 nodes. 1 identity nodes deleted 2 disconnected nodes deleted --------------------------------------------------------------------------- AssertionError Traceback (most recent call last...
AssertionError
def _configure(self): try: self.store = storage.get_driver(self.conf) self.index = indexer.get_driver(self.conf) self.index.connect() except Exception as e: raise utils.Retry(e)
def _configure(self): self.store = storage.get_driver(self.conf) self.index = indexer.get_driver(self.conf) self.index.connect()
https://github.com/gnocchixyz/gnocchi/issues/681
2018-01-25 00:19:57.033 621506 ERROR cotyledon [-] Unhandled exception 2018-01-25 00:19:57.033 621506 ERROR cotyledon Traceback (most recent call last): 2018-01-25 00:19:57.033 621506 ERROR cotyledon File "/usr/lib/python2.7/site-packages/cotyledon/__init__.py", line 52, in _exit_on_exception 2018-01-25 00:19:57.033 ...
SSLError
def group_serie(self, granularity, start=0): # NOTE(jd) Our whole serialization system is based on Epoch, and we # store unsigned integer, so we can't store anything before Epoch. # Sorry! if not self.ts.empty and self.ts.index[0].value < 0: raise BeforeEpochError(self.ts.index[0]) return G...
def group_serie(self, granularity, start=0): # NOTE(jd) Our whole serialization system is based on Epoch, and we # store unsigned integer, so we can't store anything before Epoch. # Sorry! if self.ts.index[0].value < 0: raise BeforeEpochError(self.ts.index[0]) return GroupedTimeSeries(self....
https://github.com/gnocchixyz/gnocchi/issues/69
2017-06-02 16:59:03.590093 mod_wsgi (pid=16031): Exception occurred processing WSGI script '/var/www/gnocchi/app.wsgi'. 2017-06-02 16:59:03.590234 Traceback (most recent call last): 2017-06-02 16:59:03.590304 File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 131, in __call__ 2017-06-02 16:59:03.590391 ...
IndexError
def group_serie(self, granularity, start=None): # NOTE(jd) Our whole serialization system is based on Epoch, and we # store unsigned integer, so we can't store anything before Epoch. # Sorry! if not self.ts.empty and self.ts.index[0].value < 0: raise BeforeEpochError(self.ts.index[0]) return...
def group_serie(self, granularity, start=None): # NOTE(jd) Our whole serialization system is based on Epoch, and we # store unsigned integer, so we can't store anything before Epoch. # Sorry! if self.ts.index[0].value < 0: raise BeforeEpochError(self.ts.index[0]) return self.ts[start:].group...
https://github.com/gnocchixyz/gnocchi/issues/69
2017-06-02 16:59:03.590093 mod_wsgi (pid=16031): Exception occurred processing WSGI script '/var/www/gnocchi/app.wsgi'. 2017-06-02 16:59:03.590234 Traceback (most recent call last): 2017-06-02 16:59:03.590304 File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 131, in __call__ 2017-06-02 16:59:03.590391 ...
IndexError
def __init__(self, granularity=None, points=None, timespan=None): if granularity is not None and points is not None and timespan is not None: if timespan != granularity * points: raise ValueError("timespan ≠ granularity × points") if granularity is not None and granularity <= 0: rai...
def __init__(self, granularity=None, points=None, timespan=None): if granularity is not None and points is not None and timespan is not None: if timespan != granularity * points: raise ValueError("timespan ≠ granularity × points") if granularity is not None and granularity <= 0: rai...
https://github.com/gnocchixyz/gnocchi/issues/40
Traceback (most recent call last): File "/usr/lib64/python2.7/wsgiref/handlers.py", line 85, in run self.result = application(self.environ, self.start_response) File "/usr/lib/python2.7/site-packages/webob/dec.py", line 130, in __call__ resp = self.call_func(req, *args, **self.kwargs) File "/usr/lib/python2.7/site-pack...
ValueError
def user_run_dir(self): # Try to ensure that (/var)/run/user/$(id -u) exists so that # `gpgconf --create-socketdir` can be run later. # # NOTE(opadron): This action helps prevent a large class of # "file-name-too-long" errors in gpg. try: has_suitable_gpgconf = bool(GpgC...
def user_run_dir(self): # Try to ensure that (/var)/run/user/$(id -u) exists so that # `gpgconf --create-socketdir` can be run later. # # NOTE(opadron): This action helps prevent a large class of # "file-name-too-long" errors in gpg. try: has_suitable_gpgconf = bool(_Gpg...
https://github.com/spack/spack/issues/20585
$> spack -d gpg trust e4s.pub ==> [2020-12-28-17:57:13.255469] Imported gpg from built-in commands ==> [2020-12-28-17:57:13.257931] Imported gpg from built-in commands ==> [2020-12-28-17:57:13.258679] '/usr/bin/gpgconf' '--version' ==> [2020-12-28-17:57:13.260456] '/usr/bin/gpgconf' '--dry-run' '--create-socketdir' gpg...
FileNotFoundError
def verify_executables(self): """Raise an error if any of the compiler executables is not valid. This method confirms that for all of the compilers (cc, cxx, f77, fc) that have paths, those paths exist and are executable by the current user. Raises a CompilerAccessError if any of the non-null paths...
def verify_executables(self): """Raise an error if any of the compiler executables is not valid. This method confirms that for all of the compilers (cc, cxx, f77, fc) that have paths, those paths exist and are executable by the current user. Raises a CompilerAccessError if any of the non-null paths...
https://github.com/spack/spack/issues/17301
$> spack install zlib%gcc@8.3.0 arch=cray-cnl7-haswell ... ==> Error: Failed to install zlib due to ChildError: CompilerAccessError: Compiler 'gcc@8.3.0' has executables that are missing or are not executable: ['cc', 'CC', 'ftn', 'ftn'] /global/u1/l/lpeyrala/spack-greg-test/lib/spack/spack/build_environment.py:854, in ...
spack.compiler.CompilerAccessError
def is_activated(self, view): """Return True if package is activated.""" if not self.is_extension: raise ValueError("is_activated called on package that is not an extension.") if self.extendee_spec.package.installed_upstream: # If this extends an upstream package, it cannot be activated for ...
def is_activated(self, view): """Return True if package is activated.""" if not self.is_extension: raise ValueError("is_activated called on package that is not an extension.") extensions_layout = view.extensions_layout exts = extensions_layout.extension_map(self.extendee_spec) return (self.n...
https://github.com/spack/spack/issues/15966
==> [2020-04-09-10:26:40.615561, 133285] WRITE LOCK (scons): /dcsrsoft/sandbox/eroche/meleze/opt/spack/.spack-db/prefix_lock[2450758027729552401:1] [Releasing] ==> [2020-04-09-10:26:40.615767, 133285] WRITE LOCK (scons): /dcsrsoft/sandbox/eroche/meleze/opt/spack/.spack-db/prefix_lock[2450758027729552401:1] [Released at...
PermissionError
def get_package_dir_permissions(spec): """Return the permissions configured for the spec. Include the GID bit if group permissions are on. This makes the group attribute sticky for the directory. Package-specific settings take precedent over settings for ``all``""" perms = get_package_permissions(s...
def get_package_dir_permissions(spec): """Return the permissions configured for the spec. Include the GID bit if group permissions are on. This makes the group attribute sticky for the directory. Package-specific settings take precedent over settings for ``all``""" perms = get_package_permissions(s...
https://github.com/spack/spack/issues/14425
lib/spack/spack/cmd/__init__.py:102 ==> [2020-01-08-18:01:06.241182] Imported install from built-in commands lib/spack/spack/config.py:706 ==> [2020-01-08-18:01:06.247268] Reading config file /afs/cern.ch/work/r/razumov/spack_vanilla/etc/spack/defaults/config.yaml lib/spack/spack/cmd/__init__.py:102 ==> [2020-01-08-18:...
PermissionError
def replace_directory_transaction(directory_name, tmp_root=None): """Moves a directory to a temporary space. If the operations executed within the context manager don't raise an exception, the directory is deleted. If there is an exception, the move is undone. Args: directory_name (path): absol...
def replace_directory_transaction(directory_name, tmp_root=None): """Moves a directory to a temporary space. If the operations executed within the context manager don't raise an exception, the directory is deleted. If there is an exception, the move is undone. Args: directory_name (path): absol...
https://github.com/spack/spack/issues/15620
Traceback (most recent call last): File "/u/sciteam/stewart1/spack/bin/spack", line 64, in <module> sys.exit(spack.main.main()) File "/mnt/a/u/sciteam/stewart1/spack/lib/spack/spack/main.py", line 770, in main if spack.config.get('config:debug'): File "/mnt/a/u/sciteam/stewart1/spack/lib/spack/spack/config.py", line 67...
KeyError
def _is_background_tty(stream): """True if the stream is a tty and calling process is in the background.""" return stream.isatty() and os.getpgrp() != os.tcgetpgrp(stream.fileno())
def _is_background_tty(): """Return True iff this process is backgrounded and stdout is a tty""" if sys.stdout.isatty(): return os.getpgrp() != os.tcgetpgrp(sys.stdout.fileno()) return False # not writing to tty, not background
https://github.com/spack/spack/issues/15620
Traceback (most recent call last): File "/u/sciteam/stewart1/spack/bin/spack", line 64, in <module> sys.exit(spack.main.main()) File "/mnt/a/u/sciteam/stewart1/spack/lib/spack/spack/main.py", line 770, in main if spack.config.get('config:debug'): File "/mnt/a/u/sciteam/stewart1/spack/lib/spack/spack/config.py", line 67...
KeyError
def __enter__(self): if self._active: raise RuntimeError("Can't re-enter the same log_output!") if self.file_like is None: raise RuntimeError("file argument must be set by either __init__ or __call__") # set up a stream for the daemon to write to self.close_log_in_parent = True sel...
def __enter__(self): if self._active: raise RuntimeError("Can't re-enter the same log_output!") if self.file_like is None: raise RuntimeError("file argument must be set by either __init__ or __call__") # set up a stream for the daemon to write to self.close_log_in_parent = True sel...
https://github.com/spack/spack/issues/15620
Traceback (most recent call last): File "/u/sciteam/stewart1/spack/bin/spack", line 64, in <module> sys.exit(spack.main.main()) File "/mnt/a/u/sciteam/stewart1/spack/lib/spack/spack/main.py", line 770, in main if spack.config.get('config:debug'): File "/mnt/a/u/sciteam/stewart1/spack/lib/spack/spack/config.py", line 67...
KeyError
def __exit__(self, exc_type, exc_val, exc_tb): # Flush any buffered output to the logger daemon. sys.stdout.flush() sys.stderr.flush() # restore previous output settings, either the low-level way or # the python way if self.use_fds: os.dup2(self._saved_stdout, sys.stdout.fileno()) ...
def __exit__(self, exc_type, exc_val, exc_tb): # Flush any buffered output to the logger daemon. sys.stdout.flush() sys.stderr.flush() # restore previous output settings, either the low-level way or # the python way if self.use_fds: os.dup2(self._saved_stdout, sys.stdout.fileno()) ...
https://github.com/spack/spack/issues/15620
Traceback (most recent call last): File "/u/sciteam/stewart1/spack/bin/spack", line 64, in <module> sys.exit(spack.main.main()) File "/mnt/a/u/sciteam/stewart1/spack/lib/spack/spack/main.py", line 770, in main if spack.config.get('config:debug'): File "/mnt/a/u/sciteam/stewart1/spack/lib/spack/spack/config.py", line 67...
KeyError
def force_echo(self): """Context manager to force local echo, even if echo is off.""" if not self._active: raise RuntimeError("Can't call force_echo() outside log_output region!") # This uses the xon/xoff to highlight regions to be echoed in the # output. We us these control characters rather t...
def force_echo(self): """Context manager to force local echo, even if echo is off.""" if not self._active: raise RuntimeError("Can't call force_echo() outside log_output region!") # This uses the xon/xoff to highlight regions to be echoed in the # output. We us these control characters rather t...
https://github.com/spack/spack/issues/15620
Traceback (most recent call last): File "/u/sciteam/stewart1/spack/bin/spack", line 64, in <module> sys.exit(spack.main.main()) File "/mnt/a/u/sciteam/stewart1/spack/lib/spack/spack/main.py", line 770, in main if spack.config.get('config:debug'): File "/mnt/a/u/sciteam/stewart1/spack/lib/spack/spack/config.py", line 67...
KeyError
def _writer_daemon(stdin, read_fd, write_fd, echo, log_file, control_pipe): """Daemon used by ``log_output`` to write to a log file and to ``stdout``. The daemon receives output from the parent process and writes it both to a log and, optionally, to ``stdout``. The relationship looks like this:: ...
def _writer_daemon(self, stdin): """Daemon that writes output to the log file and stdout.""" # Use line buffering (3rd param = 1) since Python 3 has a bug # that prevents unbuffered text I/O. in_pipe = os.fdopen(self.read_fd, "r", 1) os.close(self.write_fd) echo = self.echo # initial echo sett...
https://github.com/spack/spack/issues/15620
Traceback (most recent call last): File "/u/sciteam/stewart1/spack/bin/spack", line 64, in <module> sys.exit(spack.main.main()) File "/mnt/a/u/sciteam/stewart1/spack/lib/spack/spack/main.py", line 770, in main if spack.config.get('config:debug'): File "/mnt/a/u/sciteam/stewart1/spack/lib/spack/spack/config.py", line 67...
KeyError
def _default_target_from_env(self): """Set and return the default CrayPE target loaded in a clean login session. A bash subshell is launched with a wiped environment and the list of loaded modules is parsed for the first acceptable CrayPE target. """ # env -i /bin/bash -lc echo $CRAY_CPU_TARGET...
def _default_target_from_env(self): """Set and return the default CrayPE target loaded in a clean login session. A bash subshell is launched with a wiped environment and the list of loaded modules is parsed for the first acceptable CrayPE target. """ # env -i /bin/bash -lc echo $CRAY_CPU_TARGET...
https://github.com/spack/spack/issues/15620
Traceback (most recent call last): File "/u/sciteam/stewart1/spack/bin/spack", line 64, in <module> sys.exit(spack.main.main()) File "/mnt/a/u/sciteam/stewart1/spack/lib/spack/spack/main.py", line 770, in main if spack.config.get('config:debug'): File "/mnt/a/u/sciteam/stewart1/spack/lib/spack/spack/config.py", line 67...
KeyError
def _satisfies_target(self, other_target, strict): self_target = self.target need_to_check = ( bool(other_target) if strict or self.concrete else bool(other_target and self_target) ) # If there's no need to check we are fine if not need_to_check: return True # ...
def _satisfies_target(self, other_target, strict): self_target = self.target need_to_check = ( bool(other_target) if strict or self.concrete else bool(other_target and self_target) ) # If there's no need to check we are fine if not need_to_check: return True fo...
https://github.com/spack/spack/issues/15306
Traceback (most recent call last): File "/root/spack/bin/spack", line 64, in <module> sys.exit(spack.main.main()) File "/root/spack/lib/spack/spack/main.py", line 763, in main return _invoke_command(command, parser, args, unknown) File "/root/spack/lib/spack/spack/main.py", line 488, in _invoke_command return_val = com...
AttributeError
def add_default_view_to_shell(self, shell): env_mod = spack.util.environment.EnvironmentModifications() if default_view_name not in self.views: # No default view to add to shell return env_mod.shell_modifications(shell) env_mod.extend(self.unconditional_environment_modifications(self.defau...
def add_default_view_to_shell(self, shell): env_mod = spack.util.environment.EnvironmentModifications() if default_view_name not in self.views: # No default view to add to shell return env_mod.shell_modifications(shell) env_mod.extend(self.unconditional_environment_modifications(self.defau...
https://github.com/spack/spack/issues/13509
Traceback (most recent call last): File "./atdm-spack/spack/bin/spack", line 64, in <module> sys.exit(spack.main.main()) File "/home/rabartl/Spack.base4/atdm-spack/spack/lib/spack/spack/main.py", line 653, in main ev.activate(env, args.use_env_repo) File "/home/rabartl/Spack.base4/atdm-spack/spack/lib/spack/spack/envir...
RuntimeError
def rm_default_view_from_shell(self, shell): env_mod = spack.util.environment.EnvironmentModifications() if default_view_name not in self.views: # No default view to add to shell return env_mod.shell_modifications(shell) env_mod.extend( self.unconditional_environment_modifications(...
def rm_default_view_from_shell(self, shell): env_mod = spack.util.environment.EnvironmentModifications() if default_view_name not in self.views: # No default view to add to shell return env_mod.shell_modifications(shell) env_mod.extend( self.unconditional_environment_modifications(...
https://github.com/spack/spack/issues/13509
Traceback (most recent call last): File "./atdm-spack/spack/bin/spack", line 64, in <module> sys.exit(spack.main.main()) File "/home/rabartl/Spack.base4/atdm-spack/spack/lib/spack/spack/main.py", line 653, in main ev.activate(env, args.use_env_repo) File "/home/rabartl/Spack.base4/atdm-spack/spack/lib/spack/spack/envir...
RuntimeError
def install(self, spec, prefix): options = [ "--with-ssl=0", "--download-c2html=0", "--download-sowing=0", "--download-hwloc=0", "CFLAGS=%s" % " ".join(spec.compiler_flags["cflags"]), "FFLAGS=%s" % " ".join(spec.compiler_flags["fflags"]), "CXXFLAGS=%s" % " ".j...
def install(self, spec, prefix): options = [ "--with-ssl=0", "--download-c2html=0", "--download-sowing=0", "--download-hwloc=0", "CFLAGS=%s" % " ".join(spec.compiler_flags["cflags"]), "FFLAGS=%s" % " ".join(spec.compiler_flags["fflags"]), "CXXFLAGS=%s" % " ".j...
https://github.com/spack/spack/issues/10585
hron@r0d0$ python Python 3.6.5 (default, Feb 9 2019, 12:35:34) [GCC 7.4.0] on linux Type "help", "copyright", "credits" or "license" for more information. import sys import petsc4py petsc4py.init(sys.argv) import matplotlib.pyplot as plt Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr...
ImportError
def __init__(self, name, *args, **kwargs): # If the user provided `--name py-numpy`, don't rename it py-py-numpy if not name.startswith("py-"): # Make it more obvious that we are renaming the package tty.msg("Changing package name from {0} to py-{0}".format(name)) name = "py-{0}".format(...
def __init__(self, name, *args): # If the user provided `--name py-numpy`, don't rename it py-py-numpy if not name.startswith("py-"): # Make it more obvious that we are renaming the package tty.msg("Changing package name from {0} to py-{0}".format(name)) name = "py-{0}".format(name) ...
https://github.com/spack/spack/issues/12529
$ spack -d create https://pypi.io/packages/source/P/PyJWT/PyJWT-1.7.1.tar.gz ==> [2019-08-22-15:47:19.578845] Imported create from built-in commands ==> [2019-08-22-15:47:19.581250] Imported create from built-in commands ==> [2019-08-22-15:47:19.779743] Reading config file /disk/home/sinan/Downloads/spack/etc/spack/def...
TypeError
def __init__(self, name, *args, **kwargs): # If the user provided `--name r-rcpp`, don't rename it r-r-rcpp if not name.startswith("r-"): # Make it more obvious that we are renaming the package tty.msg("Changing package name from {0} to r-{0}".format(name)) name = "r-{0}".format(name) ...
def __init__(self, name, *args): # If the user provided `--name r-rcpp`, don't rename it r-r-rcpp if not name.startswith("r-"): # Make it more obvious that we are renaming the package tty.msg("Changing package name from {0} to r-{0}".format(name)) name = "r-{0}".format(name) super(R...
https://github.com/spack/spack/issues/12529
$ spack -d create https://pypi.io/packages/source/P/PyJWT/PyJWT-1.7.1.tar.gz ==> [2019-08-22-15:47:19.578845] Imported create from built-in commands ==> [2019-08-22-15:47:19.581250] Imported create from built-in commands ==> [2019-08-22-15:47:19.779743] Reading config file /disk/home/sinan/Downloads/spack/etc/spack/def...
TypeError
def __init__(self, name, *args, **kwargs): # If the user provided `--name perl-cpp`, don't rename it perl-perl-cpp if not name.startswith("perl-"): # Make it more obvious that we are renaming the package tty.msg("Changing package name from {0} to perl-{0}".format(name)) name = "perl-{0}"...
def __init__(self, name, *args): # If the user provided `--name perl-cpp`, don't rename it perl-perl-cpp if not name.startswith("perl-"): # Make it more obvious that we are renaming the package tty.msg("Changing package name from {0} to perl-{0}".format(name)) name = "perl-{0}".format(na...
https://github.com/spack/spack/issues/12529
$ spack -d create https://pypi.io/packages/source/P/PyJWT/PyJWT-1.7.1.tar.gz ==> [2019-08-22-15:47:19.578845] Imported create from built-in commands ==> [2019-08-22-15:47:19.581250] Imported create from built-in commands ==> [2019-08-22-15:47:19.779743] Reading config file /disk/home/sinan/Downloads/spack/etc/spack/def...
TypeError
def __init__(self, name, *args, **kwargs): # If the user provided `--name octave-splines`, don't rename it # octave-octave-splines if not name.startswith("octave-"): # Make it more obvious that we are renaming the package tty.msg("Changing package name from {0} to octave-{0}".format(name)) ...
def __init__(self, name, *args): # If the user provided `--name octave-splines`, don't rename it # octave-octave-splines if not name.startswith("octave-"): # Make it more obvious that we are renaming the package tty.msg("Changing package name from {0} to octave-{0}".format(name)) # noqa ...
https://github.com/spack/spack/issues/12529
$ spack -d create https://pypi.io/packages/source/P/PyJWT/PyJWT-1.7.1.tar.gz ==> [2019-08-22-15:47:19.578845] Imported create from built-in commands ==> [2019-08-22-15:47:19.581250] Imported create from built-in commands ==> [2019-08-22-15:47:19.779743] Reading config file /disk/home/sinan/Downloads/spack/etc/spack/def...
TypeError
def __init__(self, name, *args, **kwargs): # If the user provided `--name py-pyqt4`, don't rename it py-py-pyqt4 if not name.startswith("py-"): # Make it more obvious that we are renaming the package tty.msg("Changing package name from {0} to py-{0}".format(name)) name = "py-{0}".format(...
def __init__(self, name, *args): # If the user provided `--name py-pyqt4`, don't rename it py-py-pyqt4 if not name.startswith("py-"): # Make it more obvious that we are renaming the package tty.msg("Changing package name from {0} to py-{0}".format(name)) name = "py-{0}".format(name) ...
https://github.com/spack/spack/issues/12529
$ spack -d create https://pypi.io/packages/source/P/PyJWT/PyJWT-1.7.1.tar.gz ==> [2019-08-22-15:47:19.578845] Imported create from built-in commands ==> [2019-08-22-15:47:19.581250] Imported create from built-in commands ==> [2019-08-22-15:47:19.779743] Reading config file /disk/home/sinan/Downloads/spack/etc/spack/def...
TypeError
def read_cle_release_file(): """Read the CLE release file and return a dict with its attributes. This file is present on newer versions of Cray. The release file looks something like this:: RELEASE=6.0.UP07 BUILD=6.0.7424 ... The dictionary we produce looks like this:: ...
def read_cle_release_file(): """Read the CLE release file and return a dict with its attributes. The release file looks something like this:: RELEASE=6.0.UP07 BUILD=6.0.7424 ... The dictionary we produce looks like this:: { "RELEASE": "6.0.UP07", "BUIL...
https://github.com/spack/spack/issues/12187
Traceback (most recent call last): File "/u/sciteam/stewart1/spack/bin/spack", line 48, in <module> sys.exit(spack.main.main()) File "/mnt/a/u/sciteam/stewart1/spack/lib/spack/spack/main.py", line 704, in main if spack.config.get('config:debug'): File "/mnt/a/u/sciteam/stewart1/spack/lib/spack/spack/config.py", line 62...
IOError
def _detect_crayos_version(cls): if os.path.isfile(_cle_release_file): release_attrs = read_cle_release_file() v = spack.version.Version(release_attrs["RELEASE"]) return v[0] elif os.path.isfile(_clerelease_file): v = read_clerelease_file() return spack.version.Version(v)...
def _detect_crayos_version(cls): release_attrs = read_cle_release_file() v = spack.version.Version(release_attrs["RELEASE"]) return v[0]
https://github.com/spack/spack/issues/12187
Traceback (most recent call last): File "/u/sciteam/stewart1/spack/bin/spack", line 48, in <module> sys.exit(spack.main.main()) File "/mnt/a/u/sciteam/stewart1/spack/lib/spack/spack/main.py", line 704, in main if spack.config.get('config:debug'): File "/mnt/a/u/sciteam/stewart1/spack/lib/spack/spack/config.py", line 62...
IOError
def setup_dependent_package(self, module, dependent_spec): """Called before perl modules' install() methods. In most cases, extensions will only need to have one line: perl('Makefile.PL','INSTALL_BASE=%s' % self.prefix) """ # If system perl is used through packages.yaml # there cannot be extens...
def setup_dependent_package(self, module, dependent_spec): """Called before perl modules' install() methods. In most cases, extensions will only need to have one line: perl('Makefile.PL','INSTALL_BASE=%s' % self.prefix) """ # perl extension builds can have a global perl executable function modu...
https://github.com/spack/spack/issues/11033
==> [2019-03-28-09:45:40.882685] Error: RuntimeError: Unable to locate perl command in None/bin /scratch/gartung/work/spack/var/spack/repos/builtin/packages/perl/package.py:194, in setup_dependent_package: 191 """ 192 193 # perl extension builds can have a global perl executable function >> 194 ...
RuntimeError
def _read_from_file(self, stream, format="json"): """ Fill database from file, do not maintain old data Translate the spec portions from node-dict form to spec form Does not do any locking. """ if format.lower() == "json": load = sjson.load elif format.lower() == "yaml": loa...
def _read_from_file(self, stream, format="json"): """ Fill database from file, do not maintain old data Translate the spec portions from node-dict form to spec form Does not do any locking. """ if format.lower() == "json": load = sjson.load elif format.lower() == "yaml": loa...
https://github.com/spack/spack/issues/2911
Traceback (most recent call last): File "/soft/spack-0.10.0/bin/spack", line 212, in <module> main(sys.argv) File "/soft/spack-0.10.0/bin/spack", line 208, in main _main(args, unknown) File "/soft/spack-0.10.0/bin/spack", line 174, in _main return_val = command(parser, args) File "/blues/gpfs/home/software/spack-0.10.0...
ValueError
def _read_from_file(self, stream, format="json"): """ Fill database from file, do not maintain old data Translate the spec portions from node-dict form to spec form Does not do any locking. """ if format.lower() == "json": load = sjson.load elif format.lower() == "yaml": loa...
def _read_from_file(self, stream, format="json"): """ Fill database from file, do not maintain old data Translate the spec portions from node-dict form to spec form Does not do any locking. """ if format.lower() == "json": load = sjson.load elif format.lower() == "yaml": loa...
https://github.com/spack/spack/issues/2911
Traceback (most recent call last): File "/soft/spack-0.10.0/bin/spack", line 212, in <module> main(sys.argv) File "/soft/spack-0.10.0/bin/spack", line 208, in main _main(args, unknown) File "/soft/spack-0.10.0/bin/spack", line 174, in _main return_val = command(parser, args) File "/blues/gpfs/home/software/spack-0.10.0...
ValueError
def setup_parser(subparser): subparser.add_argument( "--only", default="package,dependencies", dest="things_to_install", choices=["package", "dependencies"], help="""select the mode of installation. the default is to install the package along with all its dependencies. altern...
def setup_parser(subparser): subparser.add_argument( "--only", default="package,dependencies", dest="things_to_install", choices=["package", "dependencies"], help="""select the mode of installation. the default is to install the package along with all its dependencies. altern...
https://github.com/spack/spack/issues/2794
amklinv@edison10:~/edison/spack/bin> ./spack -vd install xsdk arch=cray-CNL-ivybridge ==> Reading config file /global/u1/a/amklinv/edison/spack/etc/spack/defaults/packages.yaml ==> Reading config file /global/homes/a/amklinv/.spack/cray/packages.yaml ==> READ LOCK: /global/homes/a/amklinv/.spack/cache/providers/.builti...
KeyError
def install(parser, args, **kwargs): if not args.package: tty.die("install requires at least one package argument") if args.jobs is not None: if args.jobs <= 0: tty.die("The -j option must be a positive integer!") if args.no_checksum: spack.do_checksum = False # TODO: ...
def install(parser, args, **kwargs): if not args.package: tty.die("install requires at least one package argument") if args.jobs is not None: if args.jobs <= 0: tty.die("The -j option must be a positive integer!") if args.no_checksum: spack.do_checksum = False # TODO: ...
https://github.com/spack/spack/issues/2794
amklinv@edison10:~/edison/spack/bin> ./spack -vd install xsdk arch=cray-CNL-ivybridge ==> Reading config file /global/u1/a/amklinv/edison/spack/etc/spack/defaults/packages.yaml ==> Reading config file /global/homes/a/amklinv/.spack/cray/packages.yaml ==> READ LOCK: /global/homes/a/amklinv/.spack/cache/providers/.builti...
KeyError
def _read(self): """Re-read Database from the data in the set location. This does no locking, with one exception: it will automatically migrate an index.yaml to an index.json if possible. This requires taking a write lock. """ if os.path.isfile(self._index_path): # Read from JSON file ...
def _read(self): """Re-read Database from the data in the set location. This does no locking, with one exception: it will automatically migrate an index.yaml to an index.json if possible. This requires taking a write lock. """ if os.path.isfile(self._index_path): # Read from JSON file ...
https://github.com/spack/spack/issues/2794
amklinv@edison10:~/edison/spack/bin> ./spack -vd install xsdk arch=cray-CNL-ivybridge ==> Reading config file /global/u1/a/amklinv/edison/spack/etc/spack/defaults/packages.yaml ==> Reading config file /global/homes/a/amklinv/.spack/cray/packages.yaml ==> READ LOCK: /global/homes/a/amklinv/.spack/cache/providers/.builti...
KeyError
def do_install( self, keep_prefix=False, keep_stage=False, install_deps=True, skip_patch=False, verbose=False, make_jobs=None, run_tests=False, fake=False, explicit=False, dirty=None, **kwargs, ): """Called by commands to install a package and its dependencies. P...
def do_install( self, keep_prefix=False, keep_stage=False, install_deps=True, skip_patch=False, verbose=False, make_jobs=None, run_tests=False, fake=False, explicit=False, dirty=None, **kwargs, ): """Called by commands to install a package and its dependencies. P...
https://github.com/spack/spack/issues/2794
amklinv@edison10:~/edison/spack/bin> ./spack -vd install xsdk arch=cray-CNL-ivybridge ==> Reading config file /global/u1/a/amklinv/edison/spack/etc/spack/defaults/packages.yaml ==> Reading config file /global/homes/a/amklinv/.spack/cray/packages.yaml ==> READ LOCK: /global/homes/a/amklinv/.spack/cache/providers/.builti...
KeyError
def get_number(prompt, **kwargs): default = kwargs.get("default", None) abort = kwargs.get("abort", None) if default is not None and abort is not None: prompt += " (default is %s, %s to abort) " % (default, abort) elif default is not None: prompt += " (default is %s) " % default eli...
def get_number(prompt, **kwargs): default = kwargs.get("default", None) abort = kwargs.get("abort", None) if default is not None and abort is not None: prompt += " (default is %s, %s to abort) " % (default, abort) elif default is not None: prompt += " (default is %s) " % default eli...
https://github.com/spack/spack/issues/3960
$ spack uninstall --all ... ==> Do you want to proceed? [y/N] Traceback (most recent call last): File "/home/christoph/spack/bin/spack", line 220, in <module> main(sys.argv) File "/home/christoph/spack/bin/spack", line 216, in main _main(args, unknown) File "/home/christoph/spack/bin/spack", line 183, in _main return_v...
NameError
def get_yes_or_no(prompt, **kwargs): default_value = kwargs.get("default", None) if default_value is None: prompt += " [y/n] " elif default_value is True: prompt += " [Y/n] " elif default_value is False: prompt += " [y/N] " else: raise ValueError("default for get_yes...
def get_yes_or_no(prompt, **kwargs): default_value = kwargs.get("default", None) if default_value is None: prompt += " [y/n] " elif default_value is True: prompt += " [Y/n] " elif default_value is False: prompt += " [y/N] " else: raise ValueError("default for get_yes...
https://github.com/spack/spack/issues/3960
$ spack uninstall --all ... ==> Do you want to proceed? [y/N] Traceback (most recent call last): File "/home/christoph/spack/bin/spack", line 220, in <module> main(sys.argv) File "/home/christoph/spack/bin/spack", line 216, in main _main(args, unknown) File "/home/christoph/spack/bin/spack", line 183, in _main return_v...
NameError
def do_install( self, keep_prefix=False, keep_stage=False, install_deps=True, skip_patch=False, verbose=False, make_jobs=None, run_tests=False, fake=False, explicit=False, dirty=None, **kwargs, ): """Called by commands to install a package and its dependencies. P...
def do_install( self, keep_prefix=False, keep_stage=False, install_deps=True, skip_patch=False, verbose=False, make_jobs=None, run_tests=False, fake=False, explicit=False, dirty=None, **kwargs, ): """Called by commands to install a package and its dependencies. P...
https://github.com/spack/spack/issues/3960
$ spack uninstall --all ... ==> Do you want to proceed? [y/N] Traceback (most recent call last): File "/home/christoph/spack/bin/spack", line 220, in <module> main(sys.argv) File "/home/christoph/spack/bin/spack", line 216, in main _main(args, unknown) File "/home/christoph/spack/bin/spack", line 183, in _main return_v...
NameError
def build_process(input_stream): """Forked for each build. Has its own process and python module space set up by build_environment.fork().""" # We are in the child process. This means that our sys.stdin is # equal to open(os.devnull). Python did this to prevent our process # and the parent process ...
def build_process(input_stream): """Forked for each build. Has its own process and python module space set up by build_environment.fork().""" # We are in the child process. This means that our sys.stdin is # equal to open(os.devnull). Python did this to prevent our process # and the parent process ...
https://github.com/spack/spack/issues/3960
$ spack uninstall --all ... ==> Do you want to proceed? [y/N] Traceback (most recent call last): File "/home/christoph/spack/bin/spack", line 220, in <module> main(sys.argv) File "/home/christoph/spack/bin/spack", line 216, in main _main(args, unknown) File "/home/christoph/spack/bin/spack", line 183, in _main return_v...
NameError
def install(self, spec, prefix): env["GEOS_DIR"] = spec["geos"].prefix setup_py("install", "--prefix=%s" % prefix) # We are not sure if this fix is needed before Python 3.5.2. # If it is needed, this test should be changed. # See: https://github.com/LLNL/spack/pull/1964 if spec["python"].versio...
def install(self, spec, prefix): env["GEOS_DIR"] = spec["geos"].prefix setup_py("install", "--prefix=%s" % prefix)
https://github.com/spack/spack/issues/1948
import mpl_toolkits.basemap Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home2/rpfische/spack3/opt/spack/linux-centos7-x86_64/gcc-4.9.3/py-basemap-1.0.7-ruhltkr62akc3yp2llvsqupikvhkq5b5/lib/python3.5/site-packages/mpl_toolkits/basemap/__init__.py", line 31, in <module> from mpl_toolkits...
ImportError
def concretize_architecture(self, spec): """If the spec is empty provide the defaults of the platform. If the architecture is not a string type, then check if either the platform, target or operating system are concretized. If any of the fields are changed then return True. If everything is concretized ...
def concretize_architecture(self, spec): """If the spec is empty provide the defaults of the platform. If the architecture is not a string type, then check if either the platform, target or operating system are concretized. If any of the fields are changed then return True. If everything is concretized ...
https://github.com/spack/spack/issues/2587
$ spack arch cray-CNL-mic_knl $ spack spec tau Input spec -------------------------------- tau Normalized -------------------------------- tau ^pdt Concretized -------------------------------- Traceback (most recent call last): File "/home/kumbhar/spack/bin/spack", line 198, in <module> main() File "/home/kumbhar/spac...
AttributeError
def create_db_tarball(args): tar = which("tar") tarball_name = "spack-db.%s.tar.gz" % _debug_tarball_suffix() tarball_path = os.path.abspath(tarball_name) base = os.path.basename(spack.store.root) transform_args = [] if "GNU" in tar("--version", output=str): transform_args = ["--transfo...
def create_db_tarball(args): tar = which("tar") tarball_name = "spack-db.%s.tar.gz" % _debug_tarball_suffix() tarball_path = os.path.abspath(tarball_name) base = os.path.basename(spack.install_path) transform_args = [] if "GNU" in tar("--version", output=str): transform_args = ["--trans...
https://github.com/spack/spack/issues/2123
$ spack install eigen ==> Installing eigen ==> metis is already installed in /blues/gpfs/home/software/spack-0.9.1/opt/spack/linux-centos6-x86_64/gcc-6.1.0/metis-5.1.0-k4pqzigdgdsuk2r3xls7eyhk6uwvxp46 Traceback (most recent call last): File "/soft/spack-0.9.1/bin/spack", line 202, in <module> main() File "/soft/spack-0...
AssertionError
def graph(parser, args): concretize = not args.normalize if args.installed: if args.specs: tty.die("Can't specify specs with --installed") args.dot = True specs = spack.store.db.query() else: specs = spack.cmd.parse_specs(args.specs, normalize=True, concretize=co...
def graph(parser, args): concretize = not args.normalize if args.installed: if args.specs: tty.die("Can't specify specs with --installed") args.dot = True specs = spack.installed_db.query() else: specs = spack.cmd.parse_specs(args.specs, normalize=True, concretiz...
https://github.com/spack/spack/issues/2316
$ spack setup pism@dev Traceback (most recent call last): File "/home2/rpfische/spack4/bin/spack", line 203, in <module> main() File "/home2/rpfische/spack4/bin/spack", line 180, in main return_val = command(parser, args) File "/home2/rpfische/spack4/lib/spack/spack/cmd/setup.py", line 133, in setup with spack.installe...
AttributeError
def setup(self, args): if not args.spec: tty.die("spack setup requires a package spec argument.") specs = spack.cmd.parse_specs(args.spec) if len(specs) > 1: tty.die("spack setup only takes one spec.") # Take a write lock before checking for existence. with spack.store.db.write_tra...
def setup(self, args): if not args.spec: tty.die("spack setup requires a package spec argument.") specs = spack.cmd.parse_specs(args.spec) if len(specs) > 1: tty.die("spack setup only takes one spec.") # Take a write lock before checking for existence. with spack.installed_db.write...
https://github.com/spack/spack/issues/2316
$ spack setup pism@dev Traceback (most recent call last): File "/home2/rpfische/spack4/bin/spack", line 203, in <module> main() File "/home2/rpfische/spack4/bin/spack", line 180, in main return_val = command(parser, args) File "/home2/rpfische/spack4/lib/spack/spack/cmd/setup.py", line 133, in setup with spack.installe...
AttributeError
def install(self, spec, prefix): self.check_variants(spec) base_components = "ALL" # when in doubt, install everything mpi_components = "" mkl_components = "" daal_components = "" ipp_components = "" if not spec.satisfies("+all"): all_components = get_all_components() rege...
def install(self, spec, prefix): self.check_variants(spec) base_components = "ALL" # when in doubt, install everything mpi_components = "" mkl_components = "" daal_components = "" ipp_components = "" if not spec.satisfies("+all"): all_components = get_all_components() rege...
https://github.com/spack/spack/issues/2153
Traceback (most recent call last): File "/soft/spack-0.9.1/bin/spack", line 202, in <module> main() File "/soft/spack-0.9.1/bin/spack", line 179, in main return_val = command(parser, args) File "/blues/gpfs/home/software/spack-0.9.1/lib/spack/spack/cmd/install.py", line 340, in install package.do_install(**kwargs) File...
OSError
def __init__(self, path, start=0, length=0): """Construct a new lock on the file at ``path``. By default, the lock applies to the whole file. Optionally, caller can specify a byte range beginning ``start`` bytes from the start of the file and extending ``length`` bytes from there. This exposes a ...
def __init__(self, file_path): self._file_path = file_path self._fd = None self._reads = 0 self._writes = 0
https://github.com/spack/spack/issues/1266
==> Installing cactusext ==> openmpi is already installed in /home/ux452368/comet/src/spack/opt/spack/linux-centos6-x86_64/gcc-6.1.0-spack/openmpi-2.0.0-5l3pomaqonrx3phvbm4kblzsms56ljtj ==> hwloc is already installed in /home/ux452368/comet/src/spack/opt/spack/linux-centos6-x86_64/gcc-6.1.0-spack/hwloc-1.11.3-xgdwohjb2...
KeyError
def _lock(self, op, timeout=_default_timeout): """This takes a lock using POSIX locks (``fnctl.lockf``). The lock is implemented as a spin lock using a nonblocking call to lockf(). On acquiring an exclusive lock, the lock writes this process's pid and host to the lock file, in case the holding pro...
def _lock(self, op, timeout): """This takes a lock using POSIX locks (``fnctl.lockf``). The lock is implemented as a spin lock using a nonblocking call to lockf(). On acquiring an exclusive lock, the lock writes this process's pid and host to the lock file, in case the holding process needs to...
https://github.com/spack/spack/issues/1266
==> Installing cactusext ==> openmpi is already installed in /home/ux452368/comet/src/spack/opt/spack/linux-centos6-x86_64/gcc-6.1.0-spack/openmpi-2.0.0-5l3pomaqonrx3phvbm4kblzsms56ljtj ==> hwloc is already installed in /home/ux452368/comet/src/spack/opt/spack/linux-centos6-x86_64/gcc-6.1.0-spack/hwloc-1.11.3-xgdwohjb2...
KeyError
def _unlock(self): """Releases a lock using POSIX locks (``fcntl.lockf``) Releases the lock regardless of mode. Note that read locks may be masquerading as write locks, but this removes either. """ fcntl.lockf(self._file, fcntl.LOCK_UN, self._length, self._start, os.SEEK_SET) self._file.close(...
def _unlock(self): """Releases a lock using POSIX locks (``fcntl.lockf``) Releases the lock regardless of mode. Note that read locks may be masquerading as write locks, but this removes either. """ fcntl.lockf(self._fd, fcntl.LOCK_UN) os.close(self._fd) self._fd = None
https://github.com/spack/spack/issues/1266
==> Installing cactusext ==> openmpi is already installed in /home/ux452368/comet/src/spack/opt/spack/linux-centos6-x86_64/gcc-6.1.0-spack/openmpi-2.0.0-5l3pomaqonrx3phvbm4kblzsms56ljtj ==> hwloc is already installed in /home/ux452368/comet/src/spack/opt/spack/linux-centos6-x86_64/gcc-6.1.0-spack/hwloc-1.11.3-xgdwohjb2...
KeyError
def acquire_read(self, timeout=_default_timeout): """Acquires a recursive, shared lock for reading. Read and write locks can be acquired and released in arbitrary order, but the POSIX lock is held until all local read and write locks are released. Returns True if it is the first acquire and actual...
def acquire_read(self, timeout=_default_timeout): """Acquires a recursive, shared lock for reading. Read and write locks can be acquired and released in arbitrary order, but the POSIX lock is held until all local read and write locks are released. Returns True if it is the first acquire and actual...
https://github.com/spack/spack/issues/1266
==> Installing cactusext ==> openmpi is already installed in /home/ux452368/comet/src/spack/opt/spack/linux-centos6-x86_64/gcc-6.1.0-spack/openmpi-2.0.0-5l3pomaqonrx3phvbm4kblzsms56ljtj ==> hwloc is already installed in /home/ux452368/comet/src/spack/opt/spack/linux-centos6-x86_64/gcc-6.1.0-spack/hwloc-1.11.3-xgdwohjb2...
KeyError
def acquire_write(self, timeout=_default_timeout): """Acquires a recursive, exclusive lock for writing. Read and write locks can be acquired and released in arbitrary order, but the POSIX lock is held until all local read and write locks are released. Returns True if it is the first acquire and ac...
def acquire_write(self, timeout=_default_timeout): """Acquires a recursive, exclusive lock for writing. Read and write locks can be acquired and released in arbitrary order, but the POSIX lock is held until all local read and write locks are released. Returns True if it is the first acquire and ac...
https://github.com/spack/spack/issues/1266
==> Installing cactusext ==> openmpi is already installed in /home/ux452368/comet/src/spack/opt/spack/linux-centos6-x86_64/gcc-6.1.0-spack/openmpi-2.0.0-5l3pomaqonrx3phvbm4kblzsms56ljtj ==> hwloc is already installed in /home/ux452368/comet/src/spack/opt/spack/linux-centos6-x86_64/gcc-6.1.0-spack/hwloc-1.11.3-xgdwohjb2...
KeyError
def release_read(self): """Releases a read lock. Returns True if the last recursive lock was released, False if there are still outstanding locks. Does limited correctness checking: if a read lock is released when none are held, this will raise an assertion error. """ assert self._reads >...
def release_read(self): """Releases a read lock. Returns True if the last recursive lock was released, False if there are still outstanding locks. Does limited correctness checking: if a read lock is released when none are held, this will raise an assertion error. """ assert self._reads >...
https://github.com/spack/spack/issues/1266
==> Installing cactusext ==> openmpi is already installed in /home/ux452368/comet/src/spack/opt/spack/linux-centos6-x86_64/gcc-6.1.0-spack/openmpi-2.0.0-5l3pomaqonrx3phvbm4kblzsms56ljtj ==> hwloc is already installed in /home/ux452368/comet/src/spack/opt/spack/linux-centos6-x86_64/gcc-6.1.0-spack/hwloc-1.11.3-xgdwohjb2...
KeyError
def release_write(self): """Releases a write lock. Returns True if the last recursive lock was released, False if there are still outstanding locks. Does limited correctness checking: if a read lock is released when none are held, this will raise an assertion error. """ assert self._write...
def release_write(self): """Releases a write lock. Returns True if the last recursive lock was released, False if there are still outstanding locks. Does limited correctness checking: if a read lock is released when none are held, this will raise an assertion error. """ assert self._write...
https://github.com/spack/spack/issues/1266
==> Installing cactusext ==> openmpi is already installed in /home/ux452368/comet/src/spack/opt/spack/linux-centos6-x86_64/gcc-6.1.0-spack/openmpi-2.0.0-5l3pomaqonrx3phvbm4kblzsms56ljtj ==> hwloc is already installed in /home/ux452368/comet/src/spack/opt/spack/linux-centos6-x86_64/gcc-6.1.0-spack/hwloc-1.11.3-xgdwohjb2...
KeyError
def _debug_tarball_suffix(): now = datetime.now() suffix = now.strftime("%Y-%m-%d-%H%M%S") git = which("git") if not git: return "nobranch-nogit-%s" % suffix with working_dir(spack.spack_root): if not os.path.isdir(".git"): return "nobranch.nogit.%s" % suffix #...
def _debug_tarball_suffix(): now = datetime.now() suffix = now.strftime("%Y-%m-%d-%H%M%S") git = which("git") if not git: return "nobranch-nogit-%s" % suffix with working_dir(spack.spack_root): if not os.path.isdir(".git"): return "nobranch.nogit.%s" % suffix s...
https://github.com/spack/spack/issues/1266
==> Installing cactusext ==> openmpi is already installed in /home/ux452368/comet/src/spack/opt/spack/linux-centos6-x86_64/gcc-6.1.0-spack/openmpi-2.0.0-5l3pomaqonrx3phvbm4kblzsms56ljtj ==> hwloc is already installed in /home/ux452368/comet/src/spack/opt/spack/linux-centos6-x86_64/gcc-6.1.0-spack/hwloc-1.11.3-xgdwohjb2...
KeyError
def create_db_tarball(args): tar = which("tar") tarball_name = "spack-db.%s.tar.gz" % _debug_tarball_suffix() tarball_path = os.path.abspath(tarball_name) base = os.path.basename(spack.install_path) transform_args = [] if "GNU" in tar("--version", output=str): transform_args = ["--trans...
def create_db_tarball(args): tar = which("tar") tarball_name = "spack-db.%s.tar.gz" % _debug_tarball_suffix() tarball_path = os.path.abspath(tarball_name) with working_dir(spack.spack_root): files = [spack.installed_db._index_path] files += glob("%s/*/*/*/.spack/spec.yaml" % spack.insta...
https://github.com/spack/spack/issues/1266
==> Installing cactusext ==> openmpi is already installed in /home/ux452368/comet/src/spack/opt/spack/linux-centos6-x86_64/gcc-6.1.0-spack/openmpi-2.0.0-5l3pomaqonrx3phvbm4kblzsms56ljtj ==> hwloc is already installed in /home/ux452368/comet/src/spack/opt/spack/linux-centos6-x86_64/gcc-6.1.0-spack/hwloc-1.11.3-xgdwohjb2...
KeyError
def diy(self, args): if not args.spec: tty.die("spack diy requires a package spec argument.") specs = spack.cmd.parse_specs(args.spec) if len(specs) > 1: tty.die("spack diy only takes one spec.") spec = specs[0] if not spack.repo.exists(spec.name): tty.warn("No such package...
def diy(self, args): if not args.spec: tty.die("spack diy requires a package spec argument.") specs = spack.cmd.parse_specs(args.spec) if len(specs) > 1: tty.die("spack diy only takes one spec.") # Take a write lock before checking for existence. with spack.installed_db.write_trans...
https://github.com/spack/spack/issues/1266
==> Installing cactusext ==> openmpi is already installed in /home/ux452368/comet/src/spack/opt/spack/linux-centos6-x86_64/gcc-6.1.0-spack/openmpi-2.0.0-5l3pomaqonrx3phvbm4kblzsms56ljtj ==> hwloc is already installed in /home/ux452368/comet/src/spack/opt/spack/linux-centos6-x86_64/gcc-6.1.0-spack/hwloc-1.11.3-xgdwohjb2...
KeyError
def install(parser, args): if not args.packages: tty.die("install requires at least one package argument") if args.jobs is not None: if args.jobs <= 0: tty.die("The -j option must be a positive integer!") if args.no_checksum: spack.do_checksum = False # TODO: remove th...
def install(parser, args): if not args.packages: tty.die("install requires at least one package argument") if args.jobs is not None: if args.jobs <= 0: tty.die("The -j option must be a positive integer!") if args.no_checksum: spack.do_checksum = False # TODO: remove th...
https://github.com/spack/spack/issues/1266
==> Installing cactusext ==> openmpi is already installed in /home/ux452368/comet/src/spack/opt/spack/linux-centos6-x86_64/gcc-6.1.0-spack/openmpi-2.0.0-5l3pomaqonrx3phvbm4kblzsms56ljtj ==> hwloc is already installed in /home/ux452368/comet/src/spack/opt/spack/linux-centos6-x86_64/gcc-6.1.0-spack/hwloc-1.11.3-xgdwohjb2...
KeyError
def uninstall(parser, args): if not args.packages and not args.all: tty.die("uninstall requires at least one package argument.") uninstall_list = get_uninstall_list(args) if not args.yes_to_all: tty.msg("The following packages will be uninstalled : ") print("") spack.cmd.di...
def uninstall(parser, args): if not args.packages and not args.all: tty.die("uninstall requires at least one package argument.") with spack.installed_db.write_transaction(): uninstall_list = get_uninstall_list(args) if not args.yes_to_all: tty.msg("The following packages wi...
https://github.com/spack/spack/issues/1266
==> Installing cactusext ==> openmpi is already installed in /home/ux452368/comet/src/spack/opt/spack/linux-centos6-x86_64/gcc-6.1.0-spack/openmpi-2.0.0-5l3pomaqonrx3phvbm4kblzsms56ljtj ==> hwloc is already installed in /home/ux452368/comet/src/spack/opt/spack/linux-centos6-x86_64/gcc-6.1.0-spack/hwloc-1.11.3-xgdwohjb2...
KeyError
def __init__(self, root, db_dir=None): """Create a Database for Spack installations under ``root``. A Database is a cache of Specs data from ``$prefix/spec.yaml`` files in Spack installation directories. By default, Database files (data and lock files) are stored under ``root/.spack-db``, which is...
def __init__(self, root, db_dir=None): """Create a Database for Spack installations under ``root``. A Database is a cache of Specs data from ``$prefix/spec.yaml`` files in Spack installation directories. By default, Database files (data and lock files) are stored under ``root/.spack-db``, which is...
https://github.com/spack/spack/issues/1266
==> Installing cactusext ==> openmpi is already installed in /home/ux452368/comet/src/spack/opt/spack/linux-centos6-x86_64/gcc-6.1.0-spack/openmpi-2.0.0-5l3pomaqonrx3phvbm4kblzsms56ljtj ==> hwloc is already installed in /home/ux452368/comet/src/spack/opt/spack/linux-centos6-x86_64/gcc-6.1.0-spack/hwloc-1.11.3-xgdwohjb2...
KeyError
def _get_lock(self, key): """Create a lock for a key, if necessary, and return a lock object.""" if key not in self._locks: self._locks[key] = Lock(self._lock_path(key)) return self._locks[key]
def _get_lock(self, key): """Create a lock for a key, if necessary, and return a lock object.""" if key not in self._locks: lock_file = self._lock_path(key) if not os.path.exists(lock_file): touch(lock_file) self._locks[key] = Lock(lock_file) return self._locks[key]
https://github.com/spack/spack/issues/1266
==> Installing cactusext ==> openmpi is already installed in /home/ux452368/comet/src/spack/opt/spack/linux-centos6-x86_64/gcc-6.1.0-spack/openmpi-2.0.0-5l3pomaqonrx3phvbm4kblzsms56ljtj ==> hwloc is already installed in /home/ux452368/comet/src/spack/opt/spack/linux-centos6-x86_64/gcc-6.1.0-spack/hwloc-1.11.3-xgdwohjb2...
KeyError
def do_install( self, keep_prefix=False, keep_stage=False, install_deps=True, install_self=True, skip_patch=False, verbose=False, make_jobs=None, run_tests=False, fake=False, explicit=False, dirty=False, install_phases=install_phases, ): """Called by commands to i...
def do_install( self, keep_prefix=False, keep_stage=False, install_deps=True, install_self=True, skip_patch=False, verbose=False, make_jobs=None, run_tests=False, fake=False, explicit=False, dirty=False, install_phases=install_phases, ): """Called by commands to i...
https://github.com/spack/spack/issues/1266
==> Installing cactusext ==> openmpi is already installed in /home/ux452368/comet/src/spack/opt/spack/linux-centos6-x86_64/gcc-6.1.0-spack/openmpi-2.0.0-5l3pomaqonrx3phvbm4kblzsms56ljtj ==> hwloc is already installed in /home/ux452368/comet/src/spack/opt/spack/linux-centos6-x86_64/gcc-6.1.0-spack/hwloc-1.11.3-xgdwohjb2...
KeyError
def build_process(): """Forked for each build. Has its own process and python module space set up by build_environment.fork().""" start_time = time.time() if not fake: if not skip_patch: self.do_patch() else: self.do_stage() tty.msg("Building %s" % self.name...
def build_process(): """Forked for each build. Has its own process and python module space set up by build_environment.fork().""" start_time = time.time() if not fake: if not skip_patch: self.do_patch() else: self.do_stage() tty.msg("Building %s" % self.name...
https://github.com/spack/spack/issues/1266
==> Installing cactusext ==> openmpi is already installed in /home/ux452368/comet/src/spack/opt/spack/linux-centos6-x86_64/gcc-6.1.0-spack/openmpi-2.0.0-5l3pomaqonrx3phvbm4kblzsms56ljtj ==> hwloc is already installed in /home/ux452368/comet/src/spack/opt/spack/linux-centos6-x86_64/gcc-6.1.0-spack/hwloc-1.11.3-xgdwohjb2...
KeyError
def do_uninstall(self, force=False): if not self.installed: # prefix may not exist, but DB may be inconsistent. Try to fix by # removing, but omit hooks. specs = spack.installed_db.query(self.spec, installed=True) if specs: spack.installed_db.remove(specs[0]) ...
def do_uninstall(self, force=False): if not self.installed: # prefix may not exist, but DB may be inconsistent. Try to fix by # removing, but omit hooks. specs = spack.installed_db.query(self.spec, installed=True) if specs: spack.installed_db.remove(specs[0]) ...
https://github.com/spack/spack/issues/1266
==> Installing cactusext ==> openmpi is already installed in /home/ux452368/comet/src/spack/opt/spack/linux-centos6-x86_64/gcc-6.1.0-spack/openmpi-2.0.0-5l3pomaqonrx3phvbm4kblzsms56ljtj ==> hwloc is already installed in /home/ux452368/comet/src/spack/opt/spack/linux-centos6-x86_64/gcc-6.1.0-spack/hwloc-1.11.3-xgdwohjb2...
KeyError
def dag_hash(self, length=None): """Return a hash of the entire spec DAG, including connectivity.""" if self._hash: return self._hash[:length] else: yaml_text = syaml.dump( self.to_node_dict(), default_flow_style=True, width=sys.maxint ) sha = hashlib.sha1(yaml_te...
def dag_hash(self, length=None): """ Return a hash of the entire spec DAG, including connectivity. """ if self._hash: return self._hash[:length] else: # XXX(deptype): ignore 'build' dependencies here yaml_text = syaml.dump( self.to_node_dict(), default_flow_style=...
https://github.com/spack/spack/issues/1266
==> Installing cactusext ==> openmpi is already installed in /home/ux452368/comet/src/spack/opt/spack/linux-centos6-x86_64/gcc-6.1.0-spack/openmpi-2.0.0-5l3pomaqonrx3phvbm4kblzsms56ljtj ==> hwloc is already installed in /home/ux452368/comet/src/spack/opt/spack/linux-centos6-x86_64/gcc-6.1.0-spack/hwloc-1.11.3-xgdwohjb2...
KeyError
def to_node_dict(self): d = syaml_dict() if self.versions: d.update(self.versions.to_dict()) if self.compiler: d.update(self.compiler.to_dict()) if self.namespace: d["namespace"] = self.namespace params = syaml_dict(sorted((name, v.value) for name, v in self.variants.item...
def to_node_dict(self): d = syaml_dict() if self.versions: d.update(self.versions.to_dict()) if self.compiler: d.update(self.compiler.to_dict()) if self.namespace: d["namespace"] = self.namespace params = syaml_dict(sorted((name, v.value) for name, v in self.variants.item...
https://github.com/spack/spack/issues/1266
==> Installing cactusext ==> openmpi is already installed in /home/ux452368/comet/src/spack/opt/spack/linux-centos6-x86_64/gcc-6.1.0-spack/openmpi-2.0.0-5l3pomaqonrx3phvbm4kblzsms56ljtj ==> hwloc is already installed in /home/ux452368/comet/src/spack/opt/spack/linux-centos6-x86_64/gcc-6.1.0-spack/hwloc-1.11.3-xgdwohjb2...
KeyError
def __init__( self, url_or_fetch_strategy, name=None, mirror_path=None, keep=False, path=None, lock=True, ): """Create a stage object. Parameters: url_or_fetch_strategy URL of the archive to be downloaded into this stage, OR a valid FetchStrategy. nam...
def __init__( self, url_or_fetch_strategy, name=None, mirror_path=None, keep=False, path=None ): """Create a stage object. Parameters: url_or_fetch_strategy URL of the archive to be downloaded into this stage, OR a valid FetchStrategy. name If a name is provided, t...
https://github.com/spack/spack/issues/1266
==> Installing cactusext ==> openmpi is already installed in /home/ux452368/comet/src/spack/opt/spack/linux-centos6-x86_64/gcc-6.1.0-spack/openmpi-2.0.0-5l3pomaqonrx3phvbm4kblzsms56ljtj ==> hwloc is already installed in /home/ux452368/comet/src/spack/opt/spack/linux-centos6-x86_64/gcc-6.1.0-spack/hwloc-1.11.3-xgdwohjb2...
KeyError
def __enter__(self): """ Entering a stage context will create the stage directory Returns: self """ if self._lock is not None: self._lock.acquire_write(timeout=60) self.create() return self
def __enter__(self): """ Entering a stage context will create the stage directory Returns: self """ self.create() return self
https://github.com/spack/spack/issues/1266
==> Installing cactusext ==> openmpi is already installed in /home/ux452368/comet/src/spack/opt/spack/linux-centos6-x86_64/gcc-6.1.0-spack/openmpi-2.0.0-5l3pomaqonrx3phvbm4kblzsms56ljtj ==> hwloc is already installed in /home/ux452368/comet/src/spack/opt/spack/linux-centos6-x86_64/gcc-6.1.0-spack/hwloc-1.11.3-xgdwohjb2...
KeyError
def __exit__(self, exc_type, exc_val, exc_tb): """ Exiting from a stage context will delete the stage directory unless: - it was explicitly requested not to do so - an exception has been raised Args: exc_type: exception type exc_val: exception value exc_tb: exception traceba...
def __exit__(self, exc_type, exc_val, exc_tb): """ Exiting from a stage context will delete the stage directory unless: - it was explicitly requested not to do so - an exception has been raised Args: exc_type: exception type exc_val: exception value exc_tb: exception traceba...
https://github.com/spack/spack/issues/1266
==> Installing cactusext ==> openmpi is already installed in /home/ux452368/comet/src/spack/opt/spack/linux-centos6-x86_64/gcc-6.1.0-spack/openmpi-2.0.0-5l3pomaqonrx3phvbm4kblzsms56ljtj ==> hwloc is already installed in /home/ux452368/comet/src/spack/opt/spack/linux-centos6-x86_64/gcc-6.1.0-spack/hwloc-1.11.3-xgdwohjb2...
KeyError
def create(self): """ Creates the stage directory If self.tmp_root evaluates to False, the stage directory is created directly under spack.stage_path, otherwise this will attempt to create a stage in a temporary directory and link it into spack.stage_path. Spack will use the first writable...
def create(self): """ Creates the stage directory If self.tmp_root evaluates to False, the stage directory is created directly under spack.stage_path, otherwise this will attempt to create a stage in a temporary directory and link it into spack.stage_path. Spack will use the first writable...
https://github.com/spack/spack/issues/1266
==> Installing cactusext ==> openmpi is already installed in /home/ux452368/comet/src/spack/opt/spack/linux-centos6-x86_64/gcc-6.1.0-spack/openmpi-2.0.0-5l3pomaqonrx3phvbm4kblzsms56ljtj ==> hwloc is already installed in /home/ux452368/comet/src/spack/opt/spack/linux-centos6-x86_64/gcc-6.1.0-spack/hwloc-1.11.3-xgdwohjb2...
KeyError
def _lock(self, op, timeout): """This takes a lock using POSIX locks (``fnctl.lockf``). The lock is implemented as a spin lock using a nonblocking call to lockf(). On acquiring an exclusive lock, the lock writes this process's pid and host to the lock file, in case the holding process needs to...
def _lock(self, op, timeout): """This takes a lock using POSIX locks (``fnctl.lockf``). The lock is implemented as a spin lock using a nonblocking call to lockf(). On acquiring an exclusive lock, the lock writes this process's pid and host to the lock file, in case the holding process needs to...
https://github.com/spack/spack/issues/1904
$ ./spack/bin/spack find Traceback (most recent call last): File "./spack/bin/spack", line 192, in <module> main() File "./spack/bin/spack", line 169, in main return_val = command(parser, args) File "/users/kumbhar/spack/lib/spack/spack/cmd/find.py", line 148, in find specs = set(spack.installed_db.query(**q_args)) Fil...
IOError
def __init__(self, spec, path, installed, ref_count=0): self.spec = spec self.path = str(path) self.installed = bool(installed) self.ref_count = ref_count
def __init__(self, spec, path, installed, ref_count=0): self.spec = spec self.path = path self.installed = installed self.ref_count = ref_count
https://github.com/spack/spack/issues/150
paul ~/C/s/bin > ./spack install memaxes ==> Installing memaxes ==> cmake is already installed in /home/paul/Clinic/spack/opt/spack/x86_64/gcc-5.2.1/cmake-3.0.2-bv634arumx3m47mpynkw5ygmiqdlcykp. ==> Installing qt ==> glib is already installed in /home/paul/Clinic/spack/opt/spack/x86_64/gcc-5.2.1/glib-2.42.1-dwjk6vntaa4...
KeyError
def _write_to_yaml(self, stream): """Write out the databsae to a YAML file. This function does not do any locking or transactions. """ # map from per-spec hash code to installation record. installs = dict((k, v.to_dict()) for k, v in self._data.items()) # database includes installation list an...
def _write_to_yaml(self, stream): """Write out the databsae to a YAML file. This function does not do any locking or transactions. """ # map from per-spec hash code to installation record. installs = dict((k, v.to_dict()) for k, v in self._data.items()) # databaes includes installation list an...
https://github.com/spack/spack/issues/150
paul ~/C/s/bin > ./spack install memaxes ==> Installing memaxes ==> cmake is already installed in /home/paul/Clinic/spack/opt/spack/x86_64/gcc-5.2.1/cmake-3.0.2-bv634arumx3m47mpynkw5ygmiqdlcykp. ==> Installing qt ==> glib is already installed in /home/paul/Clinic/spack/opt/spack/x86_64/gcc-5.2.1/glib-2.42.1-dwjk6vntaa4...
KeyError
def _write(self): """Write the in-memory database index to its file path. Does no locking. """ temp_file = self._index_path + (".%s.%s.temp" % (socket.getfqdn(), os.getpid())) # Write a temporary database file them move it into place try: with open(temp_file, "w") as f: se...
def _write(self): """Write the in-memory database index to its file path. Does no locking. """ temp_name = "%s.%s.temp" % (socket.getfqdn(), os.getpid()) temp_file = join_path(self._db_dir, temp_name) # Write a temporary database file them move it into place try: with open(temp_fi...
https://github.com/spack/spack/issues/150
paul ~/C/s/bin > ./spack install memaxes ==> Installing memaxes ==> cmake is already installed in /home/paul/Clinic/spack/opt/spack/x86_64/gcc-5.2.1/cmake-3.0.2-bv634arumx3m47mpynkw5ygmiqdlcykp. ==> Installing qt ==> glib is already installed in /home/paul/Clinic/spack/opt/spack/x86_64/gcc-5.2.1/glib-2.42.1-dwjk6vntaa4...
KeyError
def find_working_dir(self): # type: () -> Optional[str] view = self._current_view() window = view.window() if view else None file_name = self._current_filename() if file_name: file_dir = os.path.dirname(file_name) if os.path.isdir(file_dir): return file_dir if windo...
def find_working_dir(self): # type: () -> Optional[str] view = self._current_view() window = view.window() if view else None if view and view.file_name(): file_dir = os.path.dirname(view.file_name()) if os.path.isdir(file_dir): return file_dir if window: folders...
https://github.com/timbrel/GitSavvy/issues/1448
Traceback (most recent call last): File "C:\Users\c-flo\AppData\Roaming\Sublime Text 3\Packages\GitSavvy\core\git_command.py", line 157, in git working_dir = self.repo_path File "C:\Users\c-flo\AppData\Roaming\Sublime Text 3\Packages\GitSavvy\core\git_command.py", line 437, in repo_path return self.get_repo_path() File...
AttributeError
def find_repo_path(self): # type: () -> Optional[str] """ Similar to find_working_dir, except that it does not stop on the first directory found, rather on the first git repository found. """ view = self._current_view() window = view.window() if view else None repo_path = None file_...
def find_repo_path(self): # type: () -> Optional[str] """ Similar to find_working_dir, except that it does not stop on the first directory found, rather on the first git repository found. """ view = self._current_view() window = view.window() if view else None repo_path = None # try...
https://github.com/timbrel/GitSavvy/issues/1448
Traceback (most recent call last): File "C:\Users\c-flo\AppData\Roaming\Sublime Text 3\Packages\GitSavvy\core\git_command.py", line 157, in git working_dir = self.repo_path File "C:\Users\c-flo\AppData\Roaming\Sublime Text 3\Packages\GitSavvy\core\git_command.py", line 437, in repo_path return self.get_repo_path() File...
AttributeError
def __init__(self, window=None): # type: (sublime.Window) -> None self._window = window or sublime.active_window() self._global_settings = get_global_settings()
def __init__(self, parent=None): self.parent = parent self.global_settings = sublime.load_settings("GitSavvy.sublime-settings")
https://github.com/timbrel/GitSavvy/issues/1201
Traceback (most recent call last): File "C:\Users\c-flo\AppData\Roaming\Sublime Text 3\Packages\GitSavvy\core\git_command.py", line 220, in git stdout, stderr = self.decode_stdout(stdout), self.decode_stdout(stderr) File "C:\Users\c-flo\AppData\Roaming\Sublime Text 3\Packages\GitSavvy\core\git_command.py", line 277, in...
AttributeError
def get(self, key, default=None): try: return get_project_settings(self._window)[key] except KeyError: return self._global_settings.get(key, default)
def get(self, key, default=None): window = sublime.active_window() view = window.active_view() project_savvy_settings = view.settings().get("GitSavvy", {}) or {} if key in project_savvy_settings: return project_savvy_settings[key] # fall back to old style project setting project_data =...
https://github.com/timbrel/GitSavvy/issues/1201
Traceback (most recent call last): File "C:\Users\c-flo\AppData\Roaming\Sublime Text 3\Packages\GitSavvy\core\git_command.py", line 220, in git stdout, stderr = self.decode_stdout(stdout), self.decode_stdout(stderr) File "C:\Users\c-flo\AppData\Roaming\Sublime Text 3\Packages\GitSavvy\core\git_command.py", line 277, in...
AttributeError
def set(self, key, value): self._global_settings.set(key, value)
def set(self, key, value): self.global_settings.set(key, value)
https://github.com/timbrel/GitSavvy/issues/1201
Traceback (most recent call last): File "C:\Users\c-flo\AppData\Roaming\Sublime Text 3\Packages\GitSavvy\core\git_command.py", line 220, in git stdout, stderr = self.decode_stdout(stdout), self.decode_stdout(stderr) File "C:\Users\c-flo\AppData\Roaming\Sublime Text 3\Packages\GitSavvy\core\git_command.py", line 277, in...
AttributeError
def savvy_settings(self): if not self._savvy_settings: window = ( maybe(lambda: self.window) # type: ignore[attr-defined] or maybe(lambda: self.view.window()) # type: ignore[attr-defined] or sublime.active_window() ) self._savvy_settings = GitSavvySettin...
def savvy_settings(self): if not self._savvy_settings: self._savvy_settings = GitSavvySettings(self) return self._savvy_settings
https://github.com/timbrel/GitSavvy/issues/1201
Traceback (most recent call last): File "C:\Users\c-flo\AppData\Roaming\Sublime Text 3\Packages\GitSavvy\core\git_command.py", line 220, in git stdout, stderr = self.decode_stdout(stdout), self.decode_stdout(stderr) File "C:\Users\c-flo\AppData\Roaming\Sublime Text 3\Packages\GitSavvy\core\git_command.py", line 277, in...
AttributeError
def branch_relatives(self, branch): # type: (str) -> List[str] """Get list of all relatives from ``git show-branch`` results""" output = self.git("show-branch", "--no-color") # type: str try: prelude, body = re.split(r"^-+$", output, flags=re.M) except ValueError: # If there is onl...
def branch_relatives(self, branch): # type: (str) -> List[str] """Get list of all relatives from ``git show-branch`` results""" output = self.git("show-branch", "--no-color") prelude, body = re.split(r"^-+$", output, flags=re.M) match = re.search(r"^(\s+)\*", prelude, re.M) if not match: ...
https://github.com/timbrel/GitSavvy/issues/1261
Traceback (most recent call last): File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 1052, in run_ return self.run() File "/Users/pavel.savchenko/Library/Application Support/Sublime Text 3/Packages/GitSavvy/core/interfaces/rebase.py", line 48, in run RebaseInterface(repo_path=self.repo_path) ...
ValueError
def nearest_branch(self, branch, default="master"): # type: (str, str) -> str """ Find the nearest commit in current branch history that exists on a different branch and return that branch name. If no such branch is found, return the given default ("master" if not specified). """ relat...
def nearest_branch(self, branch, default="master"): # type: (str, str) -> str """ Find the nearest commit in current branch history that exists on a different branch and return that branch name. We filter these branches through a list of known ancestors which have an initial branch point with c...
https://github.com/timbrel/GitSavvy/issues/1261
Traceback (most recent call last): File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 1052, in run_ return self.run() File "/Users/pavel.savchenko/Library/Application Support/Sublime Text 3/Packages/GitSavvy/core/interfaces/rebase.py", line 48, in run RebaseInterface(repo_path=self.repo_path) ...
ValueError
def git( self, *args, stdin=None, working_dir=None, show_panel=False, throw_on_stderr=True, decode=True, encode=True, stdin_encoding="UTF-8", custom_environ=None, ): """ Run the git command specified in `*args` and return the output of the git command as a string. ...
def git( self, *args, stdin=None, working_dir=None, show_panel=False, throw_on_stderr=True, decode=True, encode=True, stdin_encoding="UTF-8", custom_environ=None, ): """ Run the git command specified in `*args` and return the output of the git command as a string. ...
https://github.com/timbrel/GitSavvy/issues/966
'utf-8' codec can't decode byte 0x8a in position 16: invalid start byte Traceback (most recent call last): File "[...]Sublime\Data\Installed Packages\GitSavvy.sublime-package\core/git_command.py", line 215, in git stdout, stderr = self.decode_stdout(stdout), stderr.decode() UnicodeDecodeError: 'utf-8' codec can't deco...
UnicodeDecodeError
def decode_stdout(self, stdout): fallback_encoding = self.savvy_settings.get("fallback_encoding") silent_fallback = self.savvy_settings.get("silent_fallback") try: return stdout.decode() except UnicodeDecodeError: try: return stdout.decode("latin-1") except UnicodeDec...
def decode_stdout(self, stdout): fallback_encoding = self.savvy_settings.get("fallback_encoding") silent_fallback = self.savvy_settings.get("silent_fallback") try: return stdout.decode() except UnicodeDecodeError as unicode_err: try: return stdout.decode("latin-1") ex...
https://github.com/timbrel/GitSavvy/issues/966
'utf-8' codec can't decode byte 0x8a in position 16: invalid start byte Traceback (most recent call last): File "[...]Sublime\Data\Installed Packages\GitSavvy.sublime-package\core/git_command.py", line 215, in git stdout, stderr = self.decode_stdout(stdout), stderr.decode() UnicodeDecodeError: 'utf-8' codec can't deco...
UnicodeDecodeError
def do_action(self, commit_hash, **kwargs): self.git("cherry-pick", commit_hash) sublime.active_window().status_message( "Commit %s cherry-picked successfully." % commit_hash ) util.view.refresh_gitsavvy(self.window.active_view())
def do_action(self, commit_hash, **kwargs): self.git("cherry-pick", commit_hash) self.view.window().status_message( "Commit %s cherry-picked successfully." % commit_hash ) util.view.refresh_gitsavvy(self.window.active_view())
https://github.com/timbrel/GitSavvy/issues/941
Traceback (most recent call last): File "/Users/koenlageveen/Library/Application Support/Sublime Text 3/Installed Packages/GitSavvy.sublime-package/core/ui_mixins/quick_panel.py", line 526, in <lambda> File "/Users/koenlageveen/Library/Application Support/Sublime Text 3/Installed Packages/GitSavvy.sublime-package/core/...
AttributeError
def refresh_gitsavvy( view, refresh_sidebar=False, refresh_status_bar=True, interface_reset_cursor=False ): """ Called after GitSavvy action was taken that may have effected the state of the Git repo. """ if view is None: return if view.settings().get("git_savvy.interface") is not N...
def refresh_gitsavvy( view, refresh_sidebar=False, refresh_status_bar=True, interface_reset_cursor=False ): """ Called after GitSavvy action was taken that may have effected the state of the Git repo. """ if view is None: return if view.settings().get("git_savvy.interface") is not N...
https://github.com/timbrel/GitSavvy/issues/772
Traceback (most recent call last): File "core.git_command in /Users/user/Library/Application Support/Sublime Text 3/Installed Packages/GitSavvy.sublime-package", line 103, in git File "core.git_command in /Users/user/Library/Application Support/Sublime Text 3/Installed Packages/GitSavvy.sublime-package", line 297, in r...
RuntimeError