config has no attribute can_build error when compiling godot for android in ubuntu

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By thepaperprojects
:warning: Old Version Published before Godot 3 was released.

I’m trying to compile godot source so that I may integrate google play services into my android game.

here is command:

scons platform=android target=release

here is the output:

scons platform=android target=release
scons: Reading SConscript files ...
Building for Android (armv7) (with NEON)
Using NDK unified headers
<module 'config' from '/usr/local/lib/python2.7/dist-packages/config.pyc'>
AttributeError: 'module' object has no attribute 'can_build':
  File "/home/dynomike/Downloads/godot_local/godot/SConstruct", line 399:
    if (config.can_build(selected_platform)):