Hi,
How to import the Levenshtein in controller of web2py actullaý I have
downloaded the tar.bz2 folder of levenstein from
http://code.google.com/p/pylevenshtein/ extracted in web2py/site-packages
and used the command import Levenshtein but it dosen't work and even I
tried by extracting in applications/yourapp/modules and used the command func
= local_import('func') but this also dosen't work I am getting the error
Ticket ID
127.0.0.1.2012-07-29.18-29-59.f256a67b-29b3-46da-9272-669cc6577de2
<type 'exceptions.ImportError'> No module named Levenshtein Version web2py™
(1,
99, 7, datetime.datetime(2012, 3, 4, 22, 12, 8), 'stable') Python Python
2.7.3: /usr/bin/python Traceback
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
Traceback (most recent call last):
File "/home/praveen/web2py/web2py/gluon/restricted.py", line 205, in
restricted
exec ccode in environment
File
"/home/praveen/web2py/web2py/applications/tlc2/controllers/plugin_seq.py"
<http://127.0.0.1:8000/admin/default/edit/tlc2/controllers/plugin_seq.py>, line
7, in <module>
from Levenshtein import *
File "/home/praveen/web2py/web2py/gluon/custom_import.py", line 293, in
__call__
fromlist, level)
File "/home/praveen/web2py/web2py/gluon/custom_import.py", line 78, in
__call__
level)
ImportError: No module named Levenshtein
--