[petsc-dev] Configure is Broken

Matthew Knepley knepley at gmail.com
Fri May 13 15:28:11 CDT 2016


On Fri, May 13, 2016 at 3:23 PM, Matthew Knepley <knepley at gmail.com> wrote:

> Who the fuck is holding a fucking file object:
>
>
> *******************************************************************************
>                 ERROR in COMMAND LINE ARGUMENT to ./configure
>
> -------------------------------------------------------------------------------
> can't pickle file objects
>
> *******************************************************************************
>
>
>   File "/PETSc3/petsc/petsc-dev/config/BuildSystem/config/framework.py",
> line 961, in processChildren
>     child.configure()
>   File "/PETSc3/petsc/petsc-dev/config/PETSc/Configure.py", line 1096, in
> configure
>     self.framework.argDB['configureCache'] = cPickle.dumps(self.framework)
>   File
> "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/copy_reg.py",
> line 70, in _reduce_ex
>     raise TypeError, "can't pickle %s objects" % base.__name__
> can't pickle file objects
>

This fixes it for me:

diff --git a/config/BuildSystem/logger.py b/config/BuildSystem/logger.py
index 9af1dcb..8878990 100644
--- a/config/BuildSystem/logger.py
+++ b/config/BuildSystem/logger.py
@@ -41,6 +41,8 @@ class Logger(args.ArgumentProcessor):
   def __getstate__(self):
     '''We do not want to pickle the default log stream'''
     d = args.ArgumentProcessor.__getstate__(self)
+    if 'logBkp' in d:
+        del d['logBkp']
     if 'log' in d:
:
       if d['log'] is Logger.defaultLog:
         del d['log']

which means some change to the basic configure objects is not respecting
the logging rules,
which also explains why the parallel configure is now broken again.

   Matt


>     Matt
>
> --
> What most experimenters take for granted before they begin their
> experiments is infinitely more interesting than any results to which their
> experiments lead.
> -- Norbert Wiener
>



-- 
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20160513/7a1eb50b/attachment.html>


More information about the petsc-dev mailing list