Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with http_api.py #127

Open
mathisve opened this issue Oct 29, 2019 · 3 comments
Open

Issue with http_api.py #127

mathisve opened this issue Oct 29, 2019 · 3 comments

Comments

@mathisve
Copy link

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!

@luisberns
Copy link

luisberns commented Nov 1, 2019

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

@mathisve
Copy link
Author

mathisve commented Nov 2, 2019

Thanks! unfortunately that didn't fix my issue!

@avixp01
Copy link

avixp01 commented Feb 3, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants