Skip to content

"Package 'py-cylp' not found" on Python 2.7 #32607

@alalazo

Description

@alalazo

Steps to reproduce

This error started appearing after #32579 was merged (with a non-required test failing). It can be reproduced using Python 2.7 as an interpreter:

$ python2.7  bin/spack  info py-cylp
==> Error: Package 'py-cylp' not found.
You may need to run 'spack clean -m'.

Error message

$ python2.7  bin/spack -d info py-cylp
==> [2022-09-12-10:12:11.620486] Imported info from built-in commands
==> [2022-09-12-10:12:11.621422] Imported info from built-in commands
==> [2022-09-12-10:12:11.621997] Reading config from file /home/culpo/PycharmProjects/spack/etc/spack/defaults/repos.yaml
==> [2022-09-12-10:12:11.623966] Skipping nonexistent config path /home/culpo/PycharmProjects/spack/etc/spack/defaults/linux/repos.yaml
==> [2022-09-12-10:12:11.624025] Skipping nonexistent config path /etc/spack/repos.yaml
==> [2022-09-12-10:12:11.624067] Skipping nonexistent config path /etc/spack/linux/repos.yaml
==> [2022-09-12-10:12:11.624095] Skipping nonexistent config path /home/culpo/PycharmProjects/spack/etc/spack/repos.yaml
==> [2022-09-12-10:12:11.624128] Skipping nonexistent config path /home/culpo/PycharmProjects/spack/etc/spack/linux/repos.yaml
==> [2022-09-12-10:12:11.624156] Skipping nonexistent config path /home/culpo/.spack/repos.yaml
==> [2022-09-12-10:12:11.624183] Skipping nonexistent config path /home/culpo/.spack/linux/repos.yaml
==> [2022-09-12-10:12:11.626531] UnknownPackageError: Package 'py-cylp' not found.
    You may need to run 'spack clean -m'.
==> [2022-09-12-10:12:11.626582] Error: Package 'py-cylp' not found.
You may need to run 'spack clean -m'.
Traceback (most recent call last):
  File "/home/culpo/PycharmProjects/spack/lib/spack/spack/main.py", line 977, in main
    return _main(argv)
  File "/home/culpo/PycharmProjects/spack/lib/spack/spack/main.py", line 932, in _main
    return finish_parse_and_run(parser, cmd_name, env_format_error)
  File "/home/culpo/PycharmProjects/spack/lib/spack/spack/main.py", line 960, in finish_parse_and_run
    return _invoke_command(command, parser, args, unknown)
  File "/home/culpo/PycharmProjects/spack/lib/spack/spack/main.py", line 609, in _invoke_command
    return_val = command(parser, args)
  File "/home/culpo/PycharmProjects/spack/lib/spack/spack/cmd/info.py", line 389, in info
    pkg_cls = spack.repo.path.get_pkg_class(spec.name)
  File "/home/culpo/PycharmProjects/spack/lib/spack/spack/repo.py", line 962, in get_pkg_class
    return self.repo_for_pkg(pkg_name).get_pkg_class(pkg_name)
  File "/home/culpo/PycharmProjects/spack/lib/spack/spack/repo.py", line 1308, in get_pkg_class
    raise UnknownPackageError(pkg_name)
spack.repo.UnknownPackageError: Package 'py-cylp' not found.
    You may need to run 'spack clean -m'.

Information on your system

  • Spack: 0.19.0.dev0 (d4ec0da)
  • Python: 2.7.18
  • Platform: linux-ubuntu20.04-icelake
  • Concretizer: clingo

It is very likely caused by some encoding issue

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingciIssues related to Continuous Integrationimpact-medium

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions