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

pymongoarrow no longer works when pandas is not installed

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 0.6.0
    • Affects Version/s: None
    • Component/s: None
    • None

      pymongoarrow no longer works when pandas is not installed:

      pip list
      Package      Version
      ------------ ----------
      dnspython    2.2.1
      numpy        1.21.6
      pip          20.1.1
      pyarrow      10.0.0
      pymongo      4.3.2
      pymongoarrow 0.7.0.dev0
      setuptools   47.1.0
      $ python
      Python 3.7.9 (v3.7.9:13c94747c7, Aug 15 2020, 01:31:08) 
      >>> import pymongoarrow as pma
      >>> from pymongoarrow.monkey import patch_all
      >>> patch_all()
      Traceback (most recent call last):
        File "<stdin>", line 1, in <module>
        File "/Users/shane/venv-test/lib/python3.7/site-packages/pymongoarrow/monkey.py", line 33, in patch_all
          import pymongoarrow.api as api_module
        File "/Users/shane/venv-test/lib/python3.7/site-packages/pymongoarrow/api.py", line 21, in <module>
          from pandas import DataFrame
      ModuleNotFoundError: No module named 'pandas'
      

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

              Created:
              Updated:
              Resolved: