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

Pickling of functions imported by name doesn't work #308

Open
pcmoritz opened this issue Jul 27, 2016 · 0 comments
Open

Pickling of functions imported by name doesn't work #308

pcmoritz opened this issue Jul 27, 2016 · 0 comments
Labels

Comments

@pcmoritz
Copy link
Collaborator

pcmoritz commented Jul 27, 2016

Steps to reproduce:

  1. Install https://gym.openai.com/
  2. Execute the following code in the shell:
from gym.envs import make

@ray.remote([], [])
def f():
  env = make("Pong-ram-v0")
  return

f()

It fails with the following error message:

PicklingError: Cannot pickle files that are not opened for reading: a

This on the other hand works:

import gym

@ray.remote([], [])
def f():
  env = gym.envs.make("Pong-ram-v0")
  return

f()
pcmoritz pushed a commit to pcmoritz/ray that referenced this issue Dec 18, 2017
* new path for python build

* add flag

* build tar using git archive

* no exit from start_ray.sh

* update Docker instructions

* update build docker script

* add git revision

* fix typo

* bug fixes and clarifications

* mend

* add objectmanager ports to docker instructions

* rewording

* Small updates to documentation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants