Uploaded image for project: 'Python Integrations'
  1. Python Integrations
  2. INTPYTHON-64

Improve Installation Instructions

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 0.3.0
    • Affects Version/s: None
    • Component/s: None
    • None

      root@0312b570e587:/tmp# python3 -m pip install --only-binary pymongoarrow==0.2.0 pymongoarrow==0.2.0
      Collecting pymongoarrow==0.2.0
        Using cached pymongoarrow-0.2.0.tar.gz (17 kB)
        Installing build dependencies ... done
        Getting requirements to build wheel ... error
        ERROR: Command errored out with exit status 1:
         command: /usr/bin/python3 /tmp/tmpya0m3gw_ get_requires_for_build_wheel /tmp/tmprsu8dywd
             cwd: /tmp/pip-install-j45ijj9f/pymongoarrow
        Complete output (29 lines):
        Compiling pymongoarrow/lib.pyx because it changed.
        [1/1] Cythonizing pymongoarrow/lib.pyx
        setup.py:33: UserWarning: Package libbson-1.0 was not found in the pkg-config search path.
        Perhaps you should add the directory containing `libbson-1.0.pc'
        to the PKG_CONFIG_PATH environment variable
        No package 'libbson-1.0' found
          warnings.warn(output, UserWarning)
        Traceback (most recent call last):
          File "/tmp/tmpya0m3gw_", line 280, in <module>
            main()
          File "/tmp/tmpya0m3gw_", line 263, in main
            json_out['return_val'] = hook(**hook_input['kwargs'])
          File "/tmp/tmpya0m3gw_", line 114, in get_requires_for_build_wheel
            return hook(config_settings)
          File "/tmp/pip-build-env-8nwssyo1/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 177, in get_requires_for_build_wheel
            return self._get_build_requires(
          File "/tmp/pip-build-env-8nwssyo1/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 159, in _get_build_requires
            self.run_setup()
          File "/tmp/pip-build-env-8nwssyo1/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 281, in run_setup
            super(_BuildMetaLegacyBackend,
          File "/tmp/pip-build-env-8nwssyo1/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 174, in run_setup
            exec(compile(code, __file__, 'exec'), locals())
          File "setup.py", line 181, in <module>
            setup(ext_modules=get_extension_modules())
          File "setup.py", line 169, in get_extension_modules
            append_libbson_flags(module)
          File "setup.py", line 85, in append_libbson_flags
            raise ValueError(f'Could not find "{pc_path}" library')
        ValueError: Could not find "libbson-1.0" library
       

      We should document what version of pip is required to install the package, what platforms the wheel is supported on, and mention that the package is available on conda-forge.

            Assignee:
            steve.silvester@mongodb.com Steve Silvester
            Reporter:
            steve.silvester@mongodb.com Steve Silvester
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: