This is a bit above my skill level, but it sounds like there was a decision to intentionally exlude _bundled from RHEL distros.
https://bugzilla.redhat.com/show_bug.cgi?id=1319963 https://bugzilla.redhat.com/show_bug.cgi?id=1263057 It sounds like there was a patch to sttop the exclusion. I suspect that AWS hasn't worked necessary patches into their distro. --Dan On Sun, Mar 19, 2017 at 9:20 AM, Dan Clark <wpu.cl...@gmail.com> wrote: > This makes sense, but it seems like the AWS installation of python3 isn't > playing nice > > [ec2-user@ip-172-31-28-79 dist-packages]$ which python3 > /usr/bin/python3 > [ec2-user@ip-172-31-28-79 dist-packages]$ python3 -m ensurepip > Traceback (most recent call last): > File "/usr/lib64/python3.4/runpy.py", line 170, in _run_module_as_main > "__main__", mod_spec) > File "/usr/lib64/python3.4/runpy.py", line 85, in _run_code > exec(code, run_globals) > File "/usr/lib64/python3.4/ensurepip/__main__.py", line 4, in <module> > ensurepip._main() > File "/usr/lib64/python3.4/ensurepip/__init__.py", line 209, in _main > default_pip=args.default_pip, > File "/usr/lib64/python3.4/ensurepip/__init__.py", line 98, in bootstrap > "_bundled/{}".format(wheel_name), > File "/usr/lib64/python3.4/pkgutil.py", line 629, in get_data > return loader.get_data(resource_name) > File "<frozen importlib._bootstrap>", line 1623, in get_data > FileNotFoundError: [Errno 2] No such file or directory: > '/usr/lib64/python3.4/ensurepip/_bundled/setuptools- > 12.0.5-py2.py3-none-any.whl' > [ec2-user@ip-172-31-28-79 dist-packages]$ > > I decided to search if ensurepip is anywhere. First I checked /usr/lib and > /usr/lib64. > > > [ec2-user@ip-172-31-28-79 bin]$ cd /usr/lib/python3.4/ > [ec2-user@ip-172-31-28-79 python3.4]$ ls > dist-packages > [ec2-user@ip-172-31-28-79 python3.4]$ cd dist-packages/ > [ec2-user@ip-172-31-28-79 dist-packages]$ ls > __pycache__ README > > ... > > [ec2-user@ip-172-31-28-79 python3.4]$ cd /usr/lib64/python3.4 > [ec2-user@ip-172-31-28-79 python3.4]$ ls -la | grep ensu > drwxr-xr-x 3 root root 4096 Mar 7 19:40 ensurepip > [ec2-user@ip-172-31-28-79 python3.4]$ cd ensurepip/ > [ec2-user@ip-172-31-28-79 ensurepip]$ ls -la > total 28 > drwxr-xr-x 3 root root 4096 Mar 7 19:40 . > drwxr-xr-x 33 root root 4096 Mar 7 19:40 .. > -rw-r--r-- 1 root root 6391 Sep 1 2016 __init__.py > -rw-r--r-- 1 root root 67 Sep 1 2016 __main__.py > drwxr-xr-x 2 root root 4096 Mar 7 19:40 __pycache__ > -rw-r--r-- 1 root root 780 Sep 1 2016 _uninstall.py > > I am not sure what this means. There isn't a _bundled directory to get the > wheel from. It sounds like some sort of custom/old python install that is > missing things. > > In my searches I did find https://bugs.launchpad.net/ > ubuntu/+source/python3.4/+bug/1290847. It sounds like the issue is with > the OS package for 3.4. > > Still digging. > > > --Dan > > > > > > > > On Sun, Mar 19, 2017 at 8:23 AM, Steve Piercy <steve.piercy....@gmail.com> > wrote: > >> On 3/19/17 at 7:52 AM, wpu.cl...@gmail.com (Dan Clark) pronounced: >> >> > [ec2-user@ip-172-31-28-79 ~]$ python3 -m venv $VENV >> > Error: Command '['/home/ec2-user/env/bin/python3', '-Im', 'ensurepip', >> > '--upgrade', '--default-pip']' returned non-zero exit status 1 >> >> Read this: >> https://docs.python.org/3.4/library/ensurepip.html >> >> Then try this: >> >> $ python3 -m ensurepip >> >> Then: >> >> $ python3 -m venv $VENV >> >> --steve >> >> ------------------------ >> Steve Piercy, Soquel, CA >> >> -- >> You received this message because you are subscribed to a topic in the >> Google Groups "pylons-discuss" group. >> To unsubscribe from this topic, visit https://groups.google.com/d/to >> pic/pylons-discuss/MSAMBzwx7aQ/unsubscribe. >> To unsubscribe from this group and all its topics, send an email to >> pylons-discuss+unsubscr...@googlegroups.com. >> To post to this group, send email to pylons-discuss@googlegroups.com. >> To view this discussion on the web visit https://groups.google.com/d/ms >> gid/pylons-discuss/r473Ps-10123i-5BE56888D60A4E4F98BD8088625 >> 7387E%40Steves-iMac.local. >> For more options, visit https://groups.google.com/d/optout. >> > > -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pylons-discuss+unsubscr...@googlegroups.com. To post to this group, send email to pylons-discuss@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/pylons-discuss/CAKbG-Mhv5_vsLKggchhgYHdZ3w6nqwJQO%3D07f4nosCMqPsEZeA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.