Open ilusha0561 opened 3 months ago
13:35:37 #60 7.232 if sys.path[0] in ("", os.getcwd()): 13:35:37 #60 7.232 ^^^^^^^^^^^ 13:35:37 #60 7.232 FileNotFoundError: [Errno 2] No such file or directory
this is going to be a problem with your dockerfile and not with poetry
13:49:15 #59 0.808 Skipping virtualenv creation, as specified in config file.
13:49:15 #59 0.901 Updating dependencies
13:49:15 #59 0.901 Resolving dependencies...
13:49:22 #59 7.222
13:49:22 #59 7.222 Unable to determine package info for path: /usr/local/src/project
13:49:22 #59 7.222
13:49:22 #59 7.222 Command ['/tmp/tmp6me8g_3e/.venv/bin/python', '-m', 'pip', 'install', '--disable-pip-version-check', '--ignore-installed', '--no-input', 'build==1.0.3', 'pyproject_hooks==1.0.0'] errored with the following return code 1
13:49:22 #59 7.222
13:49:22 #59 7.222 Output:
13:49:22 #59 7.222 Traceback (most recent call last):
13:49:22 #59 7.222 File "
full logs
django-gantt = { git = "https://git.omega-r.club/SM_SP/project.git", branch = "Backend" }
looks like nonsense?
yes
django-gantt = { git = "https://git.omega-r.club/SM_SP/project/-/blob/main/django-gantt.git?ref_type=heads" }
16:32:36 #60 0.757 Skipping virtualenv creation, as specified in config file. 16:32:36 #60 0.927 Updating dependencies 16:32:36 #60 0.927 Resolving dependencies... 16:32:37 #60 1.776 16:32:37 #60 1.776 Redirected from URL https://git.omega-r.club/SM_SP/project/-/blob/main/django-gantt.git/info/refs?service=git-upload-pack to URL https://git.omega-r.club/SM_SP/project/-/tree/main without info/refs?service=git-upload-pack 16:32:37 #60 ERROR: process "/bin/sh -c poetry install --no-root" did not complete successfully: exit code: 1 16:32:37 ------ 16:32:37 > [celery_beat 7/9] RUN poetry install --no-root: 16:32:37 0.757 Skipping virtualenv creation, as specified in config file. 16:32:37 0.927 Updating dependencies 16:32:37 0.927 Resolving dependencies... 16:32:37 1.776 16:32:37 1.776 Redirected from URL https://git.omega-r.club/SM_SP/project/-/blob/main/django-gantt.git/info/refs?service=git-upload-pack to URL https://git.omega-r.club/SM_SP/project/-/tree/main without info/refs?service=git-upload-pack 16:32:37 ------ 16:32:37 failed to solve: process "/bin/sh -c poetry install --no-root" did not complete successfully: exit code: 1 16:32:37 Process exited with code 17 16:32:37 Process exited with code 17 (Step: Build and Deploy (Command Line)) 16:32:37 Step Build and Deploy (Command Line) failed 16:32:37 Stopping performance monitoring process 16:32:41 Performance monitoring process stopped 16:32:41 Publishing performance monitoring build stages data
help lpease
[image: image.png] I do the same as in the documentation
пт, 21 июн. 2024 г. в 19:04, David Hotham @.***>:
read the docs https://python-poetry.org/docs/dependency-specification/#git-dependencies
— Reply to this email directly, view it on GitHub https://github.com/python-poetry/poetry/issues/9512#issuecomment-2183030384, or unsubscribe https://github.com/notifications/unsubscribe-auth/BJLMZM2NUV43BLK3F5ATNX3ZIRFIPAVCNFSM6AAAAABJVUPHQ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBTGAZTAMZYGQ . You are receiving this because you authored the thread.Message ID: @.***>
help please
пт, 21 июн. 2024 г. в 19:31, Ilya Nosalskiy @.***>:
[image: image.png] I do the same as in the documentation
пт, 21 июн. 2024 г. в 19:04, David Hotham @.***>:
read the docs https://python-poetry.org/docs/dependency-specification/#git-dependencies
— Reply to this email directly, view it on GitHub https://github.com/python-poetry/poetry/issues/9512#issuecomment-2183030384, or unsubscribe https://github.com/notifications/unsubscribe-auth/BJLMZM2NUV43BLK3F5ATNX3ZIRFIPAVCNFSM6AAAAABJVUPHQ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBTGAZTAMZYGQ . You are receiving this because you authored the thread.Message ID: @.***>
[image: image.png] docker : FROM python:3.11 ENV PYTHONUNBUFFERED 1 WORKDIR /usr/local/src/project
RUN apt-get update && \ apt-get install -y locales python3-dev libldap2-dev libffi-dev libsasl2-dev libssl-dev librdkafka-dev wkhtmltopdf && \ echo ru_RU.UTF-8 UTF-8 >> /etc/locale.gen && \ locale-gen
RUN python -m pip install --upgrade pip && \ pip install poetry==1.7.0 && \ poetry config virtualenvs.create false
COPY pyproject.toml poetry.toml /usr/local/src/project/
COPY django-gantt.git /usr/local/src/project/django-gantt.git
RUN ls -al /usr/local/src/project
RUN poetry install --no-root
COPY . /usr/local/src/project/
RUN mkdir -p /app/wps_project/static && \ python manage.py collectstatic --noinput
CMD python manage.py migrate && /usr/local/bin/gunicorn --config /app/conf.py wps_project.wsgi:application -b :80
django-gantt = { path = "django-gantt.git" }
пт, 21 июн. 2024 г. в 19:39, Ilya Nosalskiy @.***>:
help please
пт, 21 июн. 2024 г. в 19:31, Ilya Nosalskiy @.***>:
[image: image.png] I do the same as in the documentation
пт, 21 июн. 2024 г. в 19:04, David Hotham @.***>:
read the docs https://python-poetry.org/docs/dependency-specification/#git-dependencies
— Reply to this email directly, view it on GitHub https://github.com/python-poetry/poetry/issues/9512#issuecomment-2183030384, or unsubscribe https://github.com/notifications/unsubscribe-auth/BJLMZM2NUV43BLK3F5ATNX3ZIRFIPAVCNFSM6AAAAABJVUPHQ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBTGAZTAMZYGQ . You are receiving this because you authored the thread.Message ID: @.***>
What am I doing wrong
пт, 21 июн. 2024 г., 19:50 Ilya Nosalskiy @.***>:
[image: image.png] docker : FROM python:3.11 ENV PYTHONUNBUFFERED 1 WORKDIR /usr/local/src/project
Установка необходимых пакетов
RUN apt-get update && \ apt-get install -y locales python3-dev libldap2-dev libffi-dev libsasl2-dev libssl-dev librdkafka-dev wkhtmltopdf && \ echo ru_RU.UTF-8 UTF-8 >> /etc/locale.gen && \ locale-gen
Установка pip и poetry
RUN python -m pip install --upgrade pip && \ pip install poetry==1.7.0 && \ poetry config virtualenvs.create false
Копирование файлов pyproject.toml и poetry.toml
COPY pyproject.toml poetry.toml /usr/local/src/project/
COPY django-gantt.git /usr/local/src/project/django-gantt.git
Вывод содержимого директории для отладки
RUN ls -al /usr/local/src/project
Установка зависимостей
RUN poetry install --no-root
Копирование остальных файлов проекта
COPY . /usr/local/src/project/
Сборка статических файлов
RUN mkdir -p /app/wps_project/static && \ python manage.py collectstatic --noinput
Команда для запуска приложения
CMD python manage.py migrate && /usr/local/bin/gunicorn --config /app/conf.py wps_project.wsgi:application -b :80
django-gantt = { path = "django-gantt.git" }
пт, 21 июн. 2024 г. в 19:39, Ilya Nosalskiy @.***>:
help please
пт, 21 июн. 2024 г. в 19:31, Ilya Nosalskiy @.***>:
[image: image.png] I do the same as in the documentation
пт, 21 июн. 2024 г. в 19:04, David Hotham @.***>:
read the docs https://python-poetry.org/docs/dependency-specification/#git-dependencies
— Reply to this email directly, view it on GitHub https://github.com/python-poetry/poetry/issues/9512#issuecomment-2183030384, or unsubscribe https://github.com/notifications/unsubscribe-auth/BJLMZM2NUV43BLK3F5ATNX3ZIRFIPAVCNFSM6AAAAABJVUPHQ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBTGAZTAMZYGQ . You are receiving this because you authored the thread.Message ID: @.***>
Help please
пт, 21 июн. 2024 г., 23:12 Ilya Nosalskiy @.***>:
What am I doing wrong
пт, 21 июн. 2024 г., 19:50 Ilya Nosalskiy @.***>:
[image: image.png] docker : FROM python:3.11 ENV PYTHONUNBUFFERED 1 WORKDIR /usr/local/src/project
Установка необходимых пакетов
RUN apt-get update && \ apt-get install -y locales python3-dev libldap2-dev libffi-dev libsasl2-dev libssl-dev librdkafka-dev wkhtmltopdf && \ echo ru_RU.UTF-8 UTF-8 >> /etc/locale.gen && \ locale-gen
Установка pip и poetry
RUN python -m pip install --upgrade pip && \ pip install poetry==1.7.0 && \ poetry config virtualenvs.create false
Копирование файлов pyproject.toml и poetry.toml
COPY pyproject.toml poetry.toml /usr/local/src/project/
COPY django-gantt.git /usr/local/src/project/django-gantt.git
Вывод содержимого директории для отладки
RUN ls -al /usr/local/src/project
Установка зависимостей
RUN poetry install --no-root
Копирование остальных файлов проекта
COPY . /usr/local/src/project/
Сборка статических файлов
RUN mkdir -p /app/wps_project/static && \ python manage.py collectstatic --noinput
Команда для запуска приложения
CMD python manage.py migrate && /usr/local/bin/gunicorn --config /app/conf.py wps_project.wsgi:application -b :80
django-gantt = { path = "django-gantt.git" }
пт, 21 июн. 2024 г. в 19:39, Ilya Nosalskiy @.***>:
help please
пт, 21 июн. 2024 г. в 19:31, Ilya Nosalskiy @.***
:
[image: image.png] I do the same as in the documentation
пт, 21 июн. 2024 г. в 19:04, David Hotham @.***>:
read the docs https://python-poetry.org/docs/dependency-specification/#git-dependencies
— Reply to this email directly, view it on GitHub https://github.com/python-poetry/poetry/issues/9512#issuecomment-2183030384, or unsubscribe https://github.com/notifications/unsubscribe-auth/BJLMZM2NUV43BLK3F5ATNX3ZIRFIPAVCNFSM6AAAAABJVUPHQ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBTGAZTAMZYGQ . You are receiving this because you authored the thread.Message ID: @.***>
Help please
сб, 22 июн. 2024 г., 08:42 Ilya Nosalskiy @.***>:
Help please
пт, 21 июн. 2024 г., 23:12 Ilya Nosalskiy @.***>:
What am I doing wrong
пт, 21 июн. 2024 г., 19:50 Ilya Nosalskiy @.***>:
[image: image.png] docker : FROM python:3.11 ENV PYTHONUNBUFFERED 1 WORKDIR /usr/local/src/project
Установка необходимых пакетов
RUN apt-get update && \ apt-get install -y locales python3-dev libldap2-dev libffi-dev libsasl2-dev libssl-dev librdkafka-dev wkhtmltopdf && \ echo ru_RU.UTF-8 UTF-8 >> /etc/locale.gen && \ locale-gen
Установка pip и poetry
RUN python -m pip install --upgrade pip && \ pip install poetry==1.7.0 && \ poetry config virtualenvs.create false
Копирование файлов pyproject.toml и poetry.toml
COPY pyproject.toml poetry.toml /usr/local/src/project/
COPY django-gantt.git /usr/local/src/project/django-gantt.git
Вывод содержимого директории для отладки
RUN ls -al /usr/local/src/project
Установка зависимостей
RUN poetry install --no-root
Копирование остальных файлов проекта
COPY . /usr/local/src/project/
Сборка статических файлов
RUN mkdir -p /app/wps_project/static && \ python manage.py collectstatic --noinput
Команда для запуска приложения
CMD python manage.py migrate && /usr/local/bin/gunicorn --config /app/conf.py wps_project.wsgi:application -b :80
django-gantt = { path = "django-gantt.git" }
пт, 21 июн. 2024 г. в 19:39, Ilya Nosalskiy @.***
:
help please
пт, 21 июн. 2024 г. в 19:31, Ilya Nosalskiy @.***
:
[image: image.png] I do the same as in the documentation
пт, 21 июн. 2024 г. в 19:04, David Hotham @.***>:
read the docs https://python-poetry.org/docs/dependency-specification/#git-dependencies
— Reply to this email directly, view it on GitHub https://github.com/python-poetry/poetry/issues/9512#issuecomment-2183030384, or unsubscribe https://github.com/notifications/unsubscribe-auth/BJLMZM2NUV43BLK3F5ATNX3ZIRFIPAVCNFSM6AAAAABJVUPHQ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBTGAZTAMZYGQ . You are receiving this because you authored the thread.Message ID: @.***>
logs
[app 9/11] RUN poetry install --no-root: 10:58:01 0.688 Skipping virtualenv creation, as specified in config file. 10:58:01 0.788 Updating dependencies 10:58:01 0.788 Resolving dependencies... 10:58:01 0.792 10:58:01 0.792 file could not be opened successfully: 10:58:01 0.792 - method gz: ReadError('not a gzip file') 10:58:01 0.792 - method bz2: ReadError('not a bzip2 file') 10:58:01 0.792 - method xz: ReadError('not an lzma file') 10:58:01 0.792 - method tar: ReadError('invalid header') 10:58:01 ------ 10:58:01 failed to solve: process "/bin/sh -c poetry install --no-root" did not complete successfully: exit code: 1 10:58:01 Process exited with code 17 10:58:01 Process exited with code 17 (Step: Build and Deploy (Command Line)) 10:58:01 Step Build and Deploy (Command Line) failed
dockerfile FROM python:3.11 ENV PYTHONUNBUFFERED 1 WORKDIR /usr/local/src/project
RUN apt-get update && \ apt-get install -y locales python3-dev libldap2-dev libffi-dev libsasl2-dev libssl-dev librdkafka-dev wkhtmltopdf && \ echo ru_RU.UTF-8 UTF-8 >> /etc/locale.gen && \ locale-gen
RUN python -m pip install --upgrade pip && \ pip install poetry && \ poetry config virtualenvs.create false
COPY pyproject.toml poetry.toml /usr/local/src/project/ COPY django-gantt.git /usr/local/src/project/django-gantt
RUN ls -al /usr/local/src/project RUN find /usr/local/src/project -type d -exec chmod 755 {} \; && \ find /usr/local/src/project -type f -exec chmod 644 {} \;
RUN poetry install --no-root
COPY . /usr/local/src/project/
RUN mkdir -p /app/wps_project/static && \ python manage.py collectstatic --noinput
CMD python manage.py migrate && /usr/local/bin/gunicorn --config /app/conf.py wps_project.wsgi:application -b :80 toml django-gantt = { path = "./django-gantt" }
вс, 23 июн. 2024 г. в 11:00, Ilya Nosalskiy @.***>:
Help please
сб, 22 июн. 2024 г., 08:42 Ilya Nosalskiy @.***>:
Help please
пт, 21 июн. 2024 г., 23:12 Ilya Nosalskiy @.***>:
What am I doing wrong
пт, 21 июн. 2024 г., 19:50 Ilya Nosalskiy @.***>:
[image: image.png] docker : FROM python:3.11 ENV PYTHONUNBUFFERED 1 WORKDIR /usr/local/src/project
Установка необходимых пакетов
RUN apt-get update && \ apt-get install -y locales python3-dev libldap2-dev libffi-dev libsasl2-dev libssl-dev librdkafka-dev wkhtmltopdf && \ echo ru_RU.UTF-8 UTF-8 >> /etc/locale.gen && \ locale-gen
Установка pip и poetry
RUN python -m pip install --upgrade pip && \ pip install poetry==1.7.0 && \ poetry config virtualenvs.create false
Копирование файлов pyproject.toml и poetry.toml
COPY pyproject.toml poetry.toml /usr/local/src/project/
COPY django-gantt.git /usr/local/src/project/django-gantt.git
Вывод содержимого директории для отладки
RUN ls -al /usr/local/src/project
Установка зависимостей
RUN poetry install --no-root
Копирование остальных файлов проекта
COPY . /usr/local/src/project/
Сборка статических файлов
RUN mkdir -p /app/wps_project/static && \ python manage.py collectstatic --noinput
Команда для запуска приложения
CMD python manage.py migrate && /usr/local/bin/gunicorn --config /app/conf.py wps_project.wsgi:application -b :80
django-gantt = { path = "django-gantt.git" }
пт, 21 июн. 2024 г. в 19:39, Ilya Nosalskiy @.***
:
help please
пт, 21 июн. 2024 г. в 19:31, Ilya Nosalskiy < @.***>:
[image: image.png] I do the same as in the documentation
пт, 21 июн. 2024 г. в 19:04, David Hotham @.***>:
read the docs https://python-poetry.org/docs/dependency-specification/#git-dependencies
— Reply to this email directly, view it on GitHub https://github.com/python-poetry/poetry/issues/9512#issuecomment-2183030384, or unsubscribe https://github.com/notifications/unsubscribe-auth/BJLMZM2NUV43BLK3F5ATNX3ZIRFIPAVCNFSM6AAAAABJVUPHQ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBTGAZTAMZYGQ . You are receiving this because you authored the thread.Message ID: @.***>
help please
пн, 24 июн. 2024 г. в 11:21, Ilya Nosalskiy @.***>:
logs
[app 9/11] RUN poetry install --no-root: 10:58:01 0.688 Skipping virtualenv creation, as specified in config file. 10:58:01 0.788 Updating dependencies 10:58:01 0.788 Resolving dependencies... 10:58:01 0.792 10:58:01 0.792 file could not be opened successfully: 10:58:01 0.792 - method gz: ReadError('not a gzip file') 10:58:01 0.792 - method bz2: ReadError('not a bzip2 file') 10:58:01 0.792 - method xz: ReadError('not an lzma file') 10:58:01 0.792 - method tar: ReadError('invalid header') 10:58:01 ------ 10:58:01 failed to solve: process "/bin/sh -c poetry install --no-root" did not complete successfully: exit code: 1 10:58:01 Process exited with code 17 10:58:01 Process exited with code 17 (Step: Build and Deploy (Command Line)) 10:58:01 Step Build and Deploy (Command Line) failed
dockerfile FROM python:3.11 ENV PYTHONUNBUFFERED 1 WORKDIR /usr/local/src/project
Установка необходимых пакетов
RUN apt-get update && \ apt-get install -y locales python3-dev libldap2-dev libffi-dev libsasl2-dev libssl-dev librdkafka-dev wkhtmltopdf && \ echo ru_RU.UTF-8 UTF-8 >> /etc/locale.gen && \ locale-gen
Установка pip и poetry
RUN python -m pip install --upgrade pip && \ pip install poetry && \ poetry config virtualenvs.create false
Копирование файлов pyproject.toml и poetry.toml
COPY pyproject.toml poetry.toml /usr/local/src/project/ COPY django-gantt.git /usr/local/src/project/django-gantt
Вывод содержимого директории для отладки
RUN ls -al /usr/local/src/project RUN find /usr/local/src/project -type d -exec chmod 755 {} \; && \ find /usr/local/src/project -type f -exec chmod 644 {} \;
Установка зависимостей
RUN poetry install --no-root
Копирование остальных файлов проекта
COPY . /usr/local/src/project/
Сборка статических файлов
RUN mkdir -p /app/wps_project/static && \ python manage.py collectstatic --noinput
Команда для запуска приложения
CMD python manage.py migrate && /usr/local/bin/gunicorn --config /app/conf.py wps_project.wsgi:application -b :80 toml django-gantt = { path = "./django-gantt" }
вс, 23 июн. 2024 г. в 11:00, Ilya Nosalskiy @.***>:
Help please
сб, 22 июн. 2024 г., 08:42 Ilya Nosalskiy @.***>:
Help please
пт, 21 июн. 2024 г., 23:12 Ilya Nosalskiy @.***>:
What am I doing wrong
пт, 21 июн. 2024 г., 19:50 Ilya Nosalskiy @.***>:
[image: image.png] docker : FROM python:3.11 ENV PYTHONUNBUFFERED 1 WORKDIR /usr/local/src/project
Установка необходимых пакетов
RUN apt-get update && \ apt-get install -y locales python3-dev libldap2-dev libffi-dev libsasl2-dev libssl-dev librdkafka-dev wkhtmltopdf && \ echo ru_RU.UTF-8 UTF-8 >> /etc/locale.gen && \ locale-gen
Установка pip и poetry
RUN python -m pip install --upgrade pip && \ pip install poetry==1.7.0 && \ poetry config virtualenvs.create false
Копирование файлов pyproject.toml и poetry.toml
COPY pyproject.toml poetry.toml /usr/local/src/project/
COPY django-gantt.git /usr/local/src/project/django-gantt.git
Вывод содержимого директории для отладки
RUN ls -al /usr/local/src/project
Установка зависимостей
RUN poetry install --no-root
Копирование остальных файлов проекта
COPY . /usr/local/src/project/
Сборка статических файлов
RUN mkdir -p /app/wps_project/static && \ python manage.py collectstatic --noinput
Команда для запуска приложения
CMD python manage.py migrate && /usr/local/bin/gunicorn --config /app/conf.py wps_project.wsgi:application -b :80
django-gantt = { path = "django-gantt.git" }
пт, 21 июн. 2024 г. в 19:39, Ilya Nosalskiy < @.***>:
help please
пт, 21 июн. 2024 г. в 19:31, Ilya Nosalskiy < @.***>:
[image: image.png] I do the same as in the documentation
пт, 21 июн. 2024 г. в 19:04, David Hotham @.***
:
read the docs https://python-poetry.org/docs/dependency-specification/#git-dependencies
— Reply to this email directly, view it on GitHub https://github.com/python-poetry/poetry/issues/9512#issuecomment-2183030384, or unsubscribe https://github.com/notifications/unsubscribe-auth/BJLMZM2NUV43BLK3F5ATNX3ZIRFIPAVCNFSM6AAAAABJVUPHQ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBTGAZTAMZYGQ . You are receiving this because you authored the thread.Message ID: @.***>
Description
help
Workarounds
--
Poetry Installation Method
pip
Operating System
ubuntu
Poetry Version
1.7.0
Poetry Configuration
Python Sysconfig
No response
Example pyproject.toml
Poetry Runtime Logs