On Fri, Oct 19, 2012 at 04:54:21PM +0200, Edward d'Auvergne wrote:
Hi Jack,
I noticed this one too late. It is a very, very strange error! The
problem is scipy: it's a bit of a wild mix of crazy code which tends
to do a lot of weird low level things to Python. In this case, I
traced the problem back to a change which only affected the import of
the ctypes Python module. I really don't know how slightly changing a
ctypes import statement would trigger a bug in scipy - that is
bizarre. I fixed it after branching relax 2.1.2 at:
http://article.gmane.org/gmane.science.nmr.relax.scm/15667
http://article.gmane.org/gmane.science.nmr.relax.scm/15668
There are two options, the change at r17912
(http://article.gmane.org/gmane.science.nmr.relax.scm/15668) should be
sufficient and could be ported to the 2.1.2 code. Or I could release
2.1.3 with just this change and only release the source tar.bz2 file
for fink. Which option is easiest for you?
Cheers,
Edward
Edward,
Neither http://article.gmane.org/gmane.science.nmr.relax.scm/15668 or
it in combination with
http://article.gmane.org/gmane.science.nmr.relax.scm/15667
appear to be sufficient to eliminate the error here...
/sw/bin/python2.7 /sw/bin/scons
scons: Reading SConscript files ...
AttributeError: 'builtin_function_or_method' object has no attribute
'dispatch':
File "/sw/src/fink.build/relax-py27-2.1.2-1/relax-2.1.2/SConstruct",
line 37:
from scons.distrib import package, gpg_sign
File
"/sw/src/fink.build/relax-py27-2.1.2-1/relax-2.1.2/scons/distrib.py",
line 32:
from version import version
File "/sw/src/fink.build/relax-py27-2.1.2-1/relax-2.1.2/version.py",
line 26:
import dep_check
File "/sw/src/fink.build/relax-py27-2.1.2-1/relax-2.1.2/dep_check.py",
line 157:
from Scientific.Visualization import VMD # This requires Numeric
to be installed (at least in Scientific 2.7.8).
File
"/sw/lib/python2.7/site-packages/Scientific/Visualization/VMD.py", line
40:
from Scientific.Geometry import Transformation, Vector, ex, ey, ez
File
"/sw/lib/python2.7/site-packages/Scientific/Geometry/__init__.py", line
25:
import Scientific_vector
File "Scientific_vector.pyx", line 13:
None
File "/sw/lib/python2.7/site-packages/Scientific/N.py", line 15:
from numpy.oldnumeric import *
File "/sw/lib/python2.7/site-packages/numpy/oldnumeric/__init__.py",
line 14:
from compat import *
File "/sw/lib/python2.7/site-packages/numpy/oldnumeric/compat.py",
line 106:
class Unpickler(pickle.Unpickler):
File "/sw/lib/python2.7/site-packages/numpy/oldnumeric/compat.py",
line 110:
dispatch = copy.copy(pickle.Unpickler.dispatch)
Jack
On 19 October 2012 16:00, Jack Howarth <howarth@xxxxxxxxxxxxxxxx> wrote:
Edward,
While trying to update the current fink relax-py packaging to the
new 2.1.2 release.
I ran into a build failure of the form...
/sw/bin/python2.7 /sw/bin/scons
scons: Reading SConscript files ...
AttributeError: 'builtin_function_or_method' object has no attribute
'dispatch':
File
"/sw/src/fink.build/relax-py27-2.1.2-1/relax-2.1.2/SConstruct", line
37:
from scons.distrib import package, gpg_sign
File
"/sw/src/fink.build/relax-py27-2.1.2-1/relax-2.1.2/scons/distrib.py",
line 32:
from version import version
File
"/sw/src/fink.build/relax-py27-2.1.2-1/relax-2.1.2/version.py", line
26:
import dep_check
File
"/sw/src/fink.build/relax-py27-2.1.2-1/relax-2.1.2/dep_check.py",
line 143:
import scipy
File "/sw/lib/python2.7/site-packages/scipy/__init__.py", line 85:
from numpy import oldnumeric
File
"/sw/lib/python2.7/site-packages/numpy/oldnumeric/__init__.py", line
14:
from compat import *
File "/sw/lib/python2.7/site-packages/numpy/oldnumeric/compat.py",
line 106:
class Unpickler(pickle.Unpickler):
File "/sw/lib/python2.7/site-packages/numpy/oldnumeric/compat.py",
line 110:
dispatch = copy.copy(pickle.Unpickler.dispatch)
This failure didn't occur with the relax 2.1.0 or 2.1.1 releases.
Interestingly this
error looks like the one described in the thread...
http://scons.tigris.org/ds/viewMessage.do?dsForumId=1272&dsMessageId=2695657
Jack