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

Cant send Videos.. May wrong ffvideo Version? #1673

Open
BielefeldJ opened this issue Jul 2, 2016 · 5 comments
Open

Cant send Videos.. May wrong ffvideo Version? #1673

BielefeldJ opened this issue Jul 2, 2016 · 5 comments

Comments

@BielefeldJ
Copy link

BielefeldJ commented Jul 2, 2016

Hey guys. If i'll send a video, i get this error:

`[INFO][2016-07-02 17:54:14,816] [Upload progress]3a23afcfef08bfae95f19691df221e25.mp4 => 49************@s.whatsapp.net, 100%

optionalmodules.py [ERROR][2016-07-02 17:54:14,832] ffvideo import failed
mediauploader.py [ERROR][2016-07-02 17:54:14,832] Error occured at transfer type object DownloadableMediaMessageProtocolEntity' has no attribute 'fromFilePath'
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/yowsup/layers/protocol_media/mediauploader.py", line 138, in run
self.successCallback(sourcePath, self.jid, result["url"])
File "/home/whatsapp/src/utils/media_sender.py", line 91, in
caption)
File "/home/whatsapp/src/utils/media_sender.py", line 105, in _do_send_file
entity = VideoDownloadableMediaMessageProtocolEntity.fromFilePath(file_path, url, self.MEDIA_TYPE, ip, to)
File "/usr/local/lib/python2.7/dist-packages/yowsup/layers/protocol_media/protocolentities/message_media_downloadable_video.py", line 134, in fromFilePath
entity = DownloadableMediaMessageProtocolEntity.fromFilePath(path, url, DownloadableMediaMessageProtocolEntity.MEDIA_TYPE_VIDEO, ip, to, mimeType, preview)
AttributeError: type object 'DownloadableMediaMessageProtocolEntity' has no attribute 'fromFilePath'
`

I used pip install ffvideo but still get this Message.

@dargmuesli
Copy link

If I'm not wrong @tanquetav did so in pull request #1564. But this one is open since 2 May...

@joelunmsm2003
Copy link

please help :)

ERROR:yowsup.common.optionalmodules:ffvideo import failedpp.net, 1%
ERROR:yowsup.layers.protocol_media.mediauploader:Error occured at transfer type object 'DownloadableMediaMessageProtocolEntity' has no attribute 'fromFilePath'
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/yowsup2-2.5.0-py2.7.egg/yowsup/layers/protocol_media/mediauploader.py", line 138, in run
self.successCallback(sourcePath, self.jid, result["url"])
File "/usr/local/lib/python2.7/dist-packages/yowsup2-2.5.0-py2.7.egg/yowsup/demos/cli/layer.py", line 558, in
successFn = lambda filePath, jid, url: self.doSendMedia(mediaType, filePath, url, jid, resultRequestUploadIqProtocolEntity.getIp(), caption)
File "/usr/local/lib/python2.7/dist-packages/yowsup2-2.5.0-py2.7.egg/yowsup/demos/cli/layer.py", line 544, in doSendMedia
entity = VideoDownloadableMediaMessageProtocolEntity.fromFilePath(filePath, url, ip, to, caption = caption)
File "/usr/local/lib/python2.7/dist-packages/yowsup2-2.5.0-py2.7.egg/yowsup/layers/protocol_media/protocolentities/message_media_downloadable_video.py", line 134, in fromFilePath
entity = DownloadableMediaMessageProtocolEntity.fromFilePath(path, url, DownloadableMediaMessageProtocolEntity.MEDIA_TYPE_VIDEO, ip, to, mimeType, preview)
AttributeError: type object 'DownloadableMediaMessageProtocolEntity' has no attribute 'fromFilePath'
ERROR:yowsup.demos.cli.layer:Upload file /home/andy/Escritorio/video.mp4 to https://mmi499.whatsapp.net/u/4FB-M6k1g9d4XDSQDpFiI1XDrOYABUSIpMxcMw/Ag5XlASJaESK6EE5FLKI8Hfi5vhMlgkduwWQUzqUkGOx for [email protected] failed!

@dargmuesli
Copy link

Please read "BottomNews: Errors" and look at the changed code.

@joelunmsm2003
Copy link

this worked , thanx !!

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

4 participants