cloud-py-api / mediadc

Nextcloud Media Duplicate Collector application
https://apps.nextcloud.com/apps/mediadc
GNU Affero General Public License v3.0
93 stars 6 forks source link

Missing module when using docker mods #215

Open listinfm opened 6 months ago

listinfm commented 6 months ago

Describe the bug When adding a directory to scan, I can see the content in Nextcloud, but from the MediaDC tab I cannot see any files. On top of that it just pends forever, possibly because it thinks there are no files? image

Oddly enough if I select it regardless it is showing that there are files in there, and the files are JPEG and PNG so there shouldn't be an issue with that. image

While looking at the MediaDC log, I found the following. Traceback (most recent call last): File "/app/www/public/apps/mediadc/main.py", line 4, in from nc_py_api import CONFIG ModuleNotFoundError: No module named 'nc_py_api'

I'm not sure why this is happening since I am using docker-compose and the mods to install MediaDC. Here is the docker compose: ######################################################### nextcloud: image: lscr.io/linuxserver/nextcloud container_name: nextcloud environment:

#########################################################
mariadb: image: lscr.io/linuxserver/mariadb container_name: mariadb environment:

To Reproduce Steps to reproduce the behavior:

  1. After running the docker compose and setting up the database I then installed cloud py API and then MediaDC
  2. Went to the MediaDC tab and added the directory

I have tried to run the command python3 -m pip install -r requirements.txt, thinking maybe something was missing, but everything was already installed, so nothing changed there.

Expected behavior To be able to see the files in the directory from MediaDC and for the app to scan the folder

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

{ "nextcloud-version": "28.0.1.1", "app-versions": { "cloud_py_api-version": "0.1.9", "mediadc-version": "0.3.8" }, "is-videos-supported": true, "is-snap": false, "arch": "amd64", "webserver": "nginx/1.24.0", "database": { "type": "mysql", "version": "10.11.5", "size": "215154688" }, "php-version": "8.2.13", "php-interpreter": "php", "python-interpreter-setting": "/usr/bin/python3", "os": "Linux", "os-release": "6.2.0-39-generic", "machine-type": "x86_64" }

Thanks for your help!

bigcat88 commented 6 months ago

Unfortunately I am not familiar with this setup, but we do not changed anything in last 6-8 months. Looks like it is a manual setup, right? I mean Python part is executing on the system python intepreter?

andrey18106 commented 6 months ago

@listinfm It doesn't show files because it's filtered to show only directories to choose. You will not be able to start a task if there are no valid files to scan (depending on chosen target mime type) inside selected directories.

listinfm commented 5 months ago

@bigcat88 - this is not a manual setup, this is docker container using the docker mods which is part of your install wiki: https://github.com/cloud-py-api/mediadc/wiki/Installation. Is this not the best way to install?

@andrey18106 - there are 12 JPG and PNG in the target folder. It should pick it up, from the screenshot above you can see 0/12 files scanned.