pip3 install -r nrf/scripts/requirements.txt doesn't install all packages

D:\workspace_C_Win10\ncs>pip3 install -r nrf/scripts/requirements.txt
Requirement already satisfied: west>=0.12.0 in c:\users\andyu\appdata\local\programs\python\python310\lib\site-packages (from -r nrf/scripts\requirements-base.txt (line 1)) (0.13.1)
Collecting ecdsa
Downloading ecdsa-0.18.0-py2.py3-none-any.whl (142 kB)
---------------------------------------- 142.9/142.9 kB 850.5 kB/s eta 0:00:00
Requirement already satisfied: imagesize>=1.2.0 in c:\users\andyu\appdata\local\programs\python\python310\lib\site-packages (from -r nrf/scripts\requirements-build.txt (line 2)) (1.4.1)
Requirement already satisfied: intelhex in c:\users\andyu\appdata\local\programs\python\python310\lib\site-packages (from -r nrf/scripts\requirements-build.txt (line 3)) (2.3.0)
Requirement already satisfied: pylint in c:\users\andyu\appdata\local\programs\python\python310\lib\site-packages (from -r nrf/scripts\requirements-build.txt (line 4)) (2.14.4)
Collecting zcbor==0.4.0
Downloading zcbor-0.4.0-py3-none-any.whl (65 kB)
---------------------------------------- 65.9/65.9 kB 3.7 MB/s eta 0:00:00
Collecting recommonmark==0.6.0
Downloading recommonmark-0.6.0-py2.py3-none-any.whl (10 kB)
Collecting CommonMark>=0.9.1
Downloading commonmark-0.9.1-py2.py3-none-any.whl (51 kB)
---------------------------------------- 51.1/51.1 kB 1.3 MB/s eta 0:00:00
Collecting sphinxcontrib-mscgen>=0.6
Downloading sphinxcontrib-mscgen-0.6.tar.gz (6.5 kB)
Preparing metadata (setup.py) ... done
Collecting sphinx-ncs-theme<1.1,>=1.0.3
Downloading sphinx_ncs_theme-1.0.8-py3-none-any.whl (92 kB)
---------------------------------------- 92.2/92.2 kB 1.7 MB/s eta 0:00:00
Collecting m2r2
Downloading m2r2-0.3.2-py3-none-any.whl (11 kB)
Collecting sphinxcontrib-plantuml
Downloading sphinxcontrib-plantuml-0.24.tar.gz (12 kB)
Preparing metadata (setup.py) ... done
Collecting pygit2
Downloading pygit2-1.9.2-cp310-cp310-win_amd64.whl (1.2 MB)
---------------------------------------- 1.2/1.2 MB 1.6 MB/s eta 0:00:00
Requirement already satisfied: pyyaml in c:\users\andyu\appdata\local\programs\python\python310\lib\site-packages (from -r nrf/scripts\requirements-doc.txt (line 8)) (6.0)
Collecting azure-storage-blob
Downloading azure_storage_blob-12.13.0-py3-none-any.whl (377 kB)
---------------------------------------- 377.3/377.3 kB 1.7 MB/s eta 0:00:00
Collecting sphinx_markdown_tables
Downloading sphinx_markdown_tables-0.0.15-py3-none-any.whl (28 kB)
Collecting markdown<3.3.5
Downloading Markdown-3.3.4-py3-none-any.whl (97 kB)
---------------------------------------- 97.6/97.6 kB 1.4 MB/s eta 0:00:00
Collecting mistune<2.0
Downloading mistune-0.8.4-py2.py3-none-any.whl (16 kB)
Requirement already satisfied: breathe<4.33 in c:\users\andyu\appdata\local\programs\python\python310\lib\site-packages (from -r nrf/scripts\requirements-doc.txt (line 13)) (4.32.0)
Collecting pyyaml
Downloading PyYAML-5.4.1.tar.gz (175 kB)
---------------------------------------- 175.1/175.1 kB 2.6 MB/s eta 0:00:00
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting regex>=2020.11.13
Downloading regex-2022.7.9-cp310-cp310-win_amd64.whl (262 kB)
---------------------------------------- 262.1/262.1 kB 2.3 MB/s eta 0:00:00
Requirement already satisfied: cbor2>=5.4.0 in c:\users\andyu\appdata\local\programs\python\python310\lib\site-packages (from zcbor==0.4.0->-r nrf/scripts\requirements-build.txt (line 5)) (5.4.3)
Requirement already satisfied: sphinx>=1.3.1 in c:\users\andyu\appdata\local\programs\python\python310\lib\site-packages (from recommonmark==0.6.0->-r nrf/scripts\requirements-doc.txt (line 1)) (4.5.0)
Requirement already satisfied: docutils>=0.11 in c:\users\andyu\appdata\local\programs\python\python310\lib\site-packages (from recommonmark==0.6.0->-r nrf/scripts\requirements-doc.txt (line 1)) (0.17.1)
Requirement already satisfied: colorama in c:\users\andyu\appdata\local\programs\python\python310\lib\site-packages (from west>=0.12.0->-r nrf/scripts\requirements-base.txt (line 1)) (0.4.5)
Requirement already satisfied: packaging in c:\users\andyu\appdata\local\programs\python\python310\lib\site-packages (from west>=0.12.0->-r nrf/scripts\requirements-base.txt (line 1)) (21.3)
Requirement already satisfied: pykwalify in c:\users\andyu\appdata\local\programs\python\python310\lib\site-packages (from west>=0.12.0->-r nrf/scripts\requirements-base.txt (line 1)) (1.8.0)
Requirement already satisfied: setuptools in c:\users\andyu\appdata\local\programs\python\python310\lib\site-packages (from west>=0.12.0->-r nrf/scripts\requirements-base.txt (line 1)) (63.2.0)
Requirement already satisfied: six>=1.9.0 in c:\users\andyu\appdata\local\programs\python\python310\lib\site-packages (from ecdsa->-r nrf/scripts\requirements-build.txt (line 1)) (1.16.0)
Requirement already satisfied: astroid<=2.12.0-dev0,>=2.11.6 in c:\users\andyu\appdata\local\programs\python\python310\lib\site-packages (from pylint->-r nrf/scripts\requirements-build.txt (line 4)) (2.11.7)
Requirement already satisfied: tomli>=1.1.0 in c:\users\andyu\appdata\local\programs\python\python310\lib\site-packages (from pylint->-r nrf/scripts\requirements-build.txt (line 4)) (2.0.1)
Requirement already satisfied: mccabe<0.8,>=0.6 in c:\users\andyu\appdata\local\programs\python\python310\lib\site-packages (from pylint->-r nrf/scripts\requirements-build.txt (line 4)) (0.7.0)
Requirement already satisfied: tomlkit>=0.10.1 in c:\users\andyu\appdata\local\programs\python\python310\lib\site-packages (from pylint->-r nrf/scripts\requirements-build.txt (line 4)) (0.11.1)
Requirement already satisfied: isort<6,>=4.2.5 in c:\users\andyu\appdata\local\programs\python\python310\lib\site-packages (from pylint->-r nrf/scripts\requirements-build.txt (line 4)) (5.10.1)
Requirement already satisfied: platformdirs>=2.2.0 in c:\users\andyu\appdata\local\programs\python\python310\lib\site-packages (from pylint->-r nrf/scripts\requirements-build.txt (line 4)) (2.5.2)
Requirement already satisfied: dill>=0.2 in c:\users\andyu\appdata\local\programs\python\python310\lib\site-packages (from pylint->-r nrf/scripts\requirements-build.txt (line 4)) (0.3.5.1)
Requirement already satisfied: sphinx-rtd-theme~=1.0 in c:\users\andyu\appdata\local\programs\python\python310\lib\site-packages (from sphinx-ncs-theme<1.1,>=1.0.3->-r nrf/scripts\requirements-doc.txt (line 4)) (1.0.0)
Requirement already satisfied: cffi>=1.9.1 in c:\users\andyu\appdata\local\programs\python\python310\lib\site-packages (from pygit2->-r nrf/scripts\requirements-doc.txt (line 7)) (1.15.1)
Collecting msrest>=0.6.21
Downloading msrest-0.7.1-py3-none-any.whl (85 kB)
---------------------------------------- 85.4/85.4 kB 2.3 MB/s eta 0:00:00
Requirement already satisfied: cryptography>=2.1.4 in c:\users\andyu\appdata\local\programs\python\python310\lib\site-packages (from azure-storage-blob->-r nrf/scripts\requirements-doc.txt (line 9)) (37.0.4)
Collecting azure-core<2.0.0,>=1.23.1
Downloading azure_core-1.24.2-py3-none-any.whl (178 kB)
---------------------------------------- 178.7/178.7 kB 2.2 MB/s eta 0:00:00
Requirement already satisfied: lazy-object-proxy>=1.4.0 in c:\users\andyu\appdata\local\programs\python\python310\lib\site-packages (from astroid<=2.12.0-dev0,>=2.11.6->pylint->-r nrf/scripts\requirements-build.txt (line 4)) (1.7.1)
Requirement already satisfied: wrapt<2,>=1.11 in c:\users\andyu\appdata\local\programs\python\python310\lib\site-packages (from astroid<=2.12.0-dev0,>=2.11.6->pylint->-r nrf/scripts\requirements-build.txt (line 4)) (1.14.1)
Requirement already satisfied: requests>=2.18.4 in c:\users\andyu\appdata\local\programs\python\python310\lib\site-packages (from azure-core<2.0.0,>=1.23.1->azure-storage-blob->-r nrf/scripts\requirements-doc.txt (line 9)) (2.28.1)
Requirement already satisfied: typing-extensions>=4.0.1 in c:\users\andyu\appdata\local\programs\python\python310\lib\site-packages (from azure-core<2.0.0,>=1.23.1->azure-storage-blob->-r nrf/scripts\requirements-doc.txt (line 9)) (4.3.0)
Requirement already satisfied: pycparser in c:\users\andyu\appdata\local\programs\python\python310\lib\site-packages (from cffi>=1.9.1->pygit2->-r nrf/scripts\requirements-doc.txt (line 7)) (2.21)
Requirement already satisfied: certifi>=2017.4.17 in c:\users\andyu\appdata\local\programs\python\python310\lib\site-packages (from msrest>=0.6.21->azure-storage-blob->-r nrf/scripts\requirements-doc.txt (line 9)) (2022.6.15)
Collecting requests-oauthlib>=0.5.0
Downloading requests_oauthlib-1.3.1-py2.py3-none-any.whl (23 kB)
Collecting isodate>=0.6.0
Downloading isodate-0.6.1-py2.py3-none-any.whl (41 kB)
---------------------------------------- 41.7/41.7 kB 2.0 MB/s eta 0:00:00
Requirement already satisfied: sphinxcontrib-jsmath in c:\users\andyu\appdata\local\programs\python\python310\lib\site-packages (from sphinx>=1.3.1->recommonmark==0.6.0->-r nrf/scripts\requirements-doc.txt (line 1)) (1.0.1)
Requirement already satisfied: Pygments>=2.0 in c:\users\andyu\appdata\local\programs\python\python310\lib\site-packages (from sphinx>=1.3.1->recommonmark==0.6.0->-r nrf/scripts\requirements-doc.txt (line 1)) (2.12.0)
Requirement already satisfied: sphinxcontrib-devhelp in c:\users\andyu\appdata\local\programs\python\python310\lib\site-packages (from sphinx>=1.3.1->recommonmark==0.6.0->-r nrf/scripts\requirements-doc.txt (line 1)) (1.0.2)
Requirement already satisfied: sphinxcontrib-serializinghtml>=1.1.5 in c:\users\andyu\appdata\local\programs\python\python310\lib\site-packages (from sphinx>=1.3.1->recommonmark==0.6.0->-r nrf/scripts\requirements-doc.txt (line 1)) (1.1.5)
Requirement already satisfied: sphinxcontrib-htmlhelp>=2.0.0 in c:\users\andyu\appdata\local\programs\python\python310\lib\site-packages (from sphinx>=1.3.1->recommonmark==0.6.0->-r nrf/scripts\requirements-doc.txt (line 1)) (2.0.0)
Requirement already satisfied: sphinxcontrib-applehelp in c:\users\andyu\appdata\local\programs\python\python310\lib\site-packages (from sphinx>=1.3.1->recommonmark==0.6.0->-r nrf/scripts\requirements-doc.txt (line 1)) (1.0.2)
Requirement already satisfied: sphinxcontrib-qthelp in c:\users\andyu\appdata\local\programs\python\python310\lib\site-packages (from sphinx>=1.3.1->recommonmark==0.6.0->-r nrf/scripts\requirements-doc.txt (line 1)) (1.0.3)
Requirement already satisfied: babel>=1.3 in c:\users\andyu\appdata\local\programs\python\python310\lib\site-packages (from sphinx>=1.3.1->recommonmark==0.6.0->-r nrf/scripts\requirements-doc.txt (line 1)) (2.10.3)
Requirement already satisfied: alabaster<0.8,>=0.7 in c:\users\andyu\appdata\local\programs\python\python310\lib\site-packages (from sphinx>=1.3.1->recommonmark==0.6.0->-r nrf/scripts\requirements-doc.txt (line 1)) (0.7.12)
Requirement already satisfied: snowballstemmer>=1.1 in c:\users\andyu\appdata\local\programs\python\python310\lib\site-packages (from sphinx>=1.3.1->recommonmark==0.6.0->-r nrf/scripts\requirements-doc.txt (line 1)) (2.2.0)
Requirement already satisfied: Jinja2>=2.3 in c:\users\andyu\appdata\local\programs\python\python310\lib\site-packages (from sphinx>=1.3.1->recommonmark==0.6.0->-r nrf/scripts\requirements-doc.txt (line 1)) (3.0.3)
Requirement already satisfied: pyparsing!=3.0.5,>=2.0.2 in c:\users\andyu\appdata\local\programs\python\python310\lib\site-packages (from packaging->west>=0.12.0->-r nrf/scripts\requirements-base.txt (line 1)) (3.0.9)
Requirement already satisfied: ruamel.yaml>=0.16.0 in c:\users\andyu\appdata\local\programs\python\python310\lib\site-packages (from pykwalify->west>=0.12.0->-r nrf/scripts\requirements-base.txt (line 1)) (0.17.21)
Requirement already satisfied: python-dateutil>=2.8.0 in c:\users\andyu\appdata\local\programs\python\python310\lib\site-packages (from pykwalify->west>=0.12.0->-r nrf/scripts\requirements-base.txt (line 1)) (2.8.2)
Requirement already satisfied: docopt>=0.6.2 in c:\users\andyu\appdata\local\programs\python\python310\lib\site-packages (from pykwalify->west>=0.12.0->-r nrf/scripts\requirements-base.txt (line 1)) (0.6.2)
Requirement already satisfied: pytz>=2015.7 in c:\users\andyu\appdata\local\programs\python\python310\lib\site-packages (from babel>=1.3->sphinx>=1.3.1->recommonmark==0.6.0->-r nrf/scripts\requirements-doc.txt (line 1)) (2022.1)
Requirement already satisfied: MarkupSafe>=2.0 in c:\users\andyu\appdata\local\programs\python\python310\lib\site-packages (from Jinja2>=2.3->sphinx>=1.3.1->recommonmark==0.6.0->-r nrf/scripts\requirements-doc.txt (line 1)) (2.1.1)
Requirement already satisfied: charset-normalizer<3,>=2 in c:\users\andyu\appdata\local\programs\python\python310\lib\site-packages (from requests>=2.18.4->azure-core<2.0.0,>=1.23.1->azure-storage-blob->-r nrf/scripts\requirements-doc.txt (line 9)) (2.1.0)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in c:\users\andyu\appdata\local\programs\python\python310\lib\site-packages (from requests>=2.18.4->azure-core<2.0.0,>=1.23.1->azure-storage-blob->-r nrf/scripts\requirements-doc.txt (line 9)) (1.26.10)
Requirement already satisfied: idna<4,>=2.5 in c:\users\andyu\appdata\local\programs\python\python310\lib\site-packages (from requests>=2.18.4->azure-core<2.0.0,>=1.23.1->azure-storage-blob->-r nrf/scripts\requirements-doc.txt (line 9)) (3.3)
Collecting oauthlib>=3.0.0
Downloading oauthlib-3.2.0-py3-none-any.whl (151 kB)
---------------------------------------- 151.5/151.5 kB 1.3 MB/s eta 0:00:00
Requirement already satisfied: ruamel.yaml.clib>=0.2.6 in c:\users\andyu\appdata\local\programs\python\python310\lib\site-packages (from ruamel.yaml>=0.16.0->pykwalify->west>=0.12.0->-r nrf/scripts\requirements-base.txt (line 1)) (0.2.6)
Building wheels for collected packages: sphinxcontrib-mscgen, sphinxcontrib-plantuml, pyyaml
Building wheel for sphinxcontrib-mscgen (setup.py) ... done
Created wheel for sphinxcontrib-mscgen: filename=sphinxcontrib_mscgen-0.6-py3-none-any.whl size=5524 sha256=8733c51a6f27f1ed8382a1a4b2c0f578f34b9d3b64390dd60d86ba0c1c6428b8
Stored in directory: c:\users\andyu\appdata\local\pip\cache\wheels\5f\1b\0e\44c9b9e255cacd65f9182f712f252d6d1348e9febed6b8bfc4
Building wheel for sphinxcontrib-plantuml (setup.py) ... done
Created wheel for sphinxcontrib-plantuml: filename=sphinxcontrib_plantuml-0.24-py3-none-any.whl size=11103 sha256=5f45d181e48680843bbca06c6c015b77fe7c0e4780baab925074901fdae71deb
Stored in directory: c:\users\andyu\appdata\local\pip\cache\wheels\40\7b\04\2dbbe97fb71b78b3035df2ded1b35a3245b96ae2686a080bbf
Building wheel for pyyaml (pyproject.toml) ... done
Created wheel for pyyaml: filename=PyYAML-5.4.1-cp310-cp310-win32.whl size=45649 sha256=7ea6e14a0ad7aaf858baac013a068397eec6c8485ca75bca16b5fae3cae92f38
Stored in directory: c:\users\andyu\appdata\local\pip\cache\wheels\c7\0d\22\696ee92245ad710f506eee79bb05c740d8abccd3ecdb778683
Successfully built sphinxcontrib-mscgen sphinxcontrib-plantuml pyyaml
Installing collected packages: mistune, CommonMark, regex, pyyaml, oauthlib, markdown, m2r2, isodate, ecdsa, zcbor, sphinx_markdown_tables, requests-oauthlib, pygit2, azure-core, sphinxcontrib-plantuml, sphinxcontrib-mscgen, recommonmark, msrest, sphinx-ncs-theme, azure-storage-blob
Attempting uninstall: pyyaml
Found existing installation: PyYAML 6.0
Uninstalling PyYAML-6.0:
Successfully uninstalled PyYAML-6.0
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
pyocd 0.34.1 requires pyyaml<7.0,>=6.0, but you have pyyaml 5.4.1 which is incompatible.
cmsis-pack-manager 0.4.0 requires pyyaml<7.0,>=6.0, but you have pyyaml 5.4.1 which is incompatible.
Successfully installed CommonMark-0.9.1 azure-core-1.24.2 azure-storage-blob-12.13.0 ecdsa-0.18.0 isodate-0.6.1 m2r2-0.3.2 markdown-3.3.4 mistune-0.8.4 msrest-0.7.1 oauthlib-3.2.0 pygit2-1.9.2 pyyaml-5.4.1 recommonmark-0.6.0 regex-2022.7.9 requests-oauthlib-1.3.1 sphinx-ncs-theme-1.0.8 sphinx_markdown_tables-0.0.15 sphinxcontrib-mscgen-0.6 sphinxcontrib-plantuml-0.24 zcbor-0.4.0

Parents
  • I see this all the time too, as it is printed in red font at the end of the script output. It hasn't really caused any real pain yet, and I've always thought it had something to do with me switching between NCS 1.5.2 and NCS 2.0.0. When I switch my target NCS version, I always perform a west update and run the three requirements.txt scripts, and I have been seeing this same exact warning lately when I run nrf/scripts/requirements.txt.

    I can't tell exactly what's going on, other than a bunch of the packages require a PyYAML version >=6.0, and it looks like previous NCS versions used packages that only required pyyaml 5.4.1, and these versions conflict. I'm not sure if this is really just a warning or what, because it does appear that PyYAML-6.0 gets installed.


  • Hello rory and snowuyl,

    Is this causing you any issues when you attempt to build a project later on? Is there any complaint about missing packages or incorrect packet versions?

    In general I would recommend that you make use of virtual environments to make sure that you differentiate between the two different toolchains and their requirements.
    The easiest and recommended way of doing this is to use the nRF Connect extensions for Visual Studio code, which lets you effortlessly change between the different toolchains, without having to manually run the requirement scripts or west updates in-between each usage.

    Changing between different toolchains is as easy as selecting it from this dropdown menu:

    When you open a new nRF Terminal (ctrl + shift + p, type 'shell') in VSC it will source the environment for the toolchain chosen in this dropdown menu.

    Additionally, you could then download and setup the SDK and toolchains using the Toolchain Manager application from nRF Connect for desktop, which is by far the easiest way to manage your toolchains :)

    Best regards,
    Karl

  • No problem at all, I am happy to help! :) 

    Best regards,
    Karl

Reply Children
No Data
Related