#Image Maid

1 messages · Page 1 of 1 (latest)

pure aurora
#

Installed Image Maid in virtual environment using Python 3.12 on MacOS; similar to Kometa. Kometa works perfectly fine. However, after updating the config.env file for Image Maid with the correct Plex path (~/library/application support/plex media server), I receive an error after running the script that states “No Plex Path Provided.” Any recommendations/suggestions to get Image Maid working on Mac without installing Docker?

bleak quarryBOT
#

Welcome @pure aurora!

Someone from <@&938443185347244033> will assist when they're available.

Including meta.log from the beginning is a huge help. Type !logs for more information.

After attaching your log, do not forget to hit the green check boxes when prompted by our bot.

#

You can press the "Close Post" button above or type /close at any time to close this post.

steep sun
pure aurora
#

Thanks, will check it out and report back…appreciate it

pure aurora
#

@steep sun I attempted the steps in the Google doc and no luck...still states “No Plex Path Provided.” I'm running the virtual environment set up using "bash" do I need to setup it up using "zsh"? Think that will make a difference? I setup Kometa in "bash" and it runs fine.

steep sun
steep sun
#

I've gone through those steps dozens of times while writing that article, but it has to be updated withj the name change sdo I can try them again.

pure aurora
#

@steep sun I basically followed all the steps for running locally except for switching to the develop branch. I cloned the repo and created the directory "ImageMaid"; setup the virtual environment "ImageMaid-venv"; activated it and then installed the "requirements.txt"; edited the "config.env" with the required data, and then ran the script using "python plex_image_cleanup.py". The clone didn't create a "ImageMaid.py" file. The script runs, but for someone reason I can't clear the "plex_path" error. If I go to Finder, select go to folder, and go to "~/library/application support/plex media server" it goes straight to the folder that contains the metadata, plug-in support, cache, etc. I enter the plex media server path into the "config.env" file, run the script, and I get the same error message "No Plex Path Provided." I'm wrecking my brain trying to figure it out. I can't get the "correct" path according to the script to leave the virtual environment and hit my plex media server folder on my Mac hard drive. As mentioned previously, I had no issues setting up PMM or switching over to Kometa. The Kometa script runs great in a different virtual environment on my hard drive. Any assistance you can provide would be greatly appreciated.

steep sun
#

What plex media server path are you entering in the config? oh, wait, not docker.

pure aurora
#

Correct, not docker...I'm running the scripts locally

steep sun
#

This could be related to the Plex server being on OS X, since as I recall they symlink some things on OS X and this script might not deal with those correctly. I'm revising the document and will try it specifically on OS X.

steep sun
#

I'm seeing inconsistent fundamental problems running imagemaid directly on OS X. No idea why that might be happening.

pure aurora
#

Interesting...appreciate you taking the time to revise the document and run it directly on OSX. Please let me know if you're able to figure it out and I'll do the same

steep sun
#

For me it's failing silently on the initial logging, attempting to draw the header. Doesn't hit a breakpoint on the first line of the header method.

#

Seems environmental, though, since the pre-rebrand code does the same

#

OK, so here's one issue you will hit running it against an OS X Plex server.

#

Contents of appdata on OS X:

> ls -al ~/Library/Application\ Support/Plex\ Media\ Server/
total 120
drwxr-xr-x@  15 Chaz.Larson  staff    480 May  5 10:17 .
drwx------@ 293 Chaz.Larson  staff   9376 Apr  8 08:35 ..
-rw-------@   1 Chaz.Larson  staff     42 May  5 10:17 .LocalAdminToken
drwxr-xr-x@   4 Chaz.Larson  staff    128 May  5 10:17 Codecs
drwxr-xr-x@   6 Chaz.Larson  staff    192 May  5 10:17 Crash Reports
drwxr-xr-x@   2 Chaz.Larson  staff     64 Jun 27  2023 Diagnostics
drwxr-xr-x@   2 Chaz.Larson  staff     64 Jun 27  2023 Drivers
drwxr-xr-x@   3 Chaz.Larson  staff     96 Jun 27  2023 Media
drwxr-xr-x@   3 Chaz.Larson  staff     96 Jun 27  2023 Metadata
drwxr-xr-x@   7 Chaz.Larson  staff    224 Jan 16 10:23 Plug-in Support
drwxr-xr-x@   2 Chaz.Larson  staff     64 Jan 16 10:23 Plug-ins
-rw-------@   1 Chaz.Larson  staff  12330 May  5 10:17 Setup Plex.html
drwxr-xr-x@   3 Chaz.Larson  staff     96 Jan 16 10:23 Thumbnails
drwxr-xr-x@   2 Chaz.Larson  staff     64 Jan 16 10:23 Updates
-rw-r--r--@   1 Chaz.Larson  staff  39774 May  2 17:32 update-log.txt

vs linux [and presumably Windows]:

ls -al /opt/plex/Library/Application\ Support/Plex\ Media\ Server/
total 40
drwxr-xr-x 14 seed seed   296 May  5 10:15  .
drwxr-xr-x  3 seed seed    31 Jul 14  2023  ..
drwxr-xr-x  9 seed seed  4096 May  5 10:55  Cache
drwxr-xr-x  4 seed seed    99 Apr  4 16:39  Codecs
drwxr-xr-x  5 seed seed   116 May  5 05:15 'Crash Reports'
drwxr-xr-x  2 seed seed     6 Jul 19  2023  Diagnostics
drwxr-xr-x  4 seed seed    62 Dec 27 14:50  Drivers
-rw-------  1 seed seed    42 May  5 05:15  .LocalAdminToken
drwxr-xr-x  3 seed seed  4096 May  5 10:54  Logs
drwxr-xr-x  3 seed seed    23 Jul 15  2023  Media
drwxr-xr-x  7 seed seed    84 Sep 30  2023  Metadata
-rw-r--r--  1 seed seed     3 May  5 05:15  plexmediaserver.pid
drwxr-xr-x  3 seed seed    48 Jul 17  2023  Plug-ins
drwxr-xr-x  7 seed seed    96 Jul 14  2023 'Plug-in Support'
-rw-------  1 seed seed  1154 May  5 10:15  Preferences.xml
drwxr-xr-x  3 seed seed    20 Mar  8  2021  Scanners
-rw-------  1 seed seed 12330 May  5 05:15 'Setup Plex.html'
drwxr-xr-x  2 seed seed     6 Jul 14  2023  Updates

Note that OSX is missing that Cache directory [this is where the PhotoTranscoder directory is].

Imagemaid is expecting it to be in the Plex appdata dir, but on OSX, Plex puts it in the user Caches directory:

 ls -al ~/Library/Caches/PlexMediaServer/
total 160
drwxr-xr-x@  17 Chaz.Larson  staff    544 May  5 10:27 .
drwx------+ 232 Chaz.Larson  staff   7424 May  5 10:33 ..
drwxr-xr-x@   2 Chaz.Larson  staff     64 Jun 27  2023 CL-ICDs
-rw-r--r--@   1 Chaz.Larson  staff   2048 May  5 10:19 CloudAccessV2.dat
-rw-r--r--@   1 Chaz.Larson  staff  14480 May  5 10:17 CloudAccountV2.dat
-rw-r--r--@   1 Chaz.Larson  staff   4048 May  5 10:27 CloudUsersServices.dat
-rw-r--r--@   1 Chaz.Larson  staff     64 May  5 10:19 CloudUsersSubscriptionsV2.dat
-rw-r--r--@   1 Chaz.Larson  staff     64 May  5 10:19 CloudUsersV2.dat
-rw-r--r--@   1 Chaz.Larson  staff  11824 May  5 10:17 Flags.dat
drwxr-xr-x@   3 Chaz.Larson  staff     96 May  5 10:18 OCSP
drwxr-xr-x@ 258 Chaz.Larson  staff   8256 Jan 16 10:50 PhotoTranscoder
-rw-r--r--@   1 Chaz.Larson  staff   8096 May  5 10:17 Privacy.dat
drwxr-xr-x@   3 Chaz.Larson  staff     96 Jan 16 10:23 Transcode
-rw-r--r--@   1 Chaz.Larson  staff    384 May  5 10:17 UpdateChannels.dat
-rw-r--r--@   1 Chaz.Larson  staff   9142 Jul  1  2023 autotag_wordlist.json
-rw-------@   1 Chaz.Larson  staff   5843 May  5 10:18 cert-v2.p12
-rw-r--r--@   1 Chaz.Larson  staff   2240 Jul  2  2023 relayHostKey.txt

So Imagemaid will fail since it can't find its required Cache dir.

There is currently no workaround for this.

#

Except that you could probably run Imagemaid in docker with some volume mapping to get the directories in the right places.

pure aurora
#

Copy all, now it makes sense...thanks for all the troubleshooting and determining Imagemaid isn't compatible with OSX right now due to the cache directory. This may be a good reason for me to start dipping my toe into docker

strange adder
#

Jump into the deep end of the pool!

unique swallowBOT
#

Anything further needed here? If not, please type /close and hit enter. Please respond within 24 hours of this message or it will be archived.

pure aurora
#

/close

steep sun
#

!close

#

looks like bot problems