spack: python does not have cPickle module on SuSe13

update: it looks like there is a problem with python built by spack, see below.


those who use python, do you know what could be the problem with cPickle module missing in Python built by Spack:

cat /tmp/iwtm009/spack-stage/spack-stage-mrG47q/petsc-3.7.4/spack-build.out
<bound method Petsc.install of <spack.pkg.builtin.petsc.Petsc object at 0x71e99d0>>
==> './configure' '--prefix=/calculate/spack/opt/spack/linux-SuSE13-x86_64/gcc-4.8/petsc-3.7.4-twnt2hfl2dulrsetdkr4ulfvnkh43tkq' '--with-ssl=0' '--download-c2html=0' '--download-hwloc=0' '--with-mpi=1' '--with-mpi-dir=/calculate/spack/opt/spack/linux-SuSE13-x86_64/gcc-4.8/openmpi-2.0.1-osy2cutkplq4i4iwbam2etf573axq3bv' '--with-cpp=cpp' '--with-cxxcpp=cpp' '--with-precision=double' '--with-scalar-type=real' '--with-shared-libraries=1' '--with-debugging=0' '--with-blas-lapack-lib=/calculate/spack/opt/spack/linux-SuSE13-x86_64/gcc-4.8/openblas-0.2.19-td2nztpmot3lngv4cmistsibu3p6zcx6/lib/libopenblas.so' '--with-metis=1' '--with-metis-dir=/calculate/spack/opt/spack/linux-SuSE13-x86_64/gcc-4.8/metis-5.1.0-uri2t4x6h26d4q3rpf4cjln46dw3cmzv' '--with-boost=0' '--with-hdf5=1' '--with-hdf5-dir=/calculate/spack/opt/spack/linux-SuSE13-x86_64/gcc-4.8/hdf5-1.10.0-patch1-r5lcom3ltwcc3jdpmk2dlf4zy4ntaz5h' '--with-hypre=1' '--with-hypre-dir=/calculate/spack/opt/spack/linux-SuSE13-x86_64/gcc-4.8/hypre-2.11.1-d72uxnfitqiybgdvl3a5hxusrvq3u3vq' '--with-parmetis=1' '--with-parmetis-dir=/calculate/spack/opt/spack/linux-SuSE13-x86_64/gcc-4.8/parmetis-4.0.3-bbpmfqbjcyufac3mtbjmiwghxausiydj' '--with-mumps=1' '--with-mumps-dir=/calculate/spack/opt/spack/linux-SuSE13-x86_64/gcc-4.8/mumps-5.0.2-m3bcskvwe5hnrkylnwsklmre7qpsibpf' '--with-scalapack=1' '--with-scalapack-dir=/calculate/spack/opt/spack/linux-SuSE13-x86_64/gcc-4.8/netlib-scalapack-2.0.2-l5n4cd5yctjn4zi2s5obb2lpn4tvbhqm' '--with-superlu_dist-include=/calculate/spack/opt/spack/linux-SuSE13-x86_64/gcc-4.8/superlu-dist-5.1.1-xhleqgylzdhciku66dhro2s7d6k6vz24/include' '--with-superlu_dist-lib=/calculate/spack/opt/spack/linux-SuSE13-x86_64/gcc-4.8/superlu-dist-5.1.1-xhleqgylzdhciku66dhro2s7d6k6vz24/lib/libsuperlu_dist.a' '--with-superlu_dist=1'
===============================================================================
            Configuring PETSc to compile on your system
===============================================================================
Traceback (most recent call last):
 File "./configure", line 10, in <module>
   execfile(os.path.join(os.path.dirname(__file__), 'config', 'configure.py'))
 File "./config/configure.py", line 496, in <module>
   petsc_configure([])
 File "./config/configure.py", line 396, in petsc_configure
   import config.base
 File "/tmp/iwtm009/spack-stage/spack-stage-mrG47q/petsc-3.7.4/config/BuildSystem/config/base.py", line 60, in <module>
   import script
 File "/tmp/iwtm009/spack-stage/spack-stage-mrG47q/petsc-3.7.4/config/BuildSystem/script.py", line 6, in <module>
   import cPickle
ImportError: No module named cPickle

?

Do you think it’s PETSc issue or Python built by Spack? Anyone tried bulding petsc with Spack on SuSE13?

About this issue

  • Original URL
  • State: closed
  • Created 10 years ago
  • Comments: 16 (16 by maintainers)

Commits related to this issue

Most upvoted comments

I will try symlinking that lib-dynload folder to be within lib instead of lib64.

this worked! I will create a PR to do that extra step during installation…

…because some *-devel system package was missing.

does not this mean that we are missing some dependencies in python, i.e. rely on some additional system packages to be available?

@christianbaensch @davydden I think you need to inspect closely the build.out of python. I encountered a similar case where the urllib module in a spack built python was severely flawed on a rhel machine because some *-devel system package was missing.

I would try some experimentation. Run the Python you think it’s getting and try ‘import cPickle’. This is really strange, `cPickle’ is a standard part of Python2.

Or… just use your System Python.

On Tue, Nov 8, 2016 at 4:07 AM, Denis Davydov notifications@github.com wrote:

Workaround like

which(‘python2’)(‘config/configure.py’, ‘–prefix=%s’ % prefix, *options)

did not help. So it looks like python@2.7.12 build by Spack somehow lacks this module for whatever reason.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/LLNL/spack/issues/2253#issuecomment-259082795, or mute the thread https://github.com/notifications/unsubscribe-auth/AB1cd1ZroicWnNbqW1GJFQ3R0NnH-0CYks5q8Du-gaJpZM4KqPFJ .