Skip to content

[RLlib] Error importing the library #39583

Closed
@mrz1999

Description

What happened + What you expected to happen

I try to import ray.rllib but it appears the following attribute error: 'NoneType' object has no attribute 'fs'.
This is the entire error message:

1 import ray.rllib

~/Desktop/prove_ma_alg/multiagent/venv_env/lib/python3.8/site-packages/ray/rllib/init.py in
8 from ray.rllib.env.external_env import ExternalEnv
9 from ray.rllib.env.multi_agent_env import MultiAgentEnv
---> 10 from ray.rllib.env.vector_env import VectorEnv
11 from ray.rllib.evaluation.rollout_worker import RolloutWorker
12 from ray.rllib.policy.policy import Policy

~/Desktop/prove_ma_alg/multiagent/venv_env/lib/python3.8/site-packages/ray/rllib/env/init.py in
4 from ray.rllib.env.external_multi_agent_env import ExternalMultiAgentEnv
5 from ray.rllib.env.multi_agent_env import MultiAgentEnv
----> 6 from ray.rllib.env.policy_client import PolicyClient
7 from ray.rllib.env.policy_server_input import PolicyServerInput
8 from ray.rllib.env.remote_base_env import RemoteBaseEnv

~/Desktop/prove_ma_alg/multiagent/venv_env/lib/python3.8/site-packages/ray/rllib/env/policy_client.py in
15 from ray.rllib.env.external_multi_agent_env import ExternalMultiAgentEnv
16 from ray.rllib.env.multi_agent_env import MultiAgentEnv
---> 17 from ray.rllib.policy.sample_batch import MultiAgentBatch
18 from ray.rllib.utils.annotations import PublicAPI
19 from ray.rllib.utils.typing import (
...
--> 142 _cached_fs: Dict[tuple, Tuple[float, pyarrow.fs.FileSystem]] = {}
143
144

AttributeError: 'NoneType' object has no attribute 'fs'

Versions / Dependencies

python==3.8.18
ray==2.6.3
gymnasium==0.26.3

Reproduction script

import ray.rllib

Issue Severity

High: It blocks me from completing my task.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    questionJust a question :)rllibRLlib related issuesstaleThe issue is stale. It will be closed within 7 days unless there are further conversation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions