I am trying to use the countbyvalue() function and it gave me the following error:
File "/usr/local/lib/python3.5/runpy.py", line 174, in _run_module_as_main mod_name, mod_spec, code = _get_module_details(mod_name, _Error) File "/usr/local/lib/python3.5/runpy.py", line 109, in _get_module_details __import__(pkg_name) zipimport.ZipImportError: can't decompress data; zlib not availableI see solutions for this as to configure python again but while configuring it says --with-zlib-dir is an unrecognized option.
I am not sure if it would change any, on proceeding further, even it couldn't recognize the option
How can I solve it?
41 Answer
Answer to a similar question raised here suggested installing zlib1g-dev in order to solve this error:
sudo apt-get install zlib1g-devMore info about zlib1g-dev
6Note: If you have a spark cluster, you might need to install the package on every node in the cluster.