roscore stuck at checking logs not starting server
I am very new to the field of ROS and have been following ROS tutorials to set environment and when I always run roscore it gets stuck at: ... logging to /home/shreshtha/.ros/log/6c27bb5a-9d87-11ed-ac12-9840bb3645e5/roslaunch-shreshtha-Vostro-4729.log Checking log directory for disk usage. This may take a while. Press Ctrl-C to interrupt
and whenever I pess CTRL+C:
I get: Traceback (most recent call last): File "/opt/ros/melodic/bin/roscore", line 84, in <module> roslaunch.main(['roscore', '--core'] + sys.argv[1:]) File "/opt/ros/melodic/lib/python2.7/dist-packages/roslaunch/__init__.py", line 347, in main p.start() File "/opt/ros/melodic/lib/python2.7/dist-packages/roslaunch/parent.py", line 301, in start self.logger.info("starting roslaunch parent run") File "/usr/lib/python3.11/logging/__init__.py", line 1489, in info self._log(INFO, msg, args, *kwargs) File "/usr/lib/python3.11/logging/__init__.py", line 1622, in _log fn, lno, func, sinfo = self.findCaller(stack_info, stacklevel) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/ros/melodic/lib/python2.7/dist-packages/rosgraph/roslogging.py", line 63, in findCaller while hasattr(f, "f_code"): ^^^^^^^^^^^^^^^^^^^^ KeyboardInterrupt ^CException ignored in atexit callback: <function _ros_atexit="" at="" 0x7ff128b6ff60=""> Traceback (most recent call last): File "/opt/ros/melodic/lib/python2.7/dist-packages/rospy/core.py", line 615, in _ros_atexit signal_shutdown('atexit') File "/opt/ros/melodic/lib/python2.7/dist-packages/rospy/core.py", line 560, in signal_shutdown _logger.info("signal_shutdown [%s]"%reason) File "/usr/lib/python3.11/logging/__init__.py", line 1489, in info self._log(INFO, msg, args, *kwargs) File "/usr/lib/python3.11/logging/__init__.py", line 1622, in _log fn, lno, func, sinfo = self.findCaller(stack_info, stacklevel) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/ros/melodic/lib/python2.7/dist-packages/rosgraph/roslogging.py", line 66, in findCaller filename = os.path.normcase(co.co_filename) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<frozen posixpath="">", line 52, in normcase