theriley106 / SneakerBotTutorials

Open Source SneakerBot created as a supplement to my "Creating a Sneaker Bot in Python" Youtube Series
https://www.youtube.com/playlist?list=PL3fpqcQTK0f9sACDQstvjxbHzD1L_gr__
MIT License
621 stars 137 forks source link

no module named flask #24

Open ddcc3388 opened 3 years ago

ddcc3388 commented 3 years ago

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?

ShortMan443 commented 3 years ago

Hey,

You should try any of the following commands in the terminal

Pip install flask Pip3 install flask

On Thu, Jul 22, 2021 at 5:26 AM ddcc3388 @.***> wrote:

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?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/theriley106/SneakerBotTutorials/issues/24, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJJ23WK2KSW2CQEHX5OXE6DTY7P4DANCNFSM5AZTVKMA .

-- Aiden Owens CEO of Afidgety Email: @.*** Phone:330-221-6171

ddcc3388 commented 3 years ago

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?

ShortMan443 commented 3 years ago

Yeah that’s the way to install the modules. With the proxies your are on the right track. If you don’t want to buy proxies. Just type in “y”. As in yes I want to continue.

On Sat, Jul 24, 2021 at 9:33 AM ddcc3388 @.***> wrote:

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?

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/theriley106/SneakerBotTutorials/issues/24#issuecomment-886054388, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJJ23WLKZPD4XCFQEB54JJDTZK6LVANCNFSM5AZTVKMA .

-- Aiden Owens CEO of Afidgety Email: @.*** Phone:330-221-6171

ddcc3388 commented 3 years ago

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']

Do you know how I can fix this??

Thanks!

ShortMan443 commented 3 years ago

It is working,

All you do is go to the link on your webbrowser

Http://0.0.0.0:8000

On Sat, Jul 24, 2021 at 12:31 PM ddcc3388 @.***> wrote:

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!

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/theriley106/SneakerBotTutorials/issues/24#issuecomment-886076686, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJJ23WP3EGWUKPW4QR7J4RLTZLTGRANCNFSM5AZTVKMA .

-- Aiden Owens CEO of Afidgety Email: @.*** Phone:330-221-6171