VC compiler for python 2.7 when building nrfutil for Mesh DFU

Hi!
I am working on DFU over the Mesh V5, according to the documentation:

To install nrfutil the following prerequisites must be satisfied:

Python 2.7 (2.7.6 or newer, not Python 3)
pip (pip.pypa.io/.../installing.html)
setuptools (upgrade to latest version: pip install -U setuptools)
install required modules: pip install -r requirements.txt

py2exe prerequisites (Windows only):

py2exe (Windows only) (v0.6.9) (pip install sourceforge.net/.../download
VC compiler for Python (Windows only) (www.microsoft.com/.../confirmation.aspx

To get things working I need to install VC compiler for Python, the link does not exist, Is there any way to install this?
I am using Windows 10 64bit operating system.
Thanks

Collecting http://sourceforge.net/projects/py2exe/files/latest/download?source=files
  Using cached http://sourceforge.net/projects/py2exe/files/latest/download?source=files (149 kB)
Requirement already satisfied (use --upgrade to upgrade): py2exe==0.6.9 from http://sourceforge.net/projects/py2exe/files/latest/download?source=files in c:\python27\lib\site-packages
Building wheels for collected packages: py2exe
  Building wheel for py2exe (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: 'c:\python27\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'c:\\users\\msalm\\appdata\\local\\temp\\pip-req-build-4crf4g\\setup.py'"'"'; __file__='"'"'c:\\users\\msalm\\appdata\\local\\temp\\pip-req-build-4crf4g\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'c:\users\msalm\appdata\local\temp\pip-wheel-fv97d6'
       cwd: c:\users\msalm\appdata\local\temp\pip-req-build-4crf4g\
  Complete output (21 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build\lib.win-amd64-2.7
  copying zipextimporter.py -> build\lib.win-amd64-2.7
  creating build\lib.win-amd64-2.7\py2exe
  copying py2exe\boot_common.py -> build\lib.win-amd64-2.7\py2exe
  copying py2exe\boot_com_servers.py -> build\lib.win-amd64-2.7\py2exe
  copying py2exe\boot_ctypes_com_server.py -> build\lib.win-amd64-2.7\py2exe
  copying py2exe\boot_service.py -> build\lib.win-amd64-2.7\py2exe
  copying py2exe\build_exe.py -> build\lib.win-amd64-2.7\py2exe
  copying py2exe\mf.py -> build\lib.win-amd64-2.7\py2exe
  copying py2exe\__init__.py -> build\lib.win-amd64-2.7\py2exe
  creating build\lib.win-amd64-2.7\py2exe\resources
  copying py2exe\resources\StringTables.py -> build\lib.win-amd64-2.7\py2exe\resources
  copying py2exe\resources\VersionInfo.py -> build\lib.win-amd64-2.7\py2exe\resources
  copying py2exe\resources\__init__.py -> build\lib.win-amd64-2.7\py2exe\resources
  running build_ext
  building '_memimporter' extension
  error: Microsoft Visual C++ 9.0 is required. Get it from http://aka.ms/vcpython27
  ----------------------------------------
  ERROR: Failed building wheel for py2exe
  Running setup.py clean for py2exe
Failed to build py2exe

Parents Reply
  • Thanks for the reply!
    I am able to install it from this link, but now I am facing this issue

    C:\Users\msalm\Desktop\pc-nrfutil>python setup.py py2exe
    running py2exe
    error: bundle-files 1 not yet supported on win64

    However, using this command works fine!

    python setup.py install

    when I type "
    nrfutil --help"
    C:\Users\msalm\Desktop\pc-nrfutil>nrfutil --help
    Usage: nrfutil [OPTIONS] COMMAND [ARGS]...
    
    Options:
     --verbose Show verbose information
     --help Show this message and exit.
    
    Commands:
     dfu This set of commands support Nordic DFU OTA package generation...
     keys Generate keys for signing or generate public keys
     version Displays nrf utility version.
Children
Related