-
-
Notifications
You must be signed in to change notification settings - Fork 49
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
sqlite3.OperationalError: no such table: file_info_cbz #110
Comments
About the error
You solved it by enabling env As far as i know, i implemented migrations to database, and it should works for the first time |
no |
Can you send me |
For now, you might wanna disable download tracking by enabling |
download.db.zip |
Looking up your Output sussyuser@SUSSY-PC:~/md-test$ docker run mangadex-dl:v3.0.0 "tamamo no koi" -s --input-pos 1 -f cbz --verbose
[WARNING] --verbose is deprecated and will be removed in v3.0.0. Use '--log-level=DEBUG' instead
[DEBUG] Config 'stacked_progress_bar_order' (value: ['volumes', 'chapters', 'pages', 'file sizes', 'convert']) is not passed validator test, reason: 'list' object has no attribute 'split'. Falling back to default value
[DEBUG] Loaded config from cli args = {'login_cache': False, 'language': 'en', 'cover': 'original', 'save_as': 'cbz', 'use_chapter_title': False, 'use_compressed_image': False, 'force_https': False, 'path': './{manga.title}', 'filename_chapter': '{chapter.simple_name}{file_ext}', 'filename_volume': 'Vol. {volume}{file_ext}', 'filename_single': 'All chapters{file_ext}', 'dns_over_https': None, 'no_group_name': False, 'sort_by': 'volume', 'no_progress_bar': False, 'http_retries': 5, 'write_tachiyomi_info': False, 'download_mode': 'default', 'use_chapter_cover': False, 'use_volume_cover': False, 'no_track': False, 'volume_cover_language': None, 'stacked_progress_bar_order': 'volumes, chapters, pages, file sizes, convert', 'log_level': 'DEBUG', 'progress_bar_layout': 'default', 'ignore_missing_chapters': False, 'create_no_volume': False, 'create_manga_info': False, 'manga_info_format': 'csv', 'manga_info_filepath': '{download_path}/manga_info.{manga_info_format}'}
[INFO] Checking url = 433e77d2-5a58-48a3-95b8-e3c02f309255
[INFO] Using English language
[INFO] Fetching all chapters...
[INFO] Download directory is set to "/downloads/Tamamo no Koi"
[INFO] Using cbz format
[INFO] Downloading cover manga Tamamo no Koi
File sizes: 100%|████████████████████████████| 260k/260k [00:00<00:00, 21.1MB/s]
[DEBUG] Applying download tracker database migration 00000_init.py...
[DEBUG] Applying download tracker database migration 00001_add_table_db_info_and_alter_table_file_info.py...
[INFO] Preparing to download...
[INFO] Getting images from chapter 0
[INFO] Downloading [AteTeenPlus & AfterLife Scans] Chapter. 0 Oneshot page 1
File sizes: 100%|████████████████████████████| 695k/695k [00:00<00:00, 5.33MB/s]
[DEBUG] Reporting {'url': 'https://cmdxd98sb0x3yprd.mangadex.network/data/2cb2a15b58b96bc72b705849ce15ed8b/1-42b91b72bbce2b2f62c24c4c4d56a84d79bc6952139e19924a7a6acc72ed13eb.png', 'success': True, 'cached': False, 'bytes': 694683, 'duration': 425} to MangaDex network
[INFO] Downloading [AteTeenPlus & AfterLife Scans] Chapter. 0 Oneshot page 2 I tried installing your docker image to my server and test it and it works without errors. |
Maybe you can try these python script to test it out if migration is really works. Make sure to test it in your docker container. import sqlite3
from mangadex_downloader.tracker.sql_migrations import _iter_migrate_cls
from mangadex_downloader.tracker.sql_migrations.base import SQLMigration
from mangadex_downloader.tracker.sqlite import DownloadTrackerSQLite
from pathlib import Path
db_path = DownloadTrackerSQLite.get_tracker_path("cbz", Path("./Tamamo no Koi"))
db = sqlite3.connect(db_path)
cls: SQLMigration
for cls, file in _iter_migrate_cls():
if file != "00000_init.py":
continue
print(cls.check_if_migrate_is_possible())
cls.migrate() |
first i build
and in |
See, before this line of output, you should see:
And from your output, the |
i think its related to v3 somehow and my not perfect docker image |
in my image v3
|
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
I'm really sorry i didn't notice that. From your output checking sql_migrations directory #110 (comment), you have the |
Can you help me add these script #110 (comment) and run it in your docker image ? I really wanna make sure what is wrong with the migration You can use same command to download test manga from here #110 (comment) and then run the script docker run -ti -v ./downloads:/downloads/ --rm mangadex-downloader "tamamo no koi" -s --input-pos 1 -f cbz --log-level=DEBUG
# And then run the migration script |
in container from 3.0.0 branch
|
after changing
first run is |
Sorry i was forgot to fix that, it was actually from pathlib import Path
db_path = DownloadTrackerSQLite.get_tracker_path("cbz", Path("./Tamamo no Koi"))
Huh, if the first run is |
|
Okay, so the I don't know man, i'm really confused right now. Either the application has a bug that only you can reproduce it or something going on with the docker image or permissions files. You have to fix it yourself, i'm really sorry i cannot provide solution any further. If you found a fix for the bug you can tell me and i will create documentaion of how to fix this issue or patch to v3.0.0 branch. For now you might want to apply |
i don't know why but when i do this
this seems to solve the problem |
Hmmmm, interesting. It's really works just like that ? I have created that patch ffd2f24, if you can test it, it could be useful |
first run from ffd2f24
DEBUG] Config 'stacked_progress_bar_order' (value: ['volumes', 'chapters', 'pages', 'file sizes', 'convert']) is not passed validator test, reason: 'list' object has no attribute 'split'. Falling back to default value
[DEBUG] Loaded config from cli args = {'login_cache': False, 'language': 'en', 'cover': 'original', 'save_as': 'cbz', 'use_chapter_title': False, 'use_compressed_image': False, 'force_https': False, 'path': './{manga.title}', 'filename_chapter': '{chapter.simple_name}{file_ext}', 'filename_volume': 'Vol. {volume}{file_ext}', 'filename_single': 'All chapters{file_ext}', 'dns_over_https': None, 'no_group_name': False, 'sort_by': 'volume', 'no_progress_bar': False, 'http_retries': 5, 'write_tachiyomi_info': False, 'download_mode': 'default', 'use_chapter_cover': False, 'use_volume_cover': False, 'no_track': False, 'volume_cover_language': None, 'stacked_progress_bar_order': 'volumes, chapters, pages, file sizes, convert', 'log_level': 'DEBUG', 'progress_bar_layout': 'default', 'ignore_missing_chapters': False, 'create_no_volume': False, 'create_manga_info': False, 'manga_info_format': 'csv', 'manga_info_filepath': '{download_path}/manga_info.{manga_info_format}'}
[INFO] Checking url = 433e77d2-5a58-48a3-95b8-e3c02f309255
[INFO] Using English language
[INFO] Fetching all chapters...
[INFO] Download directory is set to "/downloads/Tamamo no Koi"
[INFO] Using cbz format
[INFO] Downloading cover manga Tamamo no Koi
File sizes: 100%|████████████████████████████| 260k/260k [00:00<00:00, 1.82MB/s]
[DEBUG] Applying download tracker database migration 00001_init.py...
[DEBUG] Applying download tracker database migration 00002_add_table_db_info_and_alter_table_file_info.py...
[INFO] Preparing to download...
[INFO] Getting images from chapter 0
[INFO] Downloading [AteTeenPlus & AfterLife Scans] Chapter. 0 Oneshot page 1
File sizes: 100%|█████████████████████████████| 695k/695k [00:00<00:00, 843kB/s]
[DEBUG] Reporting {'url': 'https://cmdxd98sb0x3yprd.mangadex.network/data/2cb2a15b58b96bc72b705849ce15ed8b/1-42b91b72bbce2b2f62c24c4c4d56a84d79bc6952139e19924a7a6acc72ed13eb.png', 'success': True, 'cached': False, 'bytes': 694683, 'duration': 1277} to MangaDex network
[INFO] Downloading [AteTeenPlus & AfterLife Scans] Chapter. 0 Oneshot page 2
File sizes: 100%|████████████████████████████| 536k/536k [00:00<00:00, 3.38MB/s]
[INFO] Downloading [AteTeenPlus & AfterLife Scans] Chapter. 0 Oneshot page 3
File sizes: 100%|████████████████████████████| 491k/491k [00:00<00:00, 3.69MB/s]
[INFO] Downloading [AteTeenPlus & AfterLife Scans] Chapter. 0 Oneshot page 4
File sizes: 100%|████████████████████████████| 457k/457k [00:00<00:00, 3.61MB/s]
[INFO] Downloading [AteTeenPlus & AfterLife Scans] Chapter. 0 Oneshot page 5
[DEBUG] Successfully send report {'url': 'https://cmdxd98sb0x3yprd.mangadex.network/data/2cb2a15b58b96bc72b705849ce15ed8b/1-42b91b72bbce2b2f62c24c4c4d56a84d79bc6952139e19924a7a6acc72ed13eb.png', 'success': True, 'cached': False, 'bytes': 694683, 'duration': 1277} to MangaDex network
[DEBUG] Reporting {'url': 'https://cmdxd98sb0x3yprd.mangadex.network/data/2cb2a15b58b96bc72b705849ce15ed8b/2-b6531c9af440614fcb55854eeef444f53956b7df7ca87d6e691f8d347a399826.png', 'success': True, 'cached': False, 'bytes': 535864, 'duration': 204} to MangaDex network
…
[INFO] Downloading [No Group Scanlation] Volume. 1 Chapter. 6 page 31
[DEBUG] Successfully send report {'url': 'https://cmdxd98sb0x3yprd.mangadex.network/data/a146b42e90bda4200e616215027ba343/30-9a0448957fadd95d73c962e5cac07a5da12ea6f68990631845f74e5243b7e3c2.jpg', 'success': True, 'cached': False, 'bytes': 355792, 'duration': 1634} to MangaDex network
File sizes: 100%|█████████████████████████████| 351k/351k [00:00<00:00, 412kB/s]
[DEBUG] Reporting {'url': 'https://cmdxd98sb0x3yprd.mangadex.network/data/a146b42e90bda4200e616215027ba343/31-56bf4d39c94e1dd222849bbf6c98065a7afb758214a12bbc8679ffe12a80fccf.jpg', 'success': True, 'cached': False, 'bytes': 350860, 'duration': 2005} to MangaDex network
[INFO] Downloading [No Group Scanlation] Volume. 1 Chapter. 6 page 32
[DEBUG] Successfully send report {'url': 'https://cmdxd98sb0x3yprd.mangadex.network/data/a146b42e90bda4200e616215027ba343/31-56bf4d39c94e1dd222849bbf6c98065a7afb758214a12bbc8679ffe12a80fccf.jpg', 'success': True, 'cached': False, 'bytes': 350860, 'duration': 2005} to MangaDex network
File sizes: 100%|█████████████████████████████| 221k/221k [00:00<00:00, 933kB/s]
[DEBUG] Reporting {'url': 'https://cmdxd98sb0x3yprd.mangadex.network/data/a146b42e90bda4200e616215027ba343/32-d337c78d7b14f9c4f3f38968cef2b57e0b719865d59be8657beb0f18549f4195.png', 'success': True, 'cached': False, 'bytes': 221338, 'duration': 1443} to MangaDex network
[INFO] [No Group Scanlation] Vol. 1 Ch. 6 has finished download, converting to .cbz file...
Convert: 100%|██████████████████████████████| 32.0/32.0 [00:00<00:00, 128page/s]
[INFO] Waiting for chapter read marker to finish
[INFO] Download finished for manga "Tamamo no Koi"
[DEBUG] Checking update...
[DEBUG] Successfully send report {'url': 'https://cmdxd98sb0x3yprd.mangadex.network/data/a146b42e90bda4200e616215027ba343/32-d337c78d7b14f9c4f3f38968cef2b57e0b719865d59be8657beb0f18549f4195.png', 'success': True, 'cached': False, 'bytes': 221338, 'duration': 1443} to MangaDex network
[DEBUG] No update found
[INFO] Cleaning up...
[DEBUG] Closing network object and second try [DEBUG] Config 'stacked_progress_bar_order' (value: ['volumes', 'chapters', 'pages', 'file sizes', 'convert']) is not passed validator test, reason: 'list' object has no attribute 'split'. Falling back to default value
[DEBUG] Loaded config from cli args = {'login_cache': False, 'language': 'en', 'cover': 'original', 'save_as': 'cbz', 'use_chapter_title': False, 'use_compressed_image': False, 'force_https': False, 'path': './{manga.title}', 'filename_chapter': '{chapter.simple_name}{file_ext}', 'filename_volume': 'Vol. {volume}{file_ext}', 'filename_single': 'All chapters{file_ext}', 'dns_over_https': None, 'no_group_name': False, 'sort_by': 'volume', 'no_progress_bar': False, 'http_retries': 5, 'write_tachiyomi_info': False, 'download_mode': 'default', 'use_chapter_cover': False, 'use_volume_cover': False, 'no_track': False, 'volume_cover_language': None, 'stacked_progress_bar_order': 'volumes, chapters, pages, file sizes, convert', 'log_level': 'DEBUG', 'progress_bar_layout': 'default', 'ignore_missing_chapters': False, 'create_no_volume': False, 'create_manga_info': False, 'manga_info_format': 'csv', 'manga_info_filepath': '{download_path}/manga_info.{manga_info_format}'}
[INFO] Checking url = 433e77d2-5a58-48a3-95b8-e3c02f309255
[INFO] Using English language
[INFO] Fetching all chapters...
[INFO] Download directory is set to "/downloads/Tamamo no Koi"
[INFO] Using cbz format
[INFO] Downloading cover manga Tamamo no Koi
[INFO] File exist and replace is False, cancelling download...
[DEBUG] Applying download tracker database migration 00002_add_table_db_info_and_alter_table_file_info.py...
[INFO] Preparing to download...
[INFO] Verifying downloaded chapters...
[INFO] 'Ch. 0 Oneshot.cbz' is verified and no need to re-download
[INFO] 'Vol. 1 Ch. 1.cbz' is verified and no need to re-download
[INFO] 'Vol. 1 Ch. 2.cbz' is verified and no need to re-download
[INFO] 'Vol. 1 Ch. 3.cbz' is verified and no need to re-download
[INFO] 'Vol. 1 Ch. 4.cbz' is verified and no need to re-download
[INFO] 'Vol. 1 Ch. 5.cbz' is verified and no need to re-download
[INFO] 'Vol. 1 Ch. 6.cbz' is verified and no need to re-download
[INFO] Waiting for chapter read marker to finish
[INFO] Download finished for manga "Tamamo no Koi"
[DEBUG] Checking update...
[DEBUG] No update found
[INFO] Cleaning up...
[DEBUG] Closing network object so everything looks fixed now |
A simple rename files is key to fixing bugs, yeah. Anyway, thank you for your contribution from testing, reporting bugs and everything ! |
What happened ?
i get exeption
What did you expect to happen ?
download as usual
OS version
docker image python:3
App version
mangadex-downloader v2.10.3 (https://github.com/mansuf/mangadex-downloader)
Python: 3.12.3
arch: x64
bundled executable: no
Installation origin
Other
Installation origin (other sources)
ae3ab36
Reproducible command
mangadex-downloader --language en --sort-by chapter --save-as "cbz" --delay-requests 1.5 /downloads/download.txt
Additional context
after i checkout to
v3.0.0
and i run
mangadex-downloader --language en --sort-by chapter --save-as "cbz" --delay-requests 1.5 /downloads/download.txt
i get
i don't think it is connected to #108 but i was testing it
i had to set env
MANGADEXDL_CONFIG_ENABLED=1
before that i got
here is docker file i run
https://github.com/vonProteus/mangadex-downloader-docker/tree/tmp-3.0.0
The text was updated successfully, but these errors were encountered: