ros_tensorflow icon indicating copy to clipboard operation
ros_tensorflow copied to clipboard

Issue with python version

Open AnukritiSinghh opened this issue 3 years ago • 2 comments

Hi, thanks alot for the code! I have python 2.7 and I followed the instructions you provide however, I get the following error : class DescriptorBase(metaclass=DescriptorMetaclass): ^ SyntaxError: invalid syntax Can you please help me out?

AnukritiSinghh avatar Oct 14 '21 13:10 AnukritiSinghh

Hello, this type of problem is generally due to a problem with the code syntax, please carefully check your code.

cong avatar Oct 15 '21 01:10 cong

Hi @cong Thanks for replying! The issue here is with 'metaclass' which does not work with python 2.7. So I think the issue here is the compatibility between different versions of tensorflow, protobuf and python on ubuntu 18.04. The same error generated when I try to do import tensorflow as tf

AnukritiSinghh avatar Oct 15 '21 05:10 AnukritiSinghh