Coder Social home page Coder Social logo

Comments (12)

lhao499 avatar lhao499 commented on August 29, 2024

Even after I use export PYTHONPATH=path_to_softqlearning:$PYTHONPATH, it still reports the same error.

from softqlearning.

haarnoja avatar haarnoja commented on August 29, 2024

Are you using python 2 or python 3? You will need python 3.

from softqlearning.

lhao499 avatar lhao499 commented on August 29, 2024

Following instructions of rlllab, I created a Python 3 environment. I am using this environment to run softqlearning

from softqlearning.

lhao499 avatar lhao499 commented on August 29, 2024

To verify the following steps are correct, I have even tried rllabplusplus and can run both rllab and rllab++ correctly,

  • install rllab, mujoco and create environment
  • export project path to PYTHONPATH
  • activate environment and test

from softqlearning.

haarnoja avatar haarnoja commented on August 29, 2024

I see. You don't need to install rllab for this to work. All dependencies are already included in the rllab/ folder (it's slightly customized version of the actual rllab, that's why it is included in this repo). Make sure rllab refers to the right package.

from softqlearning.

lhao499 avatar lhao499 commented on August 29, 2024

Cool, I will use anaconda to create a new Python 3 environment instead of run this in the rllab environment. Do you mean I need to add path of this rllab/ to PYTHONPATH?

from softqlearning.

haarnoja avatar haarnoja commented on August 29, 2024

You don't need to add it at all, if you add path to softqlearning root to your PYTHONPATH. Or you can have PYTHONPATH=. and run everything from the root.

from softqlearning.

lhao499 avatar lhao499 commented on August 29, 2024

I see, thanks. I can run it in a new python 3 environment after adding PYTHONPATH. A wield thing is that in rllab3 environment, even after I use export PYTHONPATH=path_to_softqlearning:$PYTHONPATH, it still can not find the path.

from softqlearning.

haarnoja avatar haarnoja commented on August 29, 2024

Cool. It probably fails because rllab can then be found in two different locations, and python looks into the wrong one which does not have the required module, and it thus fails.

from softqlearning.

phaniram-sayapaneni avatar phaniram-sayapaneni commented on August 29, 2024

I'm having similar problem importing rllab.

  1. Couldn't import rllab?
  2. Also could we do, export PYTHONPATH={$PYTHONPATH}:(pwd)
    to append path, instead of changing it to pwd

How I have installed:

  1. created custom_path as "softq"
  2. cloned rllab, entered rllab and did export pythonpath
  3. copied all mj files
  4. cloned softqlearning in the path "softq"
  5. activated sql and ran the python example command

Any help would be very much appreciated

from softqlearning.

phaniram-sayapaneni avatar phaniram-sayapaneni commented on August 29, 2024

In rllab directory, there is another rllab. Not sure if it is causing the confusion to import

from softqlearning.

phaniram-sayapaneni avatar phaniram-sayapaneni commented on August 29, 2024

If anyone is still looking at this thread use: python3 while creating the environment, it will work.

from softqlearning.

Related Issues (11)

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.