Search code examples
pythonmulejythonmulesoft

ImportError: cannot import name create_string_buffer


I'm using python script in mulesoft ,while importing a library the above error is occuring? Any help would be much appreciated . Below is the error I get:

Message : ImportError: cannot import name create_string_buffer in at line number 2

Element : pythondemoFlow/processors/2/processors/1 @ pythondemo:pythondemo.xml:27 (Execute)


Solution

  • If you are trying to import ctypes into your script, it will not work. Python support in Mule depends on the Jython implementation which doesn't really supports ctypes. See Using ctypes with jython for more information.