Errors encountered installing git-deps under Windows
- Dominant language
- Python
- Stars
- 319
- Forks
- 55
- PR merge metrics
- No merged PRs in 30d
Description
I'm not able to run "pip install git-deps" under Windows 10.
` error in setup command: Error parsing C:\Users\johndog\AppData\Local\Temp\2\pip-install-_m6ma4lh\git-deps\setup.cfg: UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 910: character maps to
`
I ran pip with --no-clean and looked at the setup.cfg, but I didn't see any problems in it (or even a byte 0x9d), so it must be somewhere else than implied by the error message.
```
C:\Users\johnddx>pip install git-deps
Collecting git-deps
Using cached https://files.pythonhosted.org/packages/6d/02/b90cfd102dcd6bddaccbaed0b55d7d39cea8fa602c465fb8f35216028ea1/git-deps-1.0.1.tar.gz
ERROR: Complete output from command python setup.py egg_info:
ERROR:
!!! pandoc not found, long_description is bad, don't upload this to PyPI !!!
C:\Users\johnddx\AppData\Local\Temp\2\easy_install-vbrkjq5p\pypandoc-1.4\setup.py:16: DeprecationWarning: Due to possible ambiguity, 'convert()' is deprecated. Use 'convert_file()' or 'convert_text()'.
long_description = pypandoc.convert('README.md', 'rst')
See http://johnmacfarlane.net/pandoc/installing.html
for installation options
---------------------------------------------------------------
zip_safe flag not set; analyzing archive contents...
pypandoc.__pycache__.__init__.cpython-37: module references __file__
Installed c:\users\johnddx\appdata\local\temp\2\pip-install-_m6ma4lh\git-deps\.eggs\pypandoc-1.4-py3.7.egg
Searching for wheel>=0.25.0
Reading https://pypi.org/simple/wheel/
Downloading https://files.pythonhosted.org/packages/96/ba/a4702cbb6a3a485239fbe9525443446203f00771af9ac000fa3ef2788201/wheel-0.33.1-py2.py3-none-any.whl#sha256=8eb4a788b3aec8abf5ff68d4165441bc57420c9f64ca5f471f58c3969fe08668
Best match: wheel 0.33.1
Processing wheel-0.33.1-py2.py3-none-any.whl
Installing wheel-0.33.1-py2.py3-none-any.whl to c:\users\johnddx\appdata\local\temp\2\pip-install-_m6ma4lh\git-deps\.eggs
writing requirements to c:\users\johnddx\appdata\local\temp\2\pip-install-_m6ma4lh\git-deps\.eggs\wheel-0.33.1-py3.7.egg\EGG-INFO\requires.txt
Installed c:\users\johnddx\appdata\local\temp\2\pip-install-_m6ma4lh\git-deps\.eggs\wheel-0.33.1-py3.7.egg
ERROR:root:Error parsing
Traceback (most recent call last):
File "c:\users\johnddx\appdata\local\temp\2\pip-install-_m6ma4lh\git-deps\.eggs\pyscaffold-2.5.11-py3.7.egg\pyscaffold\contrib\pbr\pbr\core.py", line 96, in pbr
attrs = util.cfg_to_args(path, dist.script_args)
File "c:\users\johnddx\appdata\local\temp\2\pip-install-_m6ma4lh\git-deps\.eggs\pyscaffold-2.5.11-py3.7.egg\pyscaffold\contrib\pbr\pbr\util.py", line 258, in cfg_to_args
pbr.hooks.setup_hook(config)
File "c:\users\johnddx\appdata\local\temp\2\pip-install-_m6ma4lh\git-deps\.eggs\pyscaffold-2.5.11-py3.7.egg\pyscaffold\contrib\pbr\pbr\hooks\__init__.py", line 25, in setup_hook
metadata_config.run()
File "c:\users\johnddx\appdata\local\temp\2\pip-install-_m6ma4lh\git-deps\.eggs\pyscaffold-2.5.11-py3.7.egg\pyscaffold\contrib\pbr\pbr\hooks\base.py", line 27, in run
self.hook()
File "c:\users\johnddx\appdata\local\temp\2\pip-install-_m6ma4lh\git-deps\.eggs\pyscaffold-2.5.11-py3.7.egg\pyscaffold\contrib\pbr\pbr\hooks\metadata.py", line 26, in hook
self.config['name'], self.config.get('version', None))
File "c:\users\johnddx\appdata\local\temp\2\pip-install-_m6ma4lh\git-deps\.eggs\pyscaffold-2.5.11-py3.7.egg\pyscaffold\contrib\pbr\pbr\packaging.py", line 798, in get_version
version = _get_version_from_pkg_metadata(package_name)
File "c:\users\johnddx\appdata\local\temp\2\pip-install-_m6ma4lh\git-deps\.eggs\pyscaffold-2.5.11-py3.7.egg\pyscaffold\contrib\pbr\pbr\packaging.py", line 766, in _get_version_from_pkg_metadata
pkg_metadata = email.message_from_file(pkg_metadata_file)
File "c:\python37\lib\email\__init__.py", line 54, in message_from_file
return Parser(*args, **kws).parse(fp)
File "c:\python37\lib\email\parser.py", line 54, in parse
data = fp.read(8192)
File "c:\python37\lib\encodings\cp1252.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 910: character maps to
**error in setup command: Error parsing C:\Users\johnddx\AppData\Local\Temp\2\pip-install-_m6ma4lh\git-deps\setup.cfg: UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 910: character maps to **
----------------------------------------
ERROR: Command "python setup.py egg_info" failed with error code 1 in C:\Users\johnddx\AppData\Local\Temp\2\pip-install-_m6ma4lh\git-deps\
```
Contributor guide
Research direction
Start with setup.cfg and the setup.py packaging path shown in the error, then reproduce `pip install git-deps` on Windows 10 using the reported Python 3.7 environment. Done means the package installation completes without the UnicodeDecodeError during metadata generation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- build-system, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100