Qcodes icon indicating copy to clipboard operation
Qcodes copied to clipboard

Default devcontainer for github codespaces

Open astafan8 opened this issue 4 years ago • 3 comments

todo:

  • [ ] make postCreateCommand work/execute, so that all pip requirements are installed automatically
  • [ ] figure out why pip install -e . results in a can't create or remove files in install directory error from pip, specically
 Running setup.py develop for qcodes
    ERROR: Command errored out with exit status 1:
     command: /opt/conda/envs/qcodes/bin/python -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/workspaces/Qcodes/setup.py'"'"'; __file__='"'"'/workspaces/Qcodes/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' develop --no-deps --user --prefix=
         cwd: /workspaces/Qcodes/
    Complete output (28 lines):
    running develop
    WARNING: The user site-packages directory is disabled.
    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: '/opt/conda/envs/qcodes/lib/python3.8/site-packages/test-easy-install-2313.write-test'
    
    The installation directory you specified (via --install-dir, --prefix, or
    the distutils default setting) was:
    
        /opt/conda/envs/qcodes/lib/python3.8/site-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/deprecated/easy_install.html
    
    Please make the appropriate changes for your system and try again.
    
    ----------------------------------------
ERROR: Command errored out with exit status 1: /opt/conda/envs/qcodes/bin/python -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/workspaces/Qcodes/setup.py'"'"'; __file__='"'"'/workspaces/Qcodes/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' develop --no-deps --user --prefix= Check the logs for full command output.

astafan8 avatar Sep 09 '21 22:09 astafan8

Codecov Report

Merging #3342 (06b7019) into master (1a0063e) will not change coverage. The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #3342   +/-   ##
=======================================
  Coverage   66.21%   66.21%           
=======================================
  Files         220      220           
  Lines       29253    29253           
=======================================
  Hits        19369    19369           
  Misses       9884     9884           

codecov[bot] avatar Sep 09 '21 22:09 codecov[bot]

figure out why pip install -e . results in a can't create or remove files in install directory error from pip, specically

Why not just move it into the dockerfile ?

jenshnielsen avatar Sep 10 '21 07:09 jenshnielsen

Why not just move it into the dockerfile ?

don't know, honestly. I think because it then becomes "part of the container" so that for every new branch one'd need either a new container or call "pip install -e ." anyway. I know too little about containers to give a good answer))

astafan8 avatar Sep 10 '21 09:09 astafan8