Skip to content

KeyError: 'Slot' when running gyfe.py breadth command #34

@PriyanshusSGupta

Description

@PriyanshusSGupta

Running the following command:

python3 gyfe.py breadth --notp --year 3 --session 2023-2024 --semester AUTUMN

produces the following output and error:

INFO:root: [SESSION STATUS]: Not Alive
INFO:root: Retrieved tokens from file
INFO:root: [TOKENS STATUS]: Valid
Enter your department code: gg
Traceback (most recent call last):
  File "/home/ubuntu/gyfe/gyfe.py", line 478, in <module>
    main()
  File "/home/ubuntu/gyfe/gyfe.py", line 449, in main
    save_breadths(responses)
  File "/home/ubuntu/gyfe/gyfe.py", line 305, in save_breadths
    df["Slot"].replace("", "Not alloted yet", inplace=True)
    ~~^^^^^^^^
  File "/home/ubuntu/miniforge3/envs/general/lib/python3.12/site-packages/pandas/core/frame.py", line 4102, in __getitem__
    indexer = self.columns.get_loc(key)
              ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ubuntu/miniforge3/envs/general/lib/python3.12/site-packages/pandas/core/indexes/range.py", line 417, in get_loc
    raise KeyError(key)
KeyError: 'Slot'

Environment (please complete the following information):

  • OS: Ubuntu
  • Python version: 3.12

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions