Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upstreams using specialized repos fail to concretize #33899

Open
3 tasks done
psakievich opened this issue Nov 14, 2022 · 1 comment
Open
3 tasks done

Upstreams using specialized repos fail to concretize #33899

psakievich opened this issue Nov 14, 2022 · 1 comment
Labels

Comments

@psakievich
Copy link
Contributor

Steps to reproduce

Recently spack has stopped working with an upstream that we've been using for months. The upstream has it's own repo called cde where some package modifications are done.
Now when we try to concretize we get an Unknown namespace error.

spack config add upstreams:fails:install_tree:/upstream/with/custom/repo/spack/opt/spack
spack concretize 

Error message

spack -d concretize
[...]
 UnknownNamespaceError: Unknown namespace: cde
==> [2022-11-14-12:25:58.778921] Error: Unknown namespace: cde
Traceback (most recent call last):
  File "/home/psakiev/soft/spack-manager/spack/lib/spack/spack/main.py", line 1007, in main
    return _main(argv)
  File "/home/psakiev/soft/spack-manager/spack/lib/spack/spack/main.py", line 962, in _main
    return finish_parse_and_run(parser, cmd_name, env_format_error)
  File "/home/psakiev/soft/spack-manager/spack/lib/spack/spack/main.py", line 990, in finish_parse_and_run
    return _invoke_command(command, parser, args, unknown)
  File "/home/psakiev/soft/spack-manager/spack/lib/spack/spack/main.py", line 639, in _invoke_command
    return_val = command(parser, args)
  File "/home/psakiev/soft/spack-manager/spack/lib/spack/spack/cmd/concretize.py", line 45, in concretize
    concretized_specs = env.concretize(force=args.force, tests=tests)
  File "/home/psakiev/soft/spack-manager/spack/lib/spack/spack/environment/environment.py", line 1279, in concretize
    return self._concretize_together(tests=tests)
  File "/home/psakiev/soft/spack-manager/spack/lib/spack/spack/environment/environment.py", line 1332, in _concretize_together
    *self.user_specs, tests=tests
  File "/home/psakiev/soft/spack-manager/spack/lib/spack/spack/concretize.py", line 739, in concretize_specs_together
    return _concretize_specs_together_new(*abstract_specs, **kwargs)
  File "/home/psakiev/soft/spack-manager/spack/lib/spack/spack/concretize.py", line 748, in _concretize_specs_together_new
    result = solver.solve(abstract_specs)
  File "/home/psakiev/soft/spack-manager/spack/lib/spack/spack/solver/asp.py", line 2433, in solve
    result, _, _ = self.driver.solve(setup, specs, reuse=reusable_specs, output=output)
  File "/home/psakiev/soft/spack-manager/spack/lib/spack/spack/solver/asp.py", line 627, in solve
    setup.setup(self, specs, reuse=reuse)
  File "/home/psakiev/soft/spack-manager/spack/lib/spack/spack/solver/asp.py", line 1987, in setup
    self._facts_from_concrete_spec(reusable_spec, possible)
  File "/home/psakiev/soft/spack-manager/spack/lib/spack/spack/solver/asp.py", line 1895, in _facts_from_concrete_spec
    self.impose(h, spec, body=True)
  File "/home/psakiev/soft/spack-manager/spack/lib/spack/spack/solver/asp.py", line 1088, in impose
    imposed_constraints = self.spec_clauses(imposed_spec, body=body, required_from=name)
  File "/home/psakiev/soft/spack-manager/spack/lib/spack/spack/solver/asp.py", line 1311, in spec_clauses
    clauses = self._spec_clauses(*args, **kwargs)
  File "/home/psakiev/soft/spack-manager/spack/lib/spack/spack/solver/asp.py", line 1476, in _spec_clauses
    for virtual in dep.package.virtuals_provided:
  File "/home/psakiev/soft/spack-manager/spack/lib/spack/spack/spec.py", line 1639, in package
    self._package = spack.repo.path.get(self)
  File "/home/psakiev/soft/spack-manager/spack/lib/spack/spack/repo.py", line 977, in get
    return self.repo_for_pkg(spec).get(spec)
  File "/home/psakiev/soft/spack-manager/spack/lib/spack/spack/repo.py", line 960, in repo_for_pkg
    raise UnknownNamespaceError(namespace, name=name)
spack.repo.UnknownNamespaceError: Unknown namespace: cde

Information on your system

  • Spack: 0.19.0.dev0 (f92987b)
  • Python: 3.7.5
  • Platform: linux-rhel7-cascadelake
  • Concretizer: clingo

General information

  • I have run spack debug report and reported the version of Spack/Python/Platform
  • I have searched the issues of this repo and believe this is not a duplicate
  • I have run the failing commands in debug mode and reported the output
@psakievich psakievich added bug Something isn't working triage The issue needs to be prioritized labels Nov 14, 2022
@psakievich
Copy link
Contributor Author

@becker33 looks like this is due to #32434

@alalazo alalazo added this to the v0.20.0 milestone Apr 7, 2023
@alalazo alalazo modified the milestones: v0.20.0, v0.21.0 May 3, 2023
@alalazo alalazo removed their assignment May 30, 2023
@alalazo alalazo removed this from the v0.21.0 milestone Jun 7, 2023
@alalazo alalazo added the repos label Jul 7, 2023
@alalazo alalazo added pkg-database impact-low and removed triage The issue needs to be prioritized labels Jul 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Todo
Development

No branches or pull requests

3 participants