I am able to download CoppeliaSim 22.04 and run with sh coppliasim.sh
However, I am facing this error when trying to install and build PyRep. The main error seems to be to find pyconfig.h
build/pyrep/backend/pyrep/backend/_sim_cffi.c:50:14: fatal error: pyconfig.h: No such file or directory
50 | # include <pyconfig.h>
| ^~~~~~~~~~~~
Entire Log
PyRep$ pip install -e .
Obtaining file:///home/vidhij/docker-image-coppeliasim/shared/PyRep
Preparing metadata (setup.py) ... done
Installing collected packages: PyRep
Attempting uninstall: PyRep
Found existing installation: PyRep 4.1.0.3
Uninstalling PyRep-4.1.0.3:
Successfully uninstalled PyRep-4.1.0.3
Running setup.py develop for PyRep
error: subprocess-exited-with-error
× python setup.py develop did not run successfully.
│ exit code: 1
╰─> [38 lines of output]
copying lua file: pyrep/backend -> /home/vidhij/Desktop/CoppeliaSim_Edu_V4_4_0_rev0_Ubuntu22_04
generating build/pyrep/backend/pyrep/backend/_sim_cffi.c
(already up-to-date)
running develop
running egg_info
creating PyRep.egg-info
writing PyRep.egg-info/PKG-INFO
writing dependency_links to PyRep.egg-info/dependency_links.txt
writing top-level names to PyRep.egg-info/top_level.txt
writing manifest file 'PyRep.egg-info/SOURCES.txt'
reading manifest file 'PyRep.egg-info/SOURCES.txt'
adding license file 'LICENSE'
writing manifest file 'PyRep.egg-info/SOURCES.txt'
running build_ext
building 'pyrep.backend._sim_cffi' extension
creating build/temp.linux-x86_64-cpython-38
creating build/temp.linux-x86_64-cpython-38/build
creating build/temp.linux-x86_64-cpython-38/build/pyrep
creating build/temp.linux-x86_64-cpython-38/build/pyrep/backend
creating build/temp.linux-x86_64-cpython-38/build/pyrep/backend/pyrep
creating build/temp.linux-x86_64-cpython-38/build/pyrep/backend/pyrep/backend
x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/home/vidhij/docker-image-coppeliasim/shared/PyRep/cffi_build -I/home/vidhij/peract_env/include -I/usr/include/python3.8 -c build/pyrep/backend/pyrep/backend/_sim_cffi.c -o build/temp.linux-x86_64-cpython-38/build/pyrep/backend/pyrep/backend/_sim_cffi.o
build/pyrep/backend/pyrep/backend/_sim_cffi.c:50:14: fatal error: pyconfig.h: No such file or directory
50 | # include <pyconfig.h>
| ^~~~~~~~~~~~
compilation terminated.
not modified: 'build/pyrep/backend/pyrep/backend/_sim_cffi.c'
/home/vidhij/peract_env/lib/python3.8/site-packages/setuptools/command/easy_install.py:144: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
/home/vidhij/peract_env/lib/python3.8/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
/home/vidhij/peract_env/lib/python3.8/site-packages/pkg_resources/__init__.py:123: PkgResourcesDeprecationWarning: 1.16.0-unknown is an invalid version and will not be supported in a future release
warnings.warn(
/home/vidhij/peract_env/lib/python3.8/site-packages/pkg_resources/__init__.py:123: PkgResourcesDeprecationWarning: 0.1.43ubuntu1 is an invalid version and will not be supported in a future release
warnings.warn(
/home/vidhij/peract_env/lib/python3.8/site-packages/pkg_resources/__init__.py:123: PkgResourcesDeprecationWarning: 1.1build1 is an invalid version and will not be supported in a future release
warnings.warn(
error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
Rolling back uninstall of PyRep
Moving to /home/vidhij/peract_env/lib/python3.8/site-packages/PyRep-4.1.0.3.dist-info/
from /home/vidhij/peract_env/lib/python3.8/site-packages/~yRep-4.1.0.3.dist-info
Moving to /home/vidhij/peract_env/lib/python3.8/site-packages/pyrep/
from /home/vidhij/peract_env/lib/python3.8/site-packages/~yrep
error: subprocess-exited-with-error
× python setup.py develop did not run successfully.
│ exit code: 1
╰─> [38 lines of output]
copying lua file: pyrep/backend -> /home/vidhij/Desktop/CoppeliaSim_Edu_V4_4_0_rev0_Ubuntu22_04
generating build/pyrep/backend/pyrep/backend/_sim_cffi.c
(already up-to-date)
running develop
running egg_info
creating PyRep.egg-info
writing PyRep.egg-info/PKG-INFO
writing dependency_links to PyRep.egg-info/dependency_links.txt
writing top-level names to PyRep.egg-info/top_level.txt
writing manifest file 'PyRep.egg-info/SOURCES.txt'
reading manifest file 'PyRep.egg-info/SOURCES.txt'
adding license file 'LICENSE'
writing manifest file 'PyRep.egg-info/SOURCES.txt'
running build_ext
building 'pyrep.backend._sim_cffi' extension
creating build/temp.linux-x86_64-cpython-38
creating build/temp.linux-x86_64-cpython-38/build
creating build/temp.linux-x86_64-cpython-38/build/pyrep
creating build/temp.linux-x86_64-cpython-38/build/pyrep/backend
creating build/temp.linux-x86_64-cpython-38/build/pyrep/backend/pyrep
creating build/temp.linux-x86_64-cpython-38/build/pyrep/backend/pyrep/backend
x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/home/vidhij/docker-image-coppeliasim/shared/PyRep/cffi_build -I/home/vidhij/peract_env/include -I/usr/include/python3.8 -c build/pyrep/backend/pyrep/backend/_sim_cffi.c -o build/temp.linux-x86_64-cpython-38/build/pyrep/backend/pyrep/backend/_sim_cffi.o
build/pyrep/backend/pyrep/backend/_sim_cffi.c:50:14: fatal error: pyconfig.h: No such file or directory
50 | # include <pyconfig.h>
| ^~~~~~~~~~~~
compilation terminated.
not modified: 'build/pyrep/backend/pyrep/backend/_sim_cffi.c'
/home/vidhij/peract_env/lib/python3.8/site-packages/setuptools/command/easy_install.py:144: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
/home/vidhij/peract_env/lib/python3.8/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
/home/vidhij/peract_env/lib/python3.8/site-packages/pkg_resources/__init__.py:123: PkgResourcesDeprecationWarning: 1.16.0-unknown is an invalid version and will not be supported in a future release
warnings.warn(
/home/vidhij/peract_env/lib/python3.8/site-packages/pkg_resources/__init__.py:123: PkgResourcesDeprecationWarning: 0.1.43ubuntu1 is an invalid version and will not be supported in a future release
warnings.warn(
/home/vidhij/peract_env/lib/python3.8/site-packages/pkg_resources/__init__.py:123: PkgResourcesDeprecationWarning: 1.1build1 is an invalid version and will not be supported in a future release
warnings.warn(
error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I am able to download CoppeliaSim 22.04 and run with
sh coppliasim.sh
However, I am facing this error when trying to install and buildPyRep
. The main error seems to be to findpyconfig.h
Entire Log