gap_sdk icon indicating copy to clipboard operation
gap_sdk copied to clipboard

make sdk errors

Open MaoPann opened this issue 3 years ago • 1 comments

git submodule update --init --recursive
make sdk
make[2]: Leaving directory '/root/gap8/gap_sdk/utils/gap_configs'
if [ -e archi_pulp ]; then \
        cd archi_pulp && \
                export INSTALL_DIR=/root/gap8/gap_sdk/rtos/pulp/archi/workstation && \
                export TARGET_INSTALL_DIR=/root/gap8/gap_sdk/rtos/pulp/archi/target && \
                make build; \
fi
make[2]: Entering directory '/root/gap8/gap_sdk/rtos/pulp/archi_pulp'
scons
scons: Reading SConscript files ...
ImportError: No module named configparser:
  File "/root/gap8/gap_sdk/rtos/pulp/archi_pulp/SConstruct", line 4:
    import pulp_config as plpconfig
  File "/root/gap8/gap_sdk/utils/gap_configs/python/pulp_config.py", line 19:
    import json_tools as js
  File "/root/gap8/gap_sdk/utils/gapy/json_tools.py", line 23:
    import configparser
Makefile:2: recipe for target 'build' failed
make[2]: *** [build] Error 2
make[2]: Leaving directory '/root/gap8/gap_sdk/rtos/pulp/archi_pulp'
Makefile:7: recipe for target 'do.archi' failed
make[1]: *** [do.archi] Error 2
make[1]: Leaving directory '/root/gap8/gap_sdk/rtos/pulp'
Makefile:123: recipe for target 'pulp-os' failed
make: *** [pulp-os] Error 2

MaoPann avatar Nov 14 '21 10:11 MaoPann

Hi @MaoPann

For the sdk you are using, since there's no submodule, you don't need to execute the 1st command (submodule update). For your problem, it's because the package "configparser" is missing. Please make sure it has been installed:

  • If you are using Ubuntu 20.04+, with python3.8+, you just need to install it in python3
  • Otherwise, please install it for both python2 and python3

You can do a simple test to verify it, in a terminal, run: python (you can also to run python2 and python3 to run the different version) import configparser

If you got error, which means it hasn't been installed.

Hope this help.

Best Yao

Yaooooo avatar Nov 14 '21 19:11 Yaooooo