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

Can I upload entire directory without using docker way #241

Open
N30Z3N opened this issue Dec 1, 2023 · 1 comment
Open

Can I upload entire directory without using docker way #241

N30Z3N opened this issue Dec 1, 2023 · 1 comment

Comments

@N30Z3N
Copy link

N30Z3N commented Dec 1, 2023

  • telegram-upload version: 0.7.1
  • Python version: 3.10
  • Operating System: debian

Description

I wish to upload entire directory how to do so without using docker

I tried the docker command but got some error but normal way works best for me so asking if possible

@N30Z3N
Copy link
Author

N30Z3N commented Dec 1, 2023

UPDATE
getting this error now with normal mode

Traceback (most recent call last):
File "/usr/local/bin/telegram-upload", line 8, in
sys.exit(upload_cli())
File "/usr/local/lib/python3.9/site-packages/telegram_upload/exceptions.py", line 68, in wrap
return fn(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/click/core.py", line 1157, in call
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.9/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.9/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/telegram_upload/management.py", line 191, in upload
client.send_files(to, files, delete_on_success, print_file_id, forward)
File "/usr/local/lib/python3.9/site-packages/telegram_upload/client/telegram_upload_client.py", line 126, in send_files
message = self.send_one_file(entity, file, send_as_media, thumb=thumb)
File "/usr/local/lib/python3.9/site-packages/telegram_upload/client/telegram_upload_client.py", line 103, in send_one_file
message = self._send_file_message(entity, file, thumb, progress)
File "/usr/local/lib/python3.9/site-packages/telegram_upload/client/telegram_upload_client.py", line 59, in _send_file_message
progress_callback=progress, attributes=file.file_attributes)
File "/usr/local/lib/python3.9/site-packages/telegram_upload/upload_files.py", line 202, in file_attributes
return get_file_attributes(self.path)
File "/usr/local/lib/python3.9/site-packages/telegram_upload/upload_files.py", line 64, in get_file_attributes
(0, metadata.get('duration').seconds)[metadata_has(metadata, 'duration')],
File "/usr/local/lib/python3.9/site-packages/hachoir/metadata/metadata.py", line 81, in get
raise ValueError(
ValueError: Metadata has no value 'duration' (index 0)

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