[GH-ISSUE #605] [WhoScored] issubclass() arg 2 must be a class, a tuple of classes, or a union #114

Closed
opened 2026-03-02 15:55:53 +03:00 by kerem · 1 comment
Owner

Originally created by @AakashKaushal07 on GitHub (Jun 11, 2024).
Original GitHub issue: https://github.com/probberechts/soccerdata/issues/605

Hi
When I am trying to create a whoscored object using
ws = sd.WhoScored(leagues='ENG-Premier League', seasons=2017)

I was getting this error : "issubclass() arg 2 must be a class, a tuple of classes, or a union "

I suspect this could be an issue due to LooseVersion being deprecated, but not sure.( relatively new to python )

Originally created by @AakashKaushal07 on GitHub (Jun 11, 2024). Original GitHub issue: https://github.com/probberechts/soccerdata/issues/605 Hi When I am trying to create a whoscored object using `ws = sd.WhoScored(leagues='ENG-Premier League', seasons=2017)` I was getting this error : "issubclass() arg 2 must be a class, a tuple of classes, or a union " I suspect this could be an issue due to LooseVersion being deprecated, but not sure.( relatively new to python )
kerem 2026-03-02 15:55:53 +03:00
  • closed this issue
  • added the
    WhoScored
    label
Author
Owner

@probberechts commented on GitHub (Jun 11, 2024):

Can you provide the full stack trace of the error, please?

<!-- gh-comment-id:2160644497 --> @probberechts commented on GitHub (Jun 11, 2024): Can you provide the full stack trace of the error, please?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/soccerdata#114
No description provided.