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

[Python] test_get_library_dirs_win32 fails if libraries installed someplace different from conda or wheel packages

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.12.0
    • Python
    • None

    Description

      Following the development instructions in docs/source/python/development.rst I get the following error:

          @pytest.mark.skipif('sys.platform != "win32"')
          def test_get_library_dirs_win32():
              library_dirs = pa.get_library_dirs()
      
              library_lib = library_dirs[-1]
      >       assert os.path.exists(os.path.join(library_lib, 'arrow.lib'))
      E       AssertionError: assert False
      E        +  where False = <function exists at 0x0000018CDDDD8AE8>('C:\\Users\\wesm\\code\\arrow\\python\\pyarrow\\arrow.lib')
      E        +    where <function exists at 0x0000018CDDDD8AE8> = <module 'ntpath' from 'C:\\Miniconda3\\envs\\pyarrow-dev\\lib\\ntpath.py'>.exists
      E        +      where <module 'ntpath' from 'C:\\Miniconda3\\envs\\pyarrow-dev\\lib\\ntpath.py'> = os.path
      E        +    and   'C:\\Users\\wesm\\code\\arrow\\python\\pyarrow\\arrow.lib' = <function join at 0x0000018CDDE092F0>('C:\\Users\\wesm\\code\\arrow\\python\\pyarrow', 'arrow.lib')
      E        +      where <function join at 0x0000018CDDE092F0> = <module 'ntpath' from 'C:\\Miniconda3\\envs\\pyarrow-dev\\lib\\ntpath.py'>.join
      E        +        where <module 'ntpath' from 'C:\\Miniconda3\\envs\\pyarrow-dev\\lib\\ntpath.py'> = os.path
      
      pyarrow\tests\test_misc.py:34: AssertionError
      >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> entering PDB >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
      > c:\users\wesm\code\arrow\python\pyarrow\tests\test_misc.py(34)test_get_library_dirs_win32()
      -> assert os.path.exists(os.path.join(library_lib, 'arrow.lib'))
      (Pdb) p library_lib
      'C:\\Users\\wesm\\code\\arrow\\python\\pyarrow'
      (Pdb) p library_dirs
      ['C:\\Users\\wesm\\code\\arrow\\python\\pyarrow']
      (Pdb) pa.get_library_dirs()
      ['C:\\Users\\wesm\\code\\arrow\\python\\pyarrow']
      

      I have the libraries in C:\thirdparty\lib, and ARROW_HOME is set to C:\thirdparty per the instructions. Maybe we can add the ARROW_HOME env variably if set to the candidate directories

      Attachments

        Activity

          People

            wesm Wes McKinney
            wesm Wes McKinney
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: