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

TypeError #1578

Closed
kwngeaw opened this issue May 8, 2016 · 3 comments
Closed

TypeError #1578

kwngeaw opened this issue May 8, 2016 · 3 comments

Comments

@kwngeaw
Copy link

kwngeaw commented May 8, 2016

in unpadV2Plaintext
end = -ord(v2plaintext[-1]) # length of the left padding
TypeError: ord() expected string of length 1, but int found

Sometimes I get this error when receive message. Does anybody know why?

@jlguardi
Copy link
Collaborator

jlguardi commented May 8, 2016

                                                                                  Use tgalal/develop brach or my master. Both aren't using this function now. 

@kwngeaw
Copy link
Author

kwngeaw commented May 8, 2016

How bout this problem after update?

from .layer_authentication import YowAuthenticationProtocolLayer
File "C:\Python34\lib\site-packages\yowsup\layers\auth\layer_authentication.py
", line 4, in
from yowsup.common.tools import TimeTools
File "C:\Python34\lib\site-packages\yowsup\common\tools.py", line 153, in
class MimeTools:
File "C:\Python34\lib\site-packages\yowsup\common\tools.py", line 156, in Mime
Tools
mimetypes.init([MIME_FILE]) # Append whatsapp mime.types
File "C:\Python34\lib\mimetypes.py", line 352, in init
if os.path.isfile(file):
File "C:\Python34\lib\genericpath.py", line 30, in isfile
st = os.stat(path)
ValueError: stat: path too long for Windows

@jlguardi
Copy link
Collaborator

jlguardi commented May 8, 2016

                                                                                  Seems that length of python paths in windows are limited.I think‎ I have a pending PR that fixes this issue. 

jlguardi pushed a commit to jlguardi/yowsup that referenced this issue May 15, 2016
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

2 participants