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

Bug: Pdm install fail due to multidict dep #10

Open
1 of 4 tasks
v3ss0n opened this issue Jul 23, 2024 · 1 comment
Open
1 of 4 tasks

Bug: Pdm install fail due to multidict dep #10

v3ss0n opened this issue Jul 23, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@v3ss0n
Copy link

v3ss0n commented Jul 23, 2024

Description

ERRORS:
add multidict failed:
Traceback (most recent call last):
File "/usr/lib/python3.12/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/nozander/.local/share/pdm/venv/lib/python3.12/site-packages/pdm/installers/synchronizers.py", line 282, in
install_candidate
self.manager.install(can)
File "/home/nozander/.local/share/pdm/venv/lib/python3.12/site-packages/pdm/installers/manager.py", line 33, in install
prepared.build(),
^^^^^^^^^^^^^^^^
File "/home/nozander/.local/share/pdm/venv/lib/python3.12/site-packages/pdm/models/candidates.py", line 418, in build
self._cached = Path(builder.build(build_dir, metadata_directory=self._metadata_dir))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/nozander/.local/share/pdm/venv/lib/python3.12/site-packages/pdm/builders/wheel.py", line 24, in build
filename = self._hook.build_wheel(out_dir, self.config_settings, metadata_directory)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/nozander/.local/share/pdm/venv/lib/python3.12/site-packages/pyproject_hooks/_impl.py", line 256, in
build_wheel
return self._call_hook(
^^^^^^^^^^^^^^^^
File "/home/nozander/.local/share/pdm/venv/lib/python3.12/site-packages/pyproject_hooks/_impl.py", line 392, in _call_hook
self._subprocess_runner(
File "/home/nozander/.local/share/pdm/venv/lib/python3.12/site-packages/pdm/builders/base.py", line 255, in
subprocess_runner
return log_subprocessor(cmd, cwd, extra_environ=env)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/nozander/.local/share/pdm/venv/lib/python3.12/site-packages/pdm/builders/base.py", line 106, in
log_subprocessor
raise build_error(e) from None
pdm.exceptions.BuildError: Build backend raised error: Showing the last 10 lines of the build output:
multidict/_multidict.c:970:37: note: (near initialization for ‘_parser.initialized’)
multidict/_multidict.c:970:43: error: initialization of ‘const char *’ from incompatible pointer type ‘const char * const*’
[-Wincompatible-pointer-types]
970 |     static _PyArg_Parser _parser = {NULL, _keywords, "popall", 0};
|                                           ^~~~~~~~~
multidict/_multidict.c:970:43: note: (near initialization for ‘_parser.format’)
multidict/_multidict.c:970:54: error: initialization of ‘const char * const*’ from incompatible pointer type ‘char *’
[-Wincompatible-pointer-types]
970 |     static _PyArg_Parser _parser = {NULL, _keywords, "popall", 0};
|                                                      ^~~~~~~~
multidict/_multidict.c:970:54: note: (near initialization for ‘_parser.keywords’)
error: command '/usr/bin/gcc' failed with exit code 1

See /home/nozander/.local/state/pdm/log/pdm-install-i5_zseup.log for detailed debug log.
[InstallationError]: Some package operations are not complete yet

URL to code causing the issue

No response

MCVE

No response

Steps to reproduce

- Clone repo
- `pdm install`

Screenshots

"![SCREENSHOT_DESCRIPTION](SCREENSHOT_LINK.png)"

Logs

No response

Litestar Version

2.4.1

Platform

  • Linux
  • Mac
  • Windows
  • Other (Please specify in the description above)
@v3ss0n v3ss0n added bug Something isn't working triage required Requires evaluation by a maintainer labels Jul 23, 2024
@Alc-Alc Alc-Alc removed the triage required Requires evaluation by a maintainer label Jul 23, 2024
@Alc-Alc
Copy link

Alc-Alc commented Jul 23, 2024

Thank you, I can confirm this is a bug

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants