DIGITALCRIMINAL / ArchivedUltimaScraper

Scrape content from OnlyFans and Fansly
GNU General Public License v3.0
942 stars 39 forks source link

ModuleNotFoundError #630

Closed Wykeless closed 2 years ago

Wykeless commented 2 years ago

So It worked before, I left it for like over month, didnt change anything and now im getting this error when running start_ofd.py

File ".\OnlyFans-7.6.1\start_ofd.py", line 9, in from helpers.main_helper import OptionsFormat File ".\OnlyFans-7.6.1\helpers\main_helper.py", line 23, in import orjson ModuleNotFoundError: No module named 'orjson'

and running the updater.py gives me this

C:\Python310\lib\site-packages\requests__init__.py:102: RequestsDependencyWarning: urllib3 (1.26.8) or chardet (5.0.0)/charset_normalizer (2.0.12) doesn't match a supported version! warnings.warn("urllib3 ({}) or chardet ({})/charset_normalizer ({}) doesn't match a supported " Script has been updated, exiting in 5 seconds

if it means anything...

Windows 11 Python 3.10.5 PIP 22.2.2

amajio commented 2 years ago

try pip install orjson

Wykeless commented 2 years ago

Okay that fixed the orjson issue but im still getthing this

C:\Python310\lib\site-packages\requests__init__.py:102: RequestsDependencyWarning: urllib3 (1.26.8) or chardet (5.0.0)/charset_normalizer (2.0.12) doesn't match a supported version! warnings.warn("urllib3 ({}) or chardet ({})/charset_normalizer ({}) doesn't match a supported "

and connection attempts fail now

Wykeless commented 2 years ago

Okay i redid my auth.json and it gets passed the auth attempts now but now this error popped up

File ".\OnlyFans-7.6.1\start_ofd.py", line 66, in asyncio.run(main()) File "C:\Python310\lib\asyncio\runners.py", line 44, in run return loop.run_until_complete(main) File "C:\Python310\lib\asyncio\base_events.py", line 646, in run_until_complete return future.result() File ".\OnlyFans-7.6.1\start_ofd.py", line 52, in main api = await main_datascraper.start_datascraper(config, site_name) File ".\OnlyFans-7.6.1\datascraper\main_datascraper.py", line 131, in start_datascraper await default(datascraper) File ".\OnlyFans-7.6.1\datascraper\main_datascraper.py", line 101, in default await main_helper.process_jobs(datascraper, subscription_list, site_settings) File ".\OnlyFans-7.6.1\helpers\main_helper.py", line 1026, in process_jobs await datascraper.start_datascraper(authed, subscription.username) File ".\OnlyFans-7.6.1\modules\module_streamliner.py", line 84, in start_datascraper await self.prepare_scraper(subscription, content_type) File ".\OnlyFans-7.6.1\modules\module_streamliner.py", line 232, in prepare_scraper master_set.extend(await self.datascraper.get_all_stories(subscription)) File ".\OnlyFans-7.6.1\modules\onlyfans.py", line 388, in get_all_stories highlights = await subscription.get_highlights() File ".\OnlyFans-7.6.1\apis\onlyfans\classes\user_model.py", line 283, in get_highlights results = [create_highlight(x) for x in results["data"]] KeyError: 'data' Exception ignored in: <function _ProactorBasePipeTransport.del at 0x000001E2E294FB50> Traceback (most recent call last): File "C:\Python310\lib\asyncio\proactor_events.py", line 116, in del self.close() File "C:\Python310\lib\asyncio\proactor_events.py", line 108, in close self._loop.call_soon(self._call_connection_lost, None) File "C:\Python310\lib\asyncio\base_events.py", line 750, in call_soon self._check_closed() File "C:\Python310\lib\asyncio\base_events.py", line 515, in _check_closed raise RuntimeError('Event loop is closed') RuntimeError: Event loop is closed

Wykeless commented 2 years ago

Okay I searched around in the issues and found this 622# ...changed data to list and it fixed that error above

the only issue that remains is the charset warning, should I be worried about that at all?

eclipseo commented 2 years ago

Okay I searched around in the issues and found this 622# ...changed data to list and it fixed that error above

the only issue that remains is the charset warning, should I be worried about that at all?

Try updating request:

pip3 install --upgrade requests

Wykeless commented 2 years ago

cool that fixed it

Wykeless commented 2 years ago

thanks @amajio and @eclipseo for the help..imma close the issue now