plasticityai / magnitude

A fast, efficient universal vector embedding utility package.
MIT License
1.62k stars 119 forks source link

Error while trying to pip install pymagnitude #48

Closed shaurya27 closed 5 years ago

shaurya27 commented 5 years ago

  Using cached https://files.pythonhosted.org/packages/0a/a3/b9a34d22ed8c0ed59b00ff55092129641cdfa09d82f9abdc5088051a5b0c/pymagnitude-0.1.120.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-guvdu2_b/pymagnitude/setup.py", line 178, in <module>
        'a+')
    PermissionError: [Errno 13] Permission denied: '/tmp/magnitude.install'

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-guvdu2_b/pymagnitude/```
AjayP13 commented 5 years ago

Try to use sudo when installing.

On Wed, Feb 13, 2019, 11:17 PM Shaurya notifications@github.com wrote:

Using cached https://files.pythonhosted.org/packages/0a/a3/b9a34d22ed8c0ed59b00ff55092129641cdfa09d82f9abdc5088051a5b0c/pymagnitude-0.1.120.tar.gz Complete output from command python setup.py egg_info: Traceback (most recent call last): File "", line 1, in File "/tmp/pip-install-guvdu2_b/pymagnitude/setup.py", line 178, in 'a+') PermissionError: [Errno 13] Permission denied: '/tmp/magnitude.install'

----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-guvdu2_b/pymagnitude/```

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/plasticityai/magnitude/issues/48, or mute the thread https://github.com/notifications/unsubscribe-auth/AFJ2EcQ4gO_yV0hWICQDhmzKMGmb65Xsks5vNQ2dgaJpZM4a6-pE .

mittalsuraj18 commented 5 years ago

is it possible to resolve this issue without sudo. asking because i am trying to install it in a workspace computer without sudo access

AjayP13 commented 5 years ago

Seems like if you set ‘TMPDIR‘ in your shell to a directory you can access without sudo it would work. Note, that even if you get Magnitude to install it uses the temporary directory a lot at run time, so you will need to set this variable every time it the shell in which you run Magnitude. I would recommend adding it to your bashrc file.

sidhantls commented 3 years ago

Had the same permissions during installation, but created a workaround for this. The error is on L178 of setup.py. Use cwd instead of the temp dir, which requires permission to access, and install from source

Try installing from this fork. git clone --single-branch --branch mag_install https://github.com/sid-sundrani/magnitude and run pip install .