UltimaScraper icon indicating copy to clipboard operation
UltimaScraper copied to clipboard

TypeError: 'coroutine' object is not iterable

Open Bulli opened this issue 5 years ago • 29 comments

I have made an update to the latest version. When I start the script, it ends with this error. However, I've made a revert to 1491 and it works fine as before.

(xxxxx = anonymized)

Names: Username = username | 0 = All | 1 = default 0 Auth (V1) Attempt 1/10 Welcome xxxxx | xxxxx Scraping Paid Content Scraping - xxxxx | 1 / 9 Scraping - xxxxx | 2 / 9 Scraping - xxxxx | 3 / 9 Scraping - xxxxx | 4 / 9 Traceback (most recent call last): File "xxxx\start_ofd.py", line 60, in loop.run_until_complete(main()) File "xxxx\Python39\lib\asyncio\base_events.py", line 642, in run_until_complete return future.result() File "xxxx\start_ofd.py", line 44, in main api = await main_datascraper.start_datascraper( File "xxxx\datascraper\main_datascraper.py", line 90, in start_datascraper await module.paid_content_scraper(api, identifiers) File "xxxx\modules\onlyfans.py", line 401, in paid_content_scraper unrefined_set = await tqdm.gather(*tasks, **settings) File "xxxx\Python39\lib\site-packages\tqdm\asyncio.py", line 74, in gather ifs = [wrap_awaitable(i, f) for i, f in enumerate(fs)] TypeError: 'coroutine' object is not iterable

Bulli avatar Aug 13 '21 15:08 Bulli

having the exact same error here, also after updating to the latest version

brakheart avatar Aug 14 '21 22:08 brakheart

+1 having this issue

metalmau5 avatar Aug 19 '21 03:08 metalmau5

+1 having this issue Wiped dir, loaded new 7.4.1 rebuilt configs, updated req, tried both TQDM versions.

JWeavis avatar Aug 19 '21 15:08 JWeavis

-1 not having this issue. Lets take a look at some things. First what platform are you using? Windows, Linux, or Docker?

americanseeder1865 avatar Aug 20 '21 08:08 americanseeder1865

Windows 10

Bulli avatar Aug 20 '21 08:08 Bulli

alright. Does your requirements.txt look like this?

requests beautifulsoup4 urllib3 win32-setctime python-socks[asyncio] psutil python-dateutil lxml mergedeep jsonpickle ujson sqlalchemy==1.4.20 alembic tqdm>=4.62.0 selenium selenium-wire==2.1.2 user_agent aiohttp aiohttp_socks

americanseeder1865 avatar Aug 20 '21 08:08 americanseeder1865

alright. Does your requirements.txt look like this?

requests beautifulsoup4 urllib3 win32-setctime python-socks[asyncio] psutil python-dateutil lxml mergedeep jsonpickle ujson sqlalchemy==1.4.20 alembic tqdm>=4.62.0 selenium selenium-wire==2.1.2 user_agent aiohttp aiohttp_socks

I'm having the same issue and my requirements look just like that

chibi624 avatar Aug 20 '21 08:08 chibi624

Alright, are you on the latest update?

americanseeder1865 avatar Aug 20 '21 08:08 americanseeder1865

I am going to help you all of the way through here.

americanseeder1865 avatar Aug 20 '21 08:08 americanseeder1865

Alright, are you on the latest update?

Yes I am

chibi624 avatar Aug 20 '21 11:08 chibi624

Also tested with 7.4.1. I think it's related to recovering from the previous run as installing it to a new dir with no saved data works. Clean install and config to folder OF_471 auths and works. Copying the .sites from the non-working 7.4 folder to the new 741 folder causes it to error out again.

Was able to narrow it down to metadata files in one of the member folders. Moving other folders over and running the scan one person at a time. I had to delete a second set of Metadata folders from a second and third person.

JWeavis avatar Aug 20 '21 17:08 JWeavis

I've tried a fresh download 3 or 4 times, I've never migrated any files over at all, including the .sites file. I think I have an old .sites file somewhere with content from an old account, but there's no way it's getting pathed to. Is there something more significant of a reset/uninstall besides deleting the master folder and starting from scratch? Because that's what I've been doing.

chibi624 avatar Aug 20 '21 21:08 chibi624

Also tested with 7.4.1. I think it's related to recovering from the previous run as installing it to a new dir with no saved data works. Clean install and config to folder OF_471 auths and works. Copying the .sites from the non-working 7.4 folder to the new 741 folder causes it to error out again.

Was able to narrow it down to metadata files in one of the member folders. Moving other folders over and running the scan one person at a time. I had to delete a second set of Metadata folders from a second and third person.

This worked. Thanks.

metalmau5 avatar Aug 20 '21 23:08 metalmau5

File "O:\OnlyFans-master\start_ofd.py", line 60, in loop.run_until_complete(main()) File "C:\Users\XXXX\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py", line 642, in run_until_complete return future.result() File "O:\OnlyFans-master\start_ofd.py", line 44, in main api = await main_datascraper.start_datascraper( File "O:\OnlyFans-master\datascraper\main_datascraper.py", line 66, in start_datascraper setup, subscriptions = await module.account_setup( File "O:\OnlyFans-master\modules\onlyfans.py", line 106, in account_setup subscriptions += await manage_subscriptions( File "O:\OnlyFans-master\modules\onlyfans.py", line 1270, in manage_subscriptions for remote_blacklist in remote_blacklists: TypeError: 'error_details' object is not iterable`

There's got to be a better solution than deleting metadata. I have nearly 1000 folders. That'll be impossible to narrow it down.

Gamma-Velorum avatar Aug 20 '21 23:08 Gamma-Velorum

same issue fixed by running

pip install -r requirements.txt

again with the master branch files pasted inplace in the old ver folder

fatchai1994 avatar Aug 21 '21 17:08 fatchai1994

There's got to be a better solution than deleting metadata. I have nearly 1000 folders. That'll be impossible to narrow it down.

It's obviously not ideal, but you could just keep previously scraped content in a separate folder from the scraper.

metalmau5 avatar Aug 22 '21 00:08 metalmau5

Still having this issue, nothing to do with metadata as it happens on an absolutely fresh master file. All past scrapes from old versions/before this version crapped out are on a different place on the drive.

chibi624 avatar Aug 22 '21 06:08 chibi624

same issue, tried -master and -7.4.1 fresh install on windows 10 Python 3.9.5 (tags/v3.9.5:0a7dcbd, May 3 2021, 17:27:52) [MSC v.1928 64 bit (AMD64)] on win32

bmfss avatar Aug 22 '21 18:08 bmfss

mine happens earlier on actually but same error;

PS C:\OnlyFans-master> python.exe start_ofd.py Choose Profile Names: Username = username | 0 = All | 1 = default 0 Auth (V1) Attempt 1/10 Welcome Xxxxxx | xxxxxxx Traceback (most recent call last): File "C:\OnlyFans-master\start_ofd.py", line 60, in loop.run_until_complete(main()) File "C:\Python39\lib\asyncio\base_events.py", line 642, in run_until_complete return future.result() File "C:\OnlyFans-master\start_ofd.py", line 44, in main api = await main_datascraper.start_datascraper( File "C:\OnlyFans-master\datascraper\main_datascraper.py", line 66, in start_datascraper setup, subscriptions = await module.account_setup( File "C:\OnlyFans-master\modules\onlyfans.py", line 101, in account_setup mass_messages = await authed.get_mass_messages(resume=imported) File "C:\OnlyFans-master\apis\onlyfans\classes\create_auth.py", line 420, in get_mass_messages items.extend(results2) TypeError: 'coroutine' object is not iterable

(..hit enter..)

sys:1: RuntimeWarning: coroutine 'create_auth.get_mass_messages' was never awaited RuntimeWarning: Enable tracemalloc to get the object allocation traceback

bmfss avatar Aug 22 '21 18:08 bmfss

account1 has the issue (creator account, 2FA on, has a "linked account" (anther creator account), not subscribed to any creators)

account2 works! (subscriber account, 2FA off, subscribed to a few creators)

will try more combinations to attempt to narrow it down.

bmfss avatar Aug 22 '21 19:08 bmfss