Skip to content

Installing Ray Library,Running python setup.py develop error #1073

@SJ-L

Description

@SJ-L

here is the error message:

D:\Anaconda\envs\flow\lib\site-packages\setuptools\command\easy_install.py:147: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
  EasyInstallDeprecationWarning,
D:\Anaconda\envs\flow\lib\site-packages\setuptools\command\install.py:37: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  setuptools.SetuptoolsDeprecationWarning,
running egg_info
writing ray.egg-info\PKG-INFO
writing dependency_links to ray.egg-info\dependency_links.txt
writing entry points to ray.egg-info\entry_points.txt
writing requirements to ray.egg-info\requires.txt
writing top-level names to ray.egg-info\top_level.txt
reading manifest file 'ray.egg-info\SOURCES.txt'
writing manifest file 'ray.egg-info\SOURCES.txt'
running build_ext
error: [WinError 193] %1 is not a valid Win32 application

After receiving the error message, I tested Ray with python examples/train.py singleagent_ring,
then I received following error message

Traceback (most recent call last):
  File "examples/train.py", line 375, in <module>
    main(sys.argv[1:])
  File "examples/train.py", line 364, in main
    train_rllib(submodule, flags)
  File "examples/train.py", line 194, in train_rllib
    policy_graphs, policy_mapping_fn, policies_to_train)
  File "examples/train.py", line 144, in setup_exps_rllib
    agent_cls = get_agent_class(alg_run)
  File "C:\Users\Shaojie Liu\AppData\Roaming\Python\Python37\site-packages\ray\rllib\utils\deprecation.py", line 116, in _ctor
    error=error,
  File "C:\Users\Shaojie Liu\AppData\Roaming\Python\Python37\site-packages\ray\rllib\utils\deprecation.py", line 42, in deprecation_warning
    raise DeprecationWarning(msg)
DeprecationWarning: `get_agent_class` has been deprecated. Use `ray.rllib.agents.registry::get_trainer_class()` instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions