catkin_make error in ros neotic
I am using ubuntu 20.04 and installed ros neotic( I am completely new to both ROS and Ubuntu). i created catkin_ws folder, created a src folder and then ran catkin_make command, but it gave the error:
hcg524@Lappy:~/tut/catkin_ws$ catkin_make
Base path: /home/hcg524/tut/catkin_ws
Source space: /home/hcg524/tut/catkin_ws/src
Build space: /home/hcg524/tut/catkin_ws/build
Devel space: /home/hcg524/tut/catkin_ws/devel
Install space: /home/hcg524/tut/catkin_ws/install
####
#### Running command: "cmake /home/hcg524/tut/catkin_ws/src -DCATKIN_DEVEL_PREFIX=/home/hcg524/tut/catkin_ws/devel -DCMAKE_INSTALL_PREFIX=/home/hcg524/tut/catkin_ws/install -G Unix Makefiles" in "/home/hcg524/tut/catkin_ws/build"
####
-- The C compiler identification is GNU 9.4.0
-- The CXX compiler identification is GNU 9.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Using CATKIN_DEVEL_PREFIX: /home/hcg524/tut/catkin_ws/devel
-- Using CMAKE_PREFIX_PATH: /opt/ros/noetic
-- This workspace overlays: /opt/ros/noetic
-- Found PythonInterp: /usr/bin/python3 (found suitable version "3.8.10", minimum required is "3")
-- Using PYTHON_EXECUTABLE: /usr/bin/python3
-- Using Debian Python package layout
-- Found PY_em: /usr/lib/python3/dist-packages/em.py
-- Using empy: /usr/lib/python3/dist-packages/em.py
-- Using CATKIN_ENABLE_TESTING: ON
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /home/hcg524/tut/catkin_ws/build/test_results
-- Forcing gtest/gmock from source, though one was otherwise available.
-- Found gtest sources under '/usr/src/googletest': gtests will be built
-- Found gmock sources under '/usr/src/googletest': gmock will be built
-- Found PythonInterp: /usr/bin/python3 (found version "3.8.10")
-- Found Threads: TRUE
-- Using Python nosetests: /usr/bin/nosetests3
-- catkin 0.8.10
-- BUILD_SHARED_LIBS is on
/home/hcg524/tut/catkin_ws/devel/env.sh: 31: /tmp/setup.sh.oQKZabGkze: Syntax error: Unterminated quoted string
Traceback (most recent call last):
File "/home/hcg524/tut/catkin_ws/build/catkin_generated/generate_cached_setup.py", line 22, in <module>
code = generate_environment_script('/home/hcg524/tut/catkin_ws/devel/env.sh')
File "/opt/ros/noetic/lib/python3/dist-packages/catkin/environment_cache.py", line 62, in generate_environment_script
output = subprocess.check_output([env_script, sys.executable, '-c', python_code])
File "/usr/lib/python3.8/subprocess.py", line 415, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/usr/lib/python3.8/subprocess.py", line 516, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/home/hcg524/tut/catkin_ws/devel/env.sh', '/usr/bin/python3', '-c', 'import os; print(dict(os.environ))']' returned non-zero exit status 2.
CMake Error at /opt/ros/noetic/share/catkin/cmake/safe_execute_process.cmake:11 (message):
execute_process(/usr/bin/python3
"/home/hcg524/tut/catkin_ws/build/catkin_generated/generate_cached_setup.py")
returned error code 1
Call Stack (most recent call first):
/opt/ros/noetic/share/catkin/cmake/all.cmake:208 (safe_execute_process)
/opt ...