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

Cannot use PDM on OpenBSD 7.6 (arch x86-64) #7

Open
francis-clairicia opened this issue Nov 11, 2024 · 0 comments
Open

Cannot use PDM on OpenBSD 7.6 (arch x86-64) #7

francis-clairicia opened this issue Nov 11, 2024 · 0 comments

Comments

@francis-clairicia
Copy link

francis-clairicia commented Nov 11, 2024

Bug description

I tried to use PDM on OpenBSD ( using vmactions/openbsd-vm ) and the installation commands failed.

Expected behavior

pdm install and pdm sync work.

Actual behavior

I get this error after running pdm install --frozen-lockfile:

Traceback (most recent call last):
    File "/usr/local/bin/pdm", line 8, in <module>
      sys.exit(main())
               ^^^^^^
    File "/usr/local/venv/lib/python3.11/site-packages/pdm/core.py", line 379, in main
      return core.main(args or sys.argv[1:])
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/usr/local/venv/lib/python3.11/site-packages/pdm/core.py", line 267, in main
      raise cast(Exception, err).with_traceback(traceback) from None
    File "/usr/local/venv/lib/python3.11/site-packages/pdm/core.py", line 262, in main
      self.handle(project, options)
    File "/usr/local/venv/lib/python3.11/site-packages/pdm/core.py", line 194, in handle
      command.handle(project, options)
    File "/usr/local/venv/lib/python3.11/site-packages/pdm/cli/commands/install.py", line 103, in handle
      actions.do_sync(
    File "/usr/local/venv/lib/python3.11/site-packages/pdm/cli/actions.py", line 284, in do_sync
      packages = list(resolve_from_lockfile(project, requirements, groups=list(selection)))
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/usr/local/venv/lib/python3.11/site-packages/pdm/cli/actions.py", line 176, in resolve_from_lockfile
      env_spec = project.environment.spec
                 ^^^^^^^^^^^^^^^^^^^^^^^^
    File "/usr/local/lib/python3.11/functools.py", line 1001, in __get__
      val = self.func(instance)
            ^^^^^^^^^^^^^^^^^^^
    File "/usr/local/venv/lib/python3.11/site-packages/pdm/environments/base.py", line 186, in spec
      return get_env_spec(self.interpreter.executable.as_posix())
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/usr/local/venv/lib/python3.11/site-packages/pdm/models/in_process/__init__.py", line 56, in get_env_spec
      return EnvSpec.from_spec(**json.loads(subprocess.check_output([executable, "-EsS", script, *shared_libs])))
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/usr/local/venv/lib/python3.11/site-packages/dep_logic/tags/tags.py", line 139, in from_spec
      Platform.parse(platform) if platform else None,
      ^^^^^^^^^^^^^^^^^^^^^^^^
    File "/usr/local/venv/lib/python3.11/site-packages/dep_logic/tags/platform.py", line 88, in parse
      return cls(_os_mapping[os_](release), Arch.parse(arch))
                                            ^^^^^^^^^^^^^^^^
    File "/usr/local/venv/lib/python3.11/site-packages/dep_logic/tags/platform.py", line 386, in parse
      return cls(arch)
             ^^^^^^^^^
    File "/usr/local/lib/python3.11/enum.py", line 714, in __call__
      return cls.__new__(cls, value)
             ^^^^^^^^^^^^^^^^^^^^^^^
    File "/usr/local/lib/python3.11/enum.py", line 1137, in __new__
      raise ve_exc
  ValueError: '64' is not a valid Arch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant