[GH-ISSUE #868] Unable to read Fotmob Schedule #186

Closed
opened 2026-03-02 15:56:29 +03:00 by kerem · 10 comments
Owner

Originally created by @NLEHO04 on GitHub (Aug 17, 2025).
Original GitHub issue: https://github.com/probberechts/soccerdata/issues/868

I regularly use the Fotmob scraper and ran into this error for the first time yesterday saying there are no objects to concatenate. I tried turning off cache because it's a new season but that didn't do the trick, it is also an issue for fully completed seasons.

---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
Cell In[17], line 1
----> 1 league_table = fotmob.read_league_table()
      2 league_table.head()

File ~\anaconda3\Lib\site-packages\soccerdata\fotmob.py:253, in FotMob.read_league_table(self, force_cache)
    250                     df_table.loc[df_table["id"] == winner, "playoff"] = "cup_winner"
    251     mult_tables.append(df_table)
    252 return (
--> 253     pd.concat(mult_tables, axis=0)
    254     .rename(columns={"Squad": "team"})
    255     .replace({"team": TEAMNAME_REPLACEMENTS})
    256     .set_index(idx)
    257     .sort_index()[cols]
    258 )

File ~\anaconda3\Lib\site-packages\pandas\core\reshape\concat.py:380, in concat(objs, axis, join, ignore_index, keys, levels, names, verify_integrity, sort, copy)
    377 elif copy and using_copy_on_write():
    378     copy = False
--> 380 op = _Concatenator(
    381     objs,
    382     axis=axis,
    383     ignore_index=ignore_index,
    384     join=join,
    385     keys=keys,
    386     levels=levels,
    387     names=names,
    388     verify_integrity=verify_integrity,
    389     copy=copy,
    390     sort=sort,
    391 )
    393 return op.get_result()

File ~\anaconda3\Lib\site-packages\pandas\core\reshape\concat.py:443, in _Concatenator.__init__(self, objs, axis, join, keys, levels, names, ignore_index, verify_integrity, copy, sort)
    440 self.verify_integrity = verify_integrity
    441 self.copy = copy
--> 443 objs, keys = self._clean_keys_and_objs(objs, keys)
    445 # figure out what our result ndim is going to be
    446 ndims = self._get_ndims(objs)

File ~\anaconda3\Lib\site-packages\pandas\core\reshape\concat.py:505, in _Concatenator._clean_keys_and_objs(self, objs, keys)
    502     objs_list = list(objs)
    504 if len(objs_list) == 0:
--> 505     raise ValueError("No objects to concatenate")
    507 if keys is None:
    508     objs_list = list(com.not_none(*objs_list))

ValueError: No objects to concatenate
Originally created by @NLEHO04 on GitHub (Aug 17, 2025). Original GitHub issue: https://github.com/probberechts/soccerdata/issues/868 I regularly use the Fotmob scraper and ran into this error for the first time yesterday saying there are no objects to concatenate. I tried turning off cache because it's a new season but that didn't do the trick, it is also an issue for fully completed seasons. ``` --------------------------------------------------------------------------- ValueError Traceback (most recent call last) Cell In[17], line 1 ----> 1 league_table = fotmob.read_league_table() 2 league_table.head() File ~\anaconda3\Lib\site-packages\soccerdata\fotmob.py:253, in FotMob.read_league_table(self, force_cache) 250 df_table.loc[df_table["id"] == winner, "playoff"] = "cup_winner" 251 mult_tables.append(df_table) 252 return ( --> 253 pd.concat(mult_tables, axis=0) 254 .rename(columns={"Squad": "team"}) 255 .replace({"team": TEAMNAME_REPLACEMENTS}) 256 .set_index(idx) 257 .sort_index()[cols] 258 ) File ~\anaconda3\Lib\site-packages\pandas\core\reshape\concat.py:380, in concat(objs, axis, join, ignore_index, keys, levels, names, verify_integrity, sort, copy) 377 elif copy and using_copy_on_write(): 378 copy = False --> 380 op = _Concatenator( 381 objs, 382 axis=axis, 383 ignore_index=ignore_index, 384 join=join, 385 keys=keys, 386 levels=levels, 387 names=names, 388 verify_integrity=verify_integrity, 389 copy=copy, 390 sort=sort, 391 ) 393 return op.get_result() File ~\anaconda3\Lib\site-packages\pandas\core\reshape\concat.py:443, in _Concatenator.__init__(self, objs, axis, join, keys, levels, names, ignore_index, verify_integrity, copy, sort) 440 self.verify_integrity = verify_integrity 441 self.copy = copy --> 443 objs, keys = self._clean_keys_and_objs(objs, keys) 445 # figure out what our result ndim is going to be 446 ndims = self._get_ndims(objs) File ~\anaconda3\Lib\site-packages\pandas\core\reshape\concat.py:505, in _Concatenator._clean_keys_and_objs(self, objs, keys) 502 objs_list = list(objs) 504 if len(objs_list) == 0: --> 505 raise ValueError("No objects to concatenate") 507 if keys is None: 508 objs_list = list(com.not_none(*objs_list)) ValueError: No objects to concatenate ```
kerem 2026-03-02 15:56:29 +03:00
  • closed this issue
  • added the
    bug
    FotMob
    labels
Author
Owner

@francisbegbie commented on GitHub (Aug 20, 2025):

The issue is with the current season "2025/2026".

I get output when I run the following code.

import pandas as pd
import soccerdata as sd

fotmob = sd.FotMob(leagues='ENG-Premier League', seasons='2024/2025')

schedule = fotmob.read_schedule()
print(schedule.head())

<!-- gh-comment-id:3206638192 --> @francisbegbie commented on GitHub (Aug 20, 2025): The issue is with the current season "2025/2026". I get output when I run the following code. import pandas as pd import soccerdata as sd fotmob = sd.FotMob(leagues='ENG-Premier League', seasons='2024/2025') schedule = fotmob.read_schedule() print(schedule.head())
Author
Owner

@francisbegbie commented on GitHub (Aug 21, 2025):

I think somebody at FotMob realised the error and corrected the issue at source. I am able to download data for the current season.

@NLEHO04 Kindly check and close.

<!-- gh-comment-id:3209724176 --> @francisbegbie commented on GitHub (Aug 21, 2025): I think somebody at FotMob realised the error and corrected the issue at source. I am able to download data for the current season. @NLEHO04 Kindly check and close.
Author
Owner

@NLEHO04 commented on GitHub (Aug 21, 2025):

I think somebody at FotMob realised the error and corrected the issue at source. I am able to download data for the current season.

@NLEHO04 Kindly check and close.

The original error I had is still persistent. Have you done anything to the fotmob.py file?

<!-- gh-comment-id:3210988222 --> @NLEHO04 commented on GitHub (Aug 21, 2025): > I think somebody at FotMob realised the error and corrected the issue at source. I am able to download data for the current season. > > [@NLEHO04](https://github.com/NLEHO04) Kindly check and close. The original error I had is still persistent. Have you done anything to the fotmob.py file?
Author
Owner

@francisbegbie commented on GitHub (Aug 21, 2025):

No, I haven't made any change to fotmob.py or any other file from the repo.

I was getting the same error (with concat.py) while using the repo in VS Code. I was thinking of a workaround when it suddenly started to work today.

On 21 August 2025 8:31:46 pm IST, NLEHO04 @.***> wrote:

NLEHO04 left a comment (probberechts/soccerdata#868)

I think somebody at FotMob realised the error and corrected the issue at source. I am able to download data for the current season.

@.***(https://github.com/NLEHO04) Kindly check and close.

The original error I had is still persistent. Have you done anything to the fotmob.py file?

--
Reply to this email directly or view it on GitHub:
https://github.com/probberechts/soccerdata/issues/868#issuecomment-3210988222
You are receiving this because you commented.

Message ID: @.***>

<!-- gh-comment-id:3211070780 --> @francisbegbie commented on GitHub (Aug 21, 2025): No, I haven't made any change to fotmob.py or any other file from the repo. I was getting the same error (with concat.py) while using the repo in VS Code. I was thinking of a workaround when it suddenly started to work today. On 21 August 2025 8:31:46 pm IST, NLEHO04 ***@***.***> wrote: >NLEHO04 left a comment (probberechts/soccerdata#868) > >> I think somebody at FotMob realised the error and corrected the issue at source. I am able to download data for the current season. >> >> ***@***.***(https://github.com/NLEHO04) Kindly check and close. > >The original error I had is still persistent. Have you done anything to the fotmob.py file? > >-- >Reply to this email directly or view it on GitHub: >https://github.com/probberechts/soccerdata/issues/868#issuecomment-3210988222 >You are receiving this because you commented. > >Message ID: ***@***.***>
Author
Owner

@NLEHO04 commented on GitHub (Aug 21, 2025):

No, I haven't made any change to fotmob.py or any other file from the repo.

I was getting the same error (with concat.py) while using the repo in VS Code. I was thinking of a workaround when it suddenly started to work today.

On 21 August 2025 8:31:46 pm IST, NLEHO04 @.***> wrote:
NLEHO04 left a comment (probberechts/soccerdata#868)

I think somebody at FotMob realised the error and corrected the issue at source. I am able to download data for the current season.

@.***(https://github.com/NLEHO04) Kindly check and close.

The original error I had is still persistent. Have you done anything to the fotmob.py file?

--
Reply to this email directly or view it on GitHub:
#868 (comment)
You are receiving this because you commented.

Message ID: @.***>

I am still getting the unable to concatenate error for the following code:

fotmob = sd.FotMob(leagues='ENG-Premier League', seasons='2025/2026')

schedule = fotmob.read_schedule()
schedule

<!-- gh-comment-id:3211653791 --> @NLEHO04 commented on GitHub (Aug 21, 2025): > No, I haven't made any change to fotmob.py or any other file from the repo. > > I was getting the same error (with concat.py) while using the repo in VS Code. I was thinking of a workaround when it suddenly started to work today. > […](#) > > On 21 August 2025 8:31:46 pm IST, NLEHO04 ***@***.***> wrote: > NLEHO04 left a comment ([probberechts/soccerdata#868](https://github.com/probberechts/soccerdata/issues/868)) > > > I think somebody at FotMob realised the error and corrected the issue at source. I am able to download data for the current season. > > > > ***@***.***(https://github.com/NLEHO04) Kindly check and close. > > The original error I had is still persistent. Have you done anything to the fotmob.py file? > > -- > Reply to this email directly or view it on GitHub: > [#868 (comment)](https://github.com/probberechts/soccerdata/issues/868#issuecomment-3210988222) > You are receiving this because you commented. > > Message ID: ***@***.***> I am still getting the unable to concatenate error for the following code: fotmob = sd.FotMob(leagues='ENG-Premier League', seasons='2025/2026') schedule = fotmob.read_schedule() schedule
Author
Owner

@francisbegbie commented on GitHub (Aug 22, 2025):

Working in VS Code. Check the attachment below.
Install fresh soccerdata in a separate environment. If that works, you know the issue is with the current installation.

Image
<!-- gh-comment-id:3213413625 --> @francisbegbie commented on GitHub (Aug 22, 2025): Working in VS Code. Check the attachment below. Install fresh soccerdata in a separate environment. If that works, you know the issue is with the current installation. <img width="868" height="705" alt="Image" src="https://github.com/user-attachments/assets/0d94c0c9-0547-4b3b-9e66-a23dd235de78" />
Author
Owner

@NLEHO04 commented on GitHub (Aug 22, 2025):

Working in VS Code. Check the attachment below. Install fresh soccerdata in a separate environment. If that works, you know the issue is with the current installation.

Image

I uninstalled and reinstalled, still nothing. I'm on v 1.8.7 and using Jupyter Notebook

<!-- gh-comment-id:3214778380 --> @NLEHO04 commented on GitHub (Aug 22, 2025): > Working in VS Code. Check the attachment below. Install fresh soccerdata in a separate environment. If that works, you know the issue is with the current installation. > > <img alt="Image" width="868" height="705" src="https://private-user-images.githubusercontent.com/84503703/480859476-0d94c0c9-0547-4b3b-9e66-a23dd235de78.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NTU4NzY2OTksIm5iZiI6MTc1NTg3NjM5OSwicGF0aCI6Ii84NDUwMzcwMy80ODA4NTk0NzYtMGQ5NGMwYzktMDU0Ny00YjNiLTllNjYtYTIzZGQyMzVkZTc4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTA4MjIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwODIyVDE1MjYzOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWM1YTY4OGIzNjk3MDU1ODQyNjdmMGE0M2U5ZTBjNWMxNWIyZTJkMGE4NzY5ZWNlMWE2OWJhZGQ3MGMzNDE4NTMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.SdU1dXmmSgLaA_WO3xIJzHcIoQf3YBTlhm9kL7Pwf3M"> I uninstalled and reinstalled, still nothing. I'm on v 1.8.7 and using Jupyter Notebook
Author
Owner

@francisbegbie commented on GitHub (Aug 23, 2025):

My suggestion is to download Sublime Text and run the few lines of code from my screenshot (note: make sure soccerdata, python, pandas, etc are installed locally and / or in the env).

If that works, the problem is with jupyter installation. You'd have to reinstall it. Backup settings and data before proceeding.

Wishing you success.

On 22 August 2025 8:58:33 pm IST, NLEHO04 @.***> wrote:

NLEHO04 left a comment (probberechts/soccerdata#868)

Working in VS Code. Check the attachment below. Install fresh soccerdata in a separate environment. If that works, you know the issue is with the current installation.

Image

I uninstalled and reinstalled, still nothing. I'm on v 1.8.7 and using Jupyter Notebook

--
Reply to this email directly or view it on GitHub:
https://github.com/probberechts/soccerdata/issues/868#issuecomment-3214778380
You are receiving this because you commented.

Message ID: @.***>

<!-- gh-comment-id:3216254865 --> @francisbegbie commented on GitHub (Aug 23, 2025): My suggestion is to download Sublime Text and run the few lines of code from my screenshot (note: make sure soccerdata, python, pandas, etc are installed locally and / or in the env). If that works, the problem is with jupyter installation. You'd have to reinstall it. Backup settings and data before proceeding. Wishing you success. On 22 August 2025 8:58:33 pm IST, NLEHO04 ***@***.***> wrote: >NLEHO04 left a comment (probberechts/soccerdata#868) > >> Working in VS Code. Check the attachment below. Install fresh soccerdata in a separate environment. If that works, you know the issue is with the current installation. >> >> <img alt="Image" width="868" height="705" src="https://private-user-images.githubusercontent.com/84503703/480859476-0d94c0c9-0547-4b3b-9e66-a23dd235de78.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NTU4NzY2OTksIm5iZiI6MTc1NTg3NjM5OSwicGF0aCI6Ii84NDUwMzcwMy80ODA4NTk0NzYtMGQ5NGMwYzktMDU0Ny00YjNiLTllNjYtYTIzZGQyMzVkZTc4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTA4MjIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwODIyVDE1MjYzOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWM1YTY4OGIzNjk3MDU1ODQyNjdmMGE0M2U5ZTBjNWMxNWIyZTJkMGE4NzY5ZWNlMWE2OWJhZGQ3MGMzNDE4NTMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.SdU1dXmmSgLaA_WO3xIJzHcIoQf3YBTlhm9kL7Pwf3M"> > >I uninstalled and reinstalled, still nothing. I'm on v 1.8.7 and using Jupyter Notebook > >-- >Reply to this email directly or view it on GitHub: >https://github.com/probberechts/soccerdata/issues/868#issuecomment-3214778380 >You are receiving this because you commented. > >Message ID: ***@***.***>
Author
Owner

@probberechts commented on GitHub (Aug 23, 2025):

Both reading the schedule and league table work fine for me.

Did you already try to disable caching?

import soccerdata as sd
fotmob = sd.FotMob(leagues='ENG-Premier League', seasons='2025/2026', no_cache=True)
schedule = fotmob.read_schedule()
league_table = fotmob.read_league_table()
<!-- gh-comment-id:3217366679 --> @probberechts commented on GitHub (Aug 23, 2025): Both reading the schedule and league table work fine for me. Did you already try to disable caching? ```py import soccerdata as sd fotmob = sd.FotMob(leagues='ENG-Premier League', seasons='2025/2026', no_cache=True) schedule = fotmob.read_schedule() league_table = fotmob.read_league_table() ```
Author
Owner

@NLEHO04 commented on GitHub (Aug 25, 2025):

Both reading the schedule and league table work fine for me.

Did you already try to disable caching?

import soccerdata as sd
fotmob = sd.FotMob(leagues='ENG-Premier League', seasons='2025/2026', no_cache=True)
schedule = fotmob.read_schedule()
league_table = fotmob.read_league_table()

I had previously and got an error. I just tried again and it seems to work. Thanks!

<!-- gh-comment-id:3221785035 --> @NLEHO04 commented on GitHub (Aug 25, 2025): > Both reading the schedule and league table work fine for me. > > Did you already try to disable caching? > > import soccerdata as sd > fotmob = sd.FotMob(leagues='ENG-Premier League', seasons='2025/2026', no_cache=True) > schedule = fotmob.read_schedule() > league_table = fotmob.read_league_table() I had previously and got an error. I just tried again and it seems to work. Thanks!
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#186
No description provided.