ERROR: Invalid activation key

Discussion in 'Bug Reports' started by Woon Sang, Nov 7, 2017.

  1. Hello,

    I just got a trial license and tried installing on my linux (that runs on VMWare Workstation from Windows 10), and I get the invalid activation key error.

    I am not sure where the problem is coming from.
    Please let me know. Thank you.
     
  2. Emo Todorov

    Emo Todorov Administrator Staff Member

    Your message is too brief to be able to tell what is going on. Please read the instructions on the license page -- in particular how to use getid_linux to generate a computer id, and then obtain a computer-specific activation key. Which step of the process is not working?
     
  3. I obtained a trial key for my linux machine, followed the steps above, and when installing mujoco-py, I get the following key error. Since it appears to be a key error, I posted my question here. Please see the log below. Thank you.

    If you think this is a wrong message raised from the wrapper, then its fine. I'll look into their source and see.
    =============

    woonsang@ubuntu:~$ pip install mujoco-py
    Collecting mujoco-py
    Downloading mujoco-py-1.50.1.29.tar.gz (696kB)
    100% |████████████████████████████████| 706kB 709kB/s
    Requirement already satisfied: glfw>=1.4.0 in ./anaconda3/lib/python3.5/site-packages (from mujoco-py)
    Requirement already satisfied: numpy>=1.11 in ./anaconda3/lib/python3.5/site-packages (from mujoco-py)
    Requirement already satisfied: Cython>=0.27.2 in ./anaconda3/lib/python3.5/site-packages (from mujoco-py)
    Requirement already satisfied: imageio>=2.1.2 in ./anaconda3/lib/python3.5/site-packages (from mujoco-py)
    Requirement already satisfied: cffi>=1.10 in ./anaconda3/lib/python3.5/site-packages (from mujoco-py)
    Requirement already satisfied: pillow in ./anaconda3/lib/python3.5/site-packages (from imageio>=2.1.2->mujoco-py)
    Requirement already satisfied: pycparser in ./anaconda3/lib/python3.5/site-packages (from cffi>=1.10->mujoco-py)
    Building wheels for collected packages: mujoco-py
    Running setup.py bdist_wheel for mujoco-py ... \
    error
    Complete output from command /home/woonsang/anaconda3/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-_u3g5u6o/mujoco-py/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmpcor8_z6kpip-wheel- --python-tag cp35:
    running bdist_wheel
    running build
    Compiling /tmp/pip-build-_u3g5u6o/mujoco-py/mujoco_py/cymj.pyx because it depends on /tmp/pip-build-_u3g5u6o/mujoco-py/mujoco_py/mjsim.pyx.
    [1/1] Cythonizing /tmp/pip-build-_u3g5u6o/mujoco-py/mujoco_py/cymj.pyx
    running build_ext
    building 'mujoco_py.cymj' extension
    creating /tmp/pip-build-_u3g5u6o/mujoco-py/mujoco_py/generated/_pyxbld_LinuxCPUExtensionBuilder
    creating /tmp/pip-build-_u3g5u6o/mujoco-py/mujoco_py/generated/_pyxbld_LinuxCPUExtensionBuilder/temp.linux-x86_64-3.5
    creating /tmp/pip-build-_u3g5u6o/mujoco-py/mujoco_py/generated/_pyxbld_LinuxCPUExtensionBuilder/temp.linux-x86_64-3.5/tmp
    creating /tmp/pip-build-_u3g5u6o/mujoco-py/mujoco_py/generated/_pyxbld_LinuxCPUExtensionBuilder/temp.linux-x86_64-3.5/tmp/pip-build-_u3g5u6o
    creating /tmp/pip-build-_u3g5u6o/mujoco-py/mujoco_py/generated/_pyxbld_LinuxCPUExtensionBuilder/temp.linux-x86_64-3.5/tmp/pip-build-_u3g5u6o/mujoco-py
    creating /tmp/pip-build-_u3g5u6o/mujoco-py/mujoco_py/generated/_pyxbld_LinuxCPUExtensionBuilder/temp.linux-x86_64-3.5/tmp/pip-build-_u3g5u6o/mujoco-py/mujoco_py
    creating /tmp/pip-build-_u3g5u6o/mujoco-py/mujoco_py/generated/_pyxbld_LinuxCPUExtensionBuilder/temp.linux-x86_64-3.5/tmp/pip-build-_u3g5u6o/mujoco-py/mujoco_py/gl
    gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Imujoco_py -I/tmp/pip-build-_u3g5u6o/mujoco-py/mujoco_py -I/home/woonsang/.mujoco/mjpro150/include -I/home/woonsang/anaconda3/lib/python3.5/site-packages/numpy/core/include -I/home/woonsang/anaconda3/include/python3.5m -c /tmp/pip-build-_u3g5u6o/mujoco-py/mujoco_py/cymj.c -o /tmp/pip-build-_u3g5u6o/mujoco-py/mujoco_py/generated/_pyxbld_LinuxCPUExtensionBuilder/temp.linux-x86_64-3.5/tmp/pip-build-_u3g5u6o/mujoco-py/mujoco_py/cymj.o -fopenmp -w
    gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Imujoco_py -I/tmp/pip-build-_u3g5u6o/mujoco-py/mujoco_py -I/home/woonsang/.mujoco/mjpro150/include -I/home/woonsang/anaconda3/lib/python3.5/site-packages/numpy/core/include -I/home/woonsang/anaconda3/include/python3.5m -c /tmp/pip-build-_u3g5u6o/mujoco-py/mujoco_py/gl/osmesashim.c -o /tmp/pip-build-_u3g5u6o/mujoco-py/mujoco_py/generated/_pyxbld_LinuxCPUExtensionBuilder/temp.linux-x86_64-3.5/tmp/pip-build-_u3g5u6o/mujoco-py/mujoco_py/gl/osmesashim.o -fopenmp -w
    creating /tmp/pip-build-_u3g5u6o/mujoco-py/mujoco_py/generated/_pyxbld_LinuxCPUExtensionBuilder/lib.linux-x86_64-3.5
    creating /tmp/pip-build-_u3g5u6o/mujoco-py/mujoco_py/generated/_pyxbld_LinuxCPUExtensionBuilder/lib.linux-x86_64-3.5/mujoco_py
    gcc -pthread -shared -L/home/woonsang/anaconda3/lib -Wl,-rpath=/home/woonsang/anaconda3/lib,--no-as-needed /tmp/pip-build-_u3g5u6o/mujoco-py/mujoco_py/generated/_pyxbld_LinuxCPUExtensionBuilder/temp.linux-x86_64-3.5/tmp/pip-build-_u3g5u6o/mujoco-py/mujoco_py/cymj.o /tmp/pip-build-_u3g5u6o/mujoco-py/mujoco_py/generated/_pyxbld_LinuxCPUExtensionBuilder/temp.linux-x86_64-3.5/tmp/pip-build-_u3g5u6o/mujoco-py/mujoco_py/gl/osmesashim.o -L/home/woonsang/.mujoco/mjpro150/bin -L/home/woonsang/anaconda3/lib -Wl,--enable-new-dtags,-R/home/woonsang/.mujoco/mjpro150/bin -lmujoco150 -lglewosmesa -lOSMesa -lGL -lpython3.5m -o /tmp/pip-build-_u3g5u6o/mujoco-py/mujoco_py/generated/_pyxbld_LinuxCPUExtensionBuilder/lib.linux-x86_64-3.5/mujoco_py/cymj.cpython-35m-x86_64-linux-gnu.so -fopenmp
    [ [V: not found
    sh: 2: [
    : not found
    [ [V: not found
    sh: 2: [
    : not found
    [ [V: not found
    sh: 2: Syntax error: "(" unexpected
    [ [V: not found
    sh: 2: Syntax error: "(" unexpected
    ERROR: Invalid activation key
    Press Enter to exit ...
    ----------------------------------------
    Failed building wheel for mujoco-py
     
    Last edited: Nov 8, 2017
  4. Emo Todorov

    Emo Todorov Administrator Staff Member

    To check if MuJoCo itself is working, download it from the website, copy your activation key in the bin directory, and run ./simulate. Assuming that works, then the problem is with the Python wrapper -- if so, you should check on the OpenAI forum. I don't actually use the Python wrapper.