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

[Errno 29] Illegal seek , [Errno 5] Input/output error. Error while downloading #253

Open
Revdep opened this issue Apr 1, 2024 · 0 comments

Comments

@Revdep
Copy link

Revdep commented Apr 1, 2024

  • telegram-upload version: last
  • Python version: Python 3.10.12
  • Operating System: Ubuntu 22.04
  • Dependencies list (run pip freeze):
    attrs==21.2.0
    Automat==20.2.0
    Babel==2.8.0
    bcrypt==3.2.0
    blinker==1.4
    certifi==2020.6.20
    chardet==4.0.0
    click==8.0.3
    cloud-init==23.4.4
    colorama==0.4.4
    command-not-found==0.3
    configobj==5.0.6
    constantly==15.1.0
    cryptg==0.4.0
    cryptography==3.4.8
    dbus-python==1.2.18
    distro==1.7.0
    distro-info==1.1+ubuntu0.2
    fail2ban==0.11.2
    hachoir==3.3.0
    httplib2==0.20.2
    hyperlink==21.0.0
    idna==3.3
    importlib-metadata==4.6.4
    incremental==21.3.0
    jeepney==0.7.1
    Jinja2==3.0.3
    jsonpatch==1.32
    jsonpointer==2.0
    jsonschema==3.2.0
    keyring==23.5.0
    launchpadlib==1.10.16
    lazr.restfulclient==0.14.4
    lazr.uri==1.0.6
    MarkupSafe==2.0.1
    more-itertools==8.10.0
    netifaces==0.11.0
    oauthlib==3.2.0
    pexpect==4.8.0
    prompt-toolkit==3.0.43
    ptyprocess==0.7.0
    pyaes==1.6.1
    pyasn1==0.4.8
    pyasn1-modules==0.2.1
    PyGObject==3.42.1
    PyHamcrest==2.0.2
    pyinotify==0.9.6
    PyJWT==2.3.0
    pyOpenSSL==21.0.0
    pyparsing==2.4.7
    pyrsistent==0.18.1
    pyserial==3.5
    PySocks==1.7.1
    python-apt==2.4.0+ubuntu3
    python-debian==0.1.43+ubuntu1.1
    python-magic==0.4.24
    pytz==2022.1
    PyYAML==5.4.1
    requests==2.25.1
    rsa==4.9
    SecretStorage==3.3.1
    service-identity==18.1.0
    six==1.16.0
    sos==4.5.6
    speedtest-cli==2.1.3
    ssh-import-id==5.11
    systemd-python==234
    telegram-upload==0.7.1
    Telethon==1.34.0
    Twisted==22.1.0
    ubuntu-pro-client==8001
    ufw==0.36.1
    unattended-upgrades==0.1
    urllib3==1.26.5
    wadllib==1.3.6
    wcwidth==0.2.13
    zipp==1.0.0
    zope.interface==5.4.0

Description

When i try to download single/multiple files i randomly get this error and after that it stops to download all the files:

` File "/usr/local/lib/python3.10/dist-packages/telegram_upload/client/telegram_download_client.py", line 109, in _download_file
r = f.write(chunk)
OSError: [Errno 29] Illegal seek

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/bin/telegram-download", line 8, in
sys.exit(download_cli())
File "/usr/local/lib/python3.10/dist-packages/telegram_upload/exceptions.py", line 68, in wrap
return fn(*args, **kwargs)
File "/usr/lib/python3/dist-packages/click/core.py", line 1128, in call
return self.main(*args, **kwargs)
File "/usr/lib/python3/dist-packages/click/core.py", line 1053, in main
rv = self.invoke(ctx)
File "/usr/lib/python3/dist-packages/click/core.py", line 1395, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/lib/python3/dist-packages/click/core.py", line 754, in invoke
return _callback(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/telegram_upload/management.py", line 231, in download
client.download_files(from
, download_files, delete_on_success)
File "/usr/local/lib/python3.10/dist-packages/telegram_upload/client/telegram_download_client.py", line 52, in download_files
file_name = self.download_media(download_file.message, progress_callback=progress)
File "/usr/local/lib/python3.10/dist-packages/telethon/sync.py", line 39, in syncified
return loop.run_until_complete(coro)
File "/usr/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete
return future.result()
File "/usr/local/lib/python3.10/dist-packages/telethon/client/downloads.py", line 422, in download_media
return await self._download_document(
File "/usr/local/lib/python3.10/dist-packages/telethon/client/downloads.py", line 895, in _download_document
result = await self._download_file(
File "/usr/local/lib/python3.10/dist-packages/telegram_upload/client/telegram_download_client.py", line 126, in _download_file
f.close()
OSError: [Errno 5] Input/output error

`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant