Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-7944

[Python] Test failures without Pandas

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.17.0
    • Python
    • None

    Description

      I recently saw this:
      https://ci.appveyor.com/project/pitrou/arrow/builds/31065781/job/p08i1nrstf9wl2kr#L1964

      ================================== FAILURES ===================================
      _________________________ test_builtin_pickle_dataset _________________________
      tempdir = WindowsPath('C:/Users/appveyor/AppData/Local/Temp/1/pytest-of-appveyor/pytest-0/test_builtin_pickle_dataset0')
      datadir = WindowsPath('c:/projects/arrow/python/pyarrow/tests/data/parquet')
          def test_builtin_pickle_dataset(tempdir, datadir):
              import pickle
      >       dataset = _make_dataset_for_pickling(tempdir)
      pyarrow\tests\test_parquet.py:2821: 
      _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
      tempdir = WindowsPath('C:/Users/appveyor/AppData/Local/Temp/1/pytest-of-appveyor/pytest-0/test_builtin_pickle_dataset0')
      N = 100
          def _make_dataset_for_pickling(tempdir, N=100):
              path = tempdir / 'data.parquet'
              fs = LocalFileSystem.get_instance()
          
      >       df = pd.DataFrame({
                  'index': np.arange(N),
                  'values': np.random.randn(N)
              }, columns=['index', 'values'])
      E       AttributeError: 'NoneType' object has no attribute 'DataFrame'
      pyarrow\tests\test_parquet.py:2776: AttributeError
      __________________________ test_cloudpickle_dataset ___________________________
      tempdir = WindowsPath('C:/Users/appveyor/AppData/Local/Temp/1/pytest-of-appveyor/pytest-0/test_cloudpickle_dataset0')
      datadir = WindowsPath('c:/projects/arrow/python/pyarrow/tests/data/parquet')
          def test_cloudpickle_dataset(tempdir, datadir):
              cp = pytest.importorskip('cloudpickle')
      >       dataset = _make_dataset_for_pickling(tempdir)
      pyarrow\tests\test_parquet.py:2827: 
      _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
      tempdir = WindowsPath('C:/Users/appveyor/AppData/Local/Temp/1/pytest-of-appveyor/pytest-0/test_cloudpickle_dataset0')
      N = 100
          def _make_dataset_for_pickling(tempdir, N=100):
              path = tempdir / 'data.parquet'
              fs = LocalFileSystem.get_instance()
          
      >       df = pd.DataFrame({
                  'index': np.arange(N),
                  'values': np.random.randn(N)
              }, columns=['index', 'values'])
      E       AttributeError: 'NoneType' object has no attribute 'DataFrame'
      pyarrow\tests\test_parquet.py:2776: AttributeError
      

      Attachments

        Issue Links

          Activity

            People

              apitrou Antoine Pitrou
              apitrou Antoine Pitrou
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: