File tree Expand file tree Collapse file tree 2 files changed +6
-10
lines changed Expand file tree Collapse file tree 2 files changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -148,6 +148,10 @@ else
148
148
python3 -m pip install $(PIP_CHAINER) cupy==$(CHAINER_VERSION); \
149
149
fi
150
150
endif
151
+ # chainer=6.0.0 depends on typing<=3.6.6, but this causes the following error when installing some modules. e.g. fairseq
152
+ # AttributeError: type object 'Callable' has no attribute '_abc_registry'
153
+ # "typing" modules is not required for python>=3.6, so uninstall here
154
+ python3 -m pip uninstall -y typing
151
155
touch chainer.done
152
156
153
157
# NOTE(kamo): Add conda_packages.done if cmake is used
Original file line number Diff line number Diff line change @@ -46,18 +46,10 @@ echo "cuda_version=${cuda_version}"
46
46
if " ${torch_15_plus} " && " ${python_36_plus} " ; then
47
47
48
48
rm -rf fairseq
49
-
49
+
50
50
# FairSeq Commit id when making this PR: `commit 6225dccb989ebfb268274bad36a794b27e4dd43f`
51
51
git clone https://github.com/pytorch/fairseq.git
52
- (
53
- set -euo pipefail
54
-
55
- cd fairseq
56
-
57
- pip uninstall typing
58
- pip install --editable ./
59
- pip install typing
60
- )
52
+ python3 -m pip install --editable ./fairseq
61
53
62
54
else
63
55
echo " [WARNING] fairseq is not prepared for pytorch<1.5.0, python<3.6 now"
You can’t perform that action at this time.
0 commit comments