facebookresearch / phyre

PHYRE is a benchmark for physical reasoning.
https://phyre.ai
Apache License 2.0
430 stars 61 forks source link

Error when running 01_phyre_intro notebook #46

Closed Spraitazz closed 3 years ago

Spraitazz commented 3 years ago

Hi, I am getting the following error when running cell [6]:

TypeError: render(): incompatible function arguments. The following argument types are supported:

  1. (arg0: List[int]) -> List[int] Screenshot_2021-01-17 phyre_intro - Jupyter Notebook
akhti commented 3 years ago

Hi there!

  1. I've just tried to run this in colab and it worked. Could you try to run and see if you see the error anywhere? https://colab.research.google.com/github/facebookresearch/phyre/blob/master/examples/01_phyre_intro.ipynb
  2. If colab works, what version of phyre are you using? !pip freeze | grep phyre in a notebook
Spraitazz commented 3 years ago

Hi, thanks for the quick reply.

  1. The cell in question runs without error in the colab notebook you've linked.
  2. The output of this is the following: -e git+https://github.com/facebookresearch/phyre.git@f6c6c973ef49239305372e9d18f664fa155bd18d#egg=phyre&subdirectory=src/python

Could this have to do with the fact that "pip install phyre" (in a conda env with python=3.6) returns

"ERROR: Could not find a version that satisfies the requirement phyre ERROR: No matching distribution found for phyre"

and so I've had to install it through

conda env create -f env.yml source activate phyre pip install -e src/python

Spraitazz commented 3 years ago

Solved by cloning the branch "release_v22" and installing that. Thanks!