meraki-analytics / cassiopeia

An all-inclusive Python framework for the Riot Games League of Legends API. Cass focuses on making the data easy and fun to work with, while providing all the tools necessary to create a website or do data analysis.
MIT License
553 stars 134 forks source link

Can't import cassiopeia 4.0.11 ? #322

Closed DangTaemi closed 4 years ago

DangTaemi commented 4 years ago

Hello,

I've upgraded cassiopeia from 4.0.8 to 4.0.11 and I am having this error when trying to import cassiopeia on Jupyter Notebook :

---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-1-17f34c32f9b2> in <module>
      3 import pandas as pd #DataFrame
      4 import numpy as np #Calculs
----> 5 import cassiopeia as cass #API Riot Games
      6 from cassiopeia import Summoner #API Riot Games bis
      7 from cassiopeia.data import Queue, Position

D:\Anaconda\lib\site-packages\cassiopeia\__init__.py in <module>
      1 # Initialize the settings singleton
----> 2 from ._configuration import get_default_config, Settings, CassiopeiaConfiguration as _CassiopeiaConfiguration
      3 configuration = _CassiopeiaConfiguration()
      4 
      5 from .cassiopeia import get_realms, get_challenger_league, get_champion_masteries, get_champion, get_champion_mastery, get_champions, get_current_match, get_featured_matches, get_items, get_language_strings, get_locales, get_league_entries, get_maps, get_master_league, get_grandmaster_league, get_match, get_match_history, get_profile_icons, get_runes, get_status, get_summoner, get_summoner_spells, get_version, get_versions, get_champion_rotations, get_paginated_league_entries, get_verification_string

D:\Anaconda\lib\site-packages\cassiopeia\_configuration\__init__.py in <module>
----> 1 from .settings import Settings, get_default_config
      2 from .load import load_config
      3 
      4 
      5 class MetaConfiguration(type):

D:\Anaconda\lib\site-packages\cassiopeia\_configuration\settings.py in <module>
      7 from datapipelines import DataPipeline, DataSink, DataSource, CompositeDataTransformer, DataTransformer
      8 
----> 9 from ..data import Region, Platform
     10 
     11 T = TypeVar("T")

D:\Anaconda\lib\site-packages\cassiopeia\data.py in <module>
    638     Queue.normal_tft: 1090, #  Convergence, Normal Teamfight Tactics games
    639     Queue.nexus_blitz: 1200,  # Nexus Blitz map    Nexus Blitz
--> 640     Queue.Tutorial1: 2000,  # Summoner's Rift  Tutorial 1
    641     Queue.Tutorial1: 2010,  # Summoner's Rift  Tutorial 2
    642     Queue.Tutorial1: 2020,  # Summoner's Rift  Tutorial 3

D:\Anaconda\lib\enum.py in __getattr__(cls, name)
    347             return cls._member_map_[name]
    348         except KeyError:
--> 349             raise AttributeError(name) from None
    350 
    351     def __getitem__(cls, name):

AttributeError: Tutorial1
jjmaldonis commented 4 years ago

I forgot to add something, it should be good now.

DangTaemi commented 4 years ago

I forgot to add something, it should be good now.

I still have the same error, should I reinstall cassiopeia ?

jjmaldonis commented 4 years ago

Do you have version 4.0.12 now?

DangTaemi commented 4 years ago

Ah yes, thank you! It's working now.