Re: scons-4.3.0 bug reading scons-3.1.2 generated .sconsign.dblite

Bill Deegan <[email protected]>
Newsgroups gmane.comp.programming.tools.scons.user
Message-ID <CAEyG4CHsADJaSDsDFjm00=dq9DnPmDCJhNWYfvgfC_KuZUCZMw@mail.gmail.com>
Switching from py2.7 -> py 3.5 invalidates the .sconsign files contents.
You have to do a full build when you make that switch.
It's in the release notes somewhere.

https://scons.org/scons-300-is-available.html

There's no way around it.
The best you can do is name your SConsign file to include the python
version so at least they won't be invalid when you switch from one to
another, but you will see additional rebuilds which may not be strictly
necessary.

-Bill

On Fri, Mar 18, 2022 at 5:03 PM Jay West <[email protected]> wrote:

> Yes, our scons-3.1.2 was using python-2.7.17, and our scons-4.3.1 is using
> python-3.9.10.  We get a pickling error when trying to run scons-3.1.2
> after scons-4.3.1 which is good.  Running scons-4.3.1 after scons-3.1.2
> runs without error, but results in bad builds, which is terrible.
>
>
> On Fri, Mar 18, 2022 at 3:04 PM Bill Deegan <[email protected]>
> wrote:
>
>> Sounds like you also switched from python 2.7 to python 3.5 or higher?
>>
>> On Fri, Mar 18, 2022 at 2:07 PM Jay West <[email protected]> wrote:
>>
>>> We are migrating from scons-3.1.2 to scons-4.3.0 and have encountered
>>> incorrect builds.
>>>
>>> After building with scons-3.1.2, changing some files, and then running
>>> scons-4.3.0, it appears that scons-4.3.0 cannot read some dependencies from
>>> the DB file.  Instead of error'ing out or ignoring the DB file, it happily
>>> generates an incorrect build.  However, running:
>>>
>>> sconsign .sconsign.dblite
>>>
>>>
>>> gives
>>>
>>> TypeError: '<' not supported between instances of 'str' and 'bytes'
>>>
>>>
>>> Has anyone seen this issue?
>>>
>>> Thanks,
>>>
>>> Jay
>>>
>>> _______________________________________________
>>> 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.