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

Exception Errors in Chapter 4: Could be newbie error as well #3

Closed
RustyKettle opened this issue Aug 20, 2022 · 3 comments
Closed

Exception Errors in Chapter 4: Could be newbie error as well #3

RustyKettle opened this issue Aug 20, 2022 · 3 comments

Comments

@RustyKettle
Copy link

I'm going through this book and running the code as I go. I am running into the following issue:

ALL DONE Exception ignored in: <function RolloutWorker.__del__ at 0x7fb2260368c0> Traceback (most recent call last): File "/home/rustykettle/.local/lib/python3.10/site-packages/ray/util/tracing/tracing_helper.py", line 461, in _resume_span TypeError: 'NoneType' object is not callable

The ALL DONE is my print:

ray.init()
gymEnv = GymEnvironment()
trainer = DQNTrainer(env=GymEnvironment, config={"num_workers": 4})  # <1>
config = trainer.get_config()  # <2>
#print(pretty_print(config))

for i in range(10):
    result = trainer.train()  # <3>

ray.shutdown()
print(pretty_print(result))  # <4>
print("ALL DONE")

It is to show that the exception is something to do with Ray, but it also might have something to do with my configuration. I followed the book very closely, but I'm not discounting a user-error on my part.
output.log

I'm also getting depreciation warnings that don't appear in the log. I'm imagining that this happens because it is happening on a different thread.

@RustyKettle
Copy link
Author

Another quick observation. This doesn't happen when running via the cmd_line using the yml method, so it further points to something acting up in my script.

@RustyKettle
Copy link
Author

More observations. It still happens with the multiagent example, and when updating to Ray 2,0.

@maxpumperla maxpumperla changed the title Exception Errors in Chapter 3: Could be newbie error as well Exception Errors in Chapter 4: Could be newbie error as well Nov 24, 2022
@maxpumperla
Copy link
Owner

hey @RustyKettle, by now we've rewritten a substantial part of this chapter due to lots of API changes. I ran the examples locally and on colab and so far don't see any problems. Closing this issue for now, but please feel free to reopen if your problems persist!

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

2 participants