You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched the issue tracker and believe that this is not a duplicate.
Steps to reproduce
pdm init
pdm add spyder -v
Actual behavior
Installation remains at installation step of package "py" without ever returning or throwing an error. I left the console open for multiple hours. Nothing happens and it just remains at this step.
From the verbose output it looks like stuck while/after downloading of package wheel.
pdm.termui: Installing setuptools 65.6.3
unearth: Downloading <Link https://files.pythonhosted.org/packages/ef/e3/29d6e1a07e8d90ace4a522d9689d03e833b67b50d1588e693eec15f26251/setuptools-65.6.3-py3-none-any.whl (from None)> to C:\Users\V49V5CJ\AppData\Local\Temp\pdm-build-7hgrx807\setuptools-65.6.3-py3-none-any.whl
pdm.termui: Installing wheel 0.38.4
unearth: Downloading <Link https://files.pythonhosted.org/packages/bd/7c/d38a0b30ce22fc26ed7dbc087c6d00851fb3395e9d0dac40bec1f905030c/wheel-0.38.4-py3-none-any.whl (from None)> to C:\Users\V49V5CJ\AppData\Local\Temp\pdm-build-l7ylfs6d\wheel-0.38.4-py3-none-any.whl
pdm.termui: Traceback (most recent call last):
pdm.termui: File "C:\Users\V49V5CJ\AppData\Local\Programs\Python\Python39\lib\site-packages\pep517\in_process\_in_process.py", line 351, in<module>
pdm.termui: main()
pdm.termui: File "C:\Users\V49V5CJ\AppData\Local\Programs\Python\Python39\lib\site-packages\pep517\in_process\_in_process.py", line 333, in main
pdm.termui: json_out['return_val'] = hook(**hook_input['kwargs'])
pdm.termui: File "C:\Users\V49V5CJ\AppData\Local\Programs\Python\Python39\lib\site-packages\pep517\in_process\_in_process.py", line 118, in get_requires_for_build_wheel
pdm.termui: return hook(config_settings)
pdm.termui: File "C:\Users\V49V5CJ\AppData\Local\Temp\pdm-build-env-89iki2fk-shared\Lib\site-packages\setuptools\build_meta.py", line 338, in get_requires_for_build_wheel
pdm.termui: return self._get_build_requires(config_settings, requirements=['wheel'])
pdm.termui: File "C:\Users\V49V5CJ\AppData\Local\Temp\pdm-build-env-89iki2fk-shared\Lib\site-packages\setuptools\build_meta.py", line 320, in _get_build_requires
pdm.termui: self.run_setup()
pdm.termui: File "C:\Users\V49V5CJ\AppData\Local\Temp\pdm-build-env-89iki2fk-shared\Lib\site-packages\setuptools\build_meta.py", line 484, in run_setup
pdm.termui: super(_BuildMetaLegacyBackend,
pdm.termui: File "C:\Users\V49V5CJ\AppData\Local\Temp\pdm-build-env-89iki2fk-shared\Lib\site-packages\setuptools\build_meta.py", line 335, in run_setup
pdm.termui: exec(code, locals())
pdm.termui: File "<string>", line 26, in<module>
pdm.termui: File "C:\Users\V49V5CJ\AppData\Local\Temp\pdm-build-4xhuow3n\pyobjc_setup.py", line 460, in Extension
pdm.termui: os_level = get_sdk_level()
pdm.termui: File "C:\Users\V49V5CJ\AppData\Local\Temp\pdm-build-4xhuow3n\pyobjc_setup.py", line 258, in get_sdk_level
pdm.termui: sdk = get_sdk()
pdm.termui: File "C:\Users\V49V5CJ\AppData\Local\Temp\pdm-build-4xhuow3n\pyobjc_setup.py", line 243, in get_sdk
pdm.termui: cflags = shlex.split(cflags_str)
pdm.termui: File "C:\Users\V49V5CJ\AppData\Local\Programs\Python\Python39\lib\shlex.py", line 315, in split
pdm.termui: return list(lex)
pdm.termui: File "C:\Users\V49V5CJ\AppData\Local\Programs\Python\Python39\lib\shlex.py", line 300, in __next__
pdm.termui: token = self.get_token()
pdm.termui: File "C:\Users\V49V5CJ\AppData\Local\Programs\Python\Python39\lib\shlex.py", line 109, in get_token
pdm.termui: raw = self.read_token()
pdm.termui: File "C:\Users\V49V5CJ\AppData\Local\Programs\Python\Python39\lib\shlex.py", line 140, in read_token
pdm.termui: nextchar = self.instream.read(1)
pdm.termui: KeyboardInterrupt
Traceback (most recent call last):
File "C:\Users\V49V5CJ\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\V49V5CJ\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "C:\Users\V49V5CJ\AppData\Local\Programs\Python\Python39\Scripts\pdm.exe\__main__.py", line 7, in<module>
File "C:\Users\V49V5CJ\AppData\Local\Programs\Python\Python39\lib\site-packages\pdm\core.py", line 258, in main
returnCore().main(args)
File "C:\Users\V49V5CJ\AppData\Local\Programs\Python\Python39\lib\site-packages\pdm\core.py", line 185, in main
f(project, options)
File "C:\Users\V49V5CJ\AppData\Local\Programs\Python\Python39\lib\site-packages\pdm\cli\commands\add.py", line 58, in handle
actions.do_add(
File "C:\Users\V49V5CJ\AppData\Local\Programs\Python\Python39\lib\site-packages\pdm\cli\actions.py", line 289, in do_add
resolved = do_lock(
File "C:\Users\V49V5CJ\AppData\Local\Programs\Python\Python39\lib\site-packages\pdm\cli\actions.py", line 99, in do_lock
mapping, dependencies = resolve(
File "C:\Users\V49V5CJ\AppData\Local\Programs\Python\Python39\lib\site-packages\pdm\resolver\core.py", line 30, in resolve
result = resolver.resolve(requirements, max_rounds)
File "C:\Users\V49V5CJ\AppData\Local\Programs\Python\Python39\lib\site-packages\resolvelib\resolvers.py", line 481, in resolve
state = resolution.resolve(requirements, max_rounds=max_rounds)
File "C:\Users\V49V5CJ\AppData\Local\Programs\Python\Python39\lib\site-packages\resolvelib\resolvers.py", line 373, in resolve
failure_causes = self._attempt_to_pin_criterion(name)
File "C:\Users\V49V5CJ\AppData\Local\Programs\Python\Python39\lib\site-packages\resolvelib\resolvers.py", line 213, in _attempt_to_pin_criterion
criteria = self._get_updated_criteria(candidate)
File "C:\Users\V49V5CJ\AppData\Local\Programs\Python\Python39\lib\site-packages\resolvelib\resolvers.py", line 203, in _get_updated_criteria
forrequirementin self._p.get_dependencies(candidate=candidate):
File "C:\Users\V49V5CJ\AppData\Local\Programs\Python\Python39\lib\site-packages\pdm\resolver\providers.py", line 187, in get_dependencies
deps, requires_python, _ = self.repository.get_dependencies(candidate)
File "C:\Users\V49V5CJ\AppData\Local\Programs\Python\Python39\lib\site-packages\pdm\models\repositories.py", line 78, in get_dependencies
requirements, requires_python, summary = getter(candidate)
File "C:\Users\V49V5CJ\AppData\Local\Programs\Python\Python39\lib\site-packages\pdm\models\repositories.py", line 35, in wrapper
result = func(self, candidate)
File "C:\Users\V49V5CJ\AppData\Local\Programs\Python\Python39\lib\site-packages\pdm\models\repositories.py", line 235, in _get_dependencies_from_metadata
deps = prepared.get_dependencies_from_metadata()
File "C:\Users\V49V5CJ\AppData\Local\Programs\Python\Python39\lib\site-packages\pdm\models\candidates.py", line 521, in get_dependencies_from_metadata
self.req.project_name, self.metadata.requires or [], extras # type: ignore
File "C:\Users\V49V5CJ\AppData\Local\Programs\Python\Python39\lib\site-packages\pdm\models\candidates.py", line 505, in metadata
result = self.prepare_metadata()
File "C:\Users\V49V5CJ\AppData\Local\Programs\Python\Python39\lib\site-packages\pdm\models\candidates.py", line 484, in prepare_metadata
self._metadata_dir = builder(
File "C:\Users\V49V5CJ\AppData\Local\Programs\Python\Python39\lib\site-packages\pdm\builders\wheel.py", line 14, in prepare_metadata
requires = self._hook.get_requires_for_build_wheel(config_settings)
File "C:\Users\V49V5CJ\AppData\Local\Programs\Python\Python39\lib\site-packages\pep517\wrappers.py", line 173, in get_requires_for_build_wheel
return self._call_hook('get_requires_for_build_wheel', {
File "C:\Users\V49V5CJ\AppData\Local\Programs\Python\Python39\lib\site-packages\pep517\wrappers.py", line 309, in _call_hook
self._subprocess_runner(
File "C:\Users\V49V5CJ\AppData\Local\Programs\Python\Python39\lib\site-packages\pdm\builders\base.py", line 242, in subprocess_runner
return log_subprocessor(cmd, cwd, extra_environ=env)
File "C:\Users\V49V5CJ\AppData\Local\Programs\Python\Python39\lib\site-packages\pdm\builders\base.py", line 76, in log_subprocessor
subprocess.check_call(
File "C:\Users\V49V5CJ\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 368, in check_call
retcode = call(*popenargs, **kwargs)
File "C:\Users\V49V5CJ\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 351, in call
return p.wait(timeout=timeout)
File "C:\Users\V49V5CJ\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 1189, inwaitreturn self._wait(timeout=timeout)
File "C:\Users\V49V5CJ\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 1470, in _wait
result = _winapi.WaitForSingleObject(self._handle,
KeyboardInterrupt
^C
Expected behavior
Spyder should be installed
Environment Information
# Paste the output of `pdm info && pdm info --env` below:
C:\ProjTMS\_pdmTest>pdm info && pdm info --env
PDM version:
2.2.1
Python Interpreter:
C:\ProjTMS\_pdmTest\.venv\Scripts\python.exe (3.9)
Project Root:
C:/ProjTMS/_pdmTest
Project Packages:
None
{
"implementation_name": "cpython",
"implementation_version": "3.9.13",
"os_name": "nt",
"platform_machine": "AMD64",
"platform_release": "10",
"platform_system": "Windows",
"platform_version": "10.0.19042",
"python_full_version": "3.9.13",
"platform_python_implementation": "CPython",
"python_version": "3.9",
"sys_platform": "win32"
}
The text was updated successfully, but these errors were encountered:
It is trying to build a darwin-only package on Windows. Because PDM is producing cross-platform lockfiles, these packages and their dependencies, which may be also platform-specific, need to be built for the metadata. pip doesn't bother with cross-platform resolution so it just skips them.
Do not know what is going on but the building might hold the process, will double-check when I get a Windows computer.
On Windows, get_config_var("CFLAGS") returns a None, and passing None to shlex.split will make it read from the stdin, which causes a block. Sadly there is no way to change it from a builder. It may help to file an issue to pyobjc to give it an empty string as the default value.
By the way, spyder, a user-side program(aka user dependency), isn't likely to appear in a dependencies list of a project(project dependencies).
Steps to reproduce
Actual behavior
Installation remains at installation step of package "py" without ever returning or throwing an error. I left the console open for multiple hours. Nothing happens and it just remains at this step.
From the verbose output it looks like stuck while/after downloading of package wheel.
Console Output
Traceback of Keyboard Interrupt
Expected behavior
Spyder should be installed
Environment Information
The text was updated successfully, but these errors were encountered: