Python - can't import 'api', can't find module keyauth, TypeError: 'module' object is not callable

William

Last Update één maand geleden

Python TypeError: 'module' object is not callable. If you're getting an error importing api or an error saying it can't find module keyauth, it likely isn't including the keyauth.py file correctly.


Look at https://github.com/KeyAuth/KeyAuth-Python-Example#how-to-compile for instructions to compile to EXE correctly. You could also add the contents of keyauth.py to main.py as a last-ditch effort if nothing else works https://github.com/KeyAuth/KeyAuth-Python-Example/blob/main/other-examples/merged_example.py

Was this article helpful?

0 out of 0 liked this article

Still need help? Message Us