Skip to content

CI/DOC: pyarrow ImportError when using environment.yml to build the docs #26656

Closed
@datapythonista

Description

@datapythonista

In #26648, when we tried to use environment.yml to build the docs in azure instead of ci/deps/travis-36-docs.yaml, we found that pyarrow couldn't be imported, and it failed with the next error :

ImportError: /home/vsts/miniconda3/envs/pandas-dev/lib/python3.7/site-packages/pyarrow/lib.cpython-37m-x86_64-linux-gnu.so: undefined symbol: _ZNK5arrow6Status8ToStringB5cxx11Ev

There are few differences between the created environments, like Python 3.6 vs 3.7, arrow-cpp being installed from defaults vs conda-forge... But it's unclear what's the exact problem or what is causing it.

Ideally, we'd like to use environment.yml to build the docs, so the environment is exactly the same as the local installations we use.

What we need to do is:

  • Identify what is causing the error
  • Implement the required changes so pyarrow can be imported
  • Replace ci/deps/travis-36-docs.yaml by environment.yml in the doc builds in Travis and Azure.

Metadata

Metadata

Assignees

No one assigned

    Labels

    CIContinuous IntegrationDependenciesRequired and optional dependenciesDocs

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions