Fabric 2.0: [Errno 2] No such file or directory: 'LICENSE'
See original GitHub issueHi,
When installing the recent 2.0 release, the install fail when building wheel:
Building wheels for collected packages: fabric, pycparser
Running setup.py bdist_wheel for fabric ... error
Complete output from command c:\users\<username>\.virtualenvs\<projectname>\scripts\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\Antoine\\AppData\\Local\\Temp\\pip-install-h3egl441\\fabric\\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 C:\Users\<username>\AppData\Local\Temp\pip-wheel-erivg4qq --python-tag cp36:
running bdist_wheel
running build
running build_py
creating build
creating build\lib
creating build\lib\fabric
copying fabric\config.py -> build\lib\fabric
copying fabric\connection.py -> build\lib\fabric
copying fabric\exceptions.py -> build\lib\fabric
copying fabric\executor.py -> build\lib\fabric
copying fabric\group.py -> build\lib\fabric
copying fabric\main.py -> build\lib\fabric
copying fabric\runners.py -> build\lib\fabric
copying fabric\transfer.py -> build\lib\fabric
copying fabric\tunnels.py -> build\lib\fabric
copying fabric\util.py -> build\lib\fabric
copying fabric\_version.py -> build\lib\fabric
copying fabric\__init__.py -> build\lib\fabric
installing to build\bdist.win-amd64\wheel
running install
running install_lib
creating build\bdist.win-amd64
creating build\bdist.win-amd64\wheel
creating build\bdist.win-amd64\wheel\fabric
copying build\lib\fabric\config.py -> build\bdist.win-amd64\wheel\.\fabric
copying build\lib\fabric\connection.py -> build\bdist.win-amd64\wheel\.\fabric
copying build\lib\fabric\exceptions.py -> build\bdist.win-amd64\wheel\.\fabric
copying build\lib\fabric\executor.py -> build\bdist.win-amd64\wheel\.\fabric
copying build\lib\fabric\group.py -> build\bdist.win-amd64\wheel\.\fabric
copying build\lib\fabric\main.py -> build\bdist.win-amd64\wheel\.\fabric
copying build\lib\fabric\runners.py -> build\bdist.win-amd64\wheel\.\fabric
copying build\lib\fabric\transfer.py -> build\bdist.win-amd64\wheel\.\fabric
copying build\lib\fabric\tunnels.py -> build\bdist.win-amd64\wheel\.\fabric
copying build\lib\fabric\util.py -> build\bdist.win-amd64\wheel\.\fabric
copying build\lib\fabric\_version.py -> build\bdist.win-amd64\wheel\.\fabric
copying build\lib\fabric\__init__.py -> build\bdist.win-amd64\wheel\.\fabric
running install_egg_info
running egg_info
writing fabric.egg-info\PKG-INFO
writing dependency_links to fabric.egg-info\dependency_links.txt
writing entry points to fabric.egg-info\entry_points.txt
writing requirements to fabric.egg-info\requires.txt
writing top-level names to fabric.egg-info\top_level.txt
reading manifest file 'fabric.egg-info\SOURCES.txt'
writing manifest file 'fabric.egg-info\SOURCES.txt'
Copying fabric.egg-info to build\bdist.win-amd64\wheel\.\fabric-2.0.0-py3.6.egg-info
running install_scripts
error: [Errno 2] No such file or directory: 'LICENSE'
----------------------------------------
Failed building wheel for fabric
Running setup.py clean for fabric
Running setup.py bdist_wheel for pycparser ... done
Stored in directory: C:\Users\<username>\AppData\Local\pip\Cache\wheels\c0\a1\27\5ba234bd77ea5a290cbf6d675259ec52293193467a12ef1f46
Successfully built pycparser
Failed to build fabric
Thanks for the amazing work !
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Error following official documentation (install fabric samples ...
fabric -samples v2.4.3 does not exist, defaulting to main. fabric-samples main branch is ... -bash: cd: bin: No such file or directory
Read more >I was installing QuantExt in cmd & anaconda ... - Stack Overflow
QuantExt-Python installation error: No such file or directory: '../../LICENSE.TXT' · python · pip.
Read more >Using the Fabric test network - Hyperledger Fabric Docs
Because the nodes are isolated within a Docker Compose network, the test network is not configured to connect to other running Fabric nodes....
Read more >Changelog (1.x) — Fabric documentation
For the current (2.0+) changelog, please see the main changelog. ... [Support]: Update packaging metadata so wheel archives include the LICENSE file.
Read more >Installing Runtime Fabric Manually - MuleSoft Documentation
To install Runtime Fabric, your Mule license key must be Base64 encoded. ... To encode your license file on Windows, a shell terminal...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
It looks there is indeed a packaging problem. On PyPI the Python 2 version is distributed as a wheel package while installing from Python 3 downloads a
tar.gz
that is missing the LICENSE file referred insetup.cfg
.pip
as default tries to build a wheel from the downloadedtar.gz
and fails for the missing file. Right now the way to obtain a clean install is topip install --no-cache-dir
to forcepip
to install fromsetup.py
bypassing the wheel build step.I hope that Jeff will distribute a
.whl
for Python 3.Did a stealthy force push due to a minor mishap, but 2.0.1 is now up on PyPI and appears to have the proper universal wheel now.