hpssjellis / google-magenta-midi-music-on-linux-hello-world

Bash install scripts to get Google Magenta working easily on a linux ubuntu computer. Move from a folder with several midi files to a tensorflow generated set of output files.
Apache License 2.0
13 stars 2 forks source link

error when testing magenta, help? #2

Closed brisker closed 7 years ago

brisker commented 7 years ago

I try to run bazel test, but why getting this error related to protobuf, help?

(magenta) jcc@jcc:~/magenta$ bazel test //magenta/... ERROR: /home/jcc/.cache/bazel/_bazel_jcc/ed5599de3378c6e0a5a71ebe1650713e/external/protobuf/protobuf.bzl:91:19: name 'HOST_CFG' is not defined. ERROR: package contains errors: magenta/protobuf. ERROR: error loading package 'magenta/protobuf': Extension 'protobuf.bzl' has errors. INFO: Elapsed time: 0.246s ERROR: Couldn't start the build. Unable to run tests.

And if I direcly import magenta , I got this error : Traceback (most recent call last): File "", line 1, in File "magenta/init.py", line 26, in import magenta.common.concurrency File "magenta/common/init.py", line 17, in from sequence_example_lib import get_padded_batch File "magenta/common/sequence_example_lib.py", line 16, in import tensorflow as tf File "/home/jcc/anaconda2/envs/magenta/lib/python2.7/site-packages/tensorflow/init.py", line 24, in from tensorflow.python import File "/home/jcc/anaconda2/envs/magenta/lib/python2.7/site-packages/tensorflow/python/init.py", line 63, in from tensorflow.core.framework.graph_pb2 import File "/home/jcc/anaconda2/envs/magenta/lib/python2.7/site-packages/tensorflow/core/framework/graph_pb2.py", line 10, in from google.protobuf import descriptor_pb2 File "/home/jcc/anaconda2/envs/magenta/lib/python2.7/site-packages/google/protobuf/descriptor_pb2.py", line 964, in options=None), File "/home/jcc/anaconda2/envs/magenta/lib/python2.7/site-packages/google/protobuf/descriptor.py", line 505, in new return _message.default_pool.FindFieldByName(full_name) KeyError: "Couldn't find field google.protobuf.FileOptions.javanano_use_deprecated_package"

hpssjellis commented 7 years ago

It was working two weeks ago. I can't test it right now since I have a developmental site in operation. The errors are not the normal ones I see such as an import error since a package is not installed.

Good luck not sure what to suggest.

On Sun, Feb 12, 2017 at 12:32 AM, numberjcc notifications@github.com wrote:

I try to run baze test, but why getting this error related to protobuf, help?

(magenta) jcc@jcc:~/magenta$ bazel test //magenta/... ERROR: /home/jcc/.cache/bazel/_bazel_jcc/ed5599de3378c6e0a5a71ebe165071 3e/external/protobuf/protobuf.bzl:91:19: name 'HOST_CFG' is not defined. ERROR: package contains errors: magenta/protobuf. ERROR: error loading package 'magenta/protobuf': Extension 'protobuf.bzl' has errors. INFO: Elapsed time: 0.246s ERROR: Couldn't start the build. Unable to run tests.

And if I direcly import magenta , I got this error šŸ‘

import magenta Traceback (most recent call last): File "", line 1, in File "magenta/init.py", line 26, in import magenta.common.concurrency File "magenta/common/init.py", line 17, in from sequence_example_lib import get_padded_batch File "magenta/common/sequence_example_lib.py", line 16, in import tensorflow as tf File "/home/jcc/anaconda2/envs/magenta/lib/python2.7/site- packages/tensorflow/init.py", line 24, in from tensorflow.python import File "/home/jcc/anaconda2/envs/magenta/lib/python2.7/site- packages/tensorflow/python/init.py", line 63, in from tensorflow.core.framework.graph_pb2 import File "/home/jcc/anaconda2/envs/magenta/lib/python2.7/site- packages/tensorflow/core/framework/graph_pb2.py", line 10, in from google.protobuf import descriptor_pb2 File "/home/jcc/anaconda2/envs/magenta/lib/python2.7/site- packages/google/protobuf/descriptor_pb2.py", line 964, in options=None), File "/home/jcc/anaconda2/envs/magenta/lib/python2.7/site- packages/google/protobuf/descriptor.py", line 505, in new return _message.default_pool.FindFieldByName(full_name) KeyError: "Couldn't find field google.protobuf.FileOptions. javanano_use_deprecated_package"

ā€” You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/hpssjellis/google-magenta-midi-music-on-linux-hello-world/issues/2, or mute the thread https://github.com/notifications/unsubscribe-auth/AFWI7rbnEl8N7TL01cxrwHd59EsO69hxks5rbsOHgaJpZM4L-bYv .