jslay88 / qbt_migrate

Migrate qBittorrent downloads
MIT License
162 stars 10 forks source link

Error while trying to change drive letter #6

Closed MrDemous closed 4 years ago

MrDemous commented 4 years ago

I'm getting this error when I try to change a drive letter from H:\ to G:\

I'm using Windows 10 64bit and Python 3.8.3

Traceback (most recent call last): File "C:\Python38\lib\site-packages\bencode__init.py", line 180, in bdecode r, l = decode_func[value[0:1]](value, 0) KeyError: b'\x08' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "cli.py", line 49, in qbm.run(args.existing_path, args.new_path, args.target_os) File "C:\qbt\qbt_migrate\classes.py", line 45, in run for fast_resume in self.discover_relevant_fast_resume(self.bt_backup_path, existing_path): File "C:\qbt\qbt_migrate\classes.py", line 63, in discover_relevant_fast_resume fast_resume = FastResume(os.path.join(bt_backup_path, file)) File "C:\qbt\qbt_migrate\classes.py", line 95, in init self._data = bencode.bread(self.file_path) File "C:\Python38\lib\site-packages\bencode\init.py", line 325, in bread return bdecode(fd.read()) File "C:\Python38\lib\site-packages\bencode\init__.py", line 182, in bdecode raise BencodeDecodeError("not a valid bencoded string") bencode.exceptions.BencodeDecodeError: not a valid bencoded string

jslay88 commented 4 years ago

Please provide a test fast resume file That causes the issue and the arguments you are using when running the script.

On Mon, Jun 29, 2020 at 10:48 MrDemous notifications@github.com wrote:

I'm getting this error when I try to change a drive letter from H:\ to G:\

I'm using Windows 10 64bit and Python 3.8.3

Traceback (most recent call last): File "C:\Python38\lib\site-packages\bencodeinit.py", line 180, in bdecode r, l = decode_func[value[0:1]](value, 0) KeyError: b'\x08' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "cli.py", line 49, in qbm.run(args.existing_path, args.new_path, args.target_os) File "C:\qbt\qbt_migrate\classes.py", line 45, in run for fast_resume in self.discover_relevant_fast_resume(self.bt_backup_path, existing_path): File "C:\qbt\qbt_migrate\classes.py", line 63, in discover_relevant_fast_resume fast_resume = FastResume(os.path.join(bt_backup_path, file)) File "C:\qbt\qbt_migrate\classes.py", line 95, in init self. data = bencode.bread(self.file_path) File "C:\Python38\lib\site-packages\bencode_init.py", line 325, in bread return bdecode(fd.read()) File "C:\Python38\lib\site-packages\bencodeinit.py", line 182, in bdecode raise BencodeDecodeError("not a valid bencoded string") bencode.exceptions.BencodeDecodeError: not a valid bencoded string

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jslay88/qbt_migrate/issues/6, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABO7UULL5QV5VCVEKZVJJBTRZDAUHANCNFSM4OLMX6UQ .

MrDemous commented 4 years ago

Apparently there were some corrupted fastresume files in my BT_backup folder, I removed them and the script works just fine now.

Thanks @jslay88

jslay88 commented 4 years ago

Glad you got the issue solved. 👍