Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with 'fix_unicode' (unexpected keyword argument) #35

Closed
jcontd opened this issue Mar 12, 2023 · 4 comments
Closed

Issue with 'fix_unicode' (unexpected keyword argument) #35

jcontd opened this issue Mar 12, 2023 · 4 comments

Comments

@jcontd
Copy link

jcontd commented Mar 12, 2023

I'm encountering the following error any time I try to run clean:

clean() got an unexpected keyword argument 'fix_unicode'

When I try to remove the 'fix_unicode' step and just go on to the next one, the same error occurs each time. I was able to use this successfully as recently as a few months ago, but now I'm no longer able to. The only difference I can think of in usage is that I'm now working on an M2 Mac (which has created issues in other cases, packages, etc., as many have pointed out), but I'm unsure whether this would have an impact here.

Has anyone else encountered this or have a sense of how to address it?

1

@sixf0ur
Copy link

sixf0ur commented May 14, 2023

Make sure you don't have another function defined as "clean".

@jcontd
Copy link
Author

jcontd commented May 15, 2023

Alas, it's the only one defined as "clean" here.

Really appreciate the help, though — thank you! Any other ideas what the problem could be?

@sixf0ur
Copy link

sixf0ur commented May 15, 2023

Try to uninstall the package and reinstall it with  unidecode

pip uninstall clean-text
pip install clean-text[gpl]

@jcontd
Copy link
Author

jcontd commented May 18, 2023

That worked!! Thank you so much! 🎉

@jcontd jcontd closed this as completed May 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants