plaidml / onnx-plaidml

An ONNX backend using PlaidML
GNU Affero General Public License v3.0
28 stars 8 forks source link

error on trying in "import onnx_plaidml.backend" #16

Closed ultimopl closed 6 years ago

ultimopl commented 6 years ago

Traceback (most recent call last): File "tesst.py", line 2, in import onnx_plaidml.backend File "D:\Anaconda3\envs\deeplab\lib\site-packages\onnx_plaidml\backend.py", line 18, in from onnx import onnx_pb2 ImportError: cannot import name 'onnx_pb2'

jack-willturner commented 6 years ago

You need to install from source, not via pip:

git clone https://github.com/plaidml/onnx-plaidml.git
cd onnx-plaidml
python setup.py build
python setup.py install
tzerrell commented 6 years ago

Thanks for the report, we're working on a release to get the pips and github back in sync. We'll update when it's out.

ultimopl commented 6 years ago

Many thanks!

tzerrell commented 6 years ago

These are now back in sync with PlaidML 0.3.5, so you'll no longer need to install from source to get this fix.