Open johnddx opened 5 years ago
i get the same error
Hi, I've just released 1.1.0. Any chance you could test whether you still see this issue? Thanks!
Hi, I am getting the error in version 1.1.0.
C:\Users\xyz>pip3 install git-deps Collecting git-deps Downloading https://files.pythonhosted.org/packages/af/b6/a972c2e33471312039eaee79b0f361807aac43a680ea1c69db2c8d87e13a/git-deps-1.1.0.zip (8.1MB) |████████████████████████████████| 8.2MB 3.3MB/s ERROR: Command errored out with exit status 1: command: 'c:\users\xyz\appdata\local\programs\python\python37\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\xy~1\AppData\Local\Temp\2\pip-install-dr453odx\git-deps\setup.py'"'"'; file='"'"'C:\Users\xy~1\AppData\Local\Temp\2\pip-install-dr453odx\git-deps\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 'C:\Users\xy~1\AppData\Local\Temp\2\pip-install-dr453odx\git-deps\pip-egg-info' cwd: C:\Users\xy~1\AppData\Local\Temp\2\pip-install-dr453odx\git-deps\ Complete output (28 lines): zip_safe flag not set; analyzing archive contents... pypandoc.pycache.init.cpython-37: module references file
Installed c:\users\xy~1\appdata\local\temp\2\pip-install-dr453odx\git-deps\.eggs\pypandoc-1.5-py3.7.egg
ERROR:root:Error parsing
Traceback (most recent call last):
File "c:\users\xy~1\appdata\local\temp\2\pip-install-dr453odx\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\xy~1\appdata\local\temp\2\pip-install-dr453odx\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\xy~1\appdata\local\temp\2\pip-install-dr453odx\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\xy~1\appdata\local\temp\2\pip-install-dr453odx\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\xy~1\appdata\local\temp\2\pip-install-dr453odx\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\xy~1\appdata\local\temp\2\pip-install-dr453odx\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\xy~1\appdata\local\temp\2\pip-install-dr453odx\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:\users\xyz\appdata\local\programs\python\python37\lib\email\__init__.py", line 54, in message_from_file
return Parser(*args, **kws).parse(fp)
File "c:\users\xyz\appdata\local\programs\python\python37\lib\email\parser.py", line 54, in parse
data = fp.read(8192)
File "c:\users\xyz\appdata\local\programs\python\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 2916: character maps to <undefined>
error in setup command: Error parsing C:\Users\xy~1\AppData\Local\Temp\2\pip-install-dr453odx\git-deps\setup.cfg: UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 2916: character maps to <undefined>
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. WARNING: You are using pip version 19.3.1; however, version 21.0.1 is available. You should consider upgrading via the 'python -m pip install --upgrade pip' command.
Thanks for the confirmation. I have no clue how to fix that, and TBH it doesn't sound like it's related to git-deps, but I will leave the issue open anyway. Perhaps you could try upgrading pip or even Python?
@aspiers can I assume you are not attempting this on Windows?
It seems Python has different behavior under Windows than other platforms, in that "open()" does not default to utf-8. There might be a bug somewhere in the package deployment stack (not necessarily in git-deps) with an open() call that doesn't specify utf-8-sig as the default encoding, and that runs into problems with certain content (which might be in git-deps).
That's correct, I use Linux. I will have to rely on Windows users to help debug this.
Yes, that sounds like a very reasonable possibility.
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 <undefined>
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.