You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please insert the code that is throwing errors or is giving you weird unexpected results.
Error Trace (if any)
Put the error trace below if there's any error thrown.
Traceback (most recent call last):
File "C:\Users\progr\Documents\GitHub\tiktok-techjam24-factcheck\backend\explore.py", line 79, in <module>
asyncio.run(explorer.get_hashtags())
File "C:\Users\progr\AppData\Local\Programs\Python\Python312\Lib\asyncio\runners.py", line 194, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "C:\Users\progr\AppData\Local\Programs\Python\Python312\Lib\asyncio\runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\progr\AppData\Local\Programs\Python\Python312\Lib\asyncio\base_events.py", line 664, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "C:\Users\progr\Documents\GitHub\tiktok-techjam24-factcheck\backend\explore.py", line 38, in get_hashtags
tag_info = await tag.info()
^^^^^^^^^^^^^^^^
File "C:\Users\progr\Documents\GitHub\tiktok-techjam24-factcheck\tiktok\Lib\site-packages\TikTokApi\api\hashtag.py", line 71, in info
resp = await self.parent.make_request(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\progr\Documents\GitHub\tiktok-techjam24-factcheck\tiktok\Lib\site-packages\TikTokApi\tiktok.py", line 403, in make_request
i, session = self._get_session(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\progr\Documents\GitHub\tiktok-techjam24-factcheck\tiktok\Lib\site-packages\TikTokApi\tiktok.py", line 318, in _get_session
return i, self.sessions[i]
~~~~~~~~~~~~~^^^
IndexError: list index out of range
Exception ignored in: <function _ProactorBasePipeTransport.__del__ at 0x000002B5FFC368E0>
Traceback (most recent call last):
File "C:\Users\progr\AppData\Local\Programs\Python\Python312\Lib\asyncio\proactor_events.py", line 116, in __del__
_warn(f"unclosed transport {self!r}", ResourceWarning, source=self)
^^^^^^^^
File "C:\Users\progr\AppData\Local\Programs\Python\Python312\Lib\asyncio\proactor_events.py", line 80, in __repr__
info.append(f'fd={self._sock.fileno()}')
^^^^^^^^^^^^^^^^^^^
File "C:\Users\progr\AppData\Local\Programs\Python\Python312\Lib\asyncio\windows_utils.py", line 102, in fileno
raise ValueError("I/O operation on closed pipe")
ValueError: I/O operation on closed pipe
Exception ignored in: <function BaseSubprocessTransport.__del__ at 0x000002B5FFC34FE0>
Traceback (most recent call last):
File "C:\Users\progr\AppData\Local\Programs\Python\Python312\Lib\asyncio\base_subprocess.py", line 125, in __del__
_warn(f"unclosed transport {self!r}", ResourceWarning, source=self)
^^^^^^^^
File "C:\Users\progr\AppData\Local\Programs\Python\Python312\Lib\asyncio\base_subprocess.py", line 70, in __repr__
info.append(f'stdin={stdin.pipe}')
^^^^^^^^^^^^
File "C:\Users\progr\AppData\Local\Programs\Python\Python312\Lib\asyncio\proactor_events.py", line 80, in __repr__
info.append(f'fd={self._sock.fileno()}')
^^^^^^^^^^^^^^^^^^^
File "C:\Users\progr\AppData\Local\Programs\Python\Python312\Lib\asyncio\windows_utils.py", line 102, in fileno
raise ValueError("I/O operation on closed pipe")
ValueError: I/O operation on closed pipe
Exception ignored in: <function StreamWriter.__del__ at 0x000002B5FFC2A200>
Traceback (most recent call last):
File "C:\Users\progr\AppData\Local\Programs\Python\Python312\Lib\asyncio\streams.py", line 397, in __del__
self.close()
File "C:\Users\progr\AppData\Local\Programs\Python\Python312\Lib\asyncio\streams.py", line 343, in close
return self._transport.close()
^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\progr\AppData\Local\Programs\Python\Python312\Lib\asyncio\proactor_events.py", line 109, in close
self._loop.call_soon(self._call_connection_lost, None)
File "C:\Users\progr\AppData\Local\Programs\Python\Python312\Lib\asyncio\base_events.py", line 772, in call_soon
self._check_closed()
File "C:\Users\progr\AppData\Local\Programs\Python\Python312\Lib\asyncio\base_events.py", line 519, in _check_closed
raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed
Exception ignored in: <function _ProactorBasePipeTransport.__del__ at 0x000002B5FFC368E0>
Traceback (most recent call last):
File "C:\Users\progr\AppData\Local\Programs\Python\Python312\Lib\asyncio\proactor_events.py", line 116, in __del__
_warn(f"unclosed transport {self!r}", ResourceWarning, source=self)
^^^^^^^^
File "C:\Users\progr\AppData\Local\Programs\Python\Python312\Lib\asyncio\proactor_events.py", line 80, in __repr__
info.append(f'fd={self._sock.fileno()}')
^^^^^^^^^^^^^^^^^^^
File "C:\Users\progr\AppData\Local\Programs\Python\Python312\Lib\asyncio\windows_utils.py", line 102, in fileno
raise ValueError("I/O operation on closed pipe")
ValueError: I/O operation on closed pipe
Desktop (please complete the following information):
OS: Windows 11
TikTokApi Version 6.3.*
Additional context
It is basically a BFS Algorithm so don't worry about it too much. I tried to close the sessions, otherwise it will throw errors because it is trying to write something to the local browser cookies files and it cannot. It throws error on the second item in the for loop: for old_tag in frontier:
The text was updated successfully, but these errors were encountered:
I am trying to do a frontier BFS search on the hashtags. But I cannot go to the second hashtag.
Please insert the code that is throwing errors or is giving you weird unexpected results.
Error Trace (if any)
Put the error trace below if there's any error thrown.
Desktop (please complete the following information):
Additional context
It is basically a BFS Algorithm so don't worry about it too much. I tried to close the sessions, otherwise it will throw errors because it is trying to write something to the local browser cookies files and it cannot. It throws error on the second item in the for loop:
for old_tag in frontier:
The text was updated successfully, but these errors were encountered: