Bassem Girgis
2018-08-01 07:07:57 UTC
I'm trying to build a project that used to build fine. After doing a
routine update for my linux machine, I started getting this error. My
site_init.py is empty. I'm hoping this issue is related to something new
that went into a recent release of scons.
$ scons
*** Error loading site_init file './site_scons/site_init.py':
AttributeError: 'NoneType' object has no attribute 'loader':
File "/usr/lib/scons-3.0.1/SCons/Script/Main.py", line 1396:
_exec_main(parser, values)
File "/usr/lib/scons-3.0.1/SCons/Script/Main.py", line 1359:
_main(parser)
File "/usr/lib/scons-3.0.1/SCons/Script/Main.py", line 990:
_load_all_site_scons_dirs(d.get_internal_path())
File "/usr/lib/scons-3.0.1/SCons/Script/Main.py", line 843:
_load_site_scons_dir(d)
File "/usr/lib/scons-3.0.1/SCons/Script/Main.py", line 781:
mod = importlib.util.module_from_spec(spec)
File "<frozen importlib._bootstrap>", line 568:
routine update for my linux machine, I started getting this error. My
site_init.py is empty. I'm hoping this issue is related to something new
that went into a recent release of scons.
$ scons
*** Error loading site_init file './site_scons/site_init.py':
AttributeError: 'NoneType' object has no attribute 'loader':
File "/usr/lib/scons-3.0.1/SCons/Script/Main.py", line 1396:
_exec_main(parser, values)
File "/usr/lib/scons-3.0.1/SCons/Script/Main.py", line 1359:
_main(parser)
File "/usr/lib/scons-3.0.1/SCons/Script/Main.py", line 990:
_load_all_site_scons_dirs(d.get_internal_path())
File "/usr/lib/scons-3.0.1/SCons/Script/Main.py", line 843:
_load_site_scons_dir(d)
File "/usr/lib/scons-3.0.1/SCons/Script/Main.py", line 781:
mod = importlib.util.module_from_spec(spec)
File "<frozen importlib._bootstrap>", line 568: