This repository has been archived by the owner on Jan 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 531
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch CI to Python 3.5 and declare Python 3.5 support (#1009)
* Switch CI to Python 3.5 and declare Python 3.5 support * Fix lint after updating pylint * Fix imports * Workaround bug in mx-theme setup.py * Fix Python 3.5 support in codebase * Fix lint in scripts/bert * Delete Python3.5 incompatible multiprocessing.Pool usage of BERTDatasetTransform Traceback (most recent call last): File "./scripts/bert/finetune_classifier.py", line 373, in <module> bert_tokenizer, task, batch_size, dev_batch_size, args.max_len, vocabulary, args.pad) File "./scripts/bert/finetune_classifier.py", line 306, in preprocess_data data_train = mx.gluon.data.SimpleDataset(pool.map(trans, train_tsv)) File "/var/lib/jenkins/workspace/gluon-nlp-gpu-py3-master@6/conda/gpu/py3-master/lib/python3.5/multiprocessing/pool.py", line 266, in map return self._map_async(func, iterable, mapstar, chunksize).get() File "/var/lib/jenkins/workspace/gluon-nlp-gpu-py3-master@6/conda/gpu/py3-master/lib/python3.5/multiprocessing/pool.py", line 644, in get raise self._value File "/var/lib/jenkins/workspace/gluon-nlp-gpu-py3-master@6/conda/gpu/py3-master/lib/python3.5/multiprocessing/pool.py", line 424, in _handle_tasks put(task) File "/var/lib/jenkins/workspace/gluon-nlp-gpu-py3-master@6/conda/gpu/py3-master/lib/python3.5/multiprocessing/connection.py", line 206, in send self._send_bytes(ForkingPickler.dumps(obj)) File "/var/lib/jenkins/workspace/gluon-nlp-gpu-py3-master@6/conda/gpu/py3-master/lib/python3.5/multiprocessing/reduction.py", line 50, in dumps cls(buf, protocol).dump(obj) _pickle.PicklingError: Can't pickle <class 'module'>: attribute lookup module on builtins failed
- Loading branch information
Showing
32 changed files
with
158 additions
and
179 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,26 @@ | ||
channels: | ||
- conda-forge | ||
dependencies: | ||
- python=3.6 | ||
- pip=18.1 | ||
- cython | ||
- python=3.5 | ||
- pip | ||
- perl | ||
- pylint=2.3.1 | ||
- flake8 | ||
- sphinx=2.1.2 | ||
- spacy>2 | ||
- nltk | ||
- pytest=4.5.0 | ||
- pytest-env | ||
- flaky=3.5.3 | ||
- pytest-cov=2.7.1 | ||
- mock<3 | ||
- pytest-xdist<2 | ||
- regex | ||
- scipy=1.3.1 | ||
- pip: | ||
- cython | ||
- pytest==5.2.3 | ||
- pytest-env==0.6.2 | ||
- pytest-cov==2.8.1 | ||
- pytest-xdist==1.30.0 | ||
- pylint==2.4.4 | ||
- pylint-quotes==0.2.1 | ||
- flaky==3.6.1 | ||
- flake8==3.7.9 | ||
- mock<3 | ||
- sphinx==2.2.1 | ||
- mxnet>=1.6.0b20191103 | ||
- sacremoses | ||
- sentencepiece<0.2 | ||
- scipy==1.3.2 | ||
- regex==2019.11.1 | ||
- nltk==3.4.5 | ||
- sacremoses==0.0.35 | ||
- spacy==2.2.2 | ||
- sentencepiece==0.1.83 | ||
- sphinx-autodoc-typehints==1.7.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,40 @@ | ||
channels: | ||
- conda-forge | ||
dependencies: | ||
- python=3.6 | ||
- pip=18.1 | ||
- cython | ||
- python=3.5 | ||
- pip | ||
- perl | ||
- pylint=1.9.2 | ||
- flake8 | ||
- sphinx=2.1.2 | ||
- spacy>2 | ||
- nltk | ||
- pytest=4.5.0 | ||
- pytest-env | ||
- flaky=3.5.3 | ||
- pytest-cov=2.7.1 | ||
- mock<3 | ||
- pytest-xdist<2 | ||
- recommonmark | ||
- pandoc=1.19.2 | ||
- notedown | ||
- numba>=v0.40.0 | ||
- sphinx-gallery | ||
- nbsphinx>=0.3.4,<0.4 | ||
- nbconvert=5.4.0 | ||
- tornado=5.1.1 | ||
- ipython | ||
- ipykernel | ||
- regex | ||
- scipy=1.3.1 | ||
- scikit-learn=0.21.3 | ||
- sphinx=2.2.1 | ||
- pip: | ||
- pylint-quotes<0.2 | ||
- mxnet-cu100>=1.6.0b20191027 | ||
- sacremoses | ||
- sentencepiece<0.2 | ||
- notedown==1.5.1 | ||
- sphinx-gallery==0.4.0 | ||
- recommonmark==0.6.0 | ||
- nbconvert==5.6.1 | ||
- nbsphinx>=0.3.4,<0.4 | ||
- ipython | ||
- ipykernel | ||
- numba==0.46 | ||
- https://github.com/szha/mx-theme/tarball/master | ||
- seaborn | ||
- jieba | ||
- scikit-learn==0.21.3 | ||
- cython | ||
- pytest==5.2.3 | ||
- pytest-env==0.6.2 | ||
- pytest-cov==2.8.1 | ||
- pytest-xdist==1.30.0 | ||
- pylint==2.4.4 | ||
- pylint-quotes==0.2.1 | ||
- flaky==3.6.1 | ||
- flake8==3.7.9 | ||
- mock<3 | ||
- mxnet-cu100>=1.6.0b20191027,!=1.6.0b20191102 | ||
- scipy==1.3.2 | ||
- regex==2019.11.1 | ||
- nltk==3.4.5 | ||
- sacremoses==0.0.35 | ||
- spacy==2.2.2 | ||
- sentencepiece==0.1.83 | ||
- sphinx-autodoc-typehints==1.7.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,39 @@ | ||
channels: | ||
- conda-forge | ||
dependencies: | ||
- python=3.6 | ||
- pip=18.1 | ||
- cython | ||
- python=3.5 | ||
- pip | ||
- perl | ||
- pylint=2.3.1 | ||
- flake8 | ||
- sphinx=2.1.2 | ||
- spacy>2 | ||
- nltk | ||
- pytest=4.5.0 | ||
- pytest-env | ||
- flaky=3.5.3 | ||
- pytest-cov=2.7.1 | ||
- mock<3 | ||
- pytest-xdist<2 | ||
- recommonmark | ||
- pandoc=1.19.2 | ||
- notedown | ||
- numba>=v0.40.0 | ||
- sphinx-gallery | ||
- nbsphinx>=0.3.4,<0.4 | ||
- nbconvert=5.4.0 | ||
- tornado=5.1.1 | ||
- ipython | ||
- ipykernel | ||
- regex | ||
- scipy=1.3.1 | ||
- sphinx=2.2.1 | ||
- pip: | ||
- pylint-quotes<0.2 | ||
- mxnet-cu100>=1.6.0b20191027,!=1.6.0b20191102 | ||
- sacremoses | ||
- sentencepiece<0.2 | ||
- notedown==1.5.1 | ||
- sphinx-gallery==0.4.0 | ||
- recommonmark==0.6.0 | ||
- nbconvert==5.6.1 | ||
- nbsphinx>=0.3.4,<0.4 | ||
- ipython | ||
- ipykernel | ||
- numba==0.46 | ||
- https://github.com/szha/mx-theme/tarball/master | ||
- seaborn | ||
- jieba | ||
- cython | ||
- pytest==5.2.3 | ||
- pytest-env==0.6.2 | ||
- pytest-cov==2.8.1 | ||
- pytest-xdist==1.30.0 | ||
- pylint==2.4.4 | ||
- pylint-quotes==0.2.1 | ||
- flaky==3.6.1 | ||
- flake8==3.7.9 | ||
- mock<3 | ||
- mxnet-cu100>=1.6.0b20191027,!=1.6.0b20191102 | ||
- scipy==1.3.2 | ||
- regex==2019.11.1 | ||
- nltk==3.4.5 | ||
- sacremoses==0.0.35 | ||
- spacy==2.2.2 | ||
- sentencepiece==0.1.83 | ||
- sphinx-autodoc-typehints==1.7.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.