python-linkedin icon indicating copy to clipboard operation
python-linkedin copied to clipboard

Issue with http_api.py

Open mathisve opened this issue 4 years ago • 3 comments

When running http_api.py its giving me this error:

Mathiss-iMac:match_ai mathis$ python3 http_api.py
Traceback (most recent call last):
  File "http_api.py", line 17, in <module>
    from linkedin.linkedin import LinkedInAuthentication, LinkedInApplication, PERMISSIONS
  File "/usr/local/lib/python3.7/site-packages/linkedin/linkedin.py", line 294
    except (requests.ConnectionError, requests.HTTPError), error:
                                                         ^
SyntaxError: invalid syntax

I have looked through the previous issues and found that #86 is a similar issue. But this was in august of 2015, so I'm not sure if this has been fixed and re-appeared or if it hasn't yet.

Currently using Python 3.7.3 with linkedin==0.1.5.

I hope it can get resolved. Thanks!

mathisve avatar Oct 29 '19 17:10 mathisve

#114 This issue has a solution to a similar err, maybe it helps, take a look

luisberns avatar Nov 01 '19 23:11 luisberns

Thanks! unfortunately that didn't fix my issue!

mathisve avatar Nov 02 '19 02:11 mathisve

Change to this -- ", error" -> "as error" except (requests.ConnectionError, requests.HTTPError) as error:

avixp01 avatar Feb 03 '21 07:02 avixp01