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

Current setup with python 3.11.10 as in README does not work with implicit dask version #184

Open
michael72 opened this issue Nov 12, 2024 · 0 comments

Comments

@michael72
Copy link

The python version 3.11.10 and the used (depending) dask version are incompatible. Either the implicit used dask version 2023.8.0 needs to be updated explicitly to a version that is compatible with python 3.11.10 or the python version downgraded to 3.11.8. This should be mentioned in the README.

See also
aertslab/scenicplus#432

Traceback (most recent call last):
  File "/home/michael/projects/timesfm/use_timesfm.py", line 1, in <module>
    import timesfm
  File "/home/michael/.pyenv/versions/3.11.10/lib/python3.11/site-packages/timesfm/__init__.py", line 18, in <module>
    from timesfm.timesfm_base import freq_map, TimesFmCheckpoint, TimesFmHparams, TimesFmBase
  File "/home/michael/.pyenv/versions/3.11.10/lib/python3.11/site-packages/timesfm/timesfm_base.py", line 25, in <module>
    from utilsforecast.processing import make_future_dataframe
  File "/home/michael/.pyenv/versions/3.11.10/lib/python3.11/site-packages/utilsforecast/processing.py", line 21, in <module>
    from .compat import DataFrame, Series, pl, pl_DataFrame, pl_Series
  File "/home/michael/.pyenv/versions/3.11.10/lib/python3.11/site-packages/utilsforecast/compat.py", line 78, in <module>
    from dask.dataframe import DataFrame as DaskDataFrame
  File "/home/michael/.local/lib/python3.11/site-packages/dask/dataframe/__init__.py", line 6, in <module>
    from dask.dataframe import backends, dispatch, rolling
  File "/home/michael/.local/lib/python3.11/site-packages/dask/dataframe/backends.py", line 15, in <module>
    from dask.dataframe.core import DataFrame, Index, Scalar, Series, _Frame
  File "/home/michael/.local/lib/python3.11/site-packages/dask/dataframe/core.py", line 36, in <module>
    from dask.dataframe import methods
  File "/home/michael/.local/lib/python3.11/site-packages/dask/dataframe/methods.py", line 33, in <module>
    from dask.dataframe.utils import is_dataframe_like, is_index_like, is_series_like
  File "/home/michael/.local/lib/python3.11/site-packages/dask/dataframe/utils.py", line 20, in <module>
    from dask.dataframe import (  # noqa: F401 register pandas extension types
  File "/home/michael/.local/lib/python3.11/site-packages/dask/dataframe/_dtypes.py", line 9, in <module>
    from dask.dataframe.extensions import make_array_nonempty, make_scalar
  File "/home/michael/.local/lib/python3.11/site-packages/dask/dataframe/extensions.py", line 8, in <module>
    from dask.dataframe.accessor import (
  File "/home/michael/.local/lib/python3.11/site-packages/dask/dataframe/accessor.py", line 126, in <module>
    class DatetimeAccessor(Accessor):
  File "/home/michael/.local/lib/python3.11/site-packages/dask/dataframe/accessor.py", line 81, in __init_subclass__
    _bind_property(cls, pd_cls, attr, min_version)
  File "/home/michael/.local/lib/python3.11/site-packages/dask/dataframe/accessor.py", line 35, in _bind_property
    setattr(cls, attr, property(derived_from(pd_cls, version=min_version)(func)))
                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/michael/.local/lib/python3.11/site-packages/dask/utils.py", line 851, in wrapper
    method.__doc__ = _derived_from(
                     ^^^^^^^^^^^^^^
  File "/home/michael/.local/lib/python3.11/site-packages/dask/utils.py", line 804, in _derived_from
    method_args = get_named_args(method)
                  ^^^^^^^^^^^^^^^^^^^^^^
  File "/home/michael/.local/lib/python3.11/site-packages/dask/utils.py", line 570, in get_named_args
    s = inspect.signature(func)
        ^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/michael/.pyenv/versions/3.11.10/lib/python3.11/inspect.py", line 3263, in signature
    return Signature.from_callable(obj, follow_wrapped=follow_wrapped,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/michael/.pyenv/versions/3.11.10/lib/python3.11/inspect.py", line 3011, in from_callable
    return _signature_from_callable(obj, sigcls=cls,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/michael/.pyenv/versions/3.11.10/lib/python3.11/inspect.py", line 2599, in _signature_from_callable
    call = _descriptor_get(call, obj)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/michael/.pyenv/versions/3.11.10/lib/python3.11/inspect.py", line 2432, in _descriptor_get
    return get(descriptor, obj, type(obj))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: descriptor '__call__' for 'type' objects doesn't apply to a 'property' object
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