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 
appreciated.

c:\web2py>python web2py.py -S training
web2py Web Framework
Created by Massimo Di Pierro, Copyright 2007-2013
Version 2.3.2 (2012-12-17 15:03:30) stable
Database drivers available: SQLite(sqlite3), MySQL(pymysql), 
PostgreSQL(pg8000), MSSQL(pyodbc), DB2(pyodbc), Teradata(pyodbc), 
IMAP(imaplib)
WARNING:web2py:import IPython error; use default python shell
Python 2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32 bit (Intel)] 
on win32
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> import ldap
>>> ^Z


c:\web2py>python web2py.py -S apollo
web2py Web Framework
Created by Massimo Di Pierro, Copyright 2007-2013
Version 2.3.2 (2012-12-17 15:03:30) stable
Database drivers available: SQLite(sqlite3), MySQL(pymysql), 
PostgreSQL(pg8000), MSSQL(pyodbc), DB2(pyodbc), Teradata(pyodbc), 
IMAP(imaplib)
WARNING:web2py:import IPython error; use default python shell
Python 2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32 bit (Intel)] 
on win32
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> import ldap
Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File "c:\web2py\gluon\custom_import.py", line 77, in custom_importer
    raise ImportError, 'Cannot import module %s' % str(e)
ImportError: Cannot import module 'ldap'
>>>

On Wednesday, February 6, 2013 3:17:31 AM UTC-7, Nicholas Duffy wrote:
>
> 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 subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to