Git Product home page Git Product logo

pddlgym_planners's People

Contributors

brunoaibanez avatar hmz-15 avatar ronuchit avatar tomsilver avatar varmichelle avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

pddlgym_planners's Issues

why this happen"sh: 1: cd: can't cd to XXXXXX"?

after i write ">>> ff_planner = FF()",then it show this:

sh: 1: cd: can't cd to /home/tridu33/rl/pddlgym_planners/FF-v2.3
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/tridu33/rl/pddlgym_planners/ff.py", line 24, in __init__
    self._install_ff()
  File "/home/tridu33/rl/pddlgym_planners/ff.py", line 82, in _install_ff
    assert os.path.exists(self._exec)
AssertionError

installation path of planner in Linux

Hi!

The following modification was necessary to install the ff planner in linux (otherwise, the code is unpacked in the current working directory, and not in pddlgym_planners)

diff --git a/ff.py b/ff.py
index 1ef5b65..714c19e 100644
--- a/ff.py
+++ b/ff.py
@@ -79,7 +79,8 @@ class FF(PDDLPlanner):
         else:
             # Install FF directly from official website.
             os.system("curl {} --output {}.tgz".format(FF_URL, loc))
-            os.system("tar -xzvf {}.tgz".format(loc))
+            dirname = os.path.dirname(os.path.realpath(__file__))
+            os.system("cd {} && tar -xzvf {}.tgz".format(dirname,loc))
         # Compile FF.
         os.system("cd {} && make && cd -".format(loc))
         assert os.path.exists(self._exec)

I run the code of the readme with python3 main2.py with the following directory structure:

.
├── frame1.png
├── frame2.png
├── main2.py
├── main.py
└── pddlgym_planners
    ├── FD
    ├── fd.py
    ├── ff.py
    ├── FF-v2.3
    ├── FF-v2.3.tgz
    ├── LICENSE.md
    ├── main2.py
    ├── pddl_planner.py
    ├── planner.py
    ├── __pycache__
    ├── README.md
    ├── setup.py
    └── test.py

Thanks for the repo!

Issue on ubuntu 20.04

Hi, I am on ubuntu 20.04 with Python 3.8.5 and I tried running your test.py file.

I get this error, on my terminal. Do you have any advice for me?

Traceback (most recent call last):
  File "/home/kevindo/Documents/pddlgym/test.py", line 5, in <module>
    from pddlgym_planners.ff import FF  # FastForward
  File "/home/kevindo/Documents/pddlgym/pddlgym_planners/ff.py", line 8, in <module>
    from pddlgym_planners.pddl_planner import PDDLPlanner
  File "/home/kevindo/Documents/pddlgym/pddlgym_planners/pddl_planner.py", line 14, in <module>
    from pddlgym_planners.FD.src.translate.translate import main as downward_translate
ModuleNotFoundError: No module named 'pddlgym_planners.FD'

Thank you!

Request `setup.py` for pddlgym_planners

Hi @tomsilver - when you get a chance, would you mind adding a setup.py for this repo? I'm building something that uses PDDLGym (+ the planners). I want to create a Conda env file for PDDLGym like below. This requires that pddlgym_planners have a setup.py file like you do in the main pddlgym to enable the pip install. Thanks!

name: pddlgym
channels:
  - conda-forge
  - anaconda
dependencies:
  ...
  - pip:
    - pddlgym
    - git+https://github.com/ronuchit/pddlgym_planners.git

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.