Re: [web2py] Re: Cannot import module 'ldap'

2013-02-06 Thread Nicholas Duffy
Got it! Apparently the file I had in the modules folder was causing the problem. I don't understand why, but time to go read the docs. Thanks for everybody posting. On Wednesday, February 6, 2013 1:13:45 PM UTC-7, Nicholas Duffy wrote: > > Upon further research it appears that I'm unable to im

Re: [web2py] Re: Cannot import module 'ldap'

2013-02-06 Thread Nicholas Duffy
Upon further research it appears that I'm unable to import ldap in only one of my applications. It works in others, but just not this one. I copied the db.py from one of the working applications over but still no luck. I'll keep digging but any suggestions as to where to look would greatly be a

Re: [web2py] Re: Cannot import module 'ldap'

2013-02-06 Thread Nicholas Duffy
Mistakenly ran in the shell but updated my post shortly after. No not via the exe but via web2py.py. I've tried both locally debugging via Wing and on my server running but receive the same error. I'm sure I'm doing something simple wrong. -- --- You received this message because you are

Re: [web2py] Re: Cannot import module 'ldap'

2013-02-06 Thread Nico Zanferrari
Nicholas, I'm sorry but this is not what Massimo asked for. You need to run these commands from inside web2py, after you've run it with: python web2py.py -S welcome and not from a pure python shell. Also, how do you normally run web2py? Launching web2py.exe ? Cheers, Nico 2013/2/6 Nicholas Duf

[web2py] Re: Cannot import module 'ldap'

2013-02-05 Thread Nicholas Duffy
C:\Console2>python Python 2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32 bit (Intel)] on win 32 Type "help", "copyright", "credits" or "license" for more information. >>> import ldap >>> import ldap.filter >>> import sys >>> print sys.path ['', 'C:\\Python27\\lib\\site-packages\\setuptools-

[web2py] Re: Cannot import module 'ldap'

2013-02-05 Thread Brian M
Have you installed python-ldap - http://pypi.python.org/pypi/python-ldap/ ? On Tuesday, February 5, 2013 4:20:05 PM UTC-6, Nicholas Duffy wrote: > > Thanks for the reply Massimo. > > Do you mean the web2py source? Because that is what I am using. I am able > to import other packages that I've in

[web2py] Re: Cannot import module 'ldap'

2013-02-05 Thread Massimo Di Pierro
No idea. Whan you try open the web2py shell and try a manual import python web2py.py -S welcome >>> import ldap >>> import ldap.filter >>> import sys >>> print sys.path On Tuesday, 5 February 2013 16:20:05 UTC-6, Nicholas Duffy wrote: > > Thanks for the reply Massimo. > > Do you mean the web2py

[web2py] Re: Cannot import module 'ldap'

2013-02-05 Thread Nicholas Duffy
Thanks for the reply Massimo. Do you mean the web2py source? Because that is what I am using. I am able to import other packages that I've installed via binary in lib\site-packages like pyodbc and suds. I cannot seem to import ldap, though. On Tuesday, February 5, 2013 7:36:58 AM UTC-7, Massi

[web2py] Re: Cannot import module 'ldap'

2013-02-05 Thread Massimo Di Pierro
Since you are using the windows binary, it comes with its own python and it does not see packages you installed on you "other" python. Your best option is use the web2py source distribution. It will see packages you install. On Monday, 4 February 2013 17:09:13 UTC-6, Nicholas Duffy wrote: > > H