LightRun Python Agent Error : TypeError: can only concatenate str (not “NoneType”) to str

When I try to run the Lightrun python agent, I get this error :

$ python3

Traceback (most recent call last):
File "", line 4, in <module>
File "<frozen lightrun>", line 142, in enable
File "<frozen lightrun>", line 73, in _StartDebugger
File "<frozen lightrun.hub_client>", line 89, in __init__
TypeError: can only concatenate str (not "NoneType") to str  

Reproduce :

I selected pycharm and python in the second step. the next step, login, worked. But trying to run the agent gives this error.

This is my :

if __name__ == '__main__':
        import lightrun
                        com_lightrun_secret="<your personal token>")
    except ImportError as e:
        print("Error importing Lightrun: ", e)

Just replace your token here or follow the lightrun installation steps.

I am stuck at this step. Please help.


Please notice that the URL you should use is:

lightrun.enable(com_lightrun_server='', com_lightrun_secret='XXXX')

(notice the added /company/ ).