Giter Club home page Giter Club logo

rsvpapp's Issues

can not build docker image can not connection pip server

`
Step 9/10 : RUN pip3 install -r requirements.txt
---> Running in 0c2795ada0bf
Collecting flask (from -r requirements.txt (line 1))
� Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f792376fbe0>: Failed to establish a new connection: [Errno -3] Try again',)': /simple/flask/

Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f791eb602b0>: Failed to establish a new connection: [Errno -3] Try again',)': /simple/flask/

Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f791eb60208>: Failed to establish a new connection: [Errno -3] Try again',)': /simple/flask/

Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f791eb60c88>: Failed to establish a new connection: [Errno -3] Try again',)': /simple/flask/

Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f791eb60ef0>: Failed to establish a new connection: [Errno -3] Try again',)': /simple/flask/

Could not find a version that satisfies the requirement flask (from -r requirements.txt (line 1)) (from versions: )

�No matching distribution found for flask (from -r requirements.txt (line 1))
�mtime="2019-11-06T09:34:39Z" level=fatal msg="build failed: build failed: building [can.shen/rsvpapp]: build artifact: unable to stream build output: The command '/bin/sh -c pip3 install -r requirements.txt' returned a non-zero code: 1"

`

The profile.html template has a misplaced loop that creates invalid html

In ./templates/profile.html, the loop that iterates over the items in the table is off by one line creating invalid html. <tbody><tr> is inside the loop while </tr></tbody> is outside the loop. I don't believe you meant to define a new table body for every row and not terminate any but the last so you want tr inside the loop and tbody outside of it.

Current code:

  {% for item in items %}
  <tbody>
    <tr class="danger">
      <td class="text-center">{{ item.name }} </td>
      <td class="text-center">{{ item.email }}</td>
    {% endfor %}
      </tr>
    </tbody>

Corrected code:

  <tbody>
    {% for item in items %}
    <tr class="danger">
      <td class="text-center">{{ item.name }} </td>
      <td class="text-center">{{ item.email }}</td>
    </tr>
    {% endfor %}
  </tbody>

I can fork the repo and submit a pull request if you don't have time to fix it.

Getting standard_init_linux.go:178: exec user process caused "exec format error"

When I am trying to build this rsvp app I am getting this

dockuser@Test-LPAR-Ubuntu:/rsvp_files$ sudo docker build --no-cache -t rsvp .
Sending build context to Docker daemon 14.85 kB
Step 1/10 : FROM teamcloudyuga/python:alpine
---> b0c552b8cf64
Step 2/10 : COPY . /usr/src/app
---> 497a21d01132
Removing intermediate container bec636845ac8
Step 3/10 : WORKDIR /usr/src/app
---> 3e00477ca6ea
Removing intermediate container 4a6b5abd2224
Step 4/10 : ENV LINK http://www.meetup.com/cloudyuga/
---> Running in eaeaf609f67c
---> 82124b40e12e
Removing intermediate container eaeaf609f67c
Step 5/10 : ENV TEXT1 CloudYuga
---> Running in 895779099a35
---> 33dbc082c94e
Removing intermediate container 895779099a35
Step 6/10 : ENV TEXT2 Garage RSVP!
---> Running in ce37f915cfc2
---> 68e5559e73bb
Removing intermediate container ce37f915cfc2
Step 7/10 : ENV LOGO https://raw.githubusercontent.com/cloudyuga/rsvpapp/master/static/cloudyuga.png
---> Running in b9490015d328
---> 72056c453f3e
Removing intermediate container b9490015d328
Step 8/10 : ENV COMPANY CloudYuga Technology Pvt. Ltd.
---> Running in 93b6d9a16e12
---> 83d07470a4e7
Removing intermediate container 93b6d9a16e12
Step 9/10 : RUN pip install -r requirements.txt
---> Running in 0d279152c6a9
standard_init_linux.go:178: exec user process caused "exec format error"
The command '/bin/sh -c pip install -r requirements.txt' returned a non-zero code: 1
dockuser@Test-LPAR-Ubuntu:
/rsvp_files$

Content of Dockerfile as copied from webpage
dockuser@Test-LPAR-Ubuntu:/rsvp_files$ cat Dockerfile
FROM teamcloudyuga/python:alpine
COPY . /usr/src/app
WORKDIR /usr/src/app
ENV LINK http://www.meetup.com/cloudyuga/
ENV TEXT1 CloudYuga
ENV TEXT2 Garage RSVP!
ENV LOGO https://raw.githubusercontent.com/cloudyuga/rsvpapp/master/static/cloudyuga.png
ENV COMPANY CloudYuga Technology Pvt. Ltd.
RUN pip install -r requirements.txt
CMD python rsvp.py
dockuser@Test-LPAR-Ubuntu:
/rsvp_files$

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.