Hello, dokken,
Here is the output of these three commands. As it is too long, I split it in two replies.
Hope your reply.
leo@leo-MS-7C37:~/Documents/dolfinx-0.5.1/python$ echo $PETSC_ARCH
arch-linux-c-debug
leo@leo-MS-7C37:~/Documents/dolfinx-0.5.1/python$ echo $PETSC_DIR
/home/leo/Downloads/petsc_3.18.1
leo@leo-MS-7C37:~/Documents/dolfinx-0.5.1/python$ pip3 install -v .
Using pip 22.3 from /home/leo/.local/lib/python3.8/site-packages/pip (python 3.8)
Defaulting to user installation because normal site-packages is not writeable
Processing /home/leo/Documents/dolfinx-0.5.1/python
Running command python setup.py egg_info
running egg_info
creating /tmp/pip-pip-egg-info-jh8ll21m/fenics_dolfinx.egg-info
writing /tmp/pip-pip-egg-info-jh8ll21m/fenics_dolfinx.egg-info/PKG-INFO
writing dependency_links to /tmp/pip-pip-egg-info-jh8ll21m/fenics_dolfinx.egg-info/dependency_links.txt
writing requirements to /tmp/pip-pip-egg-info-jh8ll21m/fenics_dolfinx.egg-info/requires.txt
writing top-level names to /tmp/pip-pip-egg-info-jh8ll21m/fenics_dolfinx.egg-info/top_level.txt
writing manifest file '/tmp/pip-pip-egg-info-jh8ll21m/fenics_dolfinx.egg-info/SOURCES.txt'
reading manifest file '/tmp/pip-pip-egg-info-jh8ll21m/fenics_dolfinx.egg-info/SOURCES.txt'
writing manifest file '/tmp/pip-pip-egg-info-jh8ll21m/fenics_dolfinx.egg-info/SOURCES.txt'
Preparing metadata (setup.py) ... done
Collecting cffi
Using cached cffi-1.15.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (442 kB)
Collecting fenics-ffcx<0.6.0,>=0.5.0
Using cached fenics_ffcx-0.5.0.post0-py3-none-any.whl (124 kB)
Collecting fenics-ufl<2022.3.0,>=2022.2.0
Using cached fenics_ufl-2022.2.0-py3-none-any.whl (258 kB)
Collecting mpi4py
Using cached mpi4py-3.1.4.tar.gz (2.5 MB)
Running command pip subprocess to install build dependencies
Collecting setuptools>=40.9.0
Using cached setuptools-65.5.0-py3-none-any.whl (1.2 MB)
Collecting wheel
Using cached wheel-0.37.1-py2.py3-none-any.whl (35 kB)
Installing collected packages: wheel, setuptools
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
launchpadlib 1.10.6 requires testresources, which is not installed.
Successfully installed setuptools-65.5.0 wheel-0.37.1
Installing build dependencies ... done
Running command Getting requirements to build wheel
running egg_info
writing src/mpi4py.egg-info/PKG-INFO
writing dependency_links to src/mpi4py.egg-info/dependency_links.txt
writing top-level names to src/mpi4py.egg-info/top_level.txt
reading manifest file 'src/mpi4py.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE.rst'
writing manifest file 'src/mpi4py.egg-info/SOURCES.txt'
Getting requirements to build wheel ... done
Running command Preparing metadata (pyproject.toml)
running dist_info
creating /tmp/pip-modern-metadata-i6trnhv_/mpi4py.egg-info
writing /tmp/pip-modern-metadata-i6trnhv_/mpi4py.egg-info/PKG-INFO
writing dependency_links to /tmp/pip-modern-metadata-i6trnhv_/mpi4py.egg-info/dependency_links.txt
writing top-level names to /tmp/pip-modern-metadata-i6trnhv_/mpi4py.egg-info/top_level.txt
writing manifest file '/tmp/pip-modern-metadata-i6trnhv_/mpi4py.egg-info/SOURCES.txt'
reading manifest file '/tmp/pip-modern-metadata-i6trnhv_/mpi4py.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE.rst'
writing manifest file '/tmp/pip-modern-metadata-i6trnhv_/mpi4py.egg-info/SOURCES.txt'
creating '/tmp/pip-modern-metadata-i6trnhv_/mpi4py-3.1.4.dist-info'
adding license file "LICENSE.rst" (matched pattern "LICEN[CS]E*")
Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: numpy>=1.21 in /home/leo/.local/lib/python3.8/site-packages (from fenics-dolfinx==0.5.1) (1.23.4)
Collecting petsc4py
Using cached petsc4py-3.18.1.tar.gz (2.5 MB)
Running command python setup.py egg_info
running egg_info
creating /tmp/pip-pip-egg-info-z203jghn/petsc4py.egg-info
writing /tmp/pip-pip-egg-info-z203jghn/petsc4py.egg-info/PKG-INFO
writing dependency_links to /tmp/pip-pip-egg-info-z203jghn/petsc4py.egg-info/dependency_links.txt
writing requirements to /tmp/pip-pip-egg-info-z203jghn/petsc4py.egg-info/requires.txt
writing top-level names to /tmp/pip-pip-egg-info-z203jghn/petsc4py.egg-info/top_level.txt
writing manifest file '/tmp/pip-pip-egg-info-z203jghn/petsc4py.egg-info/SOURCES.txt'
invalid PETSC_DIR: /home/leo/Downloads/petsc_3.18.1 (ignored)
reading manifest file '/tmp/pip-pip-egg-info-z203jghn/petsc4py.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file '/tmp/pip-pip-egg-info-z203jghn/petsc4py.egg-info/SOURCES.txt'
Preparing metadata (setup.py) ... done
Requirement already satisfied: setuptools in /usr/lib/python3/dist-packages (from fenics-ffcx<0.6.0,>=0.5.0->fenics-dolfinx==0.5.1) (39.0.1)
Collecting fenics-basix<0.6.0,>=0.5.0
Using cached fenics_basix-0.5.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (11.0 MB)
Collecting pycparser
Using cached pycparser-2.21-py2.py3-none-any.whl (118 kB)
Collecting petsc<3.19,>=3.18
Using cached petsc-3.18.1.tar.gz (18.4 MB)
Running command python setup.py egg_info
running egg_info
creating /tmp/pip-pip-egg-info-arbnyjsx/petsc.egg-info
writing /tmp/pip-pip-egg-info-arbnyjsx/petsc.egg-info/PKG-INFO
writing dependency_links to /tmp/pip-pip-egg-info-arbnyjsx/petsc.egg-info/dependency_links.txt
writing requirements to /tmp/pip-pip-egg-info-arbnyjsx/petsc.egg-info/requires.txt
writing top-level names to /tmp/pip-pip-egg-info-arbnyjsx/petsc.egg-info/top_level.txt
writing manifest file '/tmp/pip-pip-egg-info-arbnyjsx/petsc.egg-info/SOURCES.txt'
reading manifest file '/tmp/pip-pip-egg-info-arbnyjsx/petsc.egg-info/SOURCES.txt'
writing manifest file '/tmp/pip-pip-egg-info-arbnyjsx/petsc.egg-info/SOURCES.txt'
Preparing metadata (setup.py) ... done
Building wheels for collected packages: fenics-dolfinx, mpi4py, petsc4py, petsc
Running command python setup.py bdist_wheel
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.8
creating build/lib.linux-x86_64-3.8/dolfinx
copying dolfinx/pkgconfig.py -> build/lib.linux-x86_64-3.8/dolfinx
copying dolfinx/jit.py -> build/lib.linux-x86_64-3.8/dolfinx
copying dolfinx/log.py -> build/lib.linux-x86_64-3.8/dolfinx
copying dolfinx/common.py -> build/lib.linux-x86_64-3.8/dolfinx
copying dolfinx/graph.py -> build/lib.linux-x86_64-3.8/dolfinx
copying dolfinx/mesh.py -> build/lib.linux-x86_64-3.8/dolfinx
copying dolfinx/geometry.py -> build/lib.linux-x86_64-3.8/dolfinx
copying dolfinx/plot.py -> build/lib.linux-x86_64-3.8/dolfinx
copying dolfinx/la.py -> build/lib.linux-x86_64-3.8/dolfinx
copying dolfinx/__init__.py -> build/lib.linux-x86_64-3.8/dolfinx
creating build/lib.linux-x86_64-3.8/dolfinx/fem
copying dolfinx/fem/forms.py -> build/lib.linux-x86_64-3.8/dolfinx/fem
copying dolfinx/fem/bcs.py -> build/lib.linux-x86_64-3.8/dolfinx/fem
copying dolfinx/fem/petsc.py -> build/lib.linux-x86_64-3.8/dolfinx/fem
copying dolfinx/fem/assemble.py -> build/lib.linux-x86_64-3.8/dolfinx/fem
copying dolfinx/fem/function.py -> build/lib.linux-x86_64-3.8/dolfinx/fem
copying dolfinx/fem/dofmap.py -> build/lib.linux-x86_64-3.8/dolfinx/fem
copying dolfinx/fem/__init__.py -> build/lib.linux-x86_64-3.8/dolfinx/fem
creating build/lib.linux-x86_64-3.8/dolfinx/io
copying dolfinx/io/utils.py -> build/lib.linux-x86_64-3.8/dolfinx/io
copying dolfinx/io/gmshio.py -> build/lib.linux-x86_64-3.8/dolfinx/io
copying dolfinx/io/__init__.py -> build/lib.linux-x86_64-3.8/dolfinx/io
creating build/lib.linux-x86_64-3.8/dolfinx/nls
copying dolfinx/nls/petsc.py -> build/lib.linux-x86_64-3.8/dolfinx/nls
copying dolfinx/nls/__init__.py -> build/lib.linux-x86_64-3.8/dolfinx/nls
creating build/lib.linux-x86_64-3.8/dolfinx/wrappers
copying dolfinx/wrappers/__init__.py -> build/lib.linux-x86_64-3.8/dolfinx/wrappers
copying dolfinx/py.typed -> build/lib.linux-x86_64-3.8/dolfinx
copying dolfinx/fem/py.typed -> build/lib.linux-x86_64-3.8/dolfinx/fem
copying dolfinx/nls/py.typed -> build/lib.linux-x86_64-3.8/dolfinx/nls
copying dolfinx/wrappers/caster_petsc.h -> build/lib.linux-x86_64-3.8/dolfinx/wrappers
copying dolfinx/wrappers/MPICommWrapper.h -> build/lib.linux-x86_64-3.8/dolfinx/wrappers
copying dolfinx/wrappers/array.h -> build/lib.linux-x86_64-3.8/dolfinx/wrappers
copying dolfinx/wrappers/caster_mpi.h -> build/lib.linux-x86_64-3.8/dolfinx/wrappers
running build_ext
-- The C compiler identification is GNU 11.1.0
-- The CXX compiler identification is GNU 11.1.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at /usr/local/share/cmake-3.24/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find Python3 (missing: Python3_INCLUDE_DIRS Development.Module)
(found version "3.8.0")
Call Stack (most recent call first):
/usr/local/share/cmake-3.24/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
/usr/local/share/cmake-3.24/Modules/FindPython/Support.cmake:3203 (find_package_handle_standard_args)
/usr/local/share/cmake-3.24/Modules/FindPython3.cmake:490 (include)
CMakeLists.txt:15 (find_package)
-- Configuring incomplete, errors occurred!
See also "/home/leo/Documents/dolfinx-0.5.1/python/build/temp.linux-x86_64-3.8/CMakeFiles/CMakeOutput.log".
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/home/leo/Documents/dolfinx-0.5.1/python/setup.py", line 66, in <module>
setup(name='fenics-dolfinx',
File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line 129, in setup
return distutils.core.setup(**attrs)
File "/usr/lib/python3.8/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/lib/python3.8/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/usr/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/lib/python3/dist-packages/wheel/bdist_wheel.py", line 204, in run
self.run_command('build')
File "/usr/lib/python3.8/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/lib/python3.8/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/usr/lib/python3.8/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/home/leo/Documents/dolfinx-0.5.1/python/setup.py", line 40, in run
self.build_extension(ext)
File "/home/leo/Documents/dolfinx-0.5.1/python/setup.py", line 62, in build_extension
subprocess.check_call(['cmake', ext.sourcedir] + cmake_args, cwd=self.build_temp, env=env)
File "/usr/lib/python3.8/subprocess.py", line 364, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '/home/leo/Documents/dolfinx-0.5.1/python', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/home/leo/Documents/dolfinx-0.5.1/python/build/lib.linux-x86_64-3.8/dolfinx', '-DPython3_EXECUTABLE=/usr/bin/python', '-DPython3_LIBRARIES=/usr/lib/python3.8', '-DPython3_INCLUDE_DIRS=/usr/include/python3.8', '-DCMAKE_BUILD_TYPE=Release']' returned non-zero exit status 1.
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
full command: /usr/bin/python -u -c '
exec(compile('"'"''"'"''"'"'
# This is <pip-setuptools-caller> -- a caller that pip uses to run setup.py
#
# - It imports setuptools before invoking setup.py, to enable projects that directly
# import from `distutils.core` to work with newer packaging standards.
# - It provides a clear error message when setuptools is not installed.
# - It sets `sys.argv[0]` to the underlying `setup.py`, when invoking `setup.py` so
# setuptools doesn'"'"'t think the script is `-c`. This avoids the following warning:
# manifest_maker: standard file '"'"'-c'"'"' not found".
# - It generates a shim setup.py, for handling setup.cfg-only projects.
import os, sys, tokenize
try:
import setuptools
except ImportError as error:
print(
"ERROR: Can not execute `setup.py` since setuptools is not available in "
"the build environment.",
file=sys.stderr,
)
sys.exit(1)
__file__ = %r
sys.argv[0] = __file__
if os.path.exists(__file__):
filename = __file__
with tokenize.open(__file__) as f:
setup_py_code = f.read()
else:
filename = "<auto-generated setuptools caller>"
setup_py_code = "from setuptools import setup; setup()"
exec(compile(setup_py_code, filename, "exec"))
'"'"''"'"''"'"' % ('"'"'/home/leo/Documents/dolfinx-0.5.1/python/setup.py'"'"',), "<pip-setuptools-caller>", "exec"))' bdist_wheel -d /tmp/pip-wheel-0qdb2v7n
cwd: /home/leo/Documents/dolfinx-0.5.1/python/
Building wheel for fenics-dolfinx (setup.py) ... error
ERROR: Failed building wheel for fenics-dolfinx
Running setup.py clean for fenics-dolfinx
Running command python setup.py clean
running clean
removing 'build/temp.linux-x86_64-3.8' (and everything under it)
removing 'build/lib.linux-x86_64-3.8' (and everything under it)
'build/bdist.linux-x86_64' does not exist -- can't clean it
'build/scripts-3.8' does not exist -- can't clean it
removing 'build'