Last active
April 7, 2021 08:14
-
-
Save denilsonsa/9c8f5c44bf2038fd000f to your computer and use it in GitHub Desktop.
Python and C ctypes stdout captured in IPython Notebook - https://stackoverflow.com/questions/35745541
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When running the notebook it gets as far as the section:
ctypes - Preparing the C library
whereupon I get the following:
--------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-10-684349b68d2d> in <module>() 5 6 # These variables, defined inside the C library, are readonly. ----> 7 cstdin = FILE_p.in_dll(libc, 'stdin') 8 cstdout = FILE_p.in_dll(libc, 'stdout') 9 cstderr = FILE_p.in_dll(libc, 'stderr') ValueError: dlsym(0x11b5c0e50, stdin): symbol not foundon MacOS Mojave 10.14.1 with Python 3.7.0 and Jupyter 5.6.0