[ 
https://issues.apache.org/jira/browse/ARROW-4074?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Rok Mihevc updated ARROW-4074:
------------------------------
    External issue URL: https://github.com/apache/arrow/issues/20669

> [Python] test_get_library_dirs_win32 fails if libraries installed someplace 
> different from conda or wheel packages
> ------------------------------------------------------------------------------------------------------------------
>
>                 Key: ARROW-4074
>                 URL: https://issues.apache.org/jira/browse/ARROW-4074
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: Python
>            Reporter: Wes McKinney
>            Assignee: Wes McKinney
>            Priority: Major
>             Fix For: 0.12.0
>
>
> Following the development instructions in docs/source/python/development.rst 
> I get the following error:
> {code}
>     @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']
> {code}
> 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



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to