FileNotFoundError
Think I'm having an issue with setting the metadata
Scraping [text]. Should take less than a minute.
2020-11-09 22:21:34,452 ERROR errors [Errno 2] No such file or directory: 'G:\\Scripts\\OnlyFans\\.sites\\OnlyFans-new2\\evenink_cosplay\\Archived\\Images\\24346375 (20-05-2020)\\2880x2160_6598ac9f823fcd75e2f3a40b32aee332.jpg'
Traceback (most recent call last):
File "C:\Python\Python39\lib\shutil.py", line 803, in move
os.rename(src, real_dst)
FileNotFoundError: [WinError 3] The system cannot find the path specified: 'G:\\Scripts\\OnlyFans\\.sites\\OnlyFans-new2\\evenink_cosplay\\Archived\\Posts\\Images\\24346375 (20-05-2020)\\2880x2160_6598ac9f823fcd75e2f3a40b32aee332.jpg' -> 'G:\\Scripts\\OnlyFans\\.sites\\OnlyFans-new2\\evenink_cosplay\\Archived\\Images\\24346375 (20-05-2020)\\2880x2160_6598ac9f823fcd75e2f3a40b32aee332.jpg'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "G:\Scripts\OnlyFans\datascraper\main_datascraper.py", line 120, in start_datascraper
x = main_helper.process_names(
File "G:\Scripts\OnlyFans\helpers\main_helper.py", line 505, in process_names
result = module.start_datascraper(
File "G:\Scripts\OnlyFans\modules\onlyfans.py", line 128, in start_datascraper
results = prepare_scraper(
File "G:\Scripts\OnlyFans\modules\onlyfans.py", line 542, in prepare_scraper
main_helper.export_archive(
File "G:\Scripts\OnlyFans\helpers\main_helper.py", line 195, in export_archive
datas2 = ofrenamer.start(archive_path, json_settings)
File "G:\Scripts\OnlyFans\extras\OFRenamer\start.py", line 144, in start
metadata.valid = fix_metadata(
File "G:\Scripts\OnlyFans\extras\OFRenamer\start.py", line 122, in fix_metadata
old_folders = pool.starmap(start, product(
File "C:\Python\Python39\lib\multiprocessing\pool.py", line 372, in starmap
return self._map_async(func, iterable, starmapstar, chunksize).get()
File "C:\Python\Python39\lib\multiprocessing\pool.py", line 771, in get
raise self._value
File "C:\Python\Python39\lib\multiprocessing\pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "C:\Python\Python39\lib\multiprocessing\pool.py", line 51, in starmapstar
return list(itertools.starmap(args[0], args[1]))
File "G:\Scripts\OnlyFans\extras\OFRenamer\start.py", line 90, in start
filepath, old_filepath = update(filepath)
File "G:\Scripts\OnlyFans\extras\OFRenamer\start.py", line 87, in update
shutil.move(filepath, new_format)
File "C:\Python\Python39\lib\shutil.py", line 817, in move
copy_function(src, real_dst)
File "C:\Python\Python39\lib\shutil.py", line 432, in copy2
copyfile(src, dst, follow_symlinks=follow_symlinks)
File "C:\Python\Python39\lib\shutil.py", line 261, in copyfile
with open(src, 'rb') as fsrc, open(dst, 'wb') as fdst:
FileNotFoundError: [Errno 2] No such file or directory: 'G:\\Scripts\\OnlyFans\\.sites\\OnlyFans-new2\\evenink_cosplay\\Archived\\Images\\24346375 (20-05-2020)\\2880x2160_6598ac9f823fcd75e2f3a40b32aee332.jpg'
Did you check if the file path is valid?
OK, so the source image exists, but where it's moving it to, does not.
'G:\\Scripts\\OnlyFans\\.sites\\OnlyFans-new2\\evenink_cosplay\\Archived\\Posts\\Images\\24346375 (20-05-2020)\\2880x2160_6598ac9f823fcd75e2f3a40b32aee332.jpg'
'G:\\Scripts\\OnlyFans\\.sites\\OnlyFans-new2\\evenink_cosplay\\Archived\\Images\\24346375 (20-05-2020)\\2880x2160_6598ac9f823fcd75e2f3a40b32aee332.jpg'
The dest Images folder doesn't exist.
Guess that process isn't creating the folders.
Which one is the src and dst lol
Dest
FileNotFoundError: [Errno 2] No such file or directory: 'G:\\Scripts\\OnlyFans\\.sites\\OnlyFans-new2\\evenink_cosplay\\Archived\\Images\\24346375 (20-05-2020)\\2880x2160_6598ac9f823fcd75e2f3a40b32aee332.jpg'
I have the same problem with Archived folders. For some of my profiles I DL'd the archive path is such: [ProfileName]\Archived\Posts\Images But it is looking for the 'Images' or 'Videos' folder one level below the 'Posts' folder which doesn't exist in some cases. Then it throws the error.
Seems to be looking here instead of in the 'Posts' folder: [ProfileName]\Archived\Images
This issue is getting a bit bad in terms of taking up space. My only workaround is to keep copies of archived images and videos in both locations. And having to manually do it for each archive folder.
I need to know other usernames to fix this
I've been through all the ones I follow and for some reason it's only happening with the evenink_cosplay account.
nvm, I know the problem and I've found an account that I previously archived. I'll fix this.
Try latest commit
Same error:
Type: Archived
Scrape Attempt: 1/100
Found: Archived_posts
Scraping [photo]. Should take less than a minute.
Scraping [video | stream | gif]. Should take less than a minute.
Scraping [audio]. Should take less than a minute.
Scraping [text]. Should take less than a minute.
2020-11-14 23:27:00,573 ERROR errors [Errno 2] No such file or directory: 'G:\\Scripts\\OnlyFans\\.sites\\OnlyFans-new2\\evenink_cosplay\\Archived\\Images\\24346375 (20-05-2020)\\2880x2160_6598ac9f823fcd75e2f3a40b32aee332.jpg'
Traceback (most recent call last):
File "C:\Python\Python39\lib\shutil.py", line 803, in move
os.rename(src, real_dst)
FileNotFoundError: [WinError 3] The system cannot find the path specified: 'G:\\Scripts\\OnlyFans\\.sites\\OnlyFans-new2\\evenink_cosplay\\Archived\\Posts\\Images\\24346375 (20-05-2020)\\2880x2160_6598ac9f823fcd75e2f3a40b32aee332.jpg' -> 'G:\\Scripts\\OnlyFans\\.sites\\OnlyFans-new2\\evenink_cosplay\\Archived\\Images\\24346375 (20-05-2020)\\2880x2160_6598ac9f823fcd75e2f3a40b32aee332.jpg'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "G:\Scripts\OnlyFans\datascraper\main_datascraper.py", line 120, in start_datascraper
x = main_helper.process_names(
File "G:\Scripts\OnlyFans\helpers\main_helper.py", line 511, in process_names
result = module.start_datascraper(
File "G:\Scripts\OnlyFans\modules\onlyfans.py", line 130, in start_datascraper
results = prepare_scraper(
File "G:\Scripts\OnlyFans\modules\onlyfans.py", line 547, in prepare_scraper
main_helper.export_archive(
File "G:\Scripts\OnlyFans\helpers\main_helper.py", line 200, in export_archive
datas2 = ofrenamer.start(archive_path, json_settings)
File "G:\Scripts\OnlyFans\extras\OFRenamer\start.py", line 144, in start
metadata.valid = fix_metadata(
File "G:\Scripts\OnlyFans\extras\OFRenamer\start.py", line 122, in fix_metadata
old_folders = pool.starmap(start, product(
File "C:\Python\Python39\lib\multiprocessing\pool.py", line 372, in starmap
return self._map_async(func, iterable, starmapstar, chunksize).get()
File "C:\Python\Python39\lib\multiprocessing\pool.py", line 771, in get
raise self._value
File "C:\Python\Python39\lib\multiprocessing\pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "C:\Python\Python39\lib\multiprocessing\pool.py", line 51, in starmapstar
return list(itertools.starmap(args[0], args[1]))
File "G:\Scripts\OnlyFans\extras\OFRenamer\start.py", line 90, in start
filepath, old_filepath = update(filepath)
File "G:\Scripts\OnlyFans\extras\OFRenamer\start.py", line 87, in update
shutil.move(filepath, new_format)
File "C:\Python\Python39\lib\shutil.py", line 817, in move
copy_function(src, real_dst)
File "C:\Python\Python39\lib\shutil.py", line 432, in copy2
copyfile(src, dst, follow_symlinks=follow_symlinks)
File "C:\Python\Python39\lib\shutil.py", line 261, in copyfile
with open(src, 'rb') as fsrc, open(dst, 'wb') as fdst:
FileNotFoundError: [Errno 2] No such file or directory: 'G:\\Scripts\\OnlyFans\\.sites\\OnlyFans-new2\\evenink_cosplay\\Archived\\Images\\24346375 (20-05-2020)\\2880x2160_6598ac9f823fcd75e2f3a40b32aee332.jpg'
First girl I got this error with with the new code was 'diamondkay'. Wasn't able to get past this. I think her profile is free so you can test on her. It seems to happen more if I choose the '0' option to scrape all accounts instead of 1 at a time.
`2020-11-15 00:27:17,975 ERROR errors [WinError 2] The system cannot find the file specified: 'I:\OnlyFans-5.6.2\.sites\OnlyFans\diamondkay\Archived\Images\[2018-12-24] (87793377-C5B634DC-C7AC-4DF1-B503-6D798CEE76A9).jpeg' Traceback (most recent call last): File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\shutil.py", line 803, in move os.rename(src, real_dst) FileExistsError: [WinError 183] Cannot create a file when that file already exists: 'I:\OnlyFans-5.6.2\.sites\OnlyFans\diamondkay\Archived\Images\[2018-12-24] (87793377-C5B634DC-C7AC-4DF1-B503-6D798CEE76A9).jpeg' -> 'I:\OnlyFans-5.6.2\.sites\OnlyFans\diamondkay\Archived\Posts\Images\[2018-12-24] (87793377-C5B634DC-C7AC-4DF1-B503-6D798CEE76A9).jpeg'
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "I:\OnlyFans-5.6.2\datascraper\main_datascraper.py", line 120, in start_datascraper x = main_helper.process_names( File "I:\OnlyFans-5.6.2\helpers\main_helper.py", line 511, in process_names result = module.start_datascraper( File "I:\OnlyFans-5.6.2\modules\onlyfans.py", line 130, in start_datascraper results = prepare_scraper( File "I:\OnlyFans-5.6.2\modules\onlyfans.py", line 519, in prepare_scraper unrefined_result = pool.starmap(media_scraper, product( File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\multiprocessing\pool.py", line 372, in starmap return self._map_async(func, iterable, starmapstar, chunksize).get() File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\multiprocessing\pool.py", line 771, in get raise self._value File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\multiprocessing\pool.py", line 125, in worker result = (True, func(*args, **kwds)) File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\multiprocessing\pool.py", line 51, in starmapstar return list(itertools.starmap(args[0], args[1])) File "I:\OnlyFans-5.6.2\modules\onlyfans.py", line 707, in media_scraper shutil.move(old_filepath, new_filepath) File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\shutil.py", line 818, in move os.unlink(src) FileNotFoundError: [WinError 2] The system cannot find the file specified: 'I:\OnlyFans-5.6.2\.sites\OnlyFans\diamondkay\Archived\Images\[2018-12-24] (87793377-C5B634DC-C7AC-4DF1-B503-6D798CEE76A9).jpeg'`
Does 5.7 release address this issue?
I don't think so, it's a bug with using unsorted file paths and the file directory format
So the first pass through with 5.7 I got no errors. Maybe it did fix it. I'll report back if the issue comes back.
Spoke too soon eventually got the error when running this account.
FileNotFoundError: [Errno 2] No such file or directory: 'I:\OnlyFans-5.7\.sites\OnlyFans\lunaskye9\Archived\Images\[2019-10-16] (902x1792_eb8073be912cb1b5d3376a05ee4abd4b6028315da710e72c9cf).jpg'
Note, my file directory format is set to "file_directory_format": "",
What was the full error and ye I did fix the FileExistsError in 5.7 but not the file not found
What was the full error and ye I did fix the FileExistsError in 5.7 but not the file not found
I'm trying to recreate it. I just removed the Archive metadata for this profile and it worked this time. Trying other profiles.
2020-11-15 17:52:35,659 ERROR errors [Errno 2] No such file or directory: 'I:\\OnlyFans-5.7\\.sites\\OnlyFans\\lenaanderson\\Archived\\Videos\\[2020-04-28] (vs92KNBgdmf6wHf7Lbrbu0ZCd3FKWyVB).mp4'
Traceback (most recent call last):
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\shutil.py", line 803, in move
os.rename(src, real_dst)
FileNotFoundError: [WinError 3] The system cannot find the path specified: 'I:\\OnlyFans-5.7\\.sites\\OnlyFans\\lenaanderson\\Archived\\Posts\\Videos\\[2020-04-28] (vs92KNBgdmf6wHf7Lbrbu0ZCd3FKWyVB).mp4' -> 'I:\\OnlyFans-5.7\\.sites\\OnlyFans\\lenaanderson\\Archived\\Videos\\[2020-04-28] (vs92KNBgdmf6wHf7Lbrbu0ZCd3FKWyVB).mp4'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "I:\OnlyFans-5.7\datascraper\main_datascraper.py", line 120, in start_datascraper
x = main_helper.process_names(
File "I:\OnlyFans-5.7\helpers\main_helper.py", line 511, in process_names
result = module.start_datascraper(
File "I:\OnlyFans-5.7\modules\onlyfans.py", line 130, in start_datascraper
results = prepare_scraper(
File "I:\OnlyFans-5.7\modules\onlyfans.py", line 566, in prepare_scraper
main_helper.export_archive(
File "I:\OnlyFans-5.7\helpers\main_helper.py", line 200, in export_archive
datas2 = ofrenamer.start(archive_path, json_settings)
File "I:\OnlyFans-5.7\extras\OFRenamer\start.py", line 144, in start
metadata.valid = fix_metadata(
File "I:\OnlyFans-5.7\extras\OFRenamer\start.py", line 122, in fix_metadata
old_folders = pool.starmap(start, product(
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\multiprocessing\pool.py", line 372, in starmap
return self._map_async(func, iterable, starmapstar, chunksize).get()
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\multiprocessing\pool.py", line 771, in get
raise self._value
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\multiprocessing\pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\multiprocessing\pool.py", line 51, in starmapstar
return list(itertools.starmap(args[0], args[1]))
File "I:\OnlyFans-5.7\extras\OFRenamer\start.py", line 115, in start
filepath, old_filepath = update(filepath)
File "I:\OnlyFans-5.7\extras\OFRenamer\start.py", line 87, in update
shutil.move(filepath, new_format)
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\shutil.py", line 817, in move
copy_function(src, real_dst)
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\shutil.py", line 432, in copy2
copyfile(src, dst, follow_symlinks=follow_symlinks)
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\shutil.py", line 261, in copyfile
with open(src, 'rb') as fsrc, open(dst, 'wb') as fdst:
FileNotFoundError: [Errno 2] No such file or directory: 'I:\\OnlyFans-5.7\\.sites\\OnlyFans\\lenaanderson\\Archived\\Videos\\[2020-04-28] (vs92KNBgdmf6wHf7Lbrbu0ZCd3FKWyVB).mp4'
@bobsage123 are you able to locate (vs92KNBgdmf6wHf7Lbrbu0ZCd3FKWyVB).mp4 in any of the folders?