[issue22028] Python 3.4.1 Installer ended prematurely (Windows msi)

2014-08-07 Thread venza

venza added the comment:

This is the exception that comes out after running the py -m ensurepip manually:



C:\Python34\lib\ensurepip\__main__.py run on 08/07/14 15:44:36
Ignoring indexes: https://pypi.python.org/simple/
Downloading/unpacking setuptools
Cleaning up...
  Removing temporary dir C:\Users\venza\AppData\Local\Temp\pip_build_venza...
Exception:
Traceback (most recent call last):
  File 
"C:\Users\venza\AppData\Local\Temp\tmpz0stj2e6\pip-1.5.6-py2.py3-none-any.whl\pip\basecommand.py",
 line 122, in main
status = self.run(options, args)
  File 
"C:\Users\venza\AppData\Local\Temp\tmpz0stj2e6\pip-1.5.6-py2.py3-none-any.whl\pip\commands\install.py",
 line 278, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, 
bundle=self.bundle)
  File 
"C:\Users\venza\AppData\Local\Temp\tmpz0stj2e6\pip-1.5.6-py2.py3-none-any.whl\pip\req.py",
 line 1177, in prepare_files
url = finder.find_requirement(req_to_install, upgrade=self.upgrade)
  File 
"C:\Users\venza\AppData\Local\Temp\tmpz0stj2e6\pip-1.5.6-py2.py3-none-any.whl\pip\index.py",
 line 209, in find_requirement
file_locations, url_locations = self._sort_locations(locations)
  File 
"C:\Users\venza\AppData\Local\Temp\tmpz0stj2e6\pip-1.5.6-py2.py3-none-any.whl\pip\index.py",
 line 128, in _sort_locations
sort_path(os.path.join(path, item))
  File 
"C:\Users\venza\AppData\Local\Temp\tmpz0stj2e6\pip-1.5.6-py2.py3-none-any.whl\pip\index.py",
 line 109, in sort_path
if mimetypes.guess_type(url, strict=False)[0] == 'text/html':
  File "C:\Python34\lib\mimetypes.py", line 287, in guess_type
init()
  File "C:\Python34\lib\mimetypes.py", line 348, in init
db.read_windows_registry()
  File "C:\Python34\lib\mimetypes.py", line 255, in read_windows_registry
with _winreg.OpenKey(hkcr, subkeyname) as subkey:
TypeError: OpenKey() argument 2 must be str without null characters or None, 
not str

--
nosy: +venza

___
Python tracker 
<http://bugs.python.org/issue22028>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22028] Python 3.4.1 Installer ended prematurely (Windows msi)

2014-08-07 Thread venza

venza added the comment:

Ok, I had three such keys. I run RegDelNull.exe and managed to remove two of 
them. The third one is still there.
I'm reasonably sure that this machine is clean, anyway:

1. the Python installer should not fail silently when an exception is thrown 
during pip installation. There is also a stackoverflow question about "where is 
pip in python 3.4, I can't find it!" from someone likely having the same 
problem.

2. ensurepip should not crash on unrelated registry entries it doesn't like, it 
should just ignore them.

Thanks for the pointer to null keys and the script to find them.

--

___
Python tracker 
<http://bugs.python.org/issue22028>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com