Error on Docker install

104 views
Skip to first unread message

alanphys

unread,
Apr 18, 2023, 5:34:49 AM4/18/23
to QATrack+
Hi Randle

I've returned to QATrack+ after a bit of a break on other projects. I'm trying to do a Docker install on a Fedora 36 system following the the instructions in the "Installing & Deploying QATrack+ with Docker". Everything proceeds well until I do docker-compose up, at which point I get the following error:

qatrack-django_1    | ERROR: Could not find a version that satisfies the requirement black==23.1.0 (from ve
rsions: 18.3a0, 18.3a1, 18.3a2, 18.3a3, 18.3a4, 18.4a0, 18.4a1, 18.4a2, 18.4a3, 18.4a4, 18.5b0, 18.5b1, 18.
6b0, 18.6b1, 18.6b2, 18.6b3, 18.6b4, 18.9b0, 19.3b0, 19.10b0, 20.8b0, 20.8b1, 21.4b0, 21.4b1, 21.4b2, 21.5b
0, 21.5b1, 21.5b2, 21.6b0, 21.7b0, 21.8b0, 21.9b0, 21.10b0, 21.11b0, 21.11b1, 21.12b0, 22.1.0, 22.3.0, 22.6
.0, 22.8.0)
qatrack-django_1    | ERROR: No matching distribution found for black==23.1.0
qatrack-django_1    | Traceback (most recent call last):
qatrack-django_1    |   File "<stdin>", line 6, in <module>
qatrack-django_1    |   File "/usr/src/qatrackplus/deploy/docker/docker_utilities.py", line 28, in <module>
qatrack-django_1    |     import psycopg2
qatrack-django_1    | ModuleNotFoundError: No module named 'psycopg2'
qatrack-django_1    | Traceback (most recent call last):
qatrack-django_1    |   File "/usr/src/qatrackplus/manage.py", line 8, in <module>
qatrack-django_1    |     from django.core.management import execute_from_command_line
qatrack-django_1    | ModuleNotFoundError: No module named 'django'
qatrack-django_1    | Traceback (most recent call last):
qatrack-django_1    |   File "manage.py", line 8, in <module>
qatrack-django_1    |     from django.core.management import execute_from_command_line
qatrack-django_1    | ModuleNotFoundError: No module named 'django'
qatrack-django_1    | Traceback (most recent call last):
qatrack-django_1    |   File "manage.py", line 8, in <module>
qatrack-django_1    |     from django.core.management import execute_from_command_line
qatrack-django_1    | ModuleNotFoundError: No module named 'django'
qatrack-django_1    | cron is running.
qatrack-django_1    | deploy/docker/init.sh: line 61: gunicorn: command not found
docker_qatrack-django_1 exited with code 127

As far as I can see Black is installed under ~/.docker-compose/lib64/python3.10/site-packages/

I am in the virtual environment and SELinux is set to not enforcing.

I tried installing Black manually, but I can't even get into the qatrack-django shell.

My system python is 3.10 and I'm suspecting a conflict somewhere.

Any pointers will be welcome.

Regards
Alan

Randle Taylor

unread,
May 10, 2023, 9:36:18 PM5/10/23
to alanphys, QATrack+
Hi Alan,

Sorry for the slow reply. Not sure if you've already gotten past this or not but it could be a Python version issue, I haven't had a chance to test Python 3.10 yet (and the Dockerfile was contributed by Simon Biggs who's busy with other endeavours these days!).

Randy

--
You received this message because you are subscribed to the Google Groups "QATrack+" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qatrack+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/qatrack/3891ab9e-e4fa-46d7-b81f-182047e06b3dn%40googlegroups.com.

Andres Sierra

unread,
Nov 23, 2023, 9:29:28 AM11/23/23
to QATrack+
Hi both, I encounter same error and found that a requirements file (requirements/base.txt) had been changedby Randle in febrary, modifiyng the version of black. The commit is here
So I changed the file, and started from the beggining and got rid of the error.

Bad news is that I'm now facing other error: 

qatrack-django_1    |     return _bootstrap._gcd_import(name[level:], package, level)
qatrack-django_1    |   File "/usr/src/qatrackplus/qatrack/settings.py", line 742, in <module>
qatrack-django_1    |     from .local_settings import *  # noqa: F403, F401, E402
qatrack-django_1    | ModuleNotFoundError: No module named 'qatrack.local_settings'
qatrack-django_1    | [2023-11-23 13:55:24 +0000] [82] [INFO] Worker exiting (pid: 82)

I found a thread in the group with same problem, but I'm now struggling about how to change that file in the container.

Yuri Kirpichev

unread,
Feb 12, 2024, 10:50:41 AMFeb 12
to QATrack+
I do have same error😭

Pedro Argolo Piedade

unread,
Feb 13, 2024, 10:37:55 AMFeb 13
to Yuri Kirpichev, QATrack+
Try to install python 3.8. 
I had other errors using Linux and solved changing the python version and a few packages versions. I edit on the file requirements.txt.

My best regards and good Carnaval!

--
You received this message because you are subscribed to the Google Groups "QATrack+" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qatrack+u...@googlegroups.com.

Yuri Kirpichev

unread,
Feb 26, 2024, 8:52:41 AMFeb 26
to QATrack+
Thank you Pedro for your fast replay.

Could I kindly ask you?
We have file requirements.txt which is rather empty and have only one line: "-r requirements/docker.txt"
And folder requirements with list of files

But are you sure that we define the python version at requirements.txt or at docker-compose file (./qatrackplus/deploy/docker/docker-compose.yml)


Thank you very much in advance, Yury  

Pedro Argolo Piedade

unread,
Feb 26, 2024, 9:07:15 AMFeb 26
to Yuri Kirpichev, QATrack+
Hi Yuri, how are you?

Sorry for the late reply and I forgot to mention that the file is this in the picture.
In our installation we had to change the version of the package black==23.1.0 to 22.8.0 (version that ran on Ubutun Linux Mini)
image.png
My best regards



--
Pedro Argôlo Piedade
Físico Médico - Radioterapia São Sebastião
www.radioterapiass.com.br
+55-048-91672105
pedroar...@gmail.com
skype: pedroargolopie
whatsapp: +554891672105

Yuri Kirpichev

unread,
Feb 26, 2024, 11:42:59 AMFeb 26
to QATrack+

thank you, I will try!
Reply all
Reply to author
Forward
0 new messages