[MacPorts] #52448: python35 @3.5.2 missing ensurepip?

MacPorts noreply at macports.org
Thu Sep 29 17:39:13 CEST 2016


#52448: python35 @3.5.2 missing ensurepip?
------------------------+-------------------
  Reporter:  hmijail@…  |      Owner:  jwa@…
      Type:  defect     |     Status:  new
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.3.4
Resolution:             |   Keywords:
      Port:  python35   |
------------------------+-------------------

Comment (by hmijail@…):

 (Regarding the migration, in fact I remember now that after deleting
 everything following the migration instructions, there were still a lot of
 symlinks under /opt. I didn't delete them manually, assuming they would
 get overwritten as needed and shouldn't be a problem...)

 {{{
 3:/private/tmp$ command -v python3.5
 /opt/local/bin/python3.5
 4:/private/tmp$ cd /private/tmp/testenv &&
 /private/tmp/testenv/bin/python3.5 -Im ensurepip --upgrade --default-pip;
 echo $?
 Traceback (most recent call last):
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/runpy.py",
 line 184, in _run_module_as_main
     "__main__", mod_spec)
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/runpy.py",
 line 85, in _run_code
     exec(code, run_globals)
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/ensurepip/__main__.py",
 line 4, in <module>
     ensurepip._main()
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/ensurepip/__init__.py",
 line 209, in _main
     default_pip=args.default_pip,
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/ensurepip/__init__.py",
 line 116, in bootstrap
     _run_pip(args + [p[0] for p in _PROJECTS], additional_paths)
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/ensurepip/__init__.py",
 line 41, in _run_pip
     pip.main(args)
   File
 "/var/folders/2d/1kly9t3s23bclpxgs6l342vc0000gs/T/tmplhya0ke0/pip-8.1.1-py2.py3
 -none-any.whl/pip/__init__.py", line 215, in main
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/locale.py",
 line 594, in setlocale
     return _setlocale(category, locale)
 locale.Error: unsupported locale setting
 1
 }}}

 OMFG, locales?

 I just recently moved into iTerm2, which has its own locale settings that
 I didn't explore yet. And it's known that Python has problems with non-GNU
 locales https://bugs.python.org/issue18378 , so maybe that's it.

 (though that doesn't explain the problems with pyinvoke...)

-- 
Ticket URL: <https://trac.macports.org/ticket/52448#comment:9>
MacPorts <https://www.macports.org/>
Ports system for the Mac operating system



More information about the macports-tickets mailing list