TensorFlow, “‘module’ object has no attribute ‘placeholder’”
Instead of tf.placeholder(shape=[None, 2], dtype=tf.float32)
use something like tf.compat.v1.placeholder(shape=[None, 2], dtype=tf.float32)
if you don't want to disable v2 completely.
References
After installing ROS Kinetic, cannot import OpenCV
ros_path = '/opt/ros/kinetic/lib/python2.7/dist-packages'
if ros_path in sys.path:
sys.path.remove(ros_path)
import cv2
sys.path.append('/opt/ros/kinetic/lib/python2.7/dist-packages')
References
ModuleNotFoundError: No module named ‘rospkg’
Try to change the shebang (line 1) according to the python version your ROS distro works with:
For melodic or earlier: #!/usr/bin/env python2
For noetic or later: #!/usr/bin/env python3
References
gnutls_handshake() failed: Error in the pull function.
sudo apt-get -y install build-essential nghttp2 libnghttp2-dev libssl-dev