yandex-research / tab-ddpm

[ICML 2023] The official implementation of the paper "TabDDPM: Modelling Tabular Data with Diffusion Models"
https://arxiv.org/abs/2209.15421
MIT License
397 stars 89 forks source link

import lib ModuleNotFoundError: No module named 'lib' #44

Open ammarsaf opened 1 month ago

ammarsaf commented 1 month ago

I have run the requirements.txt file, and try to execute the code using your CLI.

But it showed this error import lib ModuleNotFoundError: No module named 'lib'

I check the source code, there is line of import lib

What does this lib-library is? Is it your internal library, or dependencies that I need to install?


Update: I found that you should import it from util.py. The import should be from lib.util import *

sadjadeb commented 3 weeks ago

You must run the following lines to add the lib into the path:

export REPO_DIR=/path/to/the/repo/dir
cd $REPO_DIR

conda env config vars set PYTHONPATH=${PYTHONPATH}:${REPO_DIR}
conda env config vars set PROJECT_DIR=${REPO_DIR}