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

marketlib not working anymore with current versions of pandas and oemof #12

Open
joe29k opened this issue Jan 26, 2024 · 0 comments
Open

Comments

@joe29k
Copy link

joe29k commented Jan 26, 2024

I cannot get the examples running as I get multiple errors:

  • ImportError: cannot import name 'Sink' from 'oemof.solph' (also Source, Transformer, GenericStorage) -> I was able to fix it by importing it from oemof.solph.components instead. I think they did a renaming
  • if I fix the above error I now get an ImportError: cannot import name 'SettingWithCopyWarning' from 'pandas.core.common'. Seems like SettingWithCopyWarning is not available in the current version of pandas. Tried to replace it with from pandas.errors import SettingWithCopyWarning (not sure if they are equal) but now get different errors (AttributeError: 'DatetimeIndexResampler' object has no attribute 'pad' from the pandas\core\resample.py line 215, in getattr
    return object.getattribute(self, attr)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    AttributeError: 'DatetimeIndexResampler' object has no attribute 'pad'

ty

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

1 participant