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

uvloop 라이브러리 호환성 문제 #1

Closed
1105nam opened this issue Apr 15, 2024 · 1 comment
Closed

uvloop 라이브러리 호환성 문제 #1

1105nam opened this issue Apr 15, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@1105nam
Copy link
Collaborator

1105nam commented Apr 15, 2024

이슈요약

해결방안(제안)

  • 대체 라이브러리 Winloop 사용
  • 성능향상을 포기하고 asyncio 라이브러리 사용
  • 리눅스 가상환경 또는 WSL 환경에서 개발

에러 메시지 전문

  Using cached uvloop-0.19.0.tar.gz (2.3 MB)
  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
  
  [18 lines of output]
  Traceback (most recent call last):
    File "D:\Dev\OSS\narae\venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module>
      main()
    File "D:\Dev\OSS\narae\venv\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 "D:\Dev\OSS\narae\venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 118, in get_requires_for_build_wheel
      return hook(config_settings)
             ^^^^^^^^^^^^^^^^^^^^^
    File "C:\Users\nam\AppData\Local\Temp\pip-build-env-1p1m91gk\overlay\Lib\site-packages\setuptools\build_meta.py", line 325, in get_requires_for_build_wheel
      return self._get_build_requires(config_settings, requirements=['wheel'])
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "C:\Users\nam\AppData\Local\Temp\pip-build-env-1p1m91gk\overlay\Lib\site-packages\setuptools\build_meta.py", line 295, in _get_build_requires
      self.run_setup()
    File "C:\Users\nam\AppData\Local\Temp\pip-build-env-1p1m91gk\overlay\Lib\site-packages\setuptools\build_meta.py", line 311, in run_setup
      exec(code, locals())
    File "<string>", line 8, in <module>
  RuntimeError: uvloop does not support Windows at the moment
  [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.

@IamGroooooot

@1105nam 1105nam added the bug Something isn't working label Apr 15, 2024
@IamGroooooot
Copy link
Contributor

uvicorn을 설치하면서 갖게 된 의존성인데 찾아보니 uvloop은 필수적이지 않다고 합니다.
해당 의존성은 커밋에서 삭제했습니다.

참고: https://stackoverflow.com/questions/70731019/is-it-impossible-developing-with-fastapi-uvloop-windows

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