Cannot build espruino: Linux

Posted on
  • I'm sure it's me, but I get the following error :

    jv@Emp:~/Espruino$ source scripts/provision.sh PUCKJS
    Provision BOARDNAME = PUCKJS
    Provision FAMILY = NRF52
    ===== NRF52
    Installing nrfutil
    Downloading/unpacking nrfutil
      Downloading nrfutil-6.1.2.tar.gz (844kB): 844kB downloaded
      Running setup.py (path:/tmp/pip-build-X12V_8/nrfutil/setu­p.py) egg_info for package nrfutil
        /usr/lib/python2.7/distutils/dist.py:267­: UserWarning: Unknown distribution option: 'zipfile'
          warnings.warn(msg)
        /usr/lib/python2.7/distutils/dist.py:267­: UserWarning: Unknown distribution option: 'python_requires'
          warnings.warn(msg)
        /usr/lib/python2.7/distutils/dist.py:267­: UserWarning: Unknown distribution option: 'console'
          warnings.warn(msg)
        error in nrfutil setup command: 'install_requires' must be a string or list of strings containing valid project/version requirement specifiers
        Complete output from command python setup.py egg_info:
        /usr/lib/python2.7/distutils/dist.py:267­: UserWarning: Unknown distribution option: 'zipfile'
    
      warnings.warn(msg)
    
    /usr/lib/python2.7/distutils/dist.py:267­: UserWarning: Unknown distribution option: 'python_requires'
    
      warnings.warn(msg)
    
    /usr/lib/python2.7/distutils/dist.py:267­: UserWarning: Unknown distribution option: 'console'
    
      warnings.warn(msg)
    
    error in nrfutil setup command: 'install_requires' must be a string or list of strings containing valid project/version requirement specifiers
    
    ----------------------------------------­
    Cleaning up...
    Command python setup.py egg_info failed with error code 1 in /tmp/pip-build-X12V_8/nrfutil
    Storing debug log for failure in /root/.pip/pip.log
    ===== ARM
    arm-none-eabi-gcc installed
    

    and the contents of pip.log:

     Downloading from URL https://files.pythonhosted.org/packages/­dd/f9/75351eeaaaec8e3f45e3e0f4bd0858aada­06e815a8dde70e47fcb63ae63d/nrfutil-6.1.2­.tar.gz#sha256=1786013611dc43057231808da­2e1d469c26cd4debc3e2468db021b3fdd0ddb5f (from https://pypi.org/simple/nrfutil/)
      Running setup.py (path:/tmp/pip-build-X12V_8/nrfutil/setu­p.py) egg_info for package nrfutil
        /usr/lib/python2.7/distutils/dist.py:267­: UserWarning: Unknown distribution option: 'zipfile'
          warnings.warn(msg)
        /usr/lib/python2.7/distutils/dist.py:267­: UserWarning: Unknown distribution option: 'python_requires'
          warnings.warn(msg)
        /usr/lib/python2.7/distutils/dist.py:267­: UserWarning: Unknown distribution option: 'console'
          warnings.warn(msg)
        error in nrfutil setup command: 'install_requires' must be a string or list of strings containing valid project/version requirement specifiers
        Complete output from command python setup.py egg_info:
        /usr/lib/python2.7/distutils/dist.py:267­: UserWarning: Unknown distribution option: 'zipfile'
    
      warnings.warn(msg)
    
    /usr/lib/python2.7/distutils/dist.py:267­: UserWarning: Unknown distribution option: 'python_requires'
    
      warnings.warn(msg)
    
    /usr/lib/python2.7/distutils/dist.py:267­: UserWarning: Unknown distribution option: 'console'
    
      warnings.warn(msg)
    
    error in nrfutil setup command: 'install_requires' must be a string or list of strings containing valid project/version requirement specifiers
    
    ----------------------------------------­
    Cleaning up...
    Command python setup.py egg_info failed with error code 1 in /tmp/pip-build-X12V_8/nrfutil
    Exception information:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/dist-packages/pip/ba­secommand.py", line 122, in main
        status = self.run(options, args)
      File "/usr/lib/python2.7/dist-packages/pip/co­mmands/install.py", line 290, in run
        requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
      File "/usr/lib/python2.7/dist-packages/pip/re­q.py", line 1230, in prepare_files
        req_to_install.run_egg_info()
      File "/usr/lib/python2.7/dist-packages/pip/re­q.py", line 326, in run_egg_info
        command_desc='python setup.py egg_info')
      File "/usr/lib/python2.7/dist-packages/pip/ut­il.py", line 716, in call_subprocess
        % (command_desc, proc.returncode, cwd))
    InstallationError: Command python setup.py egg_info failed with error code 1 in /tmp/pip-build-X12V_8/nrfutil
    

    My system:

    cat /proc/version
    Linux version 3.16.0 (mockbuild@builder7.eng.sw.ru) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-39) (GCC) ) #1 SMP Tue Jun 9 12:58:54 MSK 2020
    jv@Emp:~/Espruino$ cat /etc/*-release
    PRETTY_NAME="Debian GNU/Linux 8 (jessie)"
    NAME="Debian GNU/Linux"
    VERSION_ID="8"
    VERSION="8 (jessie)"
    ID=debian
    HOME_URL="http://www.debian.org/"
    SUPPORT_URL="http://www.debian.org/suppo­rt"
    BUG_REPORT_URL="https://bugs.debian.org/­"
    

    Any help appreciated!

  • try pip from python3, maybe try pip3 install nrfutils

  • tried that... same exact error. This is on a linux instance i rent (liveinhost.com). BTW on Windows, I used manual method and got espruino built as a local executable on my WSL, but cross compile example failed! I went to my linux instance thinking it was a cleaner solution...

  • That's an odd one. Not sure why you're having issues - definitely looks like pip is freaking out :(

    You could try running through the steps in provision.sh manually and seeing where the issue is? If a pip install command is failing you could probably just google the error message.

  • It is actually 'nrfutil' not 'nrfutils' as I wrongly suggested. also you can try python3 -m pip to be sure you are running the python3 version of pip. Also I think some latest nrfutil was also not working for me on some older linux distro, then you can force some older version python3 -m pip install nrfutil==5.2.0

  • Got it working on another linux instance, but hope to fix this eventually. Thanks all!

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

Cannot build espruino: Linux

Posted by Avatar for yngv126399 @yngv126399

Actions