filyp / autocorrect

Spelling corrector in python
GNU Lesser General Public License v3.0
447 stars 79 forks source link

cannot import name 'Speller' #23

Closed rash150996 closed 3 years ago

rash150996 commented 3 years ago

from autocorrect import Speller

This line is throwing the error as mentioned in the title. Has it been deprecated or is there any workaround?

filyp commented 3 years ago

Hm, this is strange, it should work fine. What is the output of

pip freeze | grep autocorrect

and of

import autocorrect
dir(autocorrect)

Also, what python version are you using?

rash150996 commented 3 years ago

Hey, Thanks for replying to the issue. Actually, I was trying to import and run it on the terminal as a package but suddenly the 'Speller' seem to be an unknown module.

I am using python --version 3.6.9 for now. But I got to make it work.

filyp commented 3 years ago

So it's working fine now?

rash150996 commented 3 years ago

It is working fine now. Thanks.