+1 vote

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?

in Engine by (19 points)

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

1 Answer

+1 vote

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.

by (19 points)

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.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.