Closed cossatot closed 3 years ago
Richard,
PyLith and none of its CIG depedencies (pyre/pythia, nemesis, spatialdata) have been updated for Python 3.
Since we have many Python dependencies, we have been holding off until we are confident in migrating. For now, use Python 2.7.
Brad
On 6/25/14, 3:29 PM, Richard Styron wrote:
Building w/ Python 3.3 fails because of old |print| statement.
I am not sure whether this is an issue with autoconf_cig or with nemesis.
Here is the output:
( itchy )-( dn51drjp )-( nemesis ) autoreconf -if configure.ac:23: warning: AC_CACHE_VAL(PYTHON_INCDIR, ...): suspicious cache-id, must contain cv to be cached ../../lib/autoconf/general.m4:2046: AC_CACHE_VAL is expanded from... ../../lib/autoconf/general.m4:2059: AC_CACHE_CHECK is expanded from... m4/cit_python.m4:20: CIT_PYTHON_INCDIR is expanded from... m4/cit_python.m4:35: CIT_CHECK_PYTHON_HEADER is expanded from... configure.ac:23: the top level configure.ac:23: warning: AC_CACHE_VAL(PYTHON_INCDIR, ...): suspicious cache-id, must contain cv to be cached ../../lib/autoconf/general.m4:2046: AC_CACHE_VAL is expanded from... ../../lib/autoconf/general.m4:2059: AC_CACHE_CHECK is expanded from... m4/cit_python.m4:20: CIT_PYTHON_INCDIR is expanded from... m4/cit_python.m4:35: CIT_CHECK_PYTHON_HEADER is expanded from... configure.ac:23: the top level configure.ac:23: warning: AC_CACHE_VAL(PYTHON_INCDIR, ...): suspicious cache-id, must contain cv to be cached ../../lib/autoconf/general.m4:2046: AC_CACHE_VAL is expanded from... ../../lib/autoconf/general.m4:2059: AC_CACHE_CHECK is expanded from... m4/cit_python.m4:20: CIT_PYTHON_INCDIR is expanded from... m4/cit_python.m4:35: CIT_CHECK_PYTHON_HEADER is expanded from... configure.ac:23: the top level configure.ac:23: warning: AC_CACHE_VAL(PYTHON_INCDIR, ...): suspicious cache-id, must contain cv to be cached ../../lib/autoconf/general.m4:2046: AC_CACHE_VAL is expanded from... ../../lib/autoconf/general.m4:2059: AC_CACHE_CHECK is expanded from... m4/cit_python.m4:20: CIT_PYTHON_INCDIR is expanded from... m4/cit_python.m4:35: CIT_CHECK_PYTHON_HEADER is expanded from... configure.ac:23: the top level configure.ac:23: warning: AC_CACHE_VAL(PYTHON_INCDIR, ...): suspicious cache-id, must contain cv to be cached ../../lib/autoconf/general.m4:2046: AC_CACHE_VAL is expanded from... ../../lib/autoconf/general.m4:2059: AC_CACHE_CHECK is expanded from... m4/cit_python.m4:20: CIT_PYTHON_INCDIR is expanded from... m4/cit_python.m4:35: CIT_CHECK_PYTHON_HEADER is expanded from... configure.ac:23: the top level configure.ac:23: warning: AC_CACHE_VAL(PYTHON_INCDIR, ...): suspicious cache-id, must contain cv to be cached ../../lib/autoconf/general.m4:2046: AC_CACHE_VAL is expanded from... ../../lib/autoconf/general.m4:2059: AC_CACHE_CHECK is expanded from... m4/cit_python.m4:20: CIT_PYTHON_INCDIR is expanded from... m4/cit_python.m4:35: CIT_CHECK_PYTHON_HEADER is expanded from... configure.ac:23: the top level configure.ac:18: installing './aux-config/compile' configure.ac:11: installing './aux-config/install-sh' configure.ac:11: installing './aux-config/missing' Makefile.am: installing './aux-config/depcomp' Then, configuring:
|( itchy )-( dn51drjp )-( nemesis ) ./configure checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... ./aux-config/install-sh -c -d checking for gawk... no checking for mawk... no checking for nawk... no checking for awk... awk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking for mpicc... mpicc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether mpicc accepts -g... yes checking for mpicc option to accept ISO C89... none needed checking whether mpicc understands -c and -o together... yes checking for style of include used by make... GNU checking dependency style of mpicc... gcc3 checking for a Python interpreter with version >= 2.3... python checking for python... /Users/itchy/src/anaconda/bin/python checking for python version... 3.3 checking for python platform... darwin checking for python script directory... ${prefix}/lib/python3.3/site-packages checking for python extension module directory... ${exec_prefix}/lib/python3.3/site-packages checking python config... configure: error: "failed
Run '/Users/itchy/src/anaconda/bin/python python-config.py' to see what went wrong. |
( itchy )-( dn51drjp )-( nemesis ) python python-config.py File "python-config.py", line 11 print 'PYTHON_CPPFLAGS="%s"' % ' '.join(cppflags) ^ SyntaxError: invalid syntax If I switch to Python 2.7.7 I get past this point (and fail for a different reason, but that's an issue for another day).
— Reply to this email directly or view it on GitHub https://github.com/geodynamics/nemesis/issues/1.
Building w/ Python 3.3 fails because of old
print
statement.I am not sure whether this is an issue with autoconf_cig or with nemesis.
Here is the output:
Then, configuring:
If I switch to Python 2.7.7 I get past this point (and fail for a different reason, but that's an issue for another day).