Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI failed to build documentation when creating pip installation #766

Closed
prjemian opened this issue Dec 9, 2022 · 2 comments · Fixed by #765
Closed

CI failed to build documentation when creating pip installation #766

prjemian opened this issue Dec 9, 2022 · 2 comments · Fixed by #765
Assignees
Milestone

Comments

@prjemian
Copy link
Contributor

prjemian commented Dec 9, 2022

As noted in #764, must repair for PR in progress:

Run pip install --no-deps -e .
Defaulting to user installation because normal site-packages is not writeable
Obtaining file:///home/runner/work/apstools/apstools
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Checking if build backend supports build_editable: started
  Checking if build backend supports build_editable: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
  Installing backend dependencies: started
  Installing backend dependencies: finished with status 'done'
  Preparing metadata (pyproject.toml): started
  Preparing metadata (pyproject.toml): finished with status 'done'
Installing collected packages: apstools
  Running setup.py develop for apstools
    error: subprocess-exited-with-error
    
    × python setup.py develop did not run successfully.
    │ exit code: 1
    ╰─> [32 lines of output]
        running develop
        /usr/lib/python3/dist-packages/setuptools/command/easy_install.py:158: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
          warnings.warn(
        WARNING: The user site-packages directory is disabled.
        /usr/lib/python3/dist-packages/setuptools/command/install.py:3[4](https://github.com/BCDA-APS/apstools/actions/runs/3660542583/jobs/6187804034#step:6:5): SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
          warnings.warn(
        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.10/dist-packages/test-easy-install-2[5](https://github.com/BCDA-APS/apstools/actions/runs/3660542583/jobs/6187804034#step:6:6)[7](https://github.com/BCDA-APS/apstools/actions/runs/3660542583/jobs/6187804034#step:6:8)7.write-test'
        
        The installation directory you specified (via --install-dir, --prefix, or
        the distutils default setting) was:
        
            /usr/local/lib/python3.10/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.pypa.io/en/latest/deprecated/easy_install.html
        
        Please make the appropriate changes for your system and try again.
        
        [end of output]
    
    note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× python setup.py develop did not run successfully.
│ exit code: 1
╰─> [32 lines of output]
    running develop
    /usr/lib/python3/dist-packages/setuptools/command/easy_install.py:15[8](https://github.com/BCDA-APS/apstools/actions/runs/3660542583/jobs/6187804034#step:6:9): EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
      warnings.warn(
    WARNING: The user site-packages directory is disabled.
    /usr/lib/python3/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
      warnings.warn(
    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.[10](https://github.com/BCDA-APS/apstools/actions/runs/3660542583/jobs/6187804034#step:6:11)/dist-packages/test-easy-install-[25](https://github.com/BCDA-APS/apstools/actions/runs/3660542583/jobs/6187804034#step:6:26)77.write-test'
    
    The installation directory you specified (via --install-dir, --prefix, or
    the distutils default setting) was:
    
        /usr/local/lib/python3.10/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.pypa.io/en/latest/deprecated/easy_install.html
    
    Please make the appropriate changes for your system and try again.
    
    [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
Error: Process completed with exit code 1.
@prjemian prjemian added this to the 1.6.10 milestone Dec 9, 2022
@prjemian prjemian self-assigned this Dec 9, 2022
prjemian added a commit that referenced this issue Dec 9, 2022
@prjemian
Copy link
Contributor Author

prjemian commented Dec 9, 2022

Not certain that d45cf61 has repaired this problem but CI will not run a PR that does not merge to main, so re-opening. If successful, will mark as repaired in #765.

@prjemian
Copy link
Contributor Author

prjemian commented Dec 9, 2022

Error was not changed by d45cf61.

prjemian added a commit that referenced this issue Dec 12, 2022
prjemian added a commit that referenced this issue Dec 12, 2022
prjemian added a commit that referenced this issue Dec 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant