Skip to content

Commit

Permalink
Movida instalación de DeepVATS del entrypoint a Dockerfile.jupyter
Browse files Browse the repository at this point in the history
Para Debido a un error solucionar el error siguiente:

jupyter-1  | Obtaining file:///home/macu/work
jupyter-1  |   Preparing metadata (setup.py) ... done
jupyter-1  | Installing collected packages: dvats
jupyter-1  |   Running setup.py develop for dvats
jupyter-1  |     error: subprocess-exited-with-error
jupyter-1  |
jupyter-1  |     × python setup.py develop did not run successfully.
jupyter-1  |     │ exit code: 1
jupyter-1  |     ╰─> [32 lines of output]
jupyter-1  |         /home/macu/work/setup.py:1: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
jupyter-1  |           from pkg_resources import parse_version
jupyter-1  |         running develop
jupyter-1  |         /usr/local/share/miniconda3/envs/env/lib/python3.10/site-packages/setuptools/command/develop.py:40: EasyInstallDeprecationWarning: easy_install command is deprecated.
jupyter-1  |         !!
jupyter-1  |
jupyter-1  |                 ********************************************************************************
jupyter-1  |                 Please avoid running ``setup.py`` and ``easy_install``.
jupyter-1  |                 Instead, use pypa/build, pypa/installer or other
jupyter-1  |                 standards-based tools.
jupyter-1  |
jupyter-1  |                 See pypa/setuptools#917 for details.
jupyter-1  |                 ********************************************************************************
jupyter-1  |
jupyter-1  |         !!
jupyter-1  |           easy_install.initialize_options(self)
jupyter-1  |         /usr/local/share/miniconda3/envs/env/lib/python3.10/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
jupyter-1  |         !!
jupyter-1  |
jupyter-1  |                 ********************************************************************************
jupyter-1  |                 Please avoid running ``setup.py`` directly.
jupyter-1  |                 Instead, use pypa/build, pypa/installer or other
jupyter-1  |                 standards-based tools.
jupyter-1  |
jupyter-1  |                 See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
jupyter-1  |                 ********************************************************************************
jupyter-1  |
jupyter-1  |         !!
jupyter-1  |           self.initialize_options()
jupyter-1  |         running egg_info
jupyter-1  |         creating dvats.egg-info
jupyter-1  |         error: could not create 'dvats.egg-info': Permission denied
jupyter-1  |         [end of output]
jupyter-1  |
jupyter-1  |     note: This error originates from a subprocess, and is likely not a problem with pip.
jupyter-1  | error: subprocess-exited-with-error
jupyter-1  |
jupyter-1  | × python setup.py develop did not run successfully.
jupyter-1  | │ exit code: 1
jupyter-1  | ╰─> [32 lines of output]
jupyter-1  |     /home/macu/work/setup.py:1: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
jupyter-1  |       from pkg_resources import parse_version
jupyter-1  |     running develop
jupyter-1  |     /usr/local/share/miniconda3/envs/env/lib/python3.10/site-packages/setuptools/command/develop.py:40: EasyInstallDeprecationWarning: easy_install command is deprecated.
jupyter-1  |     !!
jupyter-1  |
jupyter-1  |             ********************************************************************************
jupyter-1  |             Please avoid running ``setup.py`` and ``easy_install``.
jupyter-1  |             Instead, use pypa/build, pypa/installer or other
jupyter-1  |             standards-based tools.
jupyter-1  |
jupyter-1  |             See pypa/setuptools#917 for details.
jupyter-1  |             ********************************************************************************
jupyter-1  |
jupyter-1  |     !!
jupyter-1  |       easy_install.initialize_options(self)
jupyter-1  |     /usr/local/share/miniconda3/envs/env/lib/python3.10/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
jupyter-1  |     !!
jupyter-1  |
jupyter-1  |             ********************************************************************************
jupyter-1  |             Please avoid running ``setup.py`` directly.
jupyter-1  |             Instead, use pypa/build, pypa/installer or other
jupyter-1  |             standards-based tools.
jupyter-1  |
jupyter-1  |             See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
jupyter-1  |             ********************************************************************************
jupyter-1  |
jupyter-1  |     !!
jupyter-1  |       self.initialize_options()
jupyter-1  |     running egg_info
jupyter-1  |     creating dvats.egg-info
jupyter-1  |     error: could not create 'dvats.egg-info': Permission denied
jupyter-1  |     [end of output]
jupyter-1  |
jupyter-1  | note: This error originates from a subprocess, and is likely not a problem with pip.

Se mueve la instalación de DeepVATS (la carpeta work) de entrypoint.sh al final de Dockerfile.jupyter, copiando únicamente las carpetas y ficheros necesarios para la instalación.
  • Loading branch information
misantamaria committed Oct 15, 2024
1 parent 4364ac9 commit dbb10ef
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
14 changes: 14 additions & 0 deletions docker/Dockerfile.jupyter
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,20 @@ RUN pip install aeon
# && conda deactivate
# # ---- Zero shot ---- #

COPY --chown=$UID:$GID ./Makefile $HOME/work/
COPY --chown=$UID:$GID ./nbs $HOME/work/
COPY --chown=$UID:$GID ./settings.ini $HOME/work/
COPY --chown=$UID:$GID ./dvats $HOME/work/
COPY --chown=$UID:$GID ./LICENSE $HOME/work/
COPY --chown=$UID:$GID ./MANIFEST.in $HOME/work/
COPY --chown=$UID:$GID ./nbs_pipeline $HOME/work/
COPY --chown=$UID:$GID ./setup.py $HOME/work/
COPY --chown=$UID:$GID ./README.md $HOME/work/

RUN cd $HOME/work \
&& pip install -e $HOME/work


ARG JUPYTER_TOKEN
ENV JUPYTER_TOKEN=${JUPYTER_TOKEN}

Expand Down
4 changes: 2 additions & 2 deletions docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
set -e
#echo $ENV_PREFIX
#conda list
ls -la /home/$USER/work
pip install -e /home/$USER/work
#ls -la /home/$USER/work
#pip install -e /home/$USER/work

echo $WANDB_ENTITY $USER $WANDB_PROJECT

Expand Down

0 comments on commit dbb10ef

Please sign in to comment.