Forum Archive

Error: No modules named ctypes.macholib

joshpaulie

Sad to have spent $10 on an ide I can’t use 🤪
Does anyone have a workaround for this?

JonB

https://github.com/omz/Pythonista-Issues/issues/311#issuecomment-398715503
You can install ctypes.macholib, which is pure python, and will let you import ctypes.utils.
Be aware that you won’t be able to create your own executables on iOS. You can load some iOS dylib’s, but not all. Many functions are already included as statically linked, in the ‘objc_util.c‘, so if there is something specific you might try to see if that function exists in c.

joshpaulie

Thank you so much! I was deterred from that post because the next response was something about it not working. It totally worked though. Thanks man. Now I can play with my discord bot from my iPad lol