Start a new topic

Get SyntaxError : Invalid Syntax when run Shub

Hi, I've installed shub in my MAC using sudo pip, but when I am running "shub", I got the following error :


X:\>shub

Traceback (most recent call last):

  File "c:\users\widhiasmarapu\appdata\local\programs\python\python37-32\lib\runpy.py", line 193, in _run_module_as_main

    "__main__", mod_spec)

  File "c:\users\widhiasmarapu\appdata\local\programs\python\python37-32\lib\runpy.py", line 85, in _run_code

    exec(code, run_globals)

  File "C:\Users\Widhiasmarapu\AppData\Local\Programs\Python\Python37-32\Scripts\shub.exe\__main__.py", line 5, in <module>

  File "c:\users\widhiasmarapu\appdata\local\programs\python\python37-32\lib\site-packages\shub\tool.py", line 57, in <module>

    command_module = importlib.import_module(module_path)

  File "c:\users\widhiasmarapu\appdata\local\programs\python\python37-32\lib\importlib\__init__.py", line 127, in import_module

    return _bootstrap._gcd_import(name[level:], package, level)

  File "c:\users\widhiasmarapu\appdata\local\programs\python\python37-32\lib\site-packages\shub\deploy.py", line 27, in <module>

    from shub.image.upload import upload_cmd

  File "c:\users\widhiasmarapu\appdata\local\programs\python\python37-32\lib\site-packages\shub\image\__init__.py", line 23, in <module>

    command_module = importlib.import_module(module_path)

  File "c:\users\widhiasmarapu\appdata\local\programs\python\python37-32\lib\importlib\__init__.py", line 127, in import_module

    return _bootstrap._gcd_import(name[level:], package, level)

  File "c:\users\widhiasmarapu\appdata\local\programs\python\python37-32\lib\site-packages\shub\image\deploy.py", line 61

    apikey, insecure, async):

                          ^

SyntaxError: invalid syntax


Anyone know how to fix this ?

1 Comment

I'm assuming you're running windows on your mac because of the drive letters. What version of Python do you have?

Login to post a comment