ozgur / python-linkedin

Python interface to the LinkedIn API
http://ozgur.github.com/python-linkedin/
MIT License
893 stars 392 forks source link

Failed to import, invalid syntax #114

Open charleskawczynski opened 6 years ago

charleskawczynski commented 6 years ago

Traceback (most recent call last): File "C:\Users\kawcz\Dropbox\PROGRAMMING\MAIN\job_search_scrape_linkedin\test.py", line 1, in from linkedin import linkedin File "C:\Users\kawcz\AppData\Local\Programs\Python\Python36\lib\site-packages\linkedin\linkedin.py", line 294 except (requests.ConnectionError, requests.HTTPError), error: ^ SyntaxError: invalid syntax

shirishc commented 6 years ago

Facing the same above issue !!!

ramosjoel commented 6 years ago

Whoops, looks like I reported this on Issue #115 but this is the same thing. Looks like we're trying to use Python 3 with something that was written for Python 2

admhpr commented 6 years ago

mentioned this on #115 aswell: pip install --upgrade https://github.com/ozgur/python-linkedin/tarball/master seems to solve the issue.

hsonetta commented 5 years ago

@harps116 this didn't solve the issue

luisberns commented 5 years ago

mentioned this on #115 aswell: pip install --upgrade https://github.com/ozgur/python-linkedin/tarball/master seems to solve the issue.

This helped for me and I could import the linkedin package.