Looks like I need a support account in order to open a ticket. I posted to
their support forum for now

(https://forums.aws.amazon.com/thread.jspa?threadID=251803&tstart=0)

Hopefully, that's enough. If it isn't maybe I'll sign up for the dev
support for a month or something.

Either way, thanks everyone. You all have definitely helped through this. I
have definitely learned quite a bit. Hopefully this gets resolved so that
the process to create a pyramid app on AWS is as simple as it is for django
or flask.

Thanks again,
--Dan

On Sun, Mar 19, 2017 at 8:04 PM, Steve Piercy <[email protected]>
wrote:

> Can you file an issue with AWS?
>
> Thank you for being persistent.  This was quite the... uh... "learning
> experience".
>
> --steve
>
>
>
> On 3/19/17 at 6:54 PM, [email protected] (Dan Clark) pronounced:
>
> > So the answer for Amazon Linux is that the setuptools and pip wheels are
> > missing in /usr/lib64/python3.4/ensurepip/_bundled.
> >
> > http://stackoverflow.com/a/33767179/1382818
> >
> > shows how another way to get around this. It also has more info on the
> > state of the situation. My guess is that python34 needs to be rebuilt so
> > that it isn't missing those wheels. Then amazon needs to update their
> > images to make this all work.
> >
> > --Dan
> >
> > On Sun, Mar 19, 2017 at 12:20 PM, Dan Clark <[email protected]> wrote:
> >
> > > UGHHHHH!!!
> > >
> > > I decided to try out one of the other environments. It turns out that
> that
> > > the preconfigured docker python environment is based off of debian
> instead
> > > of Amazon Linux. I deployed the "Hello Pyramid" app and it worked. The
> > > requirements.txt file just had a single entry "pyramid".
> > >
> > > I also tried deploying my own app to it, but I am new to docker, so
> > > there's that. Once I get up to speed on docker I might be able get a
> bit
> > > further.
> > >
> > > --Dan
> > >
> > > On Sun, Mar 19, 2017 at 10:03 AM, Dan Clark <[email protected]>
> wrote:
> > >
> > >> 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 <[email protected]>
> 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-p
> > >>> y2.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/ubu
> > >>> ntu/+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 <
> > >>> [email protected]> wrote:
> > >>>
> > >>>> On 3/19/17 at 7:52 AM, [email protected] (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
> > >>>> [email protected].
> > >>>> 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.
> > >>>>
> > >>>
> > >>>
> > >>
> > >
> >
>
> ------------------------
> 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/
> topic/pylons-discuss/MSAMBzwx7aQ/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/pylons-discuss/r473Ps-10123i-78241046F47C4A5382EE723BD4AB1E
> 40%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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pylons-discuss/CAKbG-Mg37J-ohTK-KceDvPmXe0R8O-7p2in-DuWRacxy6AD63Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to