jigar-joshi / libjingle

Automatically exported from code.google.com/p/libjingle
0 stars 0 forks source link

Error loading site_init file #229

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago

Original comment by jun...@google.com on 21 Oct 2011 at 8:44

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
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