Okay, using the version not from git and installing it both with "pip install python-linkedin" and placing the "helper.py", "linkedin.py" and "model.py" in the "web2py\gluon\contrib\login_methods" directory left me with the aforementioned error:
"linkedin module not found" Eventually after a lot of renaming and pasting of the contents of "linkedin.py" within "web2py\gluon\contrib\login_methods\linkedin_account.py", I was able to get the page to load without error. Here is my modified "linkedin_account.py": https://gist.github.com/44a2e6fb4cf3cf75568b Unfortunately on click of the login button I was presented with this page: https://www.linkedin.com/uas/oauth/authorize?oauth_token=True How do I get login with LinkedIn working? Thanks for all suggestions, Alec Taylor On Fri, Aug 10, 2012 at 1:14 AM, Alec Taylor <alec.tayl...@gmail.com> wrote: > I have also now tried with http://code.google.com/p/python-linkedin/, but > that gave me the "<type 'exceptions.ImportError'> No module named > gluon.contrib.login_methods.linkedin_account" error. > > To debug, I tried following the guide on their Google Code page, and was > able to get an error: > >>>> from linkedin import helper > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > File "C:\Python27\lib\site-packages\linkedin\helper.py", line 2, in > <module> > import api > File "C:\Python27\lib\site-packages\linkedin\api.py", line 2, in <module> > from params import * > ImportError: No module named params > > > I haven't been able to find the params module. What and where is it? > > Thanks for all information, > > Alec Taylor > > On Thursday, August 9, 2012 2:23:02 PM UTC+10, Alec Taylor wrote: >> >> Just trying to test out LinkedIn login, but having some trouble. >> >> I've tried placing >> https://github.com/michaelhelmick/linkedin/blob/master/linkedin.py in >> web2py\gluon\contrib\login_methods, but I still was getting the "linkedin >> module not found" error. Same error was received after a `pip install >> linkedin`. >> >> I also tried removing the try/except and replacing it inline with the >> contents of that linkedin.py. That gave me a "<type >> 'exceptions.ImportError'> No module named >> gluon.contrib.login_methods.linkedin_account" error on page refresh. >> >> I have been following this guide: >> http://web2py.com/books/default/chapter/29/9 >> >> Am I using the wrong linkedin library? Or is there something else I'm >> doing wrong? >> >> Thanks for all suggestions, >> >> Alec Taylor > > -- > > > --