Re: Need help to debug, problem with Alias()

Pierre-Luc Boily <[email protected]>
Newsgroups gmane.comp.programming.tools.scons.user
Message-ID <CACTRa=v0DUnZGPX6Lhg5ac9jHdM1dQD-mpAcNV0xagn5N9=28g@mail.gmail.com>
3.0.5 gives the same error.  I dug a little bit and I found that the
problem might be related with Alias.

1. Following line is being called for .ui files :
env.Default(env.Alias('bin',env.Uic4(src)))

2. And following line is for target returned by Install : env.Alias('bin',
tgts)

So, those 2 lines are called numerous time and it gives the error I was
talking about.  I realized that if I change this
env.Default(env.Alias('bin',env.Uic4(src)))
by this
env.Uic4(src)

This resolved my problem.  Uic4 target is not needed as a Default target.


Le mer. 26 juin 2019, à 20 h 22, Bill Deegan <[email protected]> a
écrit :

> Can you try 3.0.5 and/or scons/master?
>
> -Bill
>
> On Wed, Jun 26, 2019 at 5:01 PM Pierre-Luc Boily <
> [email protected]> wrote:
>
>> 1. Centos 6.7
>> 2. Python 3.5.4
>> 3. scons 3.0.1
>>
>> Le mer. 26 juin 2019, à 15 h 26, Bill Deegan <[email protected]>
>> a écrit :
>>
>>> which plaform, version of python, version of SCons?
>>>
>>> On Wed, Jun 26, 2019 at 12:06 PM Pierre-Luc Boily <
>>> [email protected]> wrote:
>>>
>>>> Hello,
>>>>
>>>> I have the following error at the end of the compilation process :
>>>> scons: *** [bin] AttributeError : 'NoneType' object has no attribute
>>>> 'get_contents'
>>>>
>>>> I am not sure where this error is coming from.
>>>>
>>>> 1. I am suspecting that it is coming from a sconscript that generates a
>>>> header file with SVN revision written as a define :
>>>> https://pastebin.com/ZL7tw8p6
>>>>
>>>> 2. This generated include file is used by this sconscript :
>>>> https://pastebin.com/xdDsV9zp.  I am using Depends functions to force
>>>> the
>>>> generation of the header file at step 1.
>>>>
>>>> 3. Something weird though, if I re-launched the build, it gives no
>>>> error.
>>>> In order to get the error message, I have to change file at step 1.
>>>>
>>>> 4. --debug=stacktrace:https://pastebin.com/Vscxc6aT.  I see the stack
>>>> trace
>>>> going through implicit dependency scanner.  This is the reason why I
>>>> think
>>>> it could be related with the file generation at step 1.
>>>>
>>>> thx for your idea!
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Sent from: http://scons.1086193.n5.nabble.com/Users-f16930.html
>>>> _______________________________________________
>>>> Scons-users mailing list
>>>> [email protected]
>>>> https://pairlist4.pair.net/mailman/listinfo/scons-users
>>>>
>>> _______________________________________________
>>> Scons-users mailing list
>>> [email protected]
>>> https://pairlist4.pair.net/mailman/listinfo/scons-users
>>>
>> _______________________________________________
>> Scons-users mailing list
>> [email protected]
>> https://pairlist4.pair.net/mailman/listinfo/scons-users
>>
> _______________________________________________
> Scons-users mailing list
> [email protected]
> https://pairlist4.pair.net/mailman/listinfo/scons-users
>

_______________________________________________
Scons-users mailing list
[email protected]
https://pairlist4.pair.net/mailman/listinfo/scons-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.