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

Error Importing Ciclo #18

Open
Impure-King opened this issue Mar 12, 2024 · 0 comments
Open

Error Importing Ciclo #18

Impure-King opened this issue Mar 12, 2024 · 0 comments

Comments

@Impure-King
Copy link

Impure-King commented Mar 12, 2024

Hey, just wanted to test the library. However, it seems that it isn't being maintained regularly anymore. I got this error, when importing it:

---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
Cell In[1], line 4
      2 import sentinex as sx
      3 from sentinex import nn
----> 4 import ciclo as lo
      5 sx.__version__

File ~/miniconda3/envs/JAX/lib/python3.11/site-packages/ciclo/__init__.py:4
      1 __version__ = "0.1.9"
----> 4 from . import managed
      5 from .callbacks import checkpoint as checkpoint
      6 from .callbacks import early_stopping as early_stopping

File ~/miniconda3/envs/JAX/lib/python3.11/site-packages/ciclo/managed.py:30
     22 from ciclo.logging import Logs
     23 from ciclo.loops.loop import (
     24     CallbackOutput,
     25     FunctionCallbackOutputs,
   (...)
     28     to_standard_outputs,
     29 )
---> 30 from ciclo.strategies import Strategy, get_strategy
     31 from ciclo.types import Batch, Broadcasts, CluMetric, MetricLike, Statics
     32 from ciclo.utils import inject

File ~/miniconda3/envs/JAX/lib/python3.11/site-packages/ciclo/strategies.py:20
     15 class Dataclass(Protocol):
     16     __dataclass_fields__: Dict
     19 @runtime_checkable
---> 20 class HasKey(Protocol):
     21     key: jax.random.KeyArray
     24 StrategyConstructor = Callable[[], "Strategy"]

File ~/miniconda3/envs/JAX/lib/python3.11/site-packages/ciclo/strategies.py:21, in HasKey()
     19 @runtime_checkable
     20 class HasKey(Protocol):
---> 21     key: jax.random.KeyArray

File ~/miniconda3/envs/JAX/lib/python3.11/site-packages/jax/_src/deprecations.py:54, in deprecation_getattr.<locals>.getattr(name)
     52   warnings.warn(message, DeprecationWarning, stacklevel=2)
     53   return fn
---> 54 raise AttributeError(f"module {module!r} has no attribute {name!r}")

AttributeError: module 'jax.random' has no attribute 'KeyArray'
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