This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Problem : importing nrf9160 projet in SES

HI !

i have a problem during importing nrf9160 project in SES , knowing that i imported this project and others with same toolchain installed and other requirement.

onetime i closed SES ,and i'm not able to open or import any project with this method .

i tried to reinstall all the toolchain and git repo and ... but same problem it appears, stuck at this situation , like it's shown in the image .

thanks. 

  • I have a hunch that this issue is related to pyyaml. It seems the pyyaml should be installed when installing the rquirements found here: nrf\scripts\requirements.txt (see link

    Could you try running the following command first:
    pip install --upgrade pip
    before then running:
    pip3 install -r nrf\scripts\requirements.txt
    Do you get any weird logging output when you run this command?
  • this is the logging outputs:

    C:\_Zephyr_Nordic\ncs>pip install --upgrade pip
    Requirement already up-to-date: pip in c:\python37\lib\site-packages (19.0.3)
    
    C:\_Zephyr_Nordic\ncs>pip3 install -r nrf\scripts\requirements.txt
    Collecting git+github.com/.../mscgen.git@python3 (from -r nrf\scripts\requirements.txt (line 2))
    Cloning github.com/.../mscgen.git (to revision python3) to c:\users\omarmo~1\appdata\local\temp\pip-req-build-2qo0oa1n
    Switched to a new branch 'python3'
    Branch 'python3' set up to track remote branch 'python3' from 'origin'.
    Requirement already satisfied (use --upgrade to upgrade): sphinxcontrib-mscgen==0.5.dev20190327 from git+github.com/.../mscgen.git@python3 in c:\python37\lib\site-packages (from -r nrf\scripts\requirements.txt (line 2))
    Requirement already satisfied: recommonmark in c:\python37\lib\site-packages (from -r nrf\scripts\requirements.txt (line 1)) (0.4.0)
    Requirement already satisfied: ecdsa in c:\python37\lib\site-packages (from -r nrf\scripts\requirements.txt (line 3)) (0.13)
    Requirement already satisfied: Sphinx>=0.6 in c:\python37\lib\site-packages (from sphinxcontrib-mscgen==0.5.dev20190327->-r nrf\scripts\requirements.txt (line 2)) (1.7.5)
    Requirement already satisfied: six>=1.5 in c:\python37\lib\site-packages (from sphinxcontrib-mscgen==0.5.dev20190327->-r nrf\scripts\requirements.txt (line 2)) (1.12.0)
    Requirement already satisfied: docutils>=0.11 in c:\users\omar morceli\appdata\roaming\python\python37\site-packages (from recommonmark->-r nrf\scripts\requirements.txt (line 1)) (0.14)
    Requirement already satisfied: commonmark<=0.5.4 in c:\python37\lib\site-packages (from recommonmark->-r nrf\scripts\requirements.txt (line 1)) (0.5.4)
    Requirement already satisfied: Pygments>=2.0 in c:\python37\lib\site-packages (from Sphinx>=0.6->sphinxcontrib-mscgen==0.5.dev20190327->-r nrf\scripts\requirements.txt (line 2)) (2.3.1)
    Requirement already satisfied: Jinja2>=2.3 in c:\python37\lib\site-packages (from Sphinx>=0.6->sphinxcontrib-mscgen==0.5.dev20190327->-r nrf\scripts\requirements.txt (line 2)) (2.10)
    Requirement already satisfied: sphinxcontrib-websupport in c:\python37\lib\site-packages (from Sphinx>=0.6->sphinxcontrib-mscgen==0.5.dev20190327->-r nrf\scripts\requirements.txt (line 2)) (1.1.0)
    Requirement already satisfied: imagesize in c:\python37\lib\site-packages (from Sphinx>=0.6->sphinxcontrib-mscgen==0.5.dev20190327->-r nrf\scripts\requirements.txt (line 2)) (1.1.0)
    Requirement already satisfied: snowballstemmer>=1.1 in c:\python37\lib\site-packages (from Sphinx>=0.6->sphinxcontrib-mscgen==0.5.dev20190327->-r nrf\scripts\requirements.txt (line 2)) (1.2.1)
    Requirement already satisfied: colorama>=0.3.5; sys_platform == "win32" in c:\users\omar morceli\appdata\roaming\python\python37\site-packages (from Sphinx>=0.6->sphinxcontrib-mscgen==0.5.dev20190327->-r nrf\scripts\requirements.txt (line 2)) (0.3.9)
    Requirement already satisfied: alabaster<0.8,>=0.7 in c:\python37\lib\site-packages (from Sphinx>=0.6->sphinxcontrib-mscgen==0.5.dev20190327->-r nrf\scripts\requirements.txt (line 2)) (0.7.12)
    Requirement already satisfied: requests>=2.0.0 in c:\python37\lib\site-packages (from Sphinx>=0.6->sphinxcontrib-mscgen==0.5.dev20190327->-r nrf\scripts\requirements.txt (line 2)) (2.21.0)
    Requirement already satisfied: setuptools in c:\python37\lib\site-packages (from Sphinx>=0.6->sphinxcontrib-mscgen==0.5.dev20190327->-r nrf\scripts\requirements.txt (line 2)) (40.6.2)
    Requirement already satisfied: babel!=2.0,>=1.3 in c:\python37\lib\site-packages (from Sphinx>=0.6->sphinxcontrib-mscgen==0.5.dev20190327->-r nrf\scripts\requirements.txt (line 2)) (2.6.0)
    Requirement already satisfied: packaging in c:\python37\lib\site-packages (from Sphinx>=0.6->sphinxcontrib-mscgen==0.5.dev20190327->-r nrf\scripts\requirements.txt (line 2)) (19.0)
    Requirement already satisfied: MarkupSafe>=0.23 in c:\python37\lib\site-packages (from Jinja2>=2.3->Sphinx>=0.6->sphinxcontrib-mscgen==0.5.dev20190327->-r nrf\scripts\requirements.txt (line 2)) (1.1.1)
    Requirement already satisfied: certifi>=2017.4.17 in c:\python37\lib\site-packages (from requests>=2.0.0->Sphinx>=0.6->sphinxcontrib-mscgen==0.5.dev20190327->-r nrf\scripts\requirements.txt (line 2)) (2019.3.9)
    Requirement already satisfied: chardet<3.1.0,>=3.0.2 in c:\python37\lib\site-packages (from requests>=2.0.0->Sphinx>=0.6->sphinxcontrib-mscgen==0.5.dev20190327->-r nrf\scripts\requirements.txt (line 2)) (3.0.4)
    Requirement already satisfied: urllib3<1.25,>=1.21.1 in c:\users\omar morceli\appdata\roaming\python\python37\site-packages (from requests>=2.0.0->Sphinx>=0.6->sphinxcontrib-mscgen==0.5.dev20190327->-r nrf\scripts\requirements.txt (line 2)) (1.24.1)
    Requirement already satisfied: idna<2.9,>=2.5 in c:\python37\lib\site-packages (from requests>=2.0.0->Sphinx>=0.6->sphinxcontrib-mscgen==0.5.dev20190327->-r nrf\scripts\requirements.txt (line 2)) (2.8)
    Requirement already satisfied: pytz>=0a in c:\python37\lib\site-packages (from babel!=2.0,>=1.3->Sphinx>=0.6->sphinxcontrib-mscgen==0.5.dev20190327->-r nrf\scripts\requirements.txt (line 2)) (2018.9)
    Requirement already satisfied: pyparsing>=2.0.2 in c:\python37\lib\site-packages (from packaging->Sphinx>=0.6->sphinxcontrib-mscgen==0.5.dev20190327->-r nrf\scripts\requirements.txt (line 2)) (2.3.1)
    Building wheels for collected packages: sphinxcontrib-mscgen
    Building wheel for sphinxcontrib-mscgen (setup.py) ... done
    Stored in directory: C:\Users\OMARMO~1\AppData\Local\Temp\pip-ephem-wheel-cache-5259m2er\wheels\bb\7f\dc\9210fc99cbb4c3c18bd00303d24c2b36ba9394194f5e0168e9
    Successfully built sphinxcontrib-mscgen

  • Interesting. Does the spinning wheel actually start spinning when you try to load a Nordic Connect SDK project? Or is it stuck at the screenshot you show on top? I have asked about this internally & will get back to you with more info soon.

  • no it's stuck like the screenshot 

    it spinning a while(about 2min) and then it stops 

  • We are looking at this issue. For now, it could be a good idea to build the NCS projects via the command line & use an IDE such as Visual Studio Code instead. You may receive more logging information that may be helpful in debugging this issue.

    From your last comment, it looks like pyyaml may be working as intended & there is some other issue that may be causing this.

Related