error: package directory 'fairseq/model_parallel/megatron/mpu' does not exist
Steps to reproduce the behavior (always include the command you ran):
$ pip install --editable ./
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Obtaining file:///[***]/workspace/fairseq-0.10.0
Installing build dependencies ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... done
Preparing wheel metadata ... error
ERROR: Command errored out with exit status 1:
command: python [***]/python3.7/site-packages/pip/_vendor/pep517/_in_process.py prepare_metadata_for_build_wheel /tmp/tmpa_9w5hkn
cwd: [***]/fairseq-0.10.0
Complete output (9 lines):
running dist_info
creating /tmp/pip-modern-metadata-hrku8ega/fairseq.egg-info
writing /tmp/pip-modern-metadata-hrku8ega/fairseq.egg-info/PKG-INFO
writing dependency_links to /tmp/pip-modern-metadata-hrku8ega/fairseq.egg-info/dependency_links.txt
writing entry points to /tmp/pip-modern-metadata-hrku8ega/fairseq.egg-info/entry_points.txt
writing requirements to /tmp/pip-modern-metadata-hrku8ega/fairseq.egg-info/requires.txt
writing top-level names to /tmp/pip-modern-metadata-hrku8ega/fairseq.egg-info/top_level.txt
writing manifest file '/tmp/pip-modern-metadata-hrku8ega/fairseq.egg-info/SOURCES.txt'
error: package directory 'fairseq/model_parallel/megatron/mpu' does not exist
----------------------------------------
ERROR: Command errored out with exit status 1: python [***]/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py prepare_metadata_for_build_wheel /tmp/tmpa_9w5hkn Check the logs for full command output.
pip, source): sourceCan you try running
git submodule sync
git submodule update --init --recursive
Can you try running
git submodule sync git submodule update --init --recursive
Thanks! It worked, so it should be a wrong submodule dependency?
For the 0.10.0 release the setup instructions should be:
git submodule sync
git submodule update --init --recursive
pip install --editable .
I'll update the README and also try to release some prebuilt wheels soon.
Most helpful comment
Can you try running