-
Type: Improvement
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: Crowdin
-
Team:PLATFORM
-
Sprint:nxplatform #51
-
Story Points:0
The crowdin tools doesn't work anymore since one of its dependencies required Python 3 whereas the script needs to be executed in Python 2:
docker run --rm -it ghcr.io/jenkins-x/builder-python37:latest bash -c "git clone https://github.com/nuxeo/tools-nuxeo-crowdin.git crowdin; cd crowdin; python -m pip install --user -r requirements.txt"
Cloning into 'crowdin'... remote: Enumerating objects: 308, done. remote: Counting objects: 100% (30/30), done. remote: Compressing objects: 100% (23/23), done. remote: Total 308 (delta 15), reused 15 (delta 7), pack-reused 278 Receiving objects: 100% (308/308), 58.88 KiB | 744.00 KiB/s, done. Resolving deltas: 100% (181/181), done. Collecting argparse==1.4.0 (from -r requirements.txt (line 1)) Downloading https://files.pythonhosted.org/packages/f2/94/3af39d34be01a24a6e65433d19e107099374224905f1e0cc6bbe1fd22a2f/argparse-1.4.0-py2.py3-none-any.whl Collecting nose==1.3.7 (from -r requirements.txt (line 2)) Downloading https://files.pythonhosted.org/packages/99/4f/13fb671119e65c4dce97c60e67d3fd9e6f7f809f2b307e2611f4701205cb/nose-1.3.7-py2-none-any.whl (154kB) 100% |████████████████████████████████| 163kB 1.1MB/s Collecting requests==2.20.0 (from -r requirements.txt (line 3)) Downloading https://files.pythonhosted.org/packages/f1/ca/10332a30cb25b627192b4ea272c351bce3ca1091e541245cccbace6051d8/requests-2.20.0-py2.py3-none-any.whl (60kB) 100% |████████████████████████████████| 61kB 4.7MB/s Collecting pytest==4.6.3 (from -r requirements.txt (line 4)) Downloading https://files.pythonhosted.org/packages/b3/eb/df264c0b1ff4aaf263375dc09aabd9093364f66060be9b26f3a2c166d558/pytest-4.6.3-py2.py3-none-any.whl (229kB) 100% |████████████████████████████████| 235kB 945kB/s Collecting urllib3<1.25,>=1.21.1 (from requests==2.20.0->-r requirements.txt (line 3)) Cache entry deserialization failed, entry ignored Downloading https://files.pythonhosted.org/packages/01/11/525b02e4acc0c747de8b6ccdab376331597c569c42ea66ab0a1dbd36eca2/urllib3-1.24.3-py2.py3-none-any.whl (118kB) 100% |████████████████████████████████| 122kB 5.5MB/s Collecting chardet<3.1.0,>=3.0.2 (from requests==2.20.0->-r requirements.txt (line 3)) Using cached https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl Collecting idna<2.8,>=2.5 (from requests==2.20.0->-r requirements.txt (line 3)) Downloading https://files.pythonhosted.org/packages/4b/2a/0276479a4b3caeb8a8c1af2f8e4355746a97fab05a372e4a2c6a6b876165/idna-2.7-py2.py3-none-any.whl (58kB) 100% |████████████████████████████████| 61kB 2.9MB/s Requirement already satisfied (use --upgrade to upgrade): certifi>=2017.4.17 in /usr/lib/python2.7/site-packages (from requests==2.20.0->-r requirements.txt (line 3)) Collecting atomicwrites>=1.0 (from pytest==4.6.3->-r requirements.txt (line 4)) Downloading https://files.pythonhosted.org/packages/2c/a0/da5f49008ec6e9a658dbf5d7310a4debd397bce0b4db03cf8a410066bb87/atomicwrites-1.4.0-py2.py3-none-any.whl Collecting packaging (from pytest==4.6.3->-r requirements.txt (line 4)) Downloading https://files.pythonhosted.org/packages/df/9e/d1a7217f69310c1db8fdf8ab396229f55a699ce34a203691794c5d1cad0c/packaging-21.3.tar.gz (84kB) 100% |████████████████████████████████| 92kB 3.0MB/s Collecting wcwidth (from pytest==4.6.3->-r requirements.txt (line 4)) Downloading https://files.pythonhosted.org/packages/59/7c/e39aca596badaf1b78e8f547c807b04dae603a433d3e7a7e04d67f2ef3e5/wcwidth-0.2.5-py2.py3-none-any.whl Collecting py>=1.5.0 (from pytest==4.6.3->-r requirements.txt (line 4)) Downloading https://files.pythonhosted.org/packages/f6/f0/10642828a8dfb741e5f3fbaac830550a518a775c7fff6f04a007259b0548/py-1.11.0-py2.py3-none-any.whl (98kB) 100% |████████████████████████████████| 102kB 2.9MB/s Requirement already satisfied (use --upgrade to upgrade): importlib-metadata>=0.12 in /usr/lib/python2.7/site-packages (from pytest==4.6.3->-r requirements.txt (line 4)) Requirement already satisfied (use --upgrade to upgrade): six>=1.10.0 in /usr/lib/python2.7/site-packages (from pytest==4.6.3->-r requirements.txt (line 4)) Requirement already satisfied (use --upgrade to upgrade): pathlib2>=2.2.0; python_version < "3.6" in /usr/lib/python2.7/site-packages (from pytest==4.6.3->-r requirements.txt (line 4)) Collecting pluggy<1.0,>=0.12 (from pytest==4.6.3->-r requirements.txt (line 4)) Downloading https://files.pythonhosted.org/packages/a0/28/85c7aa31b80d150b772fbe4a229487bc6644da9ccb7e427dd8cc60cb8a62/pluggy-0.13.1-py2.py3-none-any.whl Collecting funcsigs>=1.0; python_version < "3.0" (from pytest==4.6.3->-r requirements.txt (line 4)) Downloading https://files.pythonhosted.org/packages/69/cb/f5be453359271714c01b9bd06126eaf2e368f1fddfff30818754b5ac2328/funcsigs-1.0.2-py2.py3-none-any.whl Collecting attrs>=17.4.0 (from pytest==4.6.3->-r requirements.txt (line 4)) Downloading https://files.pythonhosted.org/packages/20/a9/ba6f1cd1a1517ff022b35acd6a7e4246371dfab08b8e42b829b6d07913cc/attrs-21.2.0-py2.py3-none-any.whl (53kB) 100% |████████████████████████████████| 61kB 2.9MB/s Collecting more-itertools<6.0.0,>=4.0.0; python_version <= "2.7" (from pytest==4.6.3->-r requirements.txt (line 4)) Downloading https://files.pythonhosted.org/packages/2f/9d/dcfe59e213093695f108508af1214cf9cd95cc5489e46877ec5cb56369e5/more_itertools-5.0.0-py2-none-any.whl (52kB) 100% |████████████████████████████████| 61kB 2.9MB/s Collecting pyparsing!=3.0.5,>=2.0.2 (from packaging->pytest==4.6.3->-r requirements.txt (line 4)) Downloading https://files.pythonhosted.org/packages/ab/61/1a1613e3dcca483a7aa9d446cb4614e6425eb853b90db131c305bd9674cb/pyparsing-3.0.6.tar.gz (882kB) 100% |████████████████████████████████| 890kB 1.0MB/s Complete output from command python setup.py egg_info: Traceback (most recent call last): File "<string>", line 1, in <module> File "/tmp/pip-build-fapeFo/pyparsing/setup.py", line 8, in <module> from pyparsing import __version__ as pyparsing_version File "pyparsing/__init__.py", line 100 major: int ^ SyntaxError: invalid syntax ---------------------------------------- Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-fapeFo/pyparsing/ You are using pip version 8.1.2, however version 21.3.1 is available. You should consider upgrading via the 'pip install --upgrade pip' command.
We need to fix the package pyparsing to version 2.4.7.
- Is referenced in