Averell7 / PdfBooklet

Creates booklets from Pdf files, and much more
45 stars 13 forks source link

Virtualenv install does not work #16

Closed haizaar closed 3 years ago

haizaar commented 4 years ago

Good day,

I'm trying to install PDFBooklet inside virtualenv and it fails:

$ pip install -e .
Obtaining file:///tmp/PdfBooklet
Installing collected packages: pdfbooklet
  Running setup.py develop for pdfbooklet
    ERROR: Command errored out with exit status 1:
     command: /home/.../venvs/PdfBooklet-FnhSdK-e/bin/python3.7 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/PdfBooklet/setup.py'"'"'; __file__='"'"'/tmp/PdfBooklet/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
         cwd: /tmp/PdfBooklet/
    Complete output (17 lines):
    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/lib/python3.7/site-packages'

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

        /usr/lib/python3.7/site-packages/

    This directory does not currently exist.  Please create it and try again, or
    choose a different installation directory (using the -d or --install-dir
    option).

    ----------------------------------------
ERROR: Command errored out with exit status 1: /home/.../venvs/PdfBooklet-FnhSdK-e/bin/python3.7 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/PdfBooklet/setup.py'"'"'; __file__='"'"'/tmp/PdfBooklet/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 Check the logs for full command output.
Averell7 commented 3 years ago

I am sorry I never answered, haizaar, but I don't know what I can do to help you here. Unfortunately I am programming PdfBooklet in Windows, and I don't have much experience of Linux installation. Why do you encounter a "permission denied" is unclear for me.

haizaar commented 3 years ago

Never mind. Let's close it for now then.