Closed baccccccc closed 8 months ago
Wild that you're using the windows store install successfully at all. But we'll skip that.
The latest release of CDL has moved the files in appdata back to the location that you're running CDL from.
I'm unsure of your setup, but where are you the commands from?
cyberdrop-dl==5.0.24 have messed up with folder \AppData\
Also, before we get into the rigamorole. If you want to leave the files in the appdata directory, let me know and we can sort that for you.
If you want, you can message me on discord and I can try and help there.
Wild that you're using the windows store install successfully at all.
I know, right? But someone gotta test this shit! And I'm a fan of package managers in general.
The latest release of CDL has moved the files in appdata back to the location that you're running CDL from.
ahh, interesting. Well, so far, I was trying to run it from my profile root ($env:UserProfile
aka C:\Users\<username>
). Normally I run it from the folder with downloads. But this time, I was only going to change some configs. So I ran it from the default path.
Now that I better understand what's going on, I've tried to change location to where I normally download stuff.
And I got a different error:
PS C:\Users\<redacted>> Set-Location -Path 'C:\Mirror — Temp\cdl'
PS C:\Mirror — Temp\cdl> & "$env:localAppData\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\Scripts\cyberdrop-dl.exe"
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "C:\Users\<redacted>\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\Scripts\cyberdrop-dl.exe\__main__.py", line 7, in <module>
File "C:\Users\<redacted>\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\cyberdrop_dl\main.py", line 103, in main
manager = startup()
^^^^^^^^^
File "C:\Users\<redacted>\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\cyberdrop_dl\main.py", line 26, in startup
manager = Manager()
^^^^^^^^^
File "C:\Users\<redacted>\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\cyberdrop_dl\managers\manager.py", line 37, in __init__
self.first_time_setup.startup()
File "C:\Users\<redacted>\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\cyberdrop_dl\utils\transfer\first_time_setup.py", line 40, in startup
OLD_APP_STORAGE.rename(APP_STORAGE)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.240.0_x64__qbz5n2kfra8p0\Lib\pathlib.py", line 1364, in rename
os.rename(self, target)
OSError: [WinError 17] The system cannot move the file to a different disk drive: 'C:\\Users\\<redacted>\\AppData\\Local\\Cyberdrop-DL\\Cyberdrop-DL' -> 'AppData'
PS C:\Mirror — Temp\cdl>
This was actually quite helpful because I can totally move this folder myself, I guess.
Except that the folder is actually not there. Because of how the Store version of Python is packaged, the folder is actually here:
"$env:LocalAppData\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\Local\Cyberdrop-DL\Cyberdrop-DL"
So, now you tell me. Do I need to move only some files from this folder, or all files? And where exactly do I move them? To the root of my download folder or to some subfolder?
Assuming you have an AppData folder in the location you specified: "$env:LocalAppData\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\Local\Cyberdrop-DL\Cyberdrop-DL"
You'll want to move it to wherever you are calling the script from. So If you want to start it in C:\Mirror — Temp\cdl
move it there. You'll need to run the commands from that directory. The paths internally are set to relative paths. ./AppData and ./Downloads (obviously downloads can be remapped, appdata cannot currently)
Gotcha!
Ok, I tried to move all the files:
PS C:\Mirror — Temp\cdl> Get-ChildItem -Path "$env:LocalAppData\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\Local\Cyberdrop-DL\Cyberdrop-DL" | Move-Item -Destination 'C:\Mirror — Temp\cdl' -Verbose
VERBOSE: Performing the operation "Move Directory" on target "Item: C:\Users\<redacted>\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\Local\Cyberdrop-DL\Cyberdrop-DL\Cache Destination: C:\Mirror — Temp\cdl\Cache".
VERBOSE: Performing the operation "Create Directory" on target "Destination: C:\Mirror — Temp\cdl\Cache".
VERBOSE: Performing the operation "Remove Directory" on target "C:\Users\<redacted>\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\Local\Cyberdrop-DL\Cyberdrop-DL\Cache".
VERBOSE: Performing the operation "Move Directory" on target "Item: C:\Users\<redacted>\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\Local\Cyberdrop-DL\Cyberdrop-DL\Configs Destination: C:\Mirror — Temp\cdl\Configs".
VERBOSE: Performing the operation "Create Directory" on target "Destination: C:\Mirror — Temp\cdl\Configs".
VERBOSE: Performing the operation "Create Directory" on target "Destination: C:\Mirror — Temp\cdl\Configs\Default".
VERBOSE: Performing the operation "Create Directory" on target "Destination: C:\Mirror — Temp\cdl\Configs\Default\Logs".
VERBOSE: Performing the operation "Remove Directory" on target "C:\Users\<redacted>\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\Local\Cyberdrop-DL\Cyberdrop-DL\Configs\Default\Logs".
VERBOSE: Performing the operation "Remove Directory" on target "C:\Users\<redacted>\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\Local\Cyberdrop-DL\Cyberdrop-DL\Configs\Default".
VERBOSE: Performing the operation "Remove Directory" on target "C:\Users\<redacted>\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\Local\Cyberdrop-DL\Cyberdrop-DL\Configs".
VERBOSE: Performing the operation "Move File" on target "Item: C:\Users\<redacted>\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\Local\Cyberdrop-DL\Cyberdrop-DL\download_history.sqlite Destination: C:\Mirror — Temp\cdl\download_history.sqlite".
But I kept receiving the same errors.
So removed the folder completely (now that it was empty)
Remove-Item -Path "$env:LocalAppData\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\Local\Cyberdrop-DL\Cyberdrop-DL"
Now the app seems to launch correctly!
Although I'm not sure I did everythign right because it looks like all of my settings are gone :)
But no big deal, I can set them back now.
Thanks for help!
Of course, sorry for the roller coaster.
Ok, I figred why my previous settings did not take effect. I moved everything to the root of C:\Mirror — Temp\cdl
. (This is my current directory when I run the app now. Previously, I used to run it from sub-folders such as C:\Mirror — Temp\cdl\ForumThreadAboutXYZ
because I wanted completely separate log and error files.)
So, now the config file for example was sitting here: C:\Mirror — Temp\cdl\Configs\Default\settings.yaml
But in fact, the app looks inside an AppData
folder nested under the current path. So that I should have placed my old config into C:\Mirror — Temp\cdl\AppData\Configs\Default\settings.yaml
I have moved stuff accordingly, and now the old settings are back!
P.S. there's also a new folder C:\Mirror — Temp\cdl\Old Files
and I'm not quite sure what to do with it. I guess I'll just keep it around for a while, and then delete.
Glad to see you figured it out, and yes. You can get rid of them when you are comfortable
Describe the bug The recent version of the app crashes at startup. The previous (yesterday's) 5.x version did not crash. I know it sounds lame, but I have no idea what was the last good version. Yesterday it worked, today I upgraded to the latest one, and now it crashes. I also don't remember what the current version is. Because it crashes, I cannot look up any meaningful output.
Important I am using Python 3.12 from Microsoft Store. This is an official distribution by Python software foundation. I do not have any other version of Python installed, and I don't want to.
There may be some limitations associated with how Python is packaged due to the Microsoft Store requirements. Also, some paths may be different. I am always using the full paths as you can see below. And everything worked this way before (both on 4.x and on 5.x branches.) This is the first major issue I am having in months of using this app under packaged Python.
To Help Reproduce
& "$env:localAppData\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\Scripts\pip3.12.exe" install --upgrade 'Cyberdrop-dl'
& "$env:localAppData\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\Scripts\cyberdrop-dl.exe"
Screenshots
Setup Information