#๐Ÿ”’ help with this error traceback

24 messages ยท Page 1 of 1 (latest)

humble ermineBOT
#

@rain aspen

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

lament hemlock
#

werkzeug.urls doesnt contain url_quote

rain aspen
#

@lament hemlock Im facing the error traceback

lament hemlock
#

?

rain aspen
#

I mean I couldn't the run the project

#

i reinstalled all packages

lament hemlock
#

as i said werkzeug.urls lib doesnt contain url_quote in it

#

send the code

#

@rain aspen

rain aspen
#
from flask import flask, render_template, Response, jsonify
import gunicorn
from camera import *

app = Flask(__name__)

headings = ("Name","Album","Artist")
df1 = music_rec()
df1 = df1.head(15)
@app.route('/')
def index():
    print(df1.to_json(orient='records'))
    return render_template('index.html', headings=headings, data=df1)

def gen(camera):
    while True:
        global df1
        frame, df1 = camera.get_frame()
        yield (b'--frame\r\n'
               b'Content-Type: image/jpeg\r\n\r\n' + frame + b'\r\n\r\n')

@app.route('/video_feed')
def video_feed():
    return Response(gen(VideoCamera()),
                    mimetype='multipart/x-mixed-replace; boundary=frame')

@app.route('/t')
def gen_table():
    return df1.to_json(orient='records')

if __name__ == '__main__':
    app.debug = True
    app.run()
#

@lament hemlock this is code

lament hemlock
#

okay

rain aspen
#

how tho

#

i aint get you

lament hemlock
#

...

#

do u even know how to code?

rain aspen
#

yea

#

im beginner to python

lament hemlock
#

oh nvm reinstall flask

#

it should work

humble ermineBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.

#

๐Ÿ”’ help with this error traceback