Hello everyone
I am install pylith 2.2.2 on a standalone computer. Everything seems ok expect when building h5py a syntaxError occur in the pkgconfig.py file on line 281 seemingly associated with *_ unpacking. How do I go around this?
If i disable h5py, everything runs to completion but pylith doesn’t install because it finds error when checking for h5py dependency files
Below is the error
cd h5py-2.9.0 &&
python setup.py configure --hdf5=/home/dmanu-ma/pylith &&
CC=mpicc CPPFLAGS="-I/home/dmanu-ma/pylith/include -I/home/dmanu-ma/pylith/include " LDFLAGS="-L/home/dmanu-ma/pylith/lib -L/home/dmanu-ma/pylith/lib64 -L/home/dmanu-ma/pylith/lib -L/home/dmanu-ma/pylith/lib64 " CFLAGS="-g -O2" CXXFLAGS="-g -O2 -DMPICH_IGNORE_CXX_SEEK" FCFLAGS="" python setup.py build &&
python setup.py install --prefix=/home/dmanu-ma/pylith &&
touch /home/dmanu-ma/build/installed_h5py
File “build/bdist.linux-x86_64/egg/pkgconfig/pkgconfig.py”, line 281
flags = _query(packages, *os_opts, *_build_options(option, static=static))
^
SyntaxError: invalid syntax
zip_safe flag not set; analyzing archive contents…
Installed /home/dmanu-ma/build/h5py-2.9.0/.eggs/pkgconfig-1.5.5-py2.7.egg
Searching for Cython>=0.23
Reading Links for Cython
Downloading https://files.pythonhosted.org/packages/48/d7/74fefb60a8caeb46681f197073e08243456acbc7244148644c19e5ff3163/Cython-3.0.0a9-cp27-cp27m-manylinux1_x86_64.whl#sha256=8c4c08af0e3f6223aad6a04e82a73781718e820b1b1f75e4ddf49ade8b006851
Best match: Cython 3.0.0a9
Processing Cython-3.0.0a9-cp27-cp27m-manylinux1_x86_64.whl
Installing Cython-3.0.0a9-cp27-cp27m-manylinux1_x86_64.whl to /home/dmanu-ma/build/h5py-2.9.0/.eggs
Installed /home/dmanu-ma/build/h5py-2.9.0/.eggs/Cython-3.0.0a9-py2.7-linux-x86_64.egg
running configure
Autodetection skipped [invalid syntax (pkgconfig.py, line 281)]
Summary of the h5py configuration
Path to HDF5: '/home/dmanu-ma/pylith'
HDF5 Version: '1.8.4'
MPI Enabled: False
Rebuild Required: True
running build
…
copying h5py/tests/hl/test_vds/test_highlevel_vds.py → build/lib.linux-x86_64-2.7/h5py/tests/hl/test_vds
running build_ext
Autodetection skipped [invalid syntax (pkgconfig.py, line 281)]
Summary of the h5py configuration
Path to HDF5: '/home/dmanu-ma/pylith'
HDF5 Version: '1.8.4'
MPI Enabled: False
Rebuild Required: True
Executing api_gen rebuild of defs
Executing cythonize()
Traceback (most recent call last):
File “setup.py”, line 168, in
cmdclass = CMDCLASS,
File “build/bdist.linux-x86_64/egg/setuptools/init.py”, line 129, in setup
File “/home/dmanu-ma/pylith/lib/python2.7/distutils/core.py”, line 151, in setup
dist.run_commands()
File “/home/dmanu-ma/pylith/lib/python2.7/distutils/dist.py”, line 953, in run_commands
self.run_command(cmd)
File “/home/dmanu-ma/pylith/lib/python2.7/distutils/dist.py”, line 972, in run_command
cmd_obj.run()
File “/home/dmanu-ma/pylith/lib/python2.7/distutils/command/build.py”, line 127, in run
self.run_command(cmd_name)
File “/home/dmanu-ma/pylith/lib/python2.7/distutils/cmd.py”, line 326, in run_command
self.distribution.run_command(command)
File “/home/dmanu-ma/pylith/lib/python2.7/distutils/dist.py”, line 972, in run_command
cmd_obj.run()
File “/home/dmanu-ma/build/h5py-2.9.0/setup_build.py”, line 202, in run
self.extensions = cythonize(self._make_extensions(config),
File “/home/dmanu-ma/build/h5py-2.9.0/setup_build.py”, line 80, in _make_extensions
import pkgconfig
File “build/bdist.linux-x86_64/egg/pkgconfig/init.py”, line 1, in
File “/home/dmanu-ma/build/h5py-2.9.0/.eggs/pkgconfig-1.5.5-py2.7.egg/pkgconfig/pkgconfig.py”, line 281
flags = _query(packages, *os_opts, *_build_options(option, static=static))
^
SyntaxError: invalid syntax
make[2]: *** [Makefile:1227: h5py] Error 1
make[2]: Leaving directory ‘/home/dmanu-ma/build’
make[1]: *** [Makefile:1238: installed_h5py] Error 2
make[1]: Leaving directory ‘/home/dmanu-ma/build’
make: *** [Makefile:1436: installed_pylith] Error 2