Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows UNC paths fail only on --mode move #39

Open
planetrocky opened this issue Mar 27, 2024 · 1 comment
Open

Windows UNC paths fail only on --mode move #39

planetrocky opened this issue Mar 27, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@planetrocky
Copy link

Version Number

b16ddd7

What branch are you on?

master

Describe the Bug

C:\Plex-Image-Cleanup>python --version
Python 3.12.2

mode report executes correctly.
mode remove executes correctly.
mode move fails:

| Moving Bloat Images:   0%|                                                                                                                                                                 | 0/2242 [00:00<?, ? moved/s]
| MOVE: \\fs2\docker\plex\Library\Application Support\Plex Media Server\Metadata\Movies\0\009788157bc680044f3e2b4242b71ebfc62391d.bundle\Uploads\posters\a2068253ece2349286b36c87bb14e3dac23c1658 --> \\fs2\docker\plex\Library\Application Support\Plex Media Server\PIC Restore\Movies\0\009788157bc680044f3e2b4242b71ebfc62391d.bundle\Uploads\posters\a2068253ece2349286b36c87bb14e3dac23c1658.jpg |
| Traceback (most recent call last):                                                                 |
|   File "E:\Plex-Image-Cleanup\plex_image_cleanup.py", line 321, in run_plex_image_cleanup |
|     util.move_path(path, meta_dir, restore_dir, suffix=".jpg")                                     |
|   File "E:\Plex-Image-Cleanup\pic-venv\Lib\site-packages\pmmutils\util.py", line 60, in move_path |
|     final_path.parent.mkdir(exist_ok=True)                                                         |
|   File "C:\Users\name\AppData\Local\Programs\Python\Python312\Lib\pathlib.py", line 1311, in mkdir |
|     os.mkdir(self, mode)                                                                           |
| FileNotFoundError: [WinError 3] The system cannot find the path specified: '\\\\fs2\\docker\\plex\\Library\\Application Support\\Plex Media Server\\PIC Restore\\Movies\\0\\009788157bc680044f3e2b4242b71ebfc62391d.bundle\\Uploads\\posters' |
|                                                                                                    |
| [WinError 3] The system cannot find the path specified: '\\\\fs2\\docker\\plex\\Library\\Application Support\\Plex Media Server\\PIC Restore\\Movies\\0\\009788157bc680044f3e2b4242b71ebfc62391d.bundle\\Uploads\\posters' |

Logs

No response

@planetrocky planetrocky added the bug Something isn't working label Mar 27, 2024
@tylerreed19
Copy link

tylerreed19 commented Jun 22, 2024

Same issue on Local Windows install:

| Moving Bloat Images                                                                                |
| Moving Bloat Images:   0%|                                                               | 0/174 [00:00<?, ? moved/s]
| MOVE: C:\Users\*USER*\AppData\Local\Plex Media Server\Metadata\Collections\0\68a9fe6195b8df5fa70e74773d9297e22d822a8.bundle\Uploads\themes\81eb011c917abe0d895483a8ef35b889a97e5813 --> C:\Users\*USER*\AppData\Local\Plex Media Server\PIC Restore\Collections\0\68a9fe6195b8df5fa70e74773d9297e22d822a8.bundle\Uploads\themes\81eb011c917abe0d895483a8ef35b889a97e5813.jpg |
| Traceback (most recent call last):                                                                 |
|   File "C:\Users\*USER*\ImageMaid-1.0.2\plex_image_cleanup.py", line 321, in run_plex_image_cleanup |
|     util.move_path(path, meta_dir, restore_dir, suffix=".jpg")                                     |
|   File "C:\Users\*USER*\AppData\Local\Programs\Python\Python311\Lib\site-packages\pmmutils\util.py", line 60, in move_path |
|     final_path.parent.mkdir(exist_ok=True)                                                         |
|   File "C:\Users\*USER*\AppData\Local\Programs\Python\Python311\Lib\pathlib.py", line 1116, in mkdir |
|     os.mkdir(self, mode)                                                                           |
| FileNotFoundError: [WinError 3] The system cannot find the path specified: 'C:\\Users\\*USER*\\AppData\\Local\\Plex Media Server\\PIC Restore\\Collections\\0\\68a9fe6195b8df5fa70e74773d9297e22d822a8.bundle\\Uploads\\themes' |
|                                                                                                    |
| [WinError 3] The system cannot find the path specified: 'C:\\Users\\*USER*\\AppData\\Local\\Plex Media Server\\PIC Restore\\Collections\\0\\68a9fe6195b8df5fa70e74773d9297e22d822a8.bundle\\Uploads\\themes' |

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants