Hi,
I have tried to install mlab on my mac (Catalina, version 10.15.4), and got the error attached below.
Any suggestions? Thanks a lot
pip install mlab
Collecting mlab
Using cached https://files.pythonhosted.org/packages/84/44/c2bc56f1628299282c53717a8791ee2912e1e329343ef964fb723d760b46/mlab-1.1.4.tar.gz
ERROR: Command errored out with exit status 1:
command: /Users/mik/mikanaconda/anaconda3/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/t3/llmqmtn11g9096sgc832r52r0000gn/T/pip-install-_7x2i_4g/mlab/setup.py'"'"'; file='"'"'/private/var/folders/t3/llmqmtn11g9096sgc832r52r0000gn/T/pip-install-_7x2i_4g/mlab/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base /private/var/folders/t3/llmqmtn11g9096sgc832r52r0000gn/T/pip-install-_7x2i_4g/mlab/pip-egg-info
cwd: /private/var/folders/t3/llmqmtn11g9096sgc832r52r0000gn/T/pip-install-_7x2i_4g/mlab/
Complete output (27 lines):
running egg_info
creating /private/var/folders/t3/llmqmtn11g9096sgc832r52r0000gn/T/pip-install-_7x2i_4g/mlab/pip-egg-info/mlab.egg-info
writing /private/var/folders/t3/llmqmtn11g9096sgc832r52r0000gn/T/pip-install-_7x2i_4g/mlab/pip-egg-info/mlab.egg-info/PKG-INFO
:175: (WARNING/2) Literal block expected; none found.
Traceback (most recent call last):
File "", line 1, in
File "/private/var/folders/t3/llmqmtn11g9096sgc832r52r0000gn/T/pip-install-_7x2i_4g/mlab/setup.py", line 47, in
download_url='https://github.com/ewiger/mlab/tarball/master',
File "/Users/mik/mikanaconda/anaconda3/lib/python3.7/site-packages/setuptools/init.py", line 144, in setup
return distutils.core.setup(**attrs)
File "/Users/mik/mikanaconda/anaconda3/lib/python3.7/distutils/core.py", line 148, in setup
dist.run_commands()
File "/Users/mik/mikanaconda/anaconda3/lib/python3.7/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/Users/mik/mikanaconda/anaconda3/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/Users/mik/mikanaconda/anaconda3/lib/python3.7/site-packages/setuptools/command/egg_info.py", line 290, in run
writer(self, ep.name, os.path.join(self.egg_info, ep.name))
File "/Users/mik/mikanaconda/anaconda3/lib/python3.7/site-packages/setuptools/command/egg_info.py", line 622, in write_pkg_info
metadata.write_pkg_info(cmd.egg_info)
File "/Users/mik/mikanaconda/anaconda3/lib/python3.7/distutils/dist.py", line 1117, in write_pkg_info
self.write_pkg_file(pkg_info)
File "/Users/mik/mikanaconda/anaconda3/lib/python3.7/site-packages/setuptools/dist.py", line 165, in write_pkg_file
long_desc = rfc822_escape(self.get_long_description())
File "/Users/mik/mikanaconda/anaconda3/lib/python3.7/distutils/util.py", line 464, in rfc822_escape
lines = header.split('\n')
TypeError: a bytes-like object is required, not 'str'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.