Skip to content

Why do I can't install openai #199

Description

@hi-Nobody

I had this problem,error: subprocess-exited-with-error, when I installing.
How do I install openai?

My python is 3.8
pip is 22.3.1

log:

Collecting openai
  Using cached openai-0.26.2.tar.gz (55 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error

  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [17 lines of output]
      Traceback (most recent call last):
        File "D:\Python\Python38\virtual_envs\open_ai\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 351, in <module>
          main()
        File "D:\Python\Python38\virtual_envs\open_ai\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 333, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
        File "D:\Python\Python38\virtual_envs\open_ai\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\user\AppData\Local\Temp\pip-build-env-qcki_ch_\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\user\AppData\Local\Temp\pip-build-env-qcki_ch_\overlay\Lib\site-packages\setuptools\build_meta.py", line 320, in _get_build_requires
          self.run_setup()
        File "C:\Users\user\AppData\Local\Temp\pip-build-env-qcki_ch_\overlay\Lib\site-packages\setuptools\build_meta.py", line 484, in run_setup
          super(_BuildMetaLegacyBackend,
        File "C:\Users\user\AppData\Local\Temp\pip-build-env-qcki_ch_\overlay\Lib\site-packages\setuptools\build_meta.py", line 335, in run_setup
          exec(code, locals())
        File "<string>", line 13, in <module>
      UnicodeDecodeError: 'cp950' codec can't decode byte 0xe2 in position 1030: illegal multibyte sequence
      [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.

Activity

  1. hallacy commented on Jan 25, 2023

    @hallacy
    Contributor

    Hi @hi-Nobody, thanks for writing in!

    Sorry you're running into this error. Can you tell me a bit more about what you're trying to do? Any CLI commands, current environment description, etc would be very helpful.

  2. jezs00 commented on Jan 25, 2023

    @jezs00

    Hi all,

    Possibly related, my test workflow is failing to load openai on github, this is just trying to load requirements through pip:

    Collecting git+https://github.com/openai/openai-python.git (from -r requirements.txt (line 3))
      Cloning https://github.com/openai/openai-python.git to /tmp/pip-req-build-99ap8hp5
      Running command git clone --filter=blob:none --quiet https://github.com/openai/openai-python.git /tmp/pip-req-build-99ap8hp5
      Resolved https://github.com/openai/openai-python.git to commit 86dff298f759be51292b47efcff926eb361cee7a
      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
      ╰─> [30 lines of output]
          Traceback (most recent call last):
            File "/opt/hostedtoolcache/Python/3.10.9/x64/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 351, in <module>
              main()
            File "/opt/hostedtoolcache/Python/3.10.9/x64/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 333, in main
              json_out['return_val'] = hook(**hook_input['kwargs'])
            File "/opt/hostedtoolcache/Python/3.10.9/x64/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 118, in get_requires_for_build_wheel
              return hook(config_settings)
            File "/tmp/pip-build-env-6qpgbkwx/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 338, in get_requires_for_build_wheel
              return self._get_build_requires(config_settings, requirements=['wheel'])
            File "/tmp/pip-build-env-6qpgbkwx/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 320, in _get_build_requires
              self.run_setup()
            File "/tmp/pip-build-env-6qpgbkwx/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 484, in run_setup
              super(_BuildMetaLegacyBackend,
            File "/tmp/pip-build-env-6qpgbkwx/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 335, in run_setup
              exec(code, locals())
            File "<string>", line 24, in <module>
            File "/tmp/pip-build-env-6qpgbkwx/overlay/lib/python3.10/site-packages/setuptools/__init__.py", line 108, in setup
              return distutils.core.setup(**attrs)
            File "/tmp/pip-build-env-6qpgbkwx/overlay/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 159, in setup
              dist.parse_config_files()
            File "/tmp/pip-build-env-6qpgbkwx/overlay/lib/python3.10/site-packages/setuptools/dist.py", line 872, in parse_config_files
              pyprojecttoml.apply_configuration(self, filename, ignore_option_errors)
            File "/tmp/pip-build-env-6qpgbkwx/overlay/lib/python3.10/site-packages/setuptools/config/pyprojecttoml.py", line 62, in apply_configuration
              config = read_configuration(filepath, True, ignore_option_errors, dist)
            File "/tmp/pip-build-env-6qpgbkwx/overlay/lib/python3.10/site-packages/setuptools/config/pyprojecttoml.py", line 126, in read_configuration
              validate(subset, filepath)
            File "/tmp/pip-build-env-6qpgbkwx/overlay/lib/python3.10/site-packages/setuptools/config/pyprojecttoml.py", line 51, in validate
              raise ValueError(f"{error}\n{summary}") from None
          ValueError: invalid pyproject.toml config: `project`.
          configuration error: `project` must contain ['name'] properties
          [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.
    Error: Process completed with exit code 1.
    
  3. jezs00 commented on Jan 25, 2023

    @jezs00

    It's possible my issue is a different one to be honest. I think 86dff29 might be it. Does the project header need a name= ?

  4. ddeville commented on Jan 25, 2023

    @ddeville
    Contributor

    Hmm yeah good catch, looks like name is required https://peps.python.org/pep-0621/#name

  5. hi-Nobody commented on Jan 26, 2023

    @hi-Nobody
    Author

    Hi @hi-Nobody, thanks for writing in!

    Sorry you're running into this error. Can you tell me a bit more about what you're trying to do? Any CLI commands, current environment description, etc would be very helpful.

    My commands is only pip install --upgrade openai
    Current environment description is

    Package    Version
    ---------- -------
    pip        22.3.1
    setuptools 65.3.0
    wheel      0.37.1
    

    @hallacy thanks for your reply

  6. hi-Nobody commented on Jan 27, 2023

    @hi-Nobody
    Author

    @thejaminator Cloud you explain what is it?
    I don't understand

  7. thejaminator commented on Jan 27, 2023

    @thejaminator
    Contributor

    @thejaminator Cloud you explain what is it?
    I don't understand

    Hi, if you install the latest package, it should work already. The other MR that I opened was to add tests in the pipeline to this library.

  8. hi-Nobody commented on Jan 30, 2023

    @hi-Nobody
    Author

    @thejaminator Cloud you explain what is it?
    I don't understand

    Hi, if you install the latest package, it should work already. The other MR that I opened was to add tests in the pipeline to this library.

    I see, thank you very much
    So what conclude about this?

    I have updated all packages to latest using this command
    pip --disable-pip-version-check list --outdated --format=json | python -c "import json, sys; print('\n'.join([x['name'] for x in json.load(sys.stdin)]))"

    following is replying:

    setuptools
    wheel
    

    my version of all packages is same to before

    Package    Version
    ---------- -------
    pip        22.3.1
    setuptools 65.3.0
    wheel      0.37.1
    
    
  9. andrewtvuong commented on Feb 3, 2023

    @andrewtvuong

    hmm I was able to install it onto rpi4

    wheel 0.32.3
    pip 18.1

    Maybe try removing openai from pip cache with pip cache remove openai

  10. jjhesk commented on Feb 4, 2023

    @jjhesk

    I have done pip cache remove openai and its still not working

  11. thejaminator commented on Feb 4, 2023

    @thejaminator
    Contributor
  12. hi-Nobody commented on Feb 6, 2023

    @hi-Nobody
    Author

    hmm I was able to install it onto rpi4

    wheel 0.32.3 pip 18.1

    Maybe try removing openai from pip cache with pip cache remove openai

    what do you say????
    1.what's rpi4?
    2.How do I removed openai before installing successfully?
    Do you have read my reply?

  13. trezcan commented on Feb 7, 2023

    @trezcan

    I ran into this issue when trying to install on a bare bones VM. What ended up working was adding the pip version when doing the install command.

    pip3.10 install openai

    I wrote down how I arrived at the solution here, since I couldn't find any answers at the time.

  14. eng-fayyadsalahat commented on Feb 10, 2023

    @eng-fayyadsalahat

    Upgrade version of python to Python 3.10
    Upgrade pip:
    pip install --upgrade pip
    install command:
    pip3.10 install openai

  15. raiyanyahya commented on Feb 20, 2023

    @raiyanyahya

    I can confirm that this works with pip3.8. Problem fixed after upgrading pip.

  16. gauravrpjain commented on Mar 8, 2023

    @gauravrpjain

    I can also confirm that this issue was solved after upgrading pip.

  17. mayhorizon commented on Mar 9, 2023

    @mayhorizon

    Even on google colab, upgrading pip is the only solution to this problem.

  18. K-tang-mkv commented on Mar 10, 2023

    @K-tang-mkv

    make sure your pip version is upgraded. try pip install wheel setuptools pip --upgrade it must works

  19. hallacy commented on Mar 11, 2023

    @hallacy
    Contributor

    we moved to building wheels in v0.27.2. That should solve most of the build problems here

  20. iasonjan commented on Mar 26, 2023

    @iasonjan

    I got the same issue

    Using cached openai-0.26.1.tar.gz (55 kB)
    Installing build dependencies ... done
    Getting requirements to build wheel ... error
    error: subprocess-exited-with-error

    × Getting requirements to build wheel did not run successfully.
    │ exit code: 1
    ╰─> [17 lines of output]
    Traceback (most recent call last):
    File "d:\repos\openai-cookbook\apps\web-crawl-q-and-a\env\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 353, in
    main()
    File "d:\repos\openai-cookbook\apps\web-crawl-q-and-a\env\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:\repos\openai-cookbook\apps\web-crawl-q-and-a\env\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\jj\AppData\Local\Temp\pip-build-env-0mmbwvlg\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\jj\AppData\Local\Temp\pip-build-env-0mmbwvlg\overlay\Lib\site-packages\setuptools\build_meta.py", line 320, in _get_build_requires
    self.run_setup()
    File "C:\Users\jj\AppData\Local\Temp\pip-build-env-0mmbwvlg\overlay\Lib\site-packages\setuptools\build_meta.py", line 484, in run_setup
    super(_BuildMetaLegacyBackend,
    File "C:\Users\jj\AppData\Local\Temp\pip-build-env-0mmbwvlg\overlay\Lib\site-packages\setuptools\build_meta.py", line 335, in run_setup
    exec(code, locals())
    File "", line 13, in
    UnicodeDecodeError: 'cp950' codec can't decode byte 0xe2 in position 1030: illegal multibyte sequence
    [end of output]

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

    Package Version


    pip 23.0.1
    setuptools 67.6.0
    wheel 0.40.0

    Python 3.8.0

  21. iasonjan commented on Mar 26, 2023

    @iasonjan

    workaround by updating openai==0.27.2 in requirements.txt

  22. Alexjkz commented on Oct 22, 2023

    @Alexjkz

    Same issue

    `Collecting openai
    Using cached openai-0.28.1-py3-none-any.whl.metadata (11 kB)
    Collecting requests>=2.20 (from openai)
    Using cached requests-2.31.0-py3-none-any.whl.metadata (4.6 kB)
    Collecting tqdm (from openai)
    Using cached tqdm-4.66.1-py3-none-any.whl.metadata (57 kB)
    Collecting aiohttp (from openai)
    Using cached aiohttp-3.8.6.tar.gz (7.4 MB)
    Installing build dependencies ... done
    Getting requirements to build wheel ... done
    Installing backend dependencies ... done
    Preparing metadata (pyproject.toml) ... done
    Collecting charset-normalizer<4,>=2 (from requests>=2.20->openai)
    Using cached charset_normalizer-3.3.0-cp312-cp312-macosx_11_0_arm64.whl.metadata (32 kB)
    Collecting idna<4,>=2.5 (from requests>=2.20->openai)
    Using cached idna-3.4-py3-none-any.whl (61 kB)
    Collecting urllib3<3,>=1.21.1 (from requests>=2.20->openai)
    Using cached urllib3-2.0.7-py3-none-any.whl.metadata (6.6 kB)
    Collecting certifi>=2017.4.17 (from requests>=2.20->openai)
    Using cached certifi-2023.7.22-py3-none-any.whl.metadata (2.2 kB)
    Collecting attrs>=17.3.0 (from aiohttp->openai)
    Using cached attrs-23.1.0-py3-none-any.whl (61 kB)
    Collecting multidict<7.0,>=4.5 (from aiohttp->openai)
    Using cached multidict-6.0.4-cp312-cp312-macosx_10_9_universal2.whl
    Collecting async-timeout<5.0,>=4.0.0a3 (from aiohttp->openai)
    Using cached async_timeout-4.0.3-py3-none-any.whl.metadata (4.2 kB)
    Collecting yarl<2.0,>=1.0 (from aiohttp->openai)
    Using cached yarl-1.9.2-cp312-cp312-macosx_10_9_universal2.whl
    Collecting frozenlist>=1.1.1 (from aiohttp->openai)
    Using cached frozenlist-1.4.0-cp312-cp312-macosx_10_9_universal2.whl
    Collecting aiosignal>=1.1.2 (from aiohttp->openai)
    Using cached aiosignal-1.3.1-py3-none-any.whl (7.6 kB)
    Using cached openai-0.28.1-py3-none-any.whl (76 kB)
    Using cached requests-2.31.0-py3-none-any.whl (62 kB)
    Using cached tqdm-4.66.1-py3-none-any.whl (78 kB)
    Using cached async_timeout-4.0.3-py3-none-any.whl (5.7 kB)
    Using cached certifi-2023.7.22-py3-none-any.whl (158 kB)
    Using cached charset_normalizer-3.3.0-cp312-cp312-macosx_11_0_arm64.whl (116 kB)
    Using cached urllib3-2.0.7-py3-none-any.whl (124 kB)
    Building wheels for collected packages: aiohttp
    Building wheel for aiohttp (pyproject.toml) ... error
    error: subprocess-exited-with-error

    × Building wheel for aiohttp (pyproject.toml) did not run successfully.
    │ exit code: 1
    ╰─> [188 lines of output]
    *********************
    * Accelerated build *
    *********************
    running bdist_wheel
    running build
    running build_py
    creating build
    creating build/lib.macosx-10.9-universal2-cpython-312
    creating build/lib.macosx-10.9-universal2-cpython-312/aiohttp
    copying aiohttp/web_ws.py -> build/lib.macosx-10.9-universal2-cpython-312/aiohttp
    copying aiohttp/worker.py -> build/lib.macosx-10.9-universal2-cpython-312/aiohttp
    copying aiohttp/multipart.py -> build/lib.macosx-10.9-universal2-cpython-312/aiohttp
    copying aiohttp/web_response.py -> build/lib.macosx-10.9-universal2-cpython-312/aiohttp
    copying aiohttp/client_ws.py -> build/lib.macosx-10.9-universal2-cpython-312/aiohttp
    copying aiohttp/test_utils.py -> build/lib.macosx-10.9-universal2-cpython-312/aiohttp
    copying aiohttp/tracing.py -> build/lib.macosx-10.9-universal2-cpython-312/aiohttp
    copying aiohttp/web_exceptions.py -> build/lib.macosx-10.9-universal2-cpython-312/aiohttp
    copying aiohttp/web_middlewares.py -> build/lib.macosx-10.9-universal2-cpython-312/aiohttp
    copying aiohttp/web.py -> build/lib.macosx-10.9-universal2-cpython-312/aiohttp
    copying aiohttp/http_exceptions.py -> build/lib.macosx-10.9-universal2-cpython-312/aiohttp
    copying aiohttp/web_app.py -> build/lib.macosx-10.9-universal2-cpython-312/aiohttp
    copying aiohttp/streams.py -> build/lib.macosx-10.9-universal2-cpython-312/aiohttp
    copying aiohttp/web_protocol.py -> build/lib.macosx-10.9-universal2-cpython-312/aiohttp
    copying aiohttp/log.py -> build/lib.macosx-10.9-universal2-cpython-312/aiohttp
    copying aiohttp/client.py -> build/lib.macosx-10.9-universal2-cpython-312/aiohttp
    copying aiohttp/web_urldispatcher.py -> build/lib.macosx-10.9-universal2-cpython-312/aiohttp
    copying aiohttp/web_request.py -> build/lib.macosx-10.9-universal2-cpython-312/aiohttp
    copying aiohttp/http_websocket.py -> build/lib.macosx-10.9-universal2-cpython-312/aiohttp
    copying aiohttp/client_proto.py -> build/lib.macosx-10.9-universal2-cpython-312/aiohttp
    copying aiohttp/locks.py -> build/lib.macosx-10.9-universal2-cpython-312/aiohttp
    copying aiohttp/init.py -> build/lib.macosx-10.9-universal2-cpython-312/aiohttp
    copying aiohttp/web_runner.py -> build/lib.macosx-10.9-universal2-cpython-312/aiohttp
    copying aiohttp/web_server.py -> build/lib.macosx-10.9-universal2-cpython-312/aiohttp
    copying aiohttp/base_protocol.py -> build/lib.macosx-10.9-universal2-cpython-312/aiohttp
    copying aiohttp/payload.py -> build/lib.macosx-10.9-universal2-cpython-312/aiohttp
    copying aiohttp/client_reqrep.py -> build/lib.macosx-10.9-universal2-cpython-312/aiohttp
    copying aiohttp/http.py -> build/lib.macosx-10.9-universal2-cpython-312/aiohttp
    copying aiohttp/web_log.py -> build/lib.macosx-10.9-universal2-cpython-312/aiohttp
    copying aiohttp/resolver.py -> build/lib.macosx-10.9-universal2-cpython-312/aiohttp
    copying aiohttp/formdata.py -> build/lib.macosx-10.9-universal2-cpython-312/aiohttp
    copying aiohttp/payload_streamer.py -> build/lib.macosx-10.9-universal2-cpython-312/aiohttp
    copying aiohttp/web_routedef.py -> build/lib.macosx-10.9-universal2-cpython-312/aiohttp
    copying aiohttp/connector.py -> build/lib.macosx-10.9-universal2-cpython-312/aiohttp
    copying aiohttp/client_exceptions.py -> build/lib.macosx-10.9-universal2-cpython-312/aiohttp
    copying aiohttp/typedefs.py -> build/lib.macosx-10.9-universal2-cpython-312/aiohttp
    copying aiohttp/hdrs.py -> build/lib.macosx-10.9-universal2-cpython-312/aiohttp
    copying aiohttp/web_fileresponse.py -> build/lib.macosx-10.9-universal2-cpython-312/aiohttp
    copying aiohttp/http_writer.py -> build/lib.macosx-10.9-universal2-cpython-312/aiohttp
    copying aiohttp/tcp_helpers.py -> build/lib.macosx-10.9-universal2-cpython-312/aiohttp
    copying aiohttp/helpers.py -> build/lib.macosx-10.9-universal2-cpython-312/aiohttp
    copying aiohttp/http_parser.py -> build/lib.macosx-10.9-universal2-cpython-312/aiohttp
    copying aiohttp/cookiejar.py -> build/lib.macosx-10.9-universal2-cpython-312/aiohttp
    copying aiohttp/pytest_plugin.py -> build/lib.macosx-10.9-universal2-cpython-312/aiohttp
    copying aiohttp/abc.py -> build/lib.macosx-10.9-universal2-cpython-312/aiohttp
    running egg_info
    writing aiohttp.egg-info/PKG-INFO
    writing dependency_links to aiohttp.egg-info/dependency_links.txt
    writing requirements to aiohttp.egg-info/requires.txt
    writing top-level names to aiohttp.egg-info/top_level.txt
    reading manifest file 'aiohttp.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    warning: no files found matching 'aiohttp' anywhere in distribution
    warning: no previously-included files matching '.pyc' found anywhere in distribution
    warning: no previously-included files matching '
    .pyd' found anywhere in distribution
    warning: no previously-included files matching '.so' found anywhere in distribution
    warning: no previously-included files matching '
    .lib' found anywhere in distribution
    warning: no previously-included files matching '.dll' found anywhere in distribution
    warning: no previously-included files matching '
    .a' found anywhere in distribution
    warning: no previously-included files matching '.obj' found anywhere in distribution
    warning: no previously-included files found matching 'aiohttp/
    .html'
    no previously-included directories found matching 'docs/_build'
    adding license file 'LICENSE.txt'
    writing manifest file 'aiohttp.egg-info/SOURCES.txt'
    copying aiohttp/_cparser.pxd -> build/lib.macosx-10.9-universal2-cpython-312/aiohttp
    copying aiohttp/_find_header.pxd -> build/lib.macosx-10.9-universal2-cpython-312/aiohttp
    copying aiohttp/_headers.pxi -> build/lib.macosx-10.9-universal2-cpython-312/aiohttp
    copying aiohttp/_helpers.pyi -> build/lib.macosx-10.9-universal2-cpython-312/aiohttp
    copying aiohttp/_helpers.pyx -> build/lib.macosx-10.9-universal2-cpython-312/aiohttp
    copying aiohttp/_http_parser.pyx -> build/lib.macosx-10.9-universal2-cpython-312/aiohttp
    copying aiohttp/_http_writer.pyx -> build/lib.macosx-10.9-universal2-cpython-312/aiohttp
    copying aiohttp/_websocket.pyx -> build/lib.macosx-10.9-universal2-cpython-312/aiohttp
    copying aiohttp/py.typed -> build/lib.macosx-10.9-universal2-cpython-312/aiohttp
    creating build/lib.macosx-10.9-universal2-cpython-312/aiohttp/.hash
    copying aiohttp/.hash/_cparser.pxd.hash -> build/lib.macosx-10.9-universal2-cpython-312/aiohttp/.hash
    copying aiohttp/.hash/_find_header.pxd.hash -> build/lib.macosx-10.9-universal2-cpython-312/aiohttp/.hash
    copying aiohttp/.hash/_helpers.pyi.hash -> build/lib.macosx-10.9-universal2-cpython-312/aiohttp/.hash
    copying aiohttp/.hash/_helpers.pyx.hash -> build/lib.macosx-10.9-universal2-cpython-312/aiohttp/.hash
    copying aiohttp/.hash/_http_parser.pyx.hash -> build/lib.macosx-10.9-universal2-cpython-312/aiohttp/.hash
    copying aiohttp/.hash/_http_writer.pyx.hash -> build/lib.macosx-10.9-universal2-cpython-312/aiohttp/.hash
    copying aiohttp/.hash/_websocket.pyx.hash -> build/lib.macosx-10.9-universal2-cpython-312/aiohttp/.hash
    copying aiohttp/.hash/hdrs.py.hash -> build/lib.macosx-10.9-universal2-cpython-312/aiohttp/.hash
    running build_ext
    building 'aiohttp._websocket' extension
    creating build/temp.macosx-10.9-universal2-cpython-312
    creating build/temp.macosx-10.9-universal2-cpython-312/aiohttp
    clang -fno-strict-overflow -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -O3 -Wall -arch arm64 -arch x86_64 -g "-I/Users/alessandrofiastri/Documents/GitHub/Electric Car Expert/env/include" -I/Library/Frameworks/Python.framework/Versions/3.12/include/python3.12 -c aiohttp/_websocket.c -o build/temp.macosx-10.9-universal2-cpython-312/aiohttp/_websocket.o
    aiohttp/_websocket.c:1475:17: warning: 'Py_OptimizeFlag' is deprecated [-Wdeprecated-declarations]
    if (unlikely(!Py_OptimizeFlag)) {
    ^
    /Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/cpython/pydebug.h:13:1: note: 'Py_OptimizeFlag' has been explicitly marked deprecated here
    Py_DEPRECATED(3.12) PyAPI_DATA(int) Py_OptimizeFlag;
    ^
    /Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/pyport.h:317:54: note: expanded from macro 'Py_DEPRECATED'
    #define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated))
    ^
    aiohttp/_websocket.c:2680:27: warning: 'ma_version_tag' is deprecated [-Wdeprecated-declarations]
    return likely(dict) ? __PYX_GET_DICT_VERSION(dict) : 0;
    ^
    aiohttp/_websocket.c:1118:65: note: expanded from macro '__PYX_GET_DICT_VERSION'
    #define __PYX_GET_DICT_VERSION(dict) (((PyDictObject*)(dict))->ma_version_tag)
    ^
    /Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/cpython/dictobject.h:22:5: note: 'ma_version_tag' has been explicitly marked deprecated here
    Py_DEPRECATED(3.12) uint64_t ma_version_tag;
    ^
    /Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/pyport.h:317:54: note: expanded from macro 'Py_DEPRECATED'
    #define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated))
    ^
    aiohttp/_websocket.c:2692:36: warning: 'ma_version_tag' is deprecated [-Wdeprecated-declarations]
    return (dictptr && dictptr) ? __PYX_GET_DICT_VERSION(dictptr) : 0;
    ^
    aiohttp/_websocket.c:1118:65: note: expanded from macro '__PYX_GET_DICT_VERSION'
    #define __PYX_GET_DICT_VERSION(dict) (((PyDictObject
    )(dict))->ma_version_tag)
    ^
    /Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/cpython/dictobject.h:22:5: note: 'ma_version_tag' has been explicitly marked deprecated here
    Py_DEPRECATED(3.12) uint64_t ma_version_tag;
    ^
    /Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/pyport.h:317:54: note: expanded from macro 'Py_DEPRECATED'
    #define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated))
    ^
    aiohttp/_websocket.c:2696:56: warning: 'ma_version_tag' is deprecated [-Wdeprecated-declarations]
    if (unlikely(!dict) || unlikely(tp_dict_version != __PYX_GET_DICT_VERSION(dict)))
    ^
    aiohttp/_websocket.c:1118:65: note: expanded from macro '__PYX_GET_DICT_VERSION'
    #define __PYX_GET_DICT_VERSION(dict) (((PyDictObject
    )(dict))->ma_version_tag)
    ^
    /Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/cpython/dictobject.h:22:5: note: 'ma_version_tag' has been explicitly marked deprecated here
    Py_DEPRECATED(3.12) uint64_t ma_version_tag;
    ^
    /Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/pyport.h:317:54: note: expanded from macro 'Py_DEPRECATED'
    #define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated))
    ^
    aiohttp/_websocket.c:2741:9: warning: 'ma_version_tag' is deprecated [-Wdeprecated-declarations]
    __PYX_PY_DICT_LOOKUP_IF_MODIFIED(
    ^
    aiohttp/_websocket.c:1125:16: note: expanded from macro '__PYX_PY_DICT_LOOKUP_IF_MODIFIED'
    if (likely(__PYX_GET_DICT_VERSION(DICT) == __pyx_dict_version)) {
    ^
    aiohttp/_websocket.c:1118:65: note: expanded from macro '__PYX_GET_DICT_VERSION'
    #define __PYX_GET_DICT_VERSION(dict) (((PyDictObject*)(dict))->ma_version_tag)
    ^
    /Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/cpython/dictobject.h:22:5: note: 'ma_version_tag' has been explicitly marked deprecated here
    Py_DEPRECATED(3.12) uint64_t ma_version_tag;
    ^
    /Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/pyport.h:317:54: note: expanded from macro 'Py_DEPRECATED'
    #define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated))
    ^
    aiohttp/_websocket.c:2741:9: warning: 'ma_version_tag' is deprecated [-Wdeprecated-declarations]
    __PYX_PY_DICT_LOOKUP_IF_MODIFIED(
    ^
    aiohttp/_websocket.c:1129:30: note: expanded from macro '__PYX_PY_DICT_LOOKUP_IF_MODIFIED'
    __pyx_dict_version = __PYX_GET_DICT_VERSION(DICT);
    ^
    aiohttp/_websocket.c:1118:65: note: expanded from macro '__PYX_GET_DICT_VERSION'
    #define __PYX_GET_DICT_VERSION(dict) (((PyDictObject*)(dict))->ma_version_tag)
    ^
    /Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/cpython/dictobject.h:22:5: note: 'ma_version_tag' has been explicitly marked deprecated here
    Py_DEPRECATED(3.12) uint64_t ma_version_tag;
    ^
    /Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/pyport.h:317:54: note: expanded from macro 'Py_DEPRECATED'
    #define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated))
    ^
    aiohttp/_websocket.c:3042:55: error: no member named 'ob_digit' in 'struct _longobject'
    const digit* digits = ((PyLongObject*)x)->ob_digit;
    ~~~~~~~~~~~~~~~~~~ ^
    aiohttp/_websocket.c:3097:55: error: no member named 'ob_digit' in 'struct _longobject'
    const digit* digits = ((PyLongObject*)x)->ob_digit;
    ~~~~~~~~~~~~~~~~~~ ^
    aiohttp/_websocket.c:3238:55: error: no member named 'ob_digit' in 'struct _longobject'
    const digit* digits = ((PyLongObject*)x)->ob_digit;
    ~~~~~~~~~~~~~~~~~~ ^
    aiohttp/_websocket.c:3293:55: error: no member named 'ob_digit' in 'struct _longobject'
    const digit* digits = ((PyLongObject*)x)->ob_digit;
    ~~~~~~~~~~~~~~~~~~ ^
    aiohttp/_websocket.c:3744:47: error: no member named 'ob_digit' in 'struct _longobject'
    const digit* digits = ((PyLongObject*)b)->ob_digit;
    ~~~~~~~~~~~~~~~~~~ ^
    6 warnings and 5 errors generated.
    error: command '/usr/bin/clang' failed with exit code 1
    [end of output]

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

  23. RobertCraigie commented on Oct 22, 2023

    @RobertCraigie
    Contributor

    @Alexjkz please see this comment #645 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions