[Scons-users] SCons freezes

Bill Deegan bill at baddogconsulting.com
Thu May 21 09:19:32 EDT 2015


Sven,

Wow. Glad you resolved the issue.
Sorry it called for drastic measures.

-Bill

On Thu, May 21, 2015 at 3:29 AM, Sven Lars Tobias Stål <smp428 at alumni.ku.dk>
wrote:

>  Hey,
>
>  thank you for your effort to help! I rebuilt Python, but nothing worked.
> I ended up reinstalling the computer overnight and now it works again.
>
>  Sven
>
>
>  On 21 May 2015, at 05:22 , Bill Deegan <bill at baddogconsulting.com> wrote:
>
>  Sven,
>
>  I'd go check the macports site and see if they have an answer for your
> build failure.
> To eliminate a possibility of inconsistant macports stack, you might build
> python 2.7.x from sources and see if that works. Or try the native mac osx
> python?
>
>  -Bill
>
> On Wed, May 20, 2015 at 3:09 PM, Sven Lars Tobias Stål <
> smp428 at alumni.ku.dk> wrote:
>
>> I’m running mac ports, but when I run
>>  sudo port install scons
>>
>>  I get
>>
>>   --->  Computing dependencies for scons
>>  --->  Cleaning scons
>>  --->  Scanning binaries for linking errors
>>  --->  Found 46 broken file(s), matching files to ports
>>  --->  Found 1 broken port(s), determining rebuild order
>>  --->  Rebuilding in order
>>       gdal @1.11.0 +curl+expat+geos+hdf5+netcdf
>>  --->  Computing dependencies for gdal
>>  --->  Building gdal
>>  Error: org.macports.build for port gdal returned: command execution
>> failed
>>  Please see the log file for port gdal for details:
>>
>> /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_gdal/gdal/main.log
>>  Error: Unable to upgrade port: 1
>>  Error rebuilding gdal
>>      while executing
>>  "error "Error rebuilding $portname""
>>      (procedure "revupgrade_scanandrebuild" line 395)
>>      invoked from within
>>  "revupgrade_scanandrebuild broken_port_counts $opts"
>>      (procedure "macports::revupgrade" line 5)
>>      invoked from within
>>  "macports::revupgrade $opts"
>>      (procedure "action_revupgrade" line 2)
>>      invoked from within
>>  "action_revupgrade $action $portlist $opts"
>>      (procedure "action_target" line 96)
>>      invoked from within
>>  "$action_proc $action $portlist [array get global_options]"
>>      (procedure "process_cmd" line 103)
>>      invoked from within
>>  "process_cmd $remaining_args"
>>      invoked from within
>>  "if { [llength $remaining_args] > 0 } {
>>
>>      # If there are remaining arguments, process those as a command
>>      set exit_status [process_cmd $remaining..."
>>      (file "/opt/local/bin/port" line 5268)
>>
>> I did install QGIS some days ago, but SCons have been running smooth even
>> after.
>>
>>  Sven
>>
>>
>>  On 20 May 2015, at 23:52 , Bill Deegan <bill at baddogconsulting.com>
>> wrote:
>>
>>  Sven,
>>
>>  Are you running mac brew or mac ports on that system?
>> Did you recently pull updates? Perhaps there's some part of your python
>> build which is having issues with sqlite?
>>
>>  Since we're in the realm of weird behavior figured I'd ask if anything
>> else in your environment has changed recently..
>> -Bill
>>
>> On Wed, May 20, 2015 at 2:28 PM, Sven Lars Tobias Stål <
>> smp428 at alumni.ku.dk> wrote:
>>
>>> It’s a very good question, but yes, I did...
>>>
>>>  I also reinstalled SCons 2.3.3, twice.
>>>
>>>  What confuses me is that this problem just occurred. As mentioned it
>>> might have been related to that I forgot that a slow build was going on in
>>> the background and I started it again, I’m not sure. When I got back the
>>> build had stopped, I restarted, checked my SContruct file, reinstalled
>>> 2.3.3. Installed 2.3.4, and now again 2.3.3.
>>>
>>>  I’m grateful for any advice, I’d be happy to admit a stupid mistake
>>> just to get it to work.
>>>
>>>  Tobbe
>>>
>>>
>>>
>>>  On 20 May 2015, at 22:59 , Vasily <just.one.man at yandex.ru> wrote:
>>>
>>>   This might be rather strange question, but did you tried rebooting
>>> your machine?.. Maybe some resource was taken and not freed...
>>>
>>>  Thanks,
>>>  Vasily
>>>
>>> 2015-05-20 21:01 GMT+03:00 Sven Lars Tobias Stål <smp428 at alumni.ku.dk>:
>>>
>>>> Usually not and not by purpose, but it might actually have happen
>>>> before the first crash.
>>>>
>>>>  Tobbe
>>>>
>>>>  On 20 May 2015, at 19:45 , Bill Deegan <bill at baddogconsulting.com>
>>>> wrote:
>>>>
>>>>  Are you running multiple instances of SCons against the same
>>>> SConstruct at the same time (in the same base directory)?
>>>>
>>>>  -Bill
>>>>
>>>> On Wed, May 20, 2015 at 10:02 AM, Sven Lars Tobias Stål <
>>>> smp428 at alumni.ku.dk> wrote:
>>>>
>>>>>  Thank you for your advice!
>>>>>
>>>>>  That sounded like a plausible solution, but unfortunately it didn’t
>>>>> help. I should also clarify that no build works anymore, or rather,
>>>>> everything freezes in the end or give the error report about DB_PAGE
>>>>> NOTFOUND. I need to rebuild every time I run.
>>>>>
>>>>>  I’ve tried to reinstall and starting with new SConstruct files but
>>>>> the problem stays.
>>>>>
>>>>>  I grateful for any advice of how I can continue, I’ve only used
>>>>> SCons in this limited way, so I don’t know much about the construction tool
>>>>> works.
>>>>>
>>>>>  I’m on Mac OS 10.9.5
>>>>>
>>>>>  Best regards,
>>>>> Tobbe
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>  On 20 May 2015, at 15:40 , Gary Oberbrunner <garyo at oberbrunner.com>
>>>>> wrote:
>>>>>
>>>>>  This is related to the .sconsign.dblite file I think, where SCons
>>>>> records the build signatures from previous builds.  Could be a permissions
>>>>> issue or file corruption due to the previous error.  I recommend deleting
>>>>> that file, which will cause a complete rebuild, and then you should be OK.
>>>>>
>>>>> On Wed, May 20, 2015 at 8:49 AM, Sven Lars Tobias Stål <
>>>>> smp428 at alumni.ku.dk> wrote:
>>>>>
>>>>>> Dear all,
>>>>>>
>>>>>> I suddenly get a problem. I’d be very grateful if anyone can point me
>>>>>> in the right direction.
>>>>>>
>>>>>> I’ve been using SCons for some time now to build seismic work flows
>>>>>> without any problems. Today I ran a rather long process and it ended with
>>>>>> some kind of error. I checked my SConstruct, didn’t find any particular
>>>>>> mistake.
>>>>>>
>>>>>> But now SCons doesn’t work as before. When I run one SConstruct, it
>>>>>> reaches 'scons: done building targets.’ but then freeze.
>>>>>>
>>>>>> When I run the same SConstruct in another folder I get:
>>>>>>
>>>>>> scons: done building targets.
>>>>>> DBPageNotFoundError: (-30986, 'DB_PAGE_NOTFOUND: Requested page not
>>>>>> found'):
>>>>>>   File
>>>>>> "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/scons-2.3.4/SCons/Script/Main.py",
>>>>>> line 1372:
>>>>>>     _exec_main(parser, values)
>>>>>>   File
>>>>>> "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/scons-2.3.4/SCons/Script/Main.py",
>>>>>> line 1335:
>>>>>>     _main(parser)
>>>>>>   File
>>>>>> "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/scons-2.3.4/SCons/Script/Main.py",
>>>>>> line 1099:
>>>>>>     nodes = _build_targets(fs, options, targets, target_top)
>>>>>>   File
>>>>>> "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/scons-2.3.4/SCons/Script/Main.py",
>>>>>> line 1297:
>>>>>>     jobs.run(postfunc = jobs_postfunc)
>>>>>>   File
>>>>>> "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/scons-2.3.4/SCons/Job.py",
>>>>>> line 113:
>>>>>>     postfunc()
>>>>>>   File
>>>>>> "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/scons-2.3.4/SCons/Script/Main.py",
>>>>>> line 1294:
>>>>>>     SCons.SConsign.write()
>>>>>>   File
>>>>>> "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/scons-2.3.4/SCons/SConsign.py",
>>>>>> line 102:
>>>>>>     sig_file.write(sync=0)
>>>>>>   File
>>>>>> "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/scons-2.3.4/SCons/SConsign.py",
>>>>>> line 250:
>>>>>>     db[path] = pickle.dumps(self.entries, 1)
>>>>>>   File
>>>>>> "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/bsddb/__init__.py",
>>>>>> line 279:
>>>>>>     _DeadlockWrap(wrapF)  # self.db[key] = value
>>>>>>   File
>>>>>> "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/bsddb/dbutils.py",
>>>>>> line 68:
>>>>>>     return function(*_args, **_kwargs)
>>>>>>   File
>>>>>> "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/bsddb/__init__.py",
>>>>>> line 278:
>>>>>>     self.db[key] = value
>>>>>> Exception TypeError: "'NoneType' object is not callable" in  ignored
>>>>>>
>>>>>> And if I run SConstruct again, it builds the same files again.
>>>>>>
>>>>>> Best regards,
>>>>>> Sven
>>>>>> _______________________________________________
>>>>>> Scons-users mailing list
>>>>>> Scons-users at scons.org
>>>>>> https://pairlist4.pair.net/mailman/listinfo/scons-users
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>>  --
>>>>> Gary
>>>>>  _______________________________________________
>>>>> Scons-users mailing list
>>>>> Scons-users at scons.org
>>>>> https://pairlist4.pair.net/mailman/listinfo/scons-users
>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Scons-users mailing list
>>>>> Scons-users at scons.org
>>>>> https://pairlist4.pair.net/mailman/listinfo/scons-users
>>>>>
>>>>>
>>>>  _______________________________________________
>>>> Scons-users mailing list
>>>> Scons-users at scons.org
>>>> https://pairlist4.pair.net/mailman/listinfo/scons-users
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> Scons-users mailing list
>>>> Scons-users at scons.org
>>>> https://pairlist4.pair.net/mailman/listinfo/scons-users
>>>>
>>>>
>>>  _______________________________________________
>>> Scons-users mailing list
>>> Scons-users at scons.org
>>> https://pairlist4.pair.net/mailman/listinfo/scons-users
>>>
>>>
>>>
>>> _______________________________________________
>>> Scons-users mailing list
>>> Scons-users at scons.org
>>> https://pairlist4.pair.net/mailman/listinfo/scons-users
>>>
>>>
>>  _______________________________________________
>> Scons-users mailing list
>> Scons-users at scons.org
>> https://pairlist4.pair.net/mailman/listinfo/scons-users
>>
>>
>>
>> _______________________________________________
>> Scons-users mailing list
>> Scons-users at scons.org
>> https://pairlist4.pair.net/mailman/listinfo/scons-users
>>
>>
>  _______________________________________________
> Scons-users mailing list
> Scons-users at scons.org
> https://pairlist4.pair.net/mailman/listinfo/scons-users
>
>
>
> _______________________________________________
> Scons-users mailing list
> Scons-users at scons.org
> https://pairlist4.pair.net/mailman/listinfo/scons-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20150521/d16f8bc1/attachment-0001.html>


More information about the Scons-users mailing list