Matthijs Brobbel created ARROW-6016: ---------------------------------------
Summary: [Python] pyarrow get_library_dirs assertion error Key: ARROW-6016 URL: https://issues.apache.org/jira/browse/ARROW-6016 Project: Apache Arrow Issue Type: Bug Components: Python Affects Versions: 0.14.1 Reporter: Matthijs Brobbel The added code here: [https://github.com/apache/arrow/blob/apache-arrow-0.14.1/python/pyarrow/__init__.py#L257-L265] causes an `AssertionError` in ubuntu: {{... line 265, in get_library_dirs}} {{assert library_dir.startswith("-L")}} {{AssertionError}} I've installed libarrow-dev from the bintray repositories. Output from pkg-config: {{pkg-config --debug --libs-only-L arrow}} {{Package arrow has -L /usr/lib/x86_64-linux-gnu in Libs}} {{Removing -L /usr/lib/x86_64-linux-gnu from libs for arrow}} {{ pre-remove: arrow}} {{ post-remove: arrow}} {{ original: arrow}} {{ sorted: arrow}} {{adding LIBS_L string ""}} {{returning flags string ""}} Workaround: set the PKG_CONFIG_ALLOW_SYSTEM_LIBS env var. {{PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 pkg-config --debug --libs-only-L arrow}} {{Adding 'arrow' to list of known packages}} {{Package arrow has -I/usr/include in Cflags}} {{Removing -I/usr/include from cflags for arrow}} {{Package arrow has -L /usr/lib/x86_64-linux-gnu in Libs}} {{ pre-remove: arrow}} {{ post-remove: arrow}} {{ original: arrow}} {{ sorted: arrow}} {{adding LIBS_L string "-L/usr/lib/x86_64-linux-gnu "}} {{returning flags string "-L/usr/lib/x86_64-linux-gnu"}} {{-L/usr/lib/x86_64-linux-gnu}} -- This message was sent by Atlassian JIRA (v7.6.14#76016)