uberfastman / fantasy-football-metrics-weekly-report

Command line application to create weekly reports (containing stats, metrics, and rankings) for Fantasy Football leagues on the following platforms: Yahoo, ESPN, CBS, Sleeper, Fleaflicker
GNU General Public License v3.0
199 stars 49 forks source link

Windows 10 setup issue #138

Closed TallGeekyCool closed 3 years ago

TallGeekyCool commented 3 years ago

I'm following along with the instructions on how to setup docker and the report. I run the docker-compose up -d command without issue. I then run the docker exec -it fantasy-football-metrics-weekly-report_app_1 python main.py command and I see this:

football-metrics-weekly-report_app_1 python main.py Traceback (most recent call last): File "main.py", line 17, in <module> from integrations.slack_integration import SlackMessenger File "/app/integrations/slack_integration.py", line 9, in <module> from slack import WebClient ImportError: cannot import name 'WebClient' from 'slack' (/usr/local/lib/python3.8/site-packages/slack/__init__.py)

So far, Googling that has been useless. Any idea what I'm missing or forgetting to have done? (I'm assuming that I'm the one with the issue and that it isn't an issue with the instructions.)

mattjmorgan commented 3 years ago

Same happens with me, @TallGeekyCool In order for me to progress further, I just disabled the Slack import in the integrations/slack_integration.py file. I commented out the import: #from slack import WebClient and commented out the call #self.sc = WebClient(token=slack_api_access_token)

Then I just reran

TallGeekyCool commented 3 years ago

Commenting those two lines of code did get the docker program to compile and run. I am seeing the same NoneType object error that you are seeing bug #139