Cannot compile on ubuntu

hi i cannot compile with ubuntu 18.04 : any help?

Traceback (most recent call last):
  File "/home/francesco/openwrt/build_dir/host/scons-3.1.1/setup.py", line 26, in <module>
    import distutils.command.build_scripts
ModuleNotFoundError: No module named 'distutils.command'
Makefile:35: recipe for target '/home/francesco/openwrt/staging_dir/host/stamp/.scons_installed' failed
make[3]: *** [/home/francesco/openwrt/staging_dir/host/stamp/.scons_installed] Error 1
make[3]: Leaving directory '/home/francesco/openwrt/tools/scons'
time: tools/scons/compile#0.09#0.01#0.11
tools/Makefile:157: recipe for target 'tools/scons/compile' failed
make[2]: *** [tools/scons/compile] Error 2
make[2]: Leaving directory '/home/francesco/openwrt'
tools/Makefile:155: recipe for target '/home/francesco/openwrt/staging_dir/target-mips_24kc_musl/stamp/.tools_compile_yynyynnyyynyyyyynyynnyyyynyyyyyyyyyyyyyyynyynynyyyynnyyy' failed
make[1]: *** [/home/francesco/openwrt/staging_dir/target-mips_24kc_musl/stamp/.tools_compile_yynyynnyyynyyyyynyynnyyyynyyyyyyyyyyyyyyynyynynyyyynnyyy] Error 2
make[1]: Leaving directory '/home/francesco/openwrt'
/home/francesco/openwrt/include/toplevel.mk:216: recipe for target 'world' failed
make: *** [world] Error 2

Do you have python3 and python-future?

i don't have python-future. is that the problem? but i never had problem with compilation until now?

Well, it has been a requirement for a month or two now.

1 Like

still same error

It looks like you are missing python3-distutils and python-distutils

1 Like

thanks robimarko just python3-distutils was missing.
salute

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.