Install error with current PyPI release
maxnoe opened this issue · comments
$ pip install viscm
Collecting viscm
Downloading https://files.pythonhosted.org/packages/81/57/c59fec4306a10c102cca71f6f2d42b3bfd27e05dd784825bfe4b2cac3bd3/viscm-0.8.tar.gz (307kB)
|████████████████████████████████| 317kB 3.8MB/s
Requirement already satisfied: numpy in ./.local/anaconda3/lib/python3.7/site-packages (from viscm) (1.16.4)
Requirement already satisfied: matplotlib in ./.local/anaconda3/lib/python3.7/site-packages (from viscm) (3.1.0)
Collecting colorspacious (from viscm)
Downloading https://files.pythonhosted.org/packages/ab/a1/318b9aeca7b9856410ededa4f52d6f82174d1a41e64bdd70d951e532675a/colorspacious-1.1.2-py2.py3-none-any.whl
Requirement already satisfied: cycler>=0.10 in ./.local/anaconda3/lib/python3.7/site-packages (from matplotlib->viscm) (0.10.0)
Requirement already satisfied: kiwisolver>=1.0.1 in ./.local/anaconda3/lib/python3.7/site-packages (from matplotlib->viscm) (1.1.0)
Requirement already satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1 in ./.local/anaconda3/lib/python3.7/site-packages (from matplotlib->viscm) (2.4.0)
Requirement already satisfied: python-dateutil>=2.1 in ./.local/anaconda3/lib/python3.7/site-packages (from matplotlib->viscm) (2.8.0)
Requirement already satisfied: six in ./.local/anaconda3/lib/python3.7/site-packages (from cycler>=0.10->matplotlib->viscm) (1.12.0)
Requirement already satisfied: setuptools in ./.local/anaconda3/lib/python3.7/site-packages (from kiwisolver>=1.0.1->matplotlib->viscm) (41.0.1)
Building wheels for collected packages: viscm
Building wheel for viscm (setup.py) ... error
ERROR: Complete output from command /home/maxnoe/.local/anaconda3/bin/python -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-0d4683vc/viscm/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-e5_xbw5y --python-tag cp37:
ERROR: running bdist_wheel
running build
running build_py
creating build
creating build/lib
creating build/lib/viscm
copying viscm/__init__.py -> build/lib/viscm
copying viscm/__main__.py -> build/lib/viscm
copying viscm/bezierbuilder.py -> build/lib/viscm
copying viscm/gui.py -> build/lib/viscm
copying viscm/minimvc.py -> build/lib/viscm
creating build/lib/viscm/examples
copying viscm/examples/sample_diverging_continuous.jscm -> build/lib/viscm/examples
copying viscm/examples/sample_linear.jscm -> build/lib/viscm/examples
copying viscm/examples/sample_diverging.jscm -> build/lib/viscm/examples
copying viscm/examples/hist2d.txt -> build/lib/viscm/examples
copying viscm/examples/README -> build/lib/viscm/examples
copying viscm/examples/st-helens_before-modified.txt.gz -> build/lib/viscm/examples
copying viscm/examples/colourmaptest.npy -> build/lib/viscm/examples
installing to build/bdist.linux-x86_64/wheel
running install
running install_lib
creating build/bdist.linux-x86_64
creating build/bdist.linux-x86_64/wheel
creating build/bdist.linux-x86_64/wheel/viscm
copying build/lib/viscm/__init__.py -> build/bdist.linux-x86_64/wheel/viscm
creating build/bdist.linux-x86_64/wheel/viscm/examples
copying build/lib/viscm/examples/sample_diverging_continuous.jscm -> build/bdist.linux-x86_64/wheel/viscm/examples
copying build/lib/viscm/examples/sample_linear.jscm -> build/bdist.linux-x86_64/wheel/viscm/examples
copying build/lib/viscm/examples/sample_diverging.jscm -> build/bdist.linux-x86_64/wheel/viscm/examples
copying build/lib/viscm/examples/hist2d.txt -> build/bdist.linux-x86_64/wheel/viscm/examples
copying build/lib/viscm/examples/README -> build/bdist.linux-x86_64/wheel/viscm/examples
copying build/lib/viscm/examples/st-helens_before-modified.txt.gz -> build/bdist.linux-x86_64/wheel/viscm/examples
copying build/lib/viscm/examples/colourmaptest.npy -> build/bdist.linux-x86_64/wheel/viscm/examples
copying build/lib/viscm/__main__.py -> build/bdist.linux-x86_64/wheel/viscm
copying build/lib/viscm/bezierbuilder.py -> build/bdist.linux-x86_64/wheel/viscm
copying build/lib/viscm/gui.py -> build/bdist.linux-x86_64/wheel/viscm
copying build/lib/viscm/minimvc.py -> build/bdist.linux-x86_64/wheel/viscm
running install_egg_info
running egg_info
writing viscm.egg-info/PKG-INFO
writing dependency_links to viscm.egg-info/dependency_links.txt
writing requirements to viscm.egg-info/requires.txt
writing top-level names to viscm.egg-info/top_level.txt
warning: Failed to find the configured license file 'LICENSE'
reading manifest file 'viscm.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'LICENSE.txt'
warning: no files found matching '*' under directory 'doc'
no previously-included directories found matching 'doc/_build'
writing manifest file 'viscm.egg-info/SOURCES.txt'
Copying viscm.egg-info to build/bdist.linux-x86_64/wheel/viscm-0.8-py3.7.egg-info
running install_scripts
error: [Errno 2] No such file or directory: 'LICENSE'
----------------------------------------
ERROR: Failed building wheel for viscm
Running setup.py clean for viscm
Failed to build viscm
Installing collected packages: colorspacious, viscm
Running setup.py install for viscm ... done
Successfully installed colorspacious-1.1.2 viscm-0.8```
This is fixed in the GitHub version in commit #47 , but not yet uploaded to PyPI.
As a workaround, install viscm with
pip install git+https://github.com/matplotlib/viscm.git
until the maintainers upload a version to PyPI.
I just tagged 0.9 and publish to pypi. Closing this issue, please report if it is not fixed.
Works fine, thanks!