Skip to content

no module named flask #24

Description

@ddcc3388

after entering "python app.py", confirming that i am using python version 2.x

terminal shows:
"Traceback (most recent call last):
File "app.py", line 3, in
from flask import Flask, render_template, request, url_for, redirect, Markup, jsonify, make_response, send_from_directory, session
ImportError: No module named flask"

I can't edit the code. What should I do?

Activity

  1. ShortMan443 commented on Jul 22, 2021

    @ShortMan443
  2. ddcc3388 commented on Jul 24, 2021

    @ddcc3388
    Author

    Thanks for the reply Aiden!

    (im a noob at coding, so please correct me if im wrong)
    Your advice did help but i needed to slightly adjust a little bit. In the youtube video, chris tells us to type: "pip install -r requirements.txt" in terminal, try testing "pip3 install -r requirements.txt"; this should work. Now if you have an issue with "python app.py" and you receive no module flask, try commanding: "python -m pip install flask" or "pip install flask". continue using the same format to install the other modules.

    Side note, a question from me, after commanding: "python app.py"
    terminal displays this:
    []
    It looks like you didn't input any Proxies.
    It is HIGHLY recommended that you use proxies. Continue without? [Y/N]

    is this response meant to be like this? is this the point where i am meant to buy proxies?

  3. ShortMan443 commented on Jul 24, 2021

    @ShortMan443
  4. ddcc3388 commented on Jul 24, 2021

    @ddcc3388
    Author

    Hey Aiden,
    Thanks for your swift reply!
    Was just wondering, when I added my own ip address into the command line, it didnt work and ended up like this:

    $ python app.py 193.160.245.61
    []
    Successfully added 193.160.245.61
    Initiating Bot with Proxy: 193.160.245.61
    ['193.160.245.61']

    • Serving Flask app "app" (lazy loading)
    • Environment: production
      WARNING: This is a development server. Do not use it in a production deployment.
      Use a production WSGI server instead.
    • Debug mode: off
    • Running on http://0.0.0.0:8000/ (Press CTRL+C to quit)
      testing proxy: 193.160.245.61
      'str' object has no attribute 'get'
      proxy: 193.160.245.61 failed
      Done mass test

    Do you know how I can fix this??

    Thanks!

  5. ShortMan443 commented on Jul 24, 2021

    @ShortMan443
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions