nekitdev/gd.py

Unable to install the development build

Closed this issue · 1 comments

Running pip install https://github.com/NeKitDS/gd.py/archive/master.zip yields this error:

Building wheels for collected packages: gd-py
  Building wheel for gd-py (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for gd-py (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [38 lines of output]
      Traceback (most recent call last):
        File "E:\.Projects\.GDAI\gd.py-main\build.py", line 87, in <module>
          def main() -> None:
        File "C:\Users\User\AppData\Local\Temp\pip-build-env-v_tocymm\overlay\Lib\site-packages\entrypoint\core.py", line 41, in __call__
          return self.call(main)
        File "C:\Users\User\AppData\Local\Temp\pip-build-env-v_tocymm\overlay\Lib\site-packages\entrypoint\core.py", line 36, in call
          main()
        File "E:\.Projects\.GDAI\gd.py-main\build.py", line 88, in main
          build({})  # type: ignore
        File "E:\.Projects\.GDAI\gd.py-main\build.py", line 57, in build
          result = call(build_command(output_path))
        File "e:\python39\lib\subprocess.py", line 349, in call
          with Popen(*popenargs, **kwargs) as p:
        File "e:\python39\lib\subprocess.py", line 951, in __init__
          self._execute_child(args, executable, preexec_fn, close_fds,
        File "e:\python39\lib\subprocess.py", line 1420, in _execute_child
          hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
      FileNotFoundError: [WinError 2] The system cannot find the file specified
      Traceback (most recent call last):
        File "e:\python39\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module>
          main()
        File "e:\python39\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
        File "e:\python39\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 251, in build_wheel
          return _build_backend().build_wheel(wheel_directory, config_settings,
        File "C:\Users\User\AppData\Local\Temp\pip-build-env-v_tocymm\overlay\Lib\site-packages\poetry\core\masonry\api.py", line 57, in build_wheel
          return WheelBuilder.make_in(
        File "C:\Users\User\AppData\Local\Temp\pip-build-env-v_tocymm\overlay\Lib\site-packages\poetry\core\masonry\builders\wheel.py", line 88, in make_in
          wb.build(target_dir=directory)
        File "C:\Users\User\AppData\Local\Temp\pip-build-env-v_tocymm\overlay\Lib\site-packages\poetry\core\masonry\builders\wheel.py", line 123, in build
          self._build(zip_file)
        File "C:\Users\User\AppData\Local\Temp\pip-build-env-v_tocymm\overlay\Lib\site-packages\poetry\core\masonry\builders\wheel.py", line 172, in _build
          self._run_build_script(self._package.build_script)
        File "C:\Users\User\AppData\Local\Temp\pip-build-env-v_tocymm\overlay\Lib\site-packages\poetry\core\masonry\builders\wheel.py", line 232, in _run_build_script
          subprocess.check_call([self.executable.as_posix(), build_script])
        File "e:\python39\lib\subprocess.py", line 373, in check_call
          raise CalledProcessError(retcode, cmd)
      subprocess.CalledProcessError: Command '['e:/python39/python.exe', 'build.py']' returned non-zero exit status 1.
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for gd-py
Failed to build gd-py
ERROR: Could not build wheels for gd-py, which is required to install pyproject.toml-based projects

fixed by installing poetry.