jbsparrow / CyberDropDownloader

Bulk Gallery Downloader for Cyberdrop.me and Other Sites
GNU General Public License v3.0
183 stars 14 forks source link

[BUG] Failing to start #161

Closed bewbylover closed 1 month ago

bewbylover commented 1 month ago

Describe the bug Application is failing to start, see console output below.

To Help Reproduce Steps to help reproduce the behavior:

  1. Start the application

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

Setup Information

Downloader.log file N/A it is not getting that far.

Additional context From the screen:

Traceback (most recent call last): File "/home/kris/Downloads/Cyberdrop_DL.V5.1/venv/bin/cyberdrop-dl", line 8, in sys.exit(main()) ^^^^^^ File "/home/kris/Downloads/Cyberdrop_DL.V5.1/venv/lib/python3.11/site-packages/cyberdrop_dl/main.py", line 173, in main manager = startup() ^^^^^^^^^ File "/home/kris/Downloads/Cyberdrop_DL.V5.1/venv/lib/python3.11/site-packages/cyberdrop_dl/main.py", line 26, in startup manager.startup() File "/home/kris/Downloads/Cyberdrop_DL.V5.1/venv/lib/python3.11/site-packages/cyberdrop_dl/managers/manager.py", line 65, in startup self.config_manager.startup() File "/home/kris/Downloads/Cyberdrop_DL.V5.1/venv/lib/python3.11/site-packages/cyberdrop_dl/managers/config_manager.py", line 79, in startup self.load_configs() File "/home/kris/Downloads/Cyberdrop_DL.V5.1/venv/lib/python3.11/site-packages/cyberdrop_dl/managers/config_manager.py", line 100, in load_configs self._verify_settings_config() File "/home/kris/Downloads/Cyberdrop_DL.V5.1/venv/lib/python3.11/site-packages/cyberdrop_dl/managers/config_manager.py", line 127, in _verify_settings_config existing_settings_data = _load_yaml(self.settings) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/kris/Downloads/Cyberdrop_DL.V5.1/venv/lib/python3.11/site-packages/cyberdrop_dl/managers/config_manager.py", line 36, in _load_yaml yaml_values = yaml.load(yaml_file.read(), Loader=yaml.FullLoader) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/kris/Downloads/Cyberdrop_DL.V5.1/venv/lib/python3.11/site-packages/yaml/init.py", line 81, in load return loader.get_single_data() ^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/kris/Downloads/Cyberdrop_DL.V5.1/venv/lib/python3.11/site-packages/yaml/constructor.py", line 51, in get_single_data return self.construct_document(node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/kris/Downloads/Cyberdrop_DL.V5.1/venv/lib/python3.11/site-packages/yaml/constructor.py", line 60, in construct_document for dummy in generator: File "/home/kris/Downloads/Cyberdrop_DL.V5.1/venv/lib/python3.11/site-packages/yaml/constructor.py", line 413, in construct_yaml_map value = self.construct_mapping(node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/kris/Downloads/Cyberdrop_DL.V5.1/venv/lib/python3.11/site-packages/yaml/constructor.py", line 218, in construct_mapping return super().construct_mapping(node, deep=deep) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/kris/Downloads/Cyberdrop_DL.V5.1/venv/lib/python3.11/site-packages/yaml/constructor.py", line 143, in construct_mapping value = self.construct_object(value_node, deep=deep) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/kris/Downloads/Cyberdrop_DL.V5.1/venv/lib/python3.11/site-packages/yaml/constructor.py", line 100, in construct_object data = constructor(self, node) ^^^^^^^^^^^^^^^^^^^^^^^ File "/home/kris/Downloads/Cyberdrop_DL.V5.1/venv/lib/python3.11/site-packages/yaml/constructor.py", line 427, in construct_undefined raise ConstructorError(None, None, yaml.constructor.ConstructorError: could not determine a constructor for the tag 'tag:yaml.org,2002:python/object/apply:pathlib.PosixPath' in "", line 49, column 16: scan_folder: !!python/object/apply:pathlib.Po ... ^

jbsparrow commented 1 month ago

You should be on Python 3.11.

bewbylover commented 1 month ago

I mistyped it is 3.11.10, I edited the start script to show it with $PYTHON --version:

$ ./"Start Linux.sh" Python 3.11.10 Attempting to start venv

crimzind commented 1 month ago

I'm getting an issue running, too. Was working yesterday. ~ D:\xT\Cyberdrop_DL.V3>cyberdrop-dl Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "C:\Users\Crim\AppData\Roaming\Python\Python311\Scripts\cyberdrop-dl.exe__main.py", line 7, in File "C:\Users\Crim\AppData\Roaming\Python\Python311\site-packages\cyberdrop_dl\main.py", line 173, in main manager = startup() ^^^^^^^^^ File "C:\Users\Crim\AppData\Roaming\Python\Python311\site-packages\cyberdrop_dl\main.py", line 26, in startup manager.startup() File "C:\Users\Crim\AppData\Roaming\Python\Python311\site-packages\cyberdrop_dl\managers\manager.py", line 65, in startup self.config_manager.startup() File "C:\Users\Crim\AppData\Roaming\Python\Python311\site-packages\cyberdrop_dl\managers\config_manager.py", line 79, in startup self.load_configs() File "C:\Users\Crim\AppData\Roaming\Python\Python311\site-packages\cyberdrop_dl\managers\config_manager.py", line 100, in load_configs self._verify_settings_config() File "C:\Users\Crim\AppData\Roaming\Python\Python311\site-packages\cyberdrop_dl\managers\config_manager.py", line 127, in _verify_settings_config existing_settings_data = _load_yaml(self.settings) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Crim\AppData\Roaming\Python\Python311\site-packages\cyberdrop_dl\managers\config_manager.py", line 36, in _load_yaml yaml_values = yaml.load(yaml_file.read(), Loader=yaml.FullLoader) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Crim\AppData\Roaming\Python\Python311\site-packages\yaml\init__.py", line 81, in load return loader.get_single_data() ^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Crim\AppData\Roaming\Python\Python311\site-packages\yaml\constructor.py", line 51, in get_single_data return self.construct_document(node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Crim\AppData\Roaming\Python\Python311\site-packages\yaml\constructor.py", line 60, in construct_document for dummy in generator: File "C:\Users\Crim\AppData\Roaming\Python\Python311\site-packages\yaml\constructor.py", line 413, in construct_yaml_map value = self.construct_mapping(node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Crim\AppData\Roaming\Python\Python311\site-packages\yaml\constructor.py", line 218, in construct_mapping return super().construct_mapping(node, deep=deep) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Crim\AppData\Roaming\Python\Python311\site-packages\yaml\constructor.py", line 143, in construct_mapping value = self.construct_object(value_node, deep=deep) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Crim\AppData\Roaming\Python\Python311\site-packages\yaml\constructor.py", line 100, in construct_object data = constructor(self, node) ^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Crim\AppData\Roaming\Python\Python311\site-packages\yaml\constructor.py", line 427, in construct_undefined raise ConstructorError(None, None, yaml.constructor.ConstructorError: could not determine a constructor for the tag 'tag:yaml.org,2002:python/object/apply:pathlib.WindowsPath' in "", line 49, column 16: scan_folder: !!python/object/apply:pathlib.Wi ... ^

sleepmaster91 commented 1 month ago

i'm getting the same errors on windows

Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\Scripts\cyberdrop-dl.exe__main.py", line 7, in File "C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\cyberdrop_dl\main.py", line 173, in main manager = startup() ^^^^^^^^^ File "C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\cyberdrop_dl\main.py", line 26, in startup manager.startup() File "C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\cyberdrop_dl\managers\manager.py", line 65, in startup self.config_manager.startup() File "C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\cyberdrop_dl\managers\config_manager.py", line 79, in startup self.load_configs() File "C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\cyberdrop_dl\managers\config_manager.py", line 100, in load_configs self._verify_settings_config() File "C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\cyberdrop_dl\managers\config_manager.py", line 127, in _verify_settings_config existing_settings_data = _load_yaml(self.settings) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\cyberdrop_dl\managers\config_manager.py", line 36, in _load_yaml yaml_values = yaml.load(yaml_file.read(), Loader=yaml.FullLoader) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\yaml\init__.py", line 81, in load return loader.get_single_data() ^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\yaml\constructor.py", line 51, in get_single_data return self.construct_document(node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\yaml\constructor.py", line 60, in construct_document for dummy in generator: File "C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\yaml\constructor.py", line 413, in construct_yaml_map value = self.construct_mapping(node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

NTFSvolume commented 1 month ago

The default config file was corrupted. The scan_folder value is invalid.

To fix it, please edit it manually and remove !!python.... from scan_folder

Before:

Sorting:
  scan_folder: !!python/object/apply:pathlib.Po
  - None
  sort_cdl_only: true

After:

Sorting:
  scan_folder: None
  sort_cdl_only: true

The default config_file is located at ./AppData/Configs/Default/settings.yaml

sleepmaster91 commented 1 month ago

The default config file was corrupted. The scan_folder value is invalid.

To fix it, please edit it manually and remove !!python.... from scan_folder

Before:

Sorting:
  scan_folder: !!python/object/apply:pathlib.Po
  - None
  sort_cdl_only: true

After:

Sorting:
  scan_folder: None
  sort_cdl_only: true

The default config_file is located at ./AppData/Configs/Default/settings.yaml

This worked thank you so much !!!

bewbylover commented 1 month ago

+1 worked for me too

crimzind commented 1 month ago

Also worked here, thank you.

dsabharwal326 commented 1 month ago

What is the equivalent for MacOS?

jbsparrow commented 1 month ago

The same fix works on MacOS.