Error loading site_init file
GoogleCodeExporter opened this issue · comments
Google Code Exporter commented
What steps will reproduce the problem?
1. hammer.bat from C:\src\libjingle\talk
2.
3.
What is the expected output? What do you see instead?
C:\src\libjingle\talk>hammer
*** Error loading site_init file 'C:\\src\\swtoolkit\\site_scons\\site_init.py':
TypeError: object of type 'Dir' has no len():
File "C:\src\libjingle\scons\engine\SCons\Script\Main.py", line 1342:
_exec_main(parser, values)
File "C:\src\libjingle\scons\engine\SCons\Script\Main.py", line 1306:
_main(parser)
File "C:\src\libjingle\scons\engine\SCons\Script\Main.py", line 933:
_load_site_scons_dir(d.path, options.site_dir)
File "C:\src\libjingle\scons\engine\SCons\Script\Main.py", line 723:
exec fp in site_m
File "C:\src\swtoolkit\site_scons\site_init.py", line 455:
SiteInitMain()
File "C:\src\swtoolkit\site_scons\site_init.py", line 451:
SCons.Node.FS.get_default_fs().SConstruct_dir, None)
File "C:\src\libjingle\scons\engine\SCons\Script\Main.py", line 681:
site_dir = os.path.join(topdir, site_dir_name)
File "C:\Python27\lib\ntpath.py", line 96:
assert len(path) > 0
What version of the product are you using? On what operating system?
Windows 7
python27
libjingle-0.6.2
scons-2.1.0
Please provide any additional information below.
Original issue reported on code.google.com by mst...@gmail.com
on 19 Oct 2011 at 11:29
Google Code Exporter commented
I had same error but it was solved by lower version of scons.
Try it again with scons-2.0.1
Original comment by domengdo...@gmail.com
on 20 Oct 2011 at 9:16
Google Code Exporter commented
Thanks. It's fixed with scons-2.0.1 as you've suggested.
Original comment by mst...@gmail.com
on 20 Oct 2011 at 4:29
Google Code Exporter commented
Original comment by jun...@google.com
on 21 Oct 2011 at 8:44
- Changed state: Done
- Added labels: Type-Other
- Removed labels: Type-Defect
Google Code Exporter commented
thank you very much, for me too the error is fixed by using scons-local-2.0.1
and it is successfully build
Original comment by withjoe...@gmail.com
on 28 Nov 2011 at 12:27
Google Code Exporter commented
I found a solution for this problem, without to need to rollback to an earlier
version of SCons.
You need to modify to lines in the site_init.py file.
Line 330:
SCons.Script.Main._load_site_scons_dir(
str(SCons.Node.FS.get_default_fs().SConstruct_dir), site_dir)
Line 450:
SCons.Script.Main._load_site_scons_dir(
str(SCons.Node.FS.get_default_fs().SConstruct_dir), None)
Check this:
http://stackoverflow.com/questions/5238953/problem-compiling-libjingle
Original comment by gergelym...@gmail.com
on 27 Jan 2012 at 6:48
Google Code Exporter commented
This defect still exists. I just had to do the same thing to fix it with the
latest version of libjingle. (although the lines were different). Asking people
to downgrade to an older version of scons is not a fix.
Original comment by bj...@xowave.com
on 7 Sep 2012 at 9:45
Google Code Exporter commented
[deleted comment]
Google Code Exporter commented
line 451 in site_init.py
SCons.Script.Main._load_site_scons_dir(
SCons.Node.FS.get_default_fs().SConstruct_dir, None)
->
SCons.Script.Main._load_site_scons_dir(
SCons.Node.FS.get_default_fs().SConstruct_dir.path, None)
Original comment by truth...@gmail.com
on 8 Sep 2012 at 1:59