Please, post minimal reproducible example and full traceback that you get with the code you post.
As @Gribouillis already mentioned the error in the first post has nothing to do with PyQt. Also it's unclear what you want to do with imports as described in post #3 and how you use the names imported.
As @Gribouillis already mentioned the error in the first post has nothing to do with PyQt. Also it's unclear what you want to do with imports as described in post #3 and how you use the names imported.
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs