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

can't install aiograph with poetry #10

Open
bomzheg opened this issue Nov 17, 2022 · 1 comment
Open

can't install aiograph with poetry #10

bomzheg opened this issue Nov 17, 2022 · 1 comment

Comments

@bomzheg
Copy link

bomzheg commented Nov 17, 2022

i am trying to install from git but i get a error.
here is my pyproject.toml

Updating dependencies
Resolving dependencies...

Writing lock file

Package operations: 1 install, 0 updates, 0 removals

  • Installing aiograph (0.2 a00aace)

  CalledProcessError

  Command 'C:\Users\bomzh\AppData\Local\pypoetry\Cache\virtualenvs\shvatka-ESq-9BnS-py3.10\Scripts\python.exe -m pip install --use-pep517 --disable-pip-version-check --prefix C:\Users\
bomzh\AppData\Local\pypoetry\Cache\virtualenvs\shvatka-ESq-9BnS-py3.10 --upgrade --no-deps C:\Users\bomzh\AppData\Local\pypoetry\Cache\virtualenvs\shvatka-ESq-9BnS-py3.10\src\aiograph' returned non-zero exit status 1.

  at C:\Program Files\Python311\Lib\subprocess.py:569 in run
       565│             # We don't call process.wait() as .__exit__ does that for us.
       566│             raise
       567│         retcode = process.poll()
       568│         if check and retcode:
    →  569│             raise CalledProcessError(retcode, process.args,
       570│                                      output=stdout, stderr=stderr)
       571│     return CompletedProcess(process.args, retcode, stdout, stderr)
       572│
       573│

The following error occurred when trying to handle this error:


  EnvCommandError

  Command C:\Users\bomzh\AppData\Local\pypoetry\Cache\virtualenvs\shvatka-ESq-9BnS-py3.10\Scripts\python.exe -m pip install --use-pep517 --disable-pip-version-check --prefix C:\Users\b
omzh\AppData\Local\pypoetry\Cache\virtualenvs\shvatka-ESq-9BnS-py3.10 --upgrade --no-deps C:\Users\bomzh\AppData\Local\pypoetry\Cache\virtualenvs\shvatka-ESq-9BnS-py3.10\src\aiograph errored with the following return code 1, and output:
  Processing c:\users\bomzh\appdata\local\pypoetry\cache\virtualenvs\shvatka-esq-9bns-py3.10\src\aiograph
    Installing build dependencies: started
    Installing build dependencies: finished with status 'done'
    Getting requirements to build wheel: started
    Getting requirements to build wheel: finished with status 'error'
    error: subprocess-exited-with-error

    Getting requirements to build wheel did not run successfully.
    exit code: 1

    [23 lines of output]
    Traceback (most recent call last):
      File "<string>", line 12, in <module>
    ModuleNotFoundError: No module named 'pip'

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "C:\Users\bomzh\AppData\Local\pypoetry\Cache\virtualenvs\shvatka-ESq-9BnS-py3.10\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 351, in <module>      
        main()
      File "C:\Users\bomzh\AppData\Local\pypoetry\Cache\virtualenvs\shvatka-ESq-9BnS-py3.10\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 333, in main
        json_out['return_val'] = hook(**hook_input['kwargs'])
      File "C:\Users\bomzh\AppData\Local\pypoetry\Cache\virtualenvs\shvatka-ESq-9BnS-py3.10\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 118, in get_requires_for_build_wheel
        return hook(config_settings)
      File "C:\Users\bomzh\AppData\Local\Temp\pip-build-env-_ir94xd_\overlay\Lib\site-packages\setuptools\build_meta.py", line 338, in get_requires_for_build_wheel
        return self._get_build_requires(config_settings, requirements=['wheel'])
      File "C:\Users\bomzh\AppData\Local\Temp\pip-build-env-_ir94xd_\overlay\Lib\site-packages\setuptools\build_meta.py", line 320, in _get_build_requires
        self.run_setup()
      File "C:\Users\bomzh\AppData\Local\Temp\pip-build-env-_ir94xd_\overlay\Lib\site-packages\setuptools\build_meta.py", line 483, in run_setup
        super(_BuildMetaLegacyBackend,
      File "C:\Users\bomzh\AppData\Local\Temp\pip-build-env-_ir94xd_\overlay\Lib\site-packages\setuptools\build_meta.py", line 335, in run_setup
        exec(code, locals())
      File "<string>", line 14, in <module>
    ModuleNotFoundError: No module named 'pip'
    [end of output]

    note: This error originates from a subprocess, and is likely not a problem with pip.
  error: subprocess-exited-with-error

  Getting requirements to build wheel did not run successfully.
  exit code: 1

  See above for output.

  note: This error originates from a subprocess, and is likely not a problem with pip.


  at ~\AppData\Roaming\pypoetry\venv\Lib\site-packages\poetry\utils\env.py:1476 in _run
      1472│                 output = subprocess.check_output(
      1473│                     command, stderr=subprocess.STDOUT, env=env, **kwargs
      1474│                 )
      1475│         except CalledProcessError as e:
    → 1476│             raise EnvCommandError(e, input=input_)
      1477│
      1478│         return decode(output)
      1479│
      1480│     def execute(self, bin: str, *args: str, **kwargs: Any) -> int:

The following error occurred when trying to handle this error:


  PoetryException

  Failed to install C:/Users/bomzh/AppData/Local/pypoetry/Cache/virtualenvs/shvatka-ESq-9BnS-py3.10/src/aiograph

  at ~\AppData\Roaming\pypoetry\venv\Lib\site-packages\poetry\utils\pip.py:51 in pip_install
       47│
       48│     try:
       49│         return environment.run_pip(*args)
       50│     except EnvCommandError as e:
    →  51│         raise PoetryException(f"Failed to install {path.as_posix()}") from e
       52│

same error on GitHub actions

@radzih
Copy link

radzih commented Jan 26, 2023

What python version?

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

2 participants