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: expected bytes, str found #58

Open
SANTO-P opened this issue Jun 12, 2018 · 4 comments
Open

TypeError: expected bytes, str found #58

SANTO-P opened this issue Jun 12, 2018 · 4 comments

Comments

@SANTO-P
Copy link

SANTO-P commented Jun 12, 2018

File "/usr/local/lib/python3.5/dist-packages/google/protobuf/descriptor.py", line 829, in new
return _message.default_pool.AddSerializedFile(serialized_pb)
TypeError: expected bytes, str found

@SANTO-P
Copy link
Author

SANTO-P commented Jun 12, 2018

help...............

@lvapeab
Copy link
Collaborator

lvapeab commented Jun 12, 2018

Please, provide a larger trace of the error and a better description of it, in order to be helped.

@aferjani
Copy link

Same problem !
Has someone managed to solve it ?
In fact, I have installed python 3.6 and keras 2.1.5 with Tensorflow Backend.
When I'm trying to execute the command:
python caffe2keras.py -load_path 'models/' -prototxt 'deepwatermap3_deploy.prototxt' -caffemodel 'deepwatermap3.caffemodel'
I got this error in the file \caffe_pb2.py", line 15
File "C:\Users\utilisateur\AppData\Local\Continuum\anaconda3\lib\site-packages\g oogle\protobuf\descriptor.py", line 829, in __new__ return _message.default_pool.AddSerializedFile(serialized_pb) TypeError: expected bytes, str found
PS: The model I'm trying to convert can be found on http://live.ece.utexas.edu/research/deepwatermap/

@aferjani
Copy link

aferjani commented Jun 22, 2018

Found it !
The problem is the python version
you have to switch to python 2.7 and it'll be fine.
You can look at this link

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

3 participants