import matplotlib Zlib error

Hello all,

I’m trying to import import matplotlib, but everytime I do I get this error.

Traceback (most recent call last): File "<Textport>", line 1, in <module> File "/Applications/TouchDesigner099.app/Contents/MacOS/TouchInit.py", line 175, in tdcustomimport r = previousimport(*args, **kw) File "/Applications/TouchDesigner099.app/Contents/MacOS/TouchInit.py", line 175, in tdcustomimport r = previousimport(*args, **kw) File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/matplotlib/__init__.py", line 127, in <module> from . import cbook File "/Applications/TouchDesigner099.app/Contents/MacOS/TouchInit.py", line 175, in tdcustomimport r = previousimport(*args, **kw) File "/Applications/TouchDesigner099.app/Contents/MacOS/TouchInit.py", line 175, in tdcustomimport r = previousimport(*args, **kw) File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/matplotlib/cbook/__init__.py", line 20, in <module> import gzip File "/Applications/TouchDesigner099.app/Contents/MacOS/TouchInit.py", line 175, in tdcustomimport r = previousimport(*args, **kw) File "/Applications/TouchDesigner099.app/Contents/Frameworks/Python.framework/Versions/3.5/lib/python3.5/gzip.py", line 9, in <module> import zlib File "/Applications/TouchDesigner099.app/Contents/MacOS/TouchInit.py", line 175, in tdcustomimport r = previousimport(*args, **kw) ImportError: No module named 'zlib' python >>>

It says it can’t find the module named zlib. I did some research and found out that Zlib is a module based on file compression and when I went to the Zlib website to try and install it I saw this message “zlib for macOS (Mac OS X): zlib is already included as part of macOS”

Does anyone know how I can verify that Zlib is on my mac and if not how I can grab it?

Thanks!

Which build are you using? If you just do “import zlib” and “import gzip” in the textport, do you get any errors? What is your Preferences->General->Python 64-bit Module Path set to?