Python Forum
Cannot Make the python Code work
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cannot Make the python Code work
#5
(Apr-23-2020, 12:40 PM)ErnestTBass Wrote: am not using Python 2.7 code. The person who wrote this program is.

I just want the program to run. When I get that I will move it to Python 3.8 or whatever
is the latest version of python.

Repo link in in Youtube.
As we did talk about conda in other Thread i will use that.
So i use pip(will pull down Python 3.8.2) here as conda can't find Pygame.

Here are all commands,and it works for me.
# Make enviroment
G:\Anaconda3\Scripts
λ conda create --name scraper_env pip
Collecting package ....

# Activate
G:\Anaconda3\Scripts
λ activate scraper_env

# Cd to enviroment
(scraper_env) G:\Anaconda3\Scripts
λ cd ..

(scraper_env) G:\Anaconda3
λ cd envs\

(scraper_env) G:\Anaconda3\envs
λ cd scraper_env\

# Clone Repo
(scraper_env) G:\Anaconda3\envs\scraper_env
λ git clone https://github.com/SpiceBucks/SpicyArbs.git
Cloning into 'SpicyArbs'...
remote: Enumerating objects: 33, done.
remote: Counting objects: 100% (33/33), done.
remote: Compressing objects: 100% (25/25), done.
remote: Total 33 (delta 10), reused 30 (delta 7), pack-reused 0
Unpacking objects: 100% (33/33), done.
Checking connectivity... done.

# Navigate
(scraper_env) G:\Anaconda3\envs\scraper_env
λ cd SpicyArbs\

# list files dir(in cmd)
(scraper_env) G:\Anaconda3\envs\scraper_env\SpicyArbs (master)
λ ls
LICENSE  README.md  main_webscraper.py  requirements.txt  templates/  util/  webscraping/

# Use requirements.txt
(scraper_env) G:\Anaconda3\envs\scraper_env\SpicyArbs (master)
λ pip install -r requirements.txt
Collecting ....
Successfully installed beautifulsoup4-4.8.2 chardet-3.0.4 idna-2.8 numpy-1.18.0 pygame-1.9.6 requests-2.22.0 soupsieve-2.0 urllib3-1.25.9

# Run code
(scraper_env) G:\Anaconda3\envs\scraper_env\SpicyArbs (master)
λ python main_webscraper.py
pygame 1.9.6
Hello from the pygame community. https://www.pygame.org/contribute.html
DEBUG::Examining American Football arbitrage opportunities.
DEBUG::Examining arbitrage opportunities in game: BYU at Utah.
DEBUG::Considering market: Winner.
DEBUG::Examining arbitrage opportunities in game: USC at Alabama.
DEBUG::Considering market: Winner.
DEBUG::Examining arbitrage opportunities in game: Michigan at Washington Huskies.
DEBUG::Considering market: Winner.
DEBUG::Examining arbitrage opportunities in game: Louisville at Clemson.
DEBUG::Considering market: Winner.
DEBUG::Examining arbitrage opportunities in game: Ohio State at Oregon.
DEBUG::Considering market: Winner.
......
Reply


Messages In This Thread
Cannot Make the python Code work - by ErnestTBass - Apr-20-2020, 07:18 PM
RE: Cannot Make the python Code work - by snippsat - Apr-21-2020, 01:04 PM
RE: Cannot Make the python Code work - by snippsat - Apr-23-2020, 02:42 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  I can't for the life of me get this basic If statement code to work CandleType1a 8 332 May-21-2024, 03:58 PM
Last Post: CandleType1a
  hi need help to make this code work correctly atulkul1985 5 917 Nov-20-2023, 04:38 PM
Last Post: deanhystad
  newbie question - can't make code work tronic72 2 768 Oct-22-2023, 09:08 PM
Last Post: tronic72
  Cleaning my code to make it more efficient BSDevo 13 1,584 Sep-27-2023, 10:39 PM
Last Post: BSDevo
  Why do I have to repeat items in list slices in order to make this work? Pythonica 7 1,466 May-22-2023, 10:39 PM
Last Post: ICanIBB
  Beginner: Code not work when longer list raiviscoding 2 909 May-19-2023, 11:19 AM
Last Post: deanhystad
  how to make bot that sends instagram auto password reset code kraixx 2 1,481 Mar-04-2023, 09:59 PM
Last Post: jefsummers
  Why doesn't this code work? What is wrong with path? Melcu54 7 1,984 Jan-29-2023, 06:24 PM
Last Post: Melcu54
  Code used to work 100%, now sometimes works! muzicman0 5 1,567 Jan-13-2023, 05:09 PM
Last Post: muzicman0
  color code doesn't work harryvl 1 975 Dec-29-2022, 08:59 PM
Last Post: deanhystad

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020