Closed rogue780 closed 3 years ago
Thanks for opening your first issue here! Be sure to follow the issue template!
Adding another data point. I'm seeing the same thing. Looks like someone else is seeing this too: No module names 'six' and 'pkg_resources' #88
Issue started sometime in the past two weeks (could have been up to three weeks). My last successful run was on 11/2/20.
I was also have this issue with a new install as I have never used this service before.
I was able to fix it by connecting to the container and installing pip and the missing/broken packages. I used the below commands then restarted and it started up:
apk add py3-pip
cd /app/diskover && \
pip3 install --no-cache-dir -r requirements.txt
Key output from this command is that it lowers the version of idna and requests to idna-2.8 and requests-2.22.0
Requirement already satisfied: six in /usr/lib/python3.8/site-packages (from progressbar2==3.42.0->-r requirements.txt (line 4)) (1.15.0)
Requirement already satisfied: click>=5.0 in /usr/lib/python3.8/site-packages (from rq==1.1.0->-r requirements.txt (line 6)) (7.1.2)
Installing collected packages: idna, requests
Attempting uninstall: idna
Found existing installation: idna 2.9
Uninstalling idna-2.9:
Successfully uninstalled idna-2.9
Attempting uninstall: requests
Found existing installation: requests 2.23.0
Uninstalling requests-2.23.0:
Successfully uninstalled requests-2.23.0
Successfully installed idna-2.8 requests-2.22.0
I built the image locally and it looks like during the apk add py3-pip
installs these packages:
(27/50) Installing py3-six (1.15.0-r0)
(28/50) Installing py3-packaging (20.4-r0)
(29/50) Installing py3-setuptools (47.0.0-r0)
(30/50) Installing py3-chardet (3.0.4-r4)
(31/50) Installing py3-idna (2.9-r0)
(32/50) Installing py3-certifi (2020.4.5.1-r0)
(33/50) Installing py3-urllib3 (1.25.9-r0)
(34/50) Installing py3-requests (2.23.0-r0)
Then when it is cleaning up the image it removes py3-pip and that also removes the packages that were installed by pip too:
(24/44) Purging py3-requests (2.23.0-r0)
(25/44) Purging py3-chardet (3.0.4-r4)
(26/44) Purging py3-idna (2.9-r0)
(27/44) Purging py3-certifi (2020.4.5.1-r0)
(28/44) Purging py3-urllib3 (1.25.9-r0)
(29/44) Purging py3-retrying (1.3.3-r0)
(30/44) Purging py3-setuptools (47.0.0-r0)
(31/44) Purging py3-ordered-set (4.0.1-r0)
(32/44) Purging py3-appdirs (1.4.4-r1)
(33/44) Purging py3-packaging (20.4-r0)
(34/44) Purging py3-parsing (2.4.7-r0)
(35/44) Purging py3-six (1.15.0-r0)
I was able to fix the image by adding py3-requests to the runtime packages. My change was to line 25 and added 26:
python3 \
py3-requests && \
Expected Behavior
Diskover should start up and begin indexing without errors
Current Behavior
Diskover throws constant errors about missing python libraries
Steps to Reproduce
Use the below docker-compose.yml file and run
docker-compose up
Environment
OS: Debian 10 4.19.0-9-amd64 CPU architecture: x86_64 How docker service was installed: From official docker repo Docker version 19.03.11, build 42e35e61f3
Command used to create docker container (run/create/compose/screenshot)
Docker logs