Skip to content

Running Sphinx build error #451

@xzyu02

Description

@xzyu02

Describe the bug

We are trying to contribute a new feature called DEMD to POT. We have our code ready under ot folder and have two examples embedded under examples/demd. But when we start to run make build under docs, we keep getting error

* KeyError: 'ot'
* ModuleNotFoundError: No module named 'ot.lp.emd_wrap'

I'm wondering if anyone has similar issue or knows how to solve this. I really appreciate any help.
We also tried to manage packages under conda virtual environment to make all version and paths aligned. But it didn't work either.

To Reproduce

Steps to reproduce the behavior:

  1. Please check my forked POT with new feature at https://github.com/x12hengyu/POT/tree/demd
  2. make build, make install at root to build and install new package locally
  3. cd docs, make html get error

Screenshots

Screen Shot 2023-04-04 at 17 04 47

Code sample

This is a build error.

Expected behavior

Expected to build html documentation so we can verify our new code documentation.

Environment (please complete the following information):

  • OS: Linux
  • Python version: 3.8
  • How was POT installed (source, pip, conda): pip
  • Build command you used (if compiling from source): make build, make install, make html
  • Only for GPU related bugs:
    • CUDA version: N/A
    • GPU models and configuration: N/A
    • Any other relevant information: N/A

Output of the following code snippet:

import platform; print(platform.platform())
import sys; print("Python", sys.version)
import numpy; print("NumPy", numpy.__version__)
import scipy; print("SciPy", scipy.__version__)
import ot; print("POT", ot.__version__)

Screen Shot 2023-04-04 at 17 23 04

Additional context

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions