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

[Python] pyarrow get_library_dirs assertion error

    XMLWordPrintableJSON

Details

    Description

      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

       

      Attachments

        Issue Links

          Activity

            People

              apitrou Antoine Pitrou
              mbrobbel Matthijs Brobbel
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 20m
                  1h 20m