rynecarbone / power_ranker Goto Github PK
View Code? Open in Web Editor NEWProduces power rankings for ESPN fantasy football leagues
License: MIT License
Produces power rankings for ESPN fantasy football leagues
License: MIT License
For a first year league, exception for empty league history is throwing the InvalidLeagueExeption in utils.py. Only the plots are generated for the website; team names etc. not pulling from league history page.
Getting traceback errors now after the latest update, please see the attached output file, seems it has to do with the LSQ changes?
Traceback (most recent call last): File "/usr/local/bin/power_ranker", line 11, in <module> load_entry_point('power-ranker==1.1.1', 'console_scripts', 'power_ranker')() File "/home/jcadig1/.local/lib/python3.6/site-packages/pkg_resources/__init__.py", line 489, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/home/jcadig1/.local/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2852, in load_entry_point return ep.load() File "/home/jcadig1/.local/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2443, in load return self.resolve() File "/home/jcadig1/.local/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2449, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "/usr/local/lib/python3.6/dist-packages/power_ranker-1.1.1-py3.6.egg/scripts/command_line.py", line 9, in <module> from power_ranker.league import League File "/usr/local/lib/python3.6/dist-packages/power_ranker-1.1.1-py3.6.egg/power_ranker/league.py", line 17, in <module> from .lsq import LSQ ImportError: cannot import name 'LSQ'
Is this currently functional for you? If so, what are you running this on?
I am still having issues after updating to 1b0a4e7:
Using MY_LOCAL_CONFIG.cfg to generate power rankings Traceback (most recent call last): File "/usr/local/bin/power_ranker", line 11, in <module> load_entry_point('power-ranker==1.1.1', 'console_scripts', 'power_ranker')() File "/home/jcadig1/.local/lib/python3.6/site-packages/scripts/command_line.py", line 90, in main run_cl_rankings(args.config, private_league=args.private) File "/home/jcadig1/.local/lib/python3.6/site-packages/scripts/command_line.py", line 20, in run_cl_rankings my_league = League(config_file) File "/home/jcadig1/.local/lib/python3.6/site-packages/power_ranker/league.py", line 38, in __init__ self._scrape_league() File "/home/jcadig1/.local/lib/python3.6/site-packages/power_ranker/league.py", line 57, in _scrape_league data = r.json() File "/home/jcadig1/.local/lib/python3.6/site-packages/requests/models.py", line 897, in json return complexjson.loads(self.text, **kwargs) File "/usr/lib/python3.6/json/__init__.py", line 354, in loads return _default_decoder.decode(s) File "/usr/lib/python3.6/json/decoder.py", line 339, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/lib/python3.6/json/decoder.py", line 357, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 2 column 2 (char 2)
Originally posted by @jcadig1 in #2 (comment)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.