Pyinstaller: AttributeError: Module 'PyQt5' has no attribute '__version__'

Hi all,
I’m trying compiling my python code with command:
pyinstaller -F code.py

but error

AttributeError: Module 'PyQt5' has no attribute '__version__'
appears
can someone help me?

Could you paste the full traceback?