Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question ImportError and dependency conflict error #880

Open
JackyJiang0410 opened this issue Jan 3, 2025 · 2 comments
Open

Question ImportError and dependency conflict error #880

JackyJiang0410 opened this issue Jan 3, 2025 · 2 comments

Comments

@JackyJiang0410
Copy link

Hi, we find out after the import like
from socceraction.data.statsbomb import StatsBombLoader
will cause import error as follow:

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
[<ipython-input-3-6f97ddd8e8bc>](https://localhost:8080/#) in <cell line: 5>()
      3 import numpy as np
      4 from tqdm import tqdm
----> 5 from socceraction.data.statsbomb import StatsBombLoader
      6 import socceraction.spadl as spadl
      7 import socceraction.xthreat as xthreat

7 frames
[/usr/local/lib/python3.10/dist-packages/pandera/backends/pandas/checks.py](https://localhost:8080/#) in <module>
      5 
      6 import pandas as pd
----> 7 from multimethod import DispatchError, overload
      8 
      9 from pandera.api.base.checks import CheckResult, GroupbyObject

ImportError: cannot import name 'overload' from 'multimethod' (/usr/local/lib/python3.10/dist-packages/multimethod/__init__.py)

---------------------------------------------------------------------------
NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.

To view examples of installing some common dependencies, click the
"Open Examples" button below.
---------------------------------------------------------------------------

We believe it is because overload is removed from multimethod.

@michaelromagne
Copy link

michaelromagne commented Jan 4, 2025

Same. For now using multi method 1.12 fixes the issue : Changelog 2.0

@yacine-harbi
Copy link

For a longer term fix, upgrading pandera to 0.22.1 should do the trick (unionai-oss/pandera#1891). But it's pined to <0.18.0,>=0.17.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants