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

i have a question #3

Open
wangzilong1997 opened this issue Mar 23, 2019 · 1 comment
Open

i have a question #3

wangzilong1997 opened this issue Mar 23, 2019 · 1 comment

Comments

@wangzilong1997
Copy link

when i run a .py with your poster
but i can this err i can not should do
can you help me
thinks
Errer message:
Traceback (most recent call last):
File "media.py", line 29, in
myMedia.uplaod(accessToken,filePath,mediaType)
File "media.py", line 16, in uplaod
postData,postHeaders = poster.encode.multipart_encode(param)
File "/usr/local/lib/python3.5/dist-packages/poster-0.8.1-py3.5.egg/poster/encode.py", line 411, in multipart_encode
File "/usr/local/lib/python3.5/dist-packages/poster-0.8.1-py3.5.egg/poster/encode.py", line 311, in get_headers
File "/usr/local/lib/python3.5/dist-packages/poster-0.8.1-py3.5.egg/poster/encode.py", line 302, in get_body_size
File "/usr/local/lib/python3.5/dist-packages/poster-0.8.1-py3.5.egg/poster/encode.py", line 177, in from_params
File "/usr/local/lib/python3.5/dist-packages/poster-0.8.1-py3.5.egg/poster/encode.py", line 94, in init
AttributeError: 'bytes' object has no attribute 'encode'

@wangzilong1997
Copy link
Author

if you have any idea must tell me

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