pylabelme icon indicating copy to clipboard operation
pylabelme copied to clipboard

class Resource(metaclass=ResourceBase) - invalid syntax error

Open PREM1980 opened this issue 6 years ago • 3 comments

I cloned the repository and when I try to run the command ./labelme.py, I get the following error -

(test) m@m-ubu1404:~/labelme/pylabelme$ ./labelme.py Traceback (most recent call last): File "./labelme.py", line 33, in import resources File "/home/m/.virtualenvs/test/local/lib/python2.7/site-packages/resources/init.py", line 1, in from .resource import Resource # noqa File "/home/m/.virtualenvs/test/local/lib/python2.7/site-packages/resources/resource.py", line 57 class Resource(metaclass=ResourceBase):

I have installed resources==0.0.1

                        ^

PREM1980 avatar Jun 14 '18 19:06 PREM1980

I had the same issue. setting the PYTHONPATH environment variable solved my issue

jabir366 avatar Jan 24 '19 10:01 jabir366

hi, how did you configure the environment variable PYTHONPATH @jabir366

lapyrodas avatar Apr 19 '19 21:04 lapyrodas

Same error here

lucasjinreal avatar Aug 14 '19 03:08 lucasjinreal