Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-3968

Unable to install latest pymongo in a tox environment where gcc is not available

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.6
    • Affects Version/s: 4.5
    • Component/s: None
    • None

      PYTHON-3760 brakes installing pymongo within a tox environment where gcc is not available. Reported here: https://github.com/mongodb/mongo-python-driver/pull/1255#issuecomment-1728378040

      Unfortunately PYTHON-3760 brakes installing pymongo within a tox environment where gcc is not available. I guess, I need to set the NO_EXT environment then?

      EDIT:
      Setting NO_EXT leads to different version, last working version is 4.4.1

      $ export NO_EXT=1
      $ pip install pymongo
      
      Collecting pymongo
        Downloading https://pypi.sozvers.at/root/pypi/%2Bf/681/f252e43b3ef05/pymongo-4.5.0.tar.gz (848 kB)
           ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 848.7/848.7 kB 13.9 MB/s eta 0:00:00
        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
        ╰─> [18 lines of output]
            Traceback (most recent call last):
              File "/usr/local/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
                main()
              File "/usr/local/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
                json_out['return_val'] = hook(**hook_input['kwargs'])
                                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
              File "/usr/local/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
                return hook(config_settings)
                       ^^^^^^^^^^^^^^^^^^^^^
              File "/tmp/pip-build-env-53sxbup9/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 355, in get_requires_for_build_wheel
                return self._get_build_requires(config_settings, requirements=['wheel'])
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
              File "/tmp/pip-build-env-53sxbup9/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 325, in _get_build_requires
                self.run_setup()
              File "/tmp/pip-build-env-53sxbup9/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 341, in run_setup
                exec(code, locals())
              File "<string>", line 119, in <module>
            ValueError: list.remove(x): x not in list
            [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.
      

            Assignee:
            shane.harvey@mongodb.com Shane Harvey
            Reporter:
            shane.harvey@mongodb.com Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: