Error when compiling 3.2 with scons "Module Not Found Error"

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Leon Field

Hi I have been folowing the documented way to compile Godot from source on Windows but have run into an error when typing the command to compile this is the error:

    scons platform=windows vsproj=yes
scons: Reading SConscript files ...
Configuring for Windows: target=debug, bits=default
Found MSVC version 14.1, arch amd64, bits=64
ModuleNotFoundError: No module named 'core_builders':
  File "F:\Godot\SConstruct", line 601:
    SConscript("core/SCsub")
  File "c:\users\leon\scoop\apps\python\current\lib\site-packages\SCons\Script\SConscript.py", line 661:
    return method(*args, **kw)
  File "c:\users\leon\scoop\apps\python\current\lib\site-packages\SCons\Script\SConscript.py", line 598:
    return _SConscript(self.fs, *files, **subst_kw)
  File "c:\users\leon\scoop\apps\python\current\lib\site-packages\SCons\Script\SConscript.py", line 287:
    exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
  File "F:\Godot\core\SCsub", line 5:
    import core_builders

I’ve been googling and havn’t been able to find a solution can anyone assist?

Could there be something wrong with how your install of Python is set up? Maybe it’s missing a module?

Ertain | 2020-08-18 16:27

:bust_in_silhouette: Reply From: Leon Field

I figured it out, the source code didn’t have all the files I needed, I ended up using git to grab the branch for 3.2 directly using git clone --single-branch --branch <branchname> <remote-repo> to get the rest of the files.

Compiling completed fine after that.

I had a very similar issue, which your answer helped me figure out. In my case, I had ModuleNotFoundError: No module named 'methods'. For whatever reason, when I cloned the repository, it didn’t copy all the files, including including methods.py in the root folder. So then re-cloning fixed it.

kaminate | 2021-03-21 16:51