Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

down erro #33

Closed
loeveo opened this issue Jul 24, 2020 · 12 comments
Closed

down erro #33

loeveo opened this issue Jul 24, 2020 · 12 comments
Labels
bug Something isn't working

Comments

@loeveo
Copy link

loeveo commented Jul 24, 2020

ERROR:pyrogram.client.client:
Traceback (most recent call last):
File "/data/data/com.termux/files/usr/lib/python3.8/site-packages/pyrogram/client/client.py", line 2008, in get_file
r = await session.send(
File "/data/data/com.termux/files/usr/lib/python3.8/site-packages/pyrogram/session/session.py", line 451, in send
return await self.send(data, retries - 1, timeout)
File "/data/data/com.termux/files/usr/lib/python3.8/site-packages/pyrogram/session/session.py", line 451, in send
return await self.send(data, retries - 1, timeout)
File "/data/data/com.termux/files/usr/lib/python3.8/site-packages/pyrogram/session/session.py", line 451, in send
return await self.send(data, retries - 1, timeout)
[Previous line repeated 2 more times]
File "/data/data/com.termux/files/usr/lib/python3.8/site-packages/pyrogram/session/session.py", line 442, in send
raise e from None
File "/data/data/com.termux/files/usr/lib/python3.8/site-packages/pyrogram/session/session.py", line 429, in send
return await self._send(data, timeout=timeout)
File "/data/data/com.termux/files/usr/lib/python3.8/site-packages/pyrogram/session/session.py", line 394, in _send
raise TimeoutError
TimeoutError
ERROR:pyrogram.client.client:
Traceback (most recent call last):
File "/data/data/com.termux/files/usr/lib/python3.8/site-packages/pyrogram/client/client.py", line 2008, in get_file
r = await session.send(
File "/data/data/com.termux/files/usr/lib/python3.8/site-packages/pyrogram/session/session.py", line 451, in send
return await self.send(data, retries - 1, timeout)
File "/data/data/com.termux/files/usr/lib/python3.8/site-packages/pyrogram/session/session.py", line 451, in send
return await self.send(data, retries - 1, timeout)
File "/data/data/com.termux/files/usr/lib/python3.8/site-packages/pyrogram/session/session.py", line 451, in send
return await self.send(data, retries - 1, timeout)
[Previous line repeated 2 more times]
File "/data/data/com.termux/files/usr/lib/python3.8/site-packages/pyrogram/session/session.py", line 442, in send
raise e from None
File "/data/data/com.termux/files/usr/lib/python3.8/site-packages/pyrogram/session/session.py", line 429, in send
return await self._send(data, timeout=timeout)
File "/data/data/com.termux/files/usr/lib/python3.8/site-packages/pyrogram/session/session.py", line 394, in _send
raise TimeoutError
TimeoutError
ERROR:pyrogram.client.client:
Traceback (most recent call last):
File "/data/data/com.termux/files/usr/lib/python3.8/site-packages/pyrogram/client/client.py", line 2008, in get_file
r = await session.send(
File "/data/data/com.termux/files/usr/lib/python3.8/site-packages/pyrogram/session/session.py", line 451, in send
return await self.send(data, retries - 1, timeout)
File "/data/data/com.termux/files/usr/lib/python3.8/site-packages/pyrogram/session/session.py", line 451, in send
return await self.send(data, retries - 1, timeout)
File "/data/data/com.termux/files/usr/lib/python3.8/site-packages/pyrogram/session/session.py", line 451, in send
return await self.send(data, retries - 1, timeout)
[Previous line repeated 2 more times]
File "/data/data/com.termux/files/usr/lib/python3.8/site-packages/pyrogram/session/session.py", line 442, in send
raise e from None
File "/data/data/com.termux/files/usr/lib/python3.8/site-packages/pyrogram/session/session.py", line 429, in send
return await self._send(data, timeout=timeout)
File "/data/data/com.termux/files/usr/lib/python3.8/site-packages/pyrogram/session/session.py", line 394, in _send
raise TimeoutError
TimeoutError
INFO:main:Media downloaded - None
INFO:main:Media downloaded - None
Traceback (most recent call last):
File "media_downloader.py", line 232, in
updated_config = asyncio.get_event_loop().run_until_complete(
File "/data/data/com.termux/files/usr/lib/python3.8/asyncio/base_events.py", line 612, in run_until_complete
return future.result()
File "media_downloader.py", line 206, in begin_import
last_read_message_id = await process_messages(
File "media_downloader.py", line 175, in process_messages
message_ids = await asyncio.gather(
File "media_downloader.py", line 134, in download_media
download_path = manage_duplicate_file(download_path)
File "/storage/emulated/0/ADM/nsfw/utils/file_management.py", line 37, in manage_duplicate_file
posix_path = pathlib.Path(file_path)
File "/data/data/com.termux/files/usr/lib/python3.8/pathlib.py", line 1035, in new
self = cls._from_parts(args, init=False)
File "/data/data/com.termux/files/usr/lib/python3.8/pathlib.py", line 676, in _from_parts
drv, root, parts = self._parse_args(args)
File "/data/data/com.termux/files/usr/lib/python3.8/pathlib.py", line 660, in _parse_args
a = os.fspath(a)
TypeError: expected str, bytes or os.PathLike object, not NoneType

@issue-label-bot issue-label-bot bot added the bug Something isn't working label Jul 24, 2020
@issue-label-bot
Copy link

Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.82. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

@Dineshkarthik
Copy link
Owner

Hi this seems to be a timeout error, can you try re-running the script and check.

@loeveo
Copy link
Author

loeveo commented Jul 24, 2020

您好,这似乎是超时错误,您可以尝试重新运行脚本并进行检查吗?

Oh, okay, thanks. But can I trouble the author to think about it, are there other functional requirements I mentioned? Especially the ID number of the downloaded file is written in real time. Otherwise, it cannot be continued under such a sudden interruption or manual stop.

@Dineshkarthik
Copy link
Owner

yeah, I am planning to work on those other feature requests soon.

@Dineshkarthik Dineshkarthik added question Further information is requested and removed bug Something isn't working labels Jul 24, 2020
@loeveo
Copy link
Author

loeveo commented Jul 25, 2020

yeah, I am planning to work on those other feature requests soon.

Traceback (most recent call last):
File "media_downloader.py", line 233, in
begin_import(config, pagination_limit=100)
File "/usr/lib/python3.7/asyncio/base_events.py", line 584, in run_until_complete
return future.result()
File "media_downloader.py", line 210, in begin_import
config["file_formats"],
File "media_downloader.py", line 178, in process_messages
for message in messages
File "media_downloader.py", line 134, in download_media
download_path = manage_duplicate_file(download_path)
File "/home/telegram_media_downloader/utils/file_management.py", line 41, in manage_duplicate_file
old_files.remove(file_path)
ValueError: list.remove(x): x not in list

@Dineshkarthik
Copy link
Owner

Can you share the chat-id if it is a public one? Would like to have some sample data to replicate the above.

@Dineshkarthik Dineshkarthik added bug Something isn't working and removed question Further information is requested labels Jul 31, 2020
@loeveo
Copy link
Author

loeveo commented Aug 1, 2020

Can you share the chat-id if it is a public one? Would like to have some sample data to replicate the above.

It doesn’t seem to be the cause of the channel, because several of my channels are like this. It should be because there are too many downloads.

@Dineshkarthik
Copy link
Owner

Of course, it is has nothing to do with the channel. I am trying to replicate the issue hence needed the channel-id

@loeveo loeveo closed this as completed Aug 1, 2020
@loeveo
Copy link
Author

loeveo commented Aug 1, 2020

Of course, it is has nothing to do with the channel. I am trying to replicate the issue hence needed the channel-id

@dedao_eBook

1 similar comment
@loeveo
Copy link
Author

loeveo commented Aug 1, 2020

Of course, it is has nothing to do with the channel. I am trying to replicate the issue hence needed the channel-id

@dedao_eBook

@loeveo loeveo reopened this Aug 3, 2020
@Dineshkarthik
Copy link
Owner

Unable to replicate this issue. Are you still facing this issue?

@stale
Copy link

stale bot commented Oct 2, 2020

This issue has been automatically marked as stale because it has not had recent activity in the past 60 days. It will be closed if no further activity occurs in the next 7 days. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Oct 2, 2020
@stale stale bot closed this as completed Oct 9, 2020
@Dineshkarthik Dineshkarthik removed the wontfix This will not be worked on label Jan 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants