facebookresearch / phyre

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

ModuleNotFoundError: No module named 'phyre.interface' #11

Closed ruoshiliu closed 4 years ago

ruoshiliu commented 4 years ago

Hi, Thanks a lot for sharing the code!

I'm trying to import my local phyre module but encountered this error. It seems interface is an alias file and the file it points doesn't exist in the phyre directory.

Thanks for your help in advanced!

akhti commented 4 years ago

Hey!

Have you installed phyre with pip install phyre ? You don't need even clone the repo for this. And after this import phyre should work.

ruoshiliu commented 4 years ago

Thanks for replying!

Yes I have, and it can run without any problem. But I'm trying to make some modification to the code, specifically, create new tasks, so I'm trying to import and run my local module. I was able to write and load some task scripts I created using generator.py but got stuck when importing the local module. Would you please provide some guidance into how I might be able to do that?

Thanks a bunch!

akhti commented 4 years ago

I see. If you want to run from source code, you'll need to get a conda environment. See "Installation from Source" here: https://github.com/facebookresearch/phyre/blob/master/INSTALLATION.md#installation-from-source

ruoshiliu commented 4 years ago

It works! Thanks a lot!