fwang2 / pcircle

A suite of parallel file system tools designed for performance and scalability

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Install in RHEL 8.2

vikramkhatri opened this issue · comments

I switched to Python 2.7 on my RHEL 8.2

# /usr/bin/python --version
Python 2.7.17

# pip --version
pip 9.0.3 from /usr/lib/python2.7/site-packages (python 2.7)

When I try to install RPM.

# rpm -ivh pcircle-0.17.1-1.el7.noarch.rpm
error: Failed dependencies:
	python >= 2.7 is needed by pcircle-0.17.1-1.el7.noarch
	python-cffi is needed by pcircle-0.17.1-1.el7.noarch
	numpy is needed by pcircle-0.17.1-1.el7.noarch
	python-scandir is needed by pcircle-0.17.1-1.el7.noarch
	pyxattr is needed by pcircle-0.17.1-1.el7.noarch
	mpi4py-openmpi is needed by pcircle-0.17.1-1.el7.noarch
	python2-future is needed by pcircle-0.17.1-1.el7.noarch
	python2-bitarray is needed by pcircle-0.17.1-1.el7.noarch

A couple of above are already there. For example:

[root@e1n1-g ~]# pip show cffi
Name: cffi
Version: 1.14.1
Summary: Foreign Function Interface for Python calling C code.
Home-page: http://cffi.readthedocs.org
Author: Armin Rigo, Maciej Fijalkowski
Author-email: python-cffi@googlegroups.com
License: MIT
Location: /usr/lib64/python2.7/site-packages
Requires: pycparser
You are using pip version 19.2.3, however version 20.1.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

[root@e1n1-g ~]# pip show numpy
Name: numpy
Version: 1.16.6
Summary: NumPy is the fundamental package for array computing with Python.
Home-page: https://www.numpy.org
Author: Travis E. Oliphant et al.
Author-email: None
License: BSD
Location: /usr/lib64/python2.7/site-packages
Requires:
You are using pip version 19.2.3, however version 20.1.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

[root@e1n1-g ~]# pip show scandir
Name: scandir
Version: 1.10.0
Summary: scandir, a better directory iterator and faster os.walk()
Home-page: https://github.com/benhoyt/scandir
Author: Ben Hoyt
Author-email: benhoyt@gmail.com
License: New BSD License
Location: /usr/lib64/python2.7/site-packages
Requires:
You are using pip version 19.2.3, however version 20.1.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

[root@e1n1-g ~]# pip show pyxattr
Name: pyxattr
Version: 0.6.1
Summary: Filesystem extended attributes for python
Home-page: http://pyxattr.k1024.org/
Author: Iustin Pop
Author-email: iustin@k1024.org
License: LGPL
Location: /usr/lib64/python2.7/site-packages
Requires:
You are using pip version 19.2.3, however version 20.1.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

[root@e1n1-g ~]# pip show bitarray
Name: bitarray
Version: 1.4.2
Summary: efficient arrays of booleans -- C extension
Home-page: https://github.com/ilanschnell/bitarray
Author: Ilan Schnell
Author-email: ilanschnell@gmail.com
License: PSF
Location: /usr/lib64/python2.7/site-packages
Requires:
You are using pip version 19.2.3, however version 20.1.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

Sorry - I know very little about Python. Any help is appreciated as to what might be the issue and how to solve it?

Thank YOU

@vikramkhatri the rpm is built for redhat/centos 7, so the dependencies will be broken on redhat 8.

Please try this

Dependencies

sudo yum install -y redhat-rpm-config python2-devel openmpi-devel

Load MPI into the environment
you may have to start a new terminal for module to work

module load mpi

Install from Github

pip2 install --user future
pip2 install --user git+https://github.com/olcf/pcircle

the --user is meant for unprivileged user install, it will install to ~/.local/bin, you need to have that in the PATH.
If the above steps are good, then you should be able to run "fcp" or "fprof".
And if you want to try muli-process either on a single node or multiple nodes (all needs to have MPI setup)
you can do mpirun -np 8 fcp ...