DimaKudosh / pydfs-lineup-optimizer

Daily Fantasy Sports lineup optimzer for all popular daily fantasy sports sites
MIT License
423 stars 157 forks source link

Issues Importing GameStack #377

Closed HumanStatSheet closed 2 years ago

HumanStatSheet commented 2 years ago

I have an issue I'm not seeing anywhere else. Keep in mind I have almost no coding experience; almost certainly an ID10T error. It's right at the beginning of my code. I've pip installed pydfs-lineup-optimizer and I can import most of the modules but when I try to import GameStack I get the following error (i've included a copy of the original code as well). TeamStack, PositionsStack, etc. all work fine. Help?

Importing Modules

from pydfs_lineup_optimizer import get_optimizer, Site, Sport from pydfs_lineup_optimizer import GameStack, TeamStack, PositionsStack import pandas as pd import numpy as np


ImportError Traceback (most recent call last) ~\AppData\Local\Temp/ipykernel_5188/2903601192.py in 2 3 from pydfs_lineup_optimizer import get_optimizer, Site, Sport ----> 4 from pydfs_lineup_optimizer import GameStack, TeamStack, PositionsStack 5 import pandas as pd 6 import numpy as np

ImportError: cannot import name 'GameStack' from 'pydfs_lineup_optimizer' (C:\Users\joepo\anaconda3\lib\site-packages\pydfs_lineup_optimizer__init__.py)

Milkman9691 commented 2 years ago

This is what I have and get no errors

from pydfs_lineup_optimizer.stacks import GameStack, TeamStack, PositionsStack, NestedPlayersGroup, OptimizerStack, Stack

Denwen12 commented 2 years ago

Cause he has the first peice wrong its pydfs_lineup_optimizer.stacks

On Fri, Sep 2, 2022, 1:00 PM G Dub D @.***> wrote:

This is what I have and get no errors

from pydfs_lineup_optimizer.stacks import GameStack, TeamStack, PositionsStack, NestedPlayersGroup, OptimizerStack, Stack

— Reply to this email directly, view it on GitHub https://github.com/DimaKudosh/pydfs-lineup-optimizer/issues/377#issuecomment-1235724048, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANBWO7R4Q2LZ6HY3BQKH243V4IXDZANCNFSM6AAAAAAQC77AIU . You are receiving this because you are subscribed to this thread.Message ID: @.***>