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

ModuleNotFoundError: No module named 'copy_reg\r' #5

Open
HetagKoroev opened this issue Sep 4, 2020 · 3 comments
Open

ModuleNotFoundError: No module named 'copy_reg\r' #5

HetagKoroev opened this issue Sep 4, 2020 · 3 comments

Comments

@HetagKoroev
Copy link

HetagKoroev commented Sep 4, 2020

When I try to run the file recognize_video.py, I get an error:
Traceback (most recent call last):
File "C:/Users/%username%/Desktop/face-recognition-using-deep-learning/recognize_video.py", line 22, in
recognizer = pickle.loads(open("output/recognizer.pickle", "rb").read())
ModuleNotFoundError: No module named 'copy_reg\r'.
'copy_reg\r' - its a first line of text from 'recognizer.pickle' - file

@s-abinash
Copy link

Change this line:
22 in that file
recognizer = pickle.loads(open("output/recognizer", "rb").read())

@Nouman945
Copy link

I've changed the line 22 to
recognizer = pickle.loads(open("output/recognizer", "rb").read())

but it's not working.

@pranavi-ch
Copy link

It worked, thanks a ton!

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

4 participants