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

pip install botbuilder-integration-aiohttp fails #1

Open
pietheinstrengholt opened this issue Jun 9, 2023 · 3 comments
Open

pip install botbuilder-integration-aiohttp fails #1

pietheinstrengholt opened this issue Jun 9, 2023 · 3 comments

Comments

@pietheinstrengholt
Copy link

Hi there,

I'm trying to setup this locally, but the requirements fail to install. It's the botbuilder-integration-aiohttp package that fails. See below. Any suggestion for this?

C:\GitHub\Azure-Cognitive-Search-Azure-OpenAI-Accelerator>pip install botbuilder-integration-aiohttp
Collecting botbuilder-integration-aiohttp
  Using cached botbuilder_integration_aiohttp-4.14.4-py3-none-any.whl (18 kB)
Collecting botbuilder-schema==4.14.4 (from botbuilder-integration-aiohttp)
  Using cached botbuilder_schema-4.14.4-py2.py3-none-any.whl (35 kB)
Collecting botframework-connector==4.14.4 (from botbuilder-integration-aiohttp)
  Using cached botframework_connector-4.14.4-py2.py3-none-any.whl (96 kB)
Collecting botbuilder-core==4.14.4 (from botbuilder-integration-aiohttp)
  Using cached botbuilder_core-4.14.4-py3-none-any.whl (114 kB)
Collecting yarl<=1.4.2 (from botbuilder-integration-aiohttp)
  Using cached yarl-1.4.2.tar.gz (163 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: aiohttp==3.8.4 in c:\python\lib\site-packages (from botbuilder-integration-aiohttp) (3.8.4)
Requirement already satisfied: attrs>=17.3.0 in c:\python\lib\site-packages (from aiohttp==3.8.4->botbuilder-integration-aiohttp) (22.2.0)
Requirement already satisfied: charset-normalizer<4.0,>=2.0 in c:\python\lib\site-packages (from aiohttp==3.8.4->botbuilder-integration-aiohttp) (3.1.0)
Requirement already satisfied: multidict<7.0,>=4.5 in c:\python\lib\site-packages (from aiohttp==3.8.4->botbuilder-integration-aiohttp) (6.0.4)
Requirement already satisfied: async-timeout<5.0,>=4.0.0a3 in c:\python\lib\site-packages (from aiohttp==3.8.4->botbuilder-integration-aiohttp) (4.0.2)
Requirement already satisfied: frozenlist>=1.1.1 in c:\python\lib\site-packages (from aiohttp==3.8.4->botbuilder-integration-aiohttp) (1.3.3)
Requirement already satisfied: aiosignal>=1.1.2 in c:\python\lib\site-packages (from aiohttp==3.8.4->botbuilder-integration-aiohttp) (1.3.1)
Collecting botframework-streaming==4.14.4 (from botbuilder-core==4.14.4->botbuilder-integration-aiohttp)
  Using cached botframework_streaming-4.14.4-py3-none-any.whl (41 kB)
Collecting jsonpickle<1.5,>=1.2 (from botbuilder-core==4.14.4->botbuilder-integration-aiohttp)
  Using cached jsonpickle-1.4.2-py2.py3-none-any.whl (36 kB)
Collecting msrest==0.6.* (from botbuilder-schema==4.14.4->botbuilder-integration-aiohttp)
  Using cached msrest-0.6.21-py2.py3-none-any.whl (85 kB)
Requirement already satisfied: urllib3<2.0.0 in c:\python\lib\site-packages (from botbuilder-schema==4.14.4->botbuilder-integration-aiohttp) (1.26.15)
Requirement already satisfied: PyJWT>=2.4.0 in c:\python\lib\site-packages (from botframework-connector==4.14.4->botbuilder-integration-aiohttp) (2.6.0)
Requirement already satisfied: msal==1.* in c:\python\lib\site-packages (from botframework-connector==4.14.4->botbuilder-integration-aiohttp) (1.21.0)
Requirement already satisfied: requests<3,>=2.0.0 in c:\python\lib\site-packages (from msal==1.*->botframework-connector==4.14.4->botbuilder-integration-aiohttp) (2.28.2)
Requirement already satisfied: cryptography<41,>=0.6 in c:\python\lib\site-packages (from msal==1.*->botframework-connector==4.14.4->botbuilder-integration-aiohttp) (39.0.2)
Requirement already satisfied: requests-oauthlib>=0.5.0 in c:\python\lib\site-packages (from msrest==0.6.*->botbuilder-schema==4.14.4->botbuilder-integration-aiohttp) (1.3.1)
Requirement already satisfied: isodate>=0.6.0 in c:\python\lib\site-packages (from msrest==0.6.*->botbuilder-schema==4.14.4->botbuilder-integration-aiohttp) (0.6.1)
Requirement already satisfied: certifi>=2017.4.17 in c:\python\lib\site-packages (from msrest==0.6.*->botbuilder-schema==4.14.4->botbuilder-integration-aiohttp) (2022.12.7)
Requirement already satisfied: idna>=2.0 in c:\python\lib\site-packages (from yarl<=1.4.2->botbuilder-integration-aiohttp) (3.4)
Requirement already satisfied: cffi>=1.12 in c:\python\lib\site-packages (from cryptography<41,>=0.6->msal==1.*->botframework-connector==4.14.4->botbuilder-integration-aiohttp) (1.15.1)
Requirement already satisfied: six in c:\python\lib\site-packages (from isodate>=0.6.0->msrest==0.6.*->botbuilder-schema==4.14.4->botbuilder-integration-aiohttp) (1.16.0)
Requirement already satisfied: oauthlib>=3.0.0 in c:\python\lib\site-packages (from requests-oauthlib>=0.5.0->msrest==0.6.*->botbuilder-schema==4.14.4->botbuilder-integration-aiohttp) (3.2.2)
Requirement already satisfied: pycparser in c:\python\lib\site-packages (from cffi>=1.12->cryptography<41,>=0.6->msal==1.*->botframework-connector==4.14.4->botbuilder-integration-aiohttp) (2.21)
Building wheels for collected packages: yarl
  Building wheel for yarl (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for yarl (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [54 lines of output]
      C:\Users\pstrengholt\AppData\Local\Temp\pip-build-env-0y5swes6\overlay\Lib\site-packages\setuptools\config\setupcfg.py:293: _DeprecatedConfig: Deprecated config in `setup.cfg`
      !!

              ********************************************************************************
              The license_file parameter is deprecated, use license_files instead.

              By 2023-Oct-30, you need to update your project and remove deprecated calls
              or your builds will no longer be supported.

              See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
              ********************************************************************************

      !!
        parsed = self.parsers.get(option_name, lambda x: x)(value)
      **********************
      * Accellerated build *
      **********************
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build\lib.win-amd64-cpython-311
      creating build\lib.win-amd64-cpython-311\yarl
      copying yarl\quoting.py -> build\lib.win-amd64-cpython-311\yarl
      copying yarl\__init__.py -> build\lib.win-amd64-cpython-311\yarl
      running egg_info
      writing yarl.egg-info\PKG-INFO
      writing dependency_links to yarl.egg-info\dependency_links.txt
      writing requirements to yarl.egg-info\requires.txt
      writing top-level names to yarl.egg-info\top_level.txt
      reading manifest file 'yarl.egg-info\SOURCES.txt'
      reading manifest template 'MANIFEST.in'
      warning: no previously-included files matching '*.pyc' found anywhere in distribution
      warning: no previously-included files matching '*.cache' found anywhere in distribution
      warning: no previously-included files found matching 'yarl\_quoting.html'
      warning: no previously-included files found matching 'yarl\_quoting.*.so'
      warning: no previously-included files found matching 'yarl\_quoting.pyd'
      warning: no previously-included files found matching 'yarl\_quoting.*.pyd'
      no previously-included directories found matching 'docs\_build'
      adding license file 'LICENSE'
      writing manifest file 'yarl.egg-info\SOURCES.txt'
      copying yarl\__init__.pyi -> build\lib.win-amd64-cpython-311\yarl
      copying yarl\_quoting.c -> build\lib.win-amd64-cpython-311\yarl
      copying yarl\_quoting.pyx -> build\lib.win-amd64-cpython-311\yarl
      copying yarl\py.typed -> build\lib.win-amd64-cpython-311\yarl
      running build_ext
      building 'yarl._quoting' extension
      creating build\temp.win-amd64-cpython-311
      creating build\temp.win-amd64-cpython-311\Release
      creating build\temp.win-amd64-cpython-311\Release\yarl
      "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.36.32532\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:\Python\include -IC:\Python\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.36.32532\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.36.32532\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" /Tcyarl/_quoting.c /Fobuild\temp.win-amd64-cpython-311\Release\yarl/_quoting.obj
      _quoting.c
      yarl/_quoting.c(196): fatal error C1083: Cannot open include file: 'longintrepr.h': No such file or directory
      error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.36.32532\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
      [end of output]

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

C:\GitHub\Azure-Cognitive-Search-Azure-OpenAI-Accelerator>
@pablomarin
Copy link
Collaborator

Try using a linux shell. Or AZML Compute instance. Not sure about that error in Windows. You are the first to report it.

@rams2011
Copy link

I'm having same issues on windows.

pablomarin pushed a commit that referenced this issue Jul 23, 2023
@MathieuRietman
Copy link

For me it solved when not using Python 3.11 but Python 3.10.8 based on aio-libs/aiohttp#6600

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

4 participants