minosworld / minos

MINOS: Multimodal Indoor Simulator
MIT License
201 stars 33 forks source link

Problem while installing minos module #117

Closed ans-qureshi closed 5 years ago

ans-qureshi commented 5 years ago
romi@romi-Z370-AORUS-Gaming-3:~/Desktop/minos$ pip3 install -e .
Obtaining file:///home/romi/Desktop/minos
Requirement already satisfied: socketIO-client-2 in /home/romi/.local/lib/python3.5/site-packages (from minos-sim==0.5.3) (0.7.4)
Requirement already satisfied: numpy in /home/romi/.local/lib/python3.5/site-packages (from minos-sim==0.5.3) (1.15.4)
Requirement already satisfied: scipy in /home/romi/.local/lib/python3.5/site-packages (from minos-sim==0.5.3) (1.1.0)
Requirement already satisfied: easydict in /home/romi/.local/lib/python3.5/site-packages (from minos-sim==0.5.3) (1.9)
Requirement already satisfied: matplotlib in /home/romi/.local/lib/python3.5/site-packages (from minos-sim==0.5.3) (3.0.1)
Requirement already satisfied: pygame in /home/romi/.local/lib/python3.5/site-packages (from minos-sim==0.5.3) (1.9.4)
Requirement already satisfied: Pillow in /home/romi/.local/lib/python3.5/site-packages (from minos-sim==0.5.3) (5.3.0)
Requirement already satisfied: psutil in /home/romi/.local/lib/python3.5/site-packages (from minos-sim==0.5.3) (5.4.8)
Requirement already satisfied: pyyaml in /home/romi/.local/lib/python3.5/site-packages (from minos-sim==0.5.3) (3.13)
Requirement already satisfied: requests in /home/romi/.local/lib/python3.5/site-packages (from socketIO-client-2->minos-sim==0.5.3) (2.20.0)
Requirement already satisfied: six in /home/romi/.local/lib/python3.5/site-packages (from socketIO-client-2->minos-sim==0.5.3) (1.11.0)
Requirement already satisfied: websocket-client in /home/romi/.local/lib/python3.5/site-packages (from socketIO-client-2->minos-sim==0.5.3) (0.54.0)
Requirement already satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1 in /home/romi/.local/lib/python3.5/site-packages (from matplotlib->minos-sim==0.5.3) (2.3.0)
Requirement already satisfied: python-dateutil>=2.1 in /home/romi/.local/lib/python3.5/site-packages (from matplotlib->minos-sim==0.5.3) (2.7.5)
Requirement already satisfied: kiwisolver>=1.0.1 in /home/romi/.local/lib/python3.5/site-packages (from matplotlib->minos-sim==0.5.3) (1.0.1)
Requirement already satisfied: cycler>=0.10 in /home/romi/.local/lib/python3.5/site-packages (from matplotlib->minos-sim==0.5.3) (0.10.0)
Requirement already satisfied: urllib3<1.25,>=1.21.1 in /home/romi/.local/lib/python3.5/site-packages (from requests->socketIO-client-2->minos-sim==0.5.3) (1.24.1)
Requirement already satisfied: certifi>=2017.4.17 in /home/romi/.local/lib/python3.5/site-packages (from requests->socketIO-client-2->minos-sim==0.5.3) (2018.10.15)
Requirement already satisfied: idna<2.8,>=2.5 in /home/romi/.local/lib/python3.5/site-packages (from requests->socketIO-client-2->minos-sim==0.5.3) (2.7)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /home/romi/.local/lib/python3.5/site-packages (from requests->socketIO-client-2->minos-sim==0.5.3) (3.0.4)
Requirement already satisfied: setuptools in /home/romi/.local/lib/python3.5/site-packages (from kiwisolver>=1.0.1->matplotlib->minos-sim==0.5.3) (40.5.0)
Installing collected packages: minos-sim
  Found existing installation: minos-sim 0.5.3
    Uninstalling minos-sim-0.5.3:
      Successfully uninstalled minos-sim-0.5.3
  Running setup.py develop for minos-sim
    Complete output from command /usr/bin/python3 -c "import setuptools, tokenize;__file__='/home/romi/Desktop/minos/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" develop --no-deps:
    running develop
    error: can't create or remove files in install directory

    The following error occurred while trying to add or remove files in the
    installation directory:

        [Errno 13] Permission denied: '/usr/local/lib/python3.5/dist-packages/test-easy-install-30298.write-test'

    The installation directory you specified (via --install-dir, --prefix, or
    the distutils default setting) was:

        /usr/local/lib/python3.5/dist-packages/

    Perhaps your account does not have write access to this directory?  If the
    installation directory is a system-owned directory, you may need to sign in
    as the administrator or "root" account.  If you do not have administrative
    access to this machine, you may wish to choose a different installation
    directory, preferably one that is listed in your PYTHONPATH environment
    variable.

    For information on other options, you may wish to consult the
    documentation at:

      https://setuptools.readthedocs.io/en/latest/easy_install.html

    Please make the appropriate changes for your system and try again.

    ----------------------------------------
  Rolling back uninstall of minos-sim
Command "/usr/bin/python3 -c "import setuptools, tokenize;__file__='/home/romi/Desktop/minos/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" develop --no-deps" failed with error code 1 in /home/romi/Desktop/minos/
msavva commented 5 years ago

@romi-seecs Thank you for trying out MINOS.

The error appears to be due to your python installation being a system-level installation (and thus requiring sudo permissions to install additional packages through pip).

Please try either using a virtualenv or conda python, or if you use the system-wide python installation still (which is generally not recommended), you will likely have to run with sudo.

ans-qureshi commented 5 years ago

Thank you for the response. I installed anaconda but got same error, however I tried the command 'sudo pip3 install -e .' and got following result

romi@romi-Z370-AORUS-Gaming-3:~/minos$ sudo pip3 install -e .
[sudo] password for romi: 
The directory '/home/romi/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/romi/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Obtaining file:///home/romi/minos
Requirement already satisfied: socketIO-client-2 in /home/romi/.local/lib/python3.5/site-packages (from minos-sim==0.5.3) (0.7.4)
Requirement already satisfied: numpy in /home/romi/.local/lib/python3.5/site-packages (from minos-sim==0.5.3) (1.15.4)
Requirement already satisfied: scipy in /home/romi/.local/lib/python3.5/site-packages (from minos-sim==0.5.3) (1.1.0)
Requirement already satisfied: easydict in /home/romi/.local/lib/python3.5/site-packages (from minos-sim==0.5.3) (1.9)
Requirement already satisfied: matplotlib in /home/romi/.local/lib/python3.5/site-packages (from minos-sim==0.5.3) (3.0.1)
Requirement already satisfied: pygame in /home/romi/.local/lib/python3.5/site-packages (from minos-sim==0.5.3) (1.9.4)
Requirement already satisfied: Pillow in /home/romi/.local/lib/python3.5/site-packages (from minos-sim==0.5.3) (5.3.0)
Requirement already satisfied: psutil in /home/romi/.local/lib/python3.5/site-packages (from minos-sim==0.5.3) (5.4.8)
Requirement already satisfied: pyyaml in /home/romi/.local/lib/python3.5/site-packages (from minos-sim==0.5.3) (3.13)
Requirement already satisfied: requests in /home/romi/.local/lib/python3.5/site-packages (from socketIO-client-2->minos-sim==0.5.3) (2.20.0)
Requirement already satisfied: websocket-client in /home/romi/.local/lib/python3.5/site-packages (from socketIO-client-2->minos-sim==0.5.3) (0.54.0)
Requirement already satisfied: six in /home/romi/.local/lib/python3.5/site-packages (from socketIO-client-2->minos-sim==0.5.3) (1.11.0)
Requirement already satisfied: kiwisolver>=1.0.1 in /home/romi/.local/lib/python3.5/site-packages (from matplotlib->minos-sim==0.5.3) (1.0.1)
Requirement already satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1 in /home/romi/.local/lib/python3.5/site-packages (from matplotlib->minos-sim==0.5.3) (2.3.0)
Requirement already satisfied: python-dateutil>=2.1 in /home/romi/.local/lib/python3.5/site-packages (from matplotlib->minos-sim==0.5.3) (2.7.5)
Requirement already satisfied: cycler>=0.10 in /home/romi/.local/lib/python3.5/site-packages (from matplotlib->minos-sim==0.5.3) (0.10.0)
Requirement already satisfied: urllib3<1.25,>=1.21.1 in /home/romi/.local/lib/python3.5/site-packages (from requests->socketIO-client-2->minos-sim==0.5.3) (1.24.1)
Requirement already satisfied: certifi>=2017.4.17 in /home/romi/.local/lib/python3.5/site-packages (from requests->socketIO-client-2->minos-sim==0.5.3) (2018.10.15)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /home/romi/.local/lib/python3.5/site-packages (from requests->socketIO-client-2->minos-sim==0.5.3) (3.0.4)
Requirement already satisfied: idna<2.8,>=2.5 in /home/romi/.local/lib/python3.5/site-packages (from requests->socketIO-client-2->minos-sim==0.5.3) (2.7)
Requirement already satisfied: setuptools in /home/romi/.local/lib/python3.5/site-packages (from kiwisolver>=1.0.1->matplotlib->minos-sim==0.5.3) (40.5.0)
Installing collected packages: minos-sim
  Found existing installation: minos-sim 0.5.3
    Can't uninstall 'minos-sim'. No files were found to uninstall.
  Running setup.py develop for minos-sim
Successfully installed minos-sim
ans-qureshi commented 5 years ago

Am I facing this problem since I have installed ROS (Robot Operating System) too?