-
Notifications
You must be signed in to change notification settings - Fork 18.7k
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
[PYCAFFE] TypeError: __init__() got an unexpected keyword argument 'syntax' #2092
Comments
@sguada or anybody have any idea about the issue? I cannot run pycaffe. |
Sorry, I faced this issue because I did not build google protobuf python library. |
I met the same problem, but I have installed 'protobuf'. $protoc --version But still got the same error. Do you have any ideas? |
Use protobuf 2.6.1 . |
i got the same problem |
I got the same problem. This is caused by difference of arguments of FileDescriptor (and other Desctiptors) bitween 2.6.1 and 3.0.0. So I updated protobuf python lib as follows;
pip uninstall protobufif you have already installed new version (3.0.0) of python lib, you have to exec the command two times. cd $PROTOBUF_BUILD_DIR/pythonpython setup.py buildpython setup.py testpython setup.py install |
Tested. faied on protobuf 3.0.0 |
fixed using protobuf 2.6.1 :) |
So I have NVIDIA-caffe-0.11.0 and DIGITS and protobuf 2.6.1 and when I run digits-devserver as soon ad I provide the path for the caffe install I get an error stack cumlinating in TypeError: init() got an unexpected keyword argument 'syntax'. I have protobuf 2.6.1 installed. protoc --version yields libprotoc 2.6.1 |
Hi, I had unnecessarily installed protoc v.3.0.0 from source. v.2.5.0 was already installed. My ubuntu runs python 2.7.6. After I went back and ran make uninstall in the main directory for protobuf-master v.3.0.0, # protoc --version returned "libprotoc 2.5.0. Next, I removed the caffe installation, recompiled it from scratch and ran make pycaffe. After that, "import caffe" worked great and life was good. |
Hello, I solved it by: |
@northeastsquare Great thanks! I solved this problem with your method. |
I also solved the problem by commenting "systax = proto" lines. Thank you! |
conda install -c conda-forge protobuf |
got the same problem. My original protobuf version is 3.0 ,so I changed to 2.6.1 and recompile caffe( make all && make pycaffe),and it works ~ |
I have fixed this error by uninstall protobuf 2.6.1 and install 3.0.0a2. |
@northeastsquare, nice hacking! |
@noreastsquare ,excellent |
@northeastsquare nice hack, it worked |
make sure your protoc and python-protobuf with the same version, especially when you install python-protobuf with pip. |
thanks @austingg , i managed to solve to issue thanks to your comment. |
I didn't find "systax = proto", where can I find it? |
untuntu 16.04&cuda9.1&cudnn 7.12 |
I solve this issue by reinstall protobuf2.6.1 from source code and recompile caffe. It woks fine! |
Got the same problem today. Solved by installing: protobuf with pip pip install protobuf |
Solved by installing: protobuf with pip |
Got this error while trying to run detect.py in a virtualenv. Added the
$CAFFE_ROOT/python
to$PYTHONPATH
Traceback:
The text was updated successfully, but these errors were encountered: