Jump to content

No module named '_ctypes' - IDA Pro 7.6


Go to solution Solved by Rook,

4 posts in this topic

Recommended Posts

Posted

Hello!

I recently formatted my computer & updated to the latest IDA 7.6 and every time I try open IDA I receive the message below:

C:\Program Files\IDA Pro 7.6\loaders\uimage.py: No module named '_ctypes'
Traceback (most recent call last):
  File "C:\Program Files\IDA Pro 7.6\python\3\ida_idaapi.py", line 616, in IDAPython_ExecScript
    exec(code, g)
  File "C:/Program Files/IDA Pro 7.6/loaders/uimage.py", line 79, in <module>
    import ctypes
  File "C:\Users\Admin\AppData\Local\Programs\Python\Python311\Lib\ctypes\__init__.py", line 8, in <module>
    from _ctypes import Union, Structure, Array
ModuleNotFoundError: No module named '_ctypes'

3JhexVY.png

It doesn't seem to block or break anything in IDA, but it has become annoying.

Anyone know what's causing it or how to resolve the issue?

Posted (edited)

It looks like python got messed up, have you tried reinstalling your python version?

Or can yo check the DLLs folder in your python directory?
Like if this is present:

Python???\DLLs\_ctypes.pyd

Maybe you just need to fix your PATH in your environment vars.

Updated by Shiny Shizou
Posted

Maybe you just need to reinstall IDA. Everytime i got issue about ida i just reinstall it and all done

  • Solution
Posted

@Shiny Shizou @AnonyN Thank you for your help! :)

I managed to figure it out. Seems like IDA Pro 7.6 supports up to Python 3.9 as maximum version. So I uninstalled 3.11 that I had installed and installed 3.8 from python.org and seems the issue is fixed and everything is working!

 

  • Winner 1
  • Haha 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines