RVC-Project / Retrieval-based-Voice-Conversion-WebUI

Easily train a good VC model with voice data <= 10 mins!
MIT License
22.65k stars 3.41k forks source link

cannot import name 'notf' from 'tensorboard.compat' #881

Open joker-404bug opened 1 year ago

joker-404bug commented 1 year ago

runtime\python.exe gui_v1.py Traceback (most recent call last): File "E:\RVC-beta0717\runtime\lib\site-packages\tensorboard\compat__init.py", line 42, in tf from tensorboard.compat import notf # noqa: F401 ImportError: cannot import name 'notf' from 'tensorboard.compat' (E:\RVC-beta0717\runtime\lib\site-packages\tensorboard\compat\init__.py)

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "E:\RVC-beta0717\gui_v1.py", line 50, in from rvc_for_realtime import RVC File "E:\RVC-beta0717\rvc_for_realtime.py", line 2, in from fairseq import checkpoint_utils File "E:\RVC-beta0717\runtime\lib\site-packages\fairseq__init.py", line 21, in from fairseq.logging import meters, metrics, progress_bar # noqa File "E:\RVC-beta0717\runtime\lib\site-packages\fairseq\logging\progress_bar.py", line 407, in from torch.utils.tensorboard import SummaryWriter File "E:\RVC-beta0717\runtime\lib\site-packages\torch\utils\tensorboard__init.py", line 12, in from .writer import FileWriter, SummaryWriter # noqa: F401 File "E:\RVC-beta0717\runtime\lib\site-packages\torch\utils\tensorboard\writer.py", line 16, in from ._embedding import ( File "E:\RVC-beta0717\runtime\lib\site-packages\torch\utils\tensorboard_embedding.py", line 9, in _HAS_GFILE_JOIN = hasattr(tf.io.gfile, "join") File "E:\RVC-beta0717\runtime\lib\site-packages\tensorboard\lazy.py", line 65, in getattr return getattr(load_once(self), attr_name) File "E:\RVC-beta0717\runtime\lib\site-packages\tensorboard\lazy.py", line 97, in wrapper cache[arg] = f(arg) File "E:\RVC-beta0717\runtime\lib\site-packages\tensorboard\lazy.py", line 50, in load_once module = load_fn() File "E:\RVC-beta0717\runtime\lib\site-packages\tensorboard\compat__init.py", line 45, in tf import tensorflow File "C:\Users\lin\AppData\Roaming\Python\Python39\site-packages\tensorflow\init__.py", line 37, in from tensorflow.python.tools import module_util as _module_util File "C:\Users\lin\AppData\Roaming\Python\Python39\site-packages\tensorflow\python\init.py", line 37, in from tensorflow.python.eager import context File "C:\Users\lin\AppData\Roaming\Python\Python39\site-packages\tensorflow\python\eager\context.py", line 29, in from tensorflow.core.framework import function_pb2 File "C:\Users\lin\AppData\Roaming\Python\Python39\site-packages\tensorflow\core\framework\function_pb2.py", line 16, in from tensorflow.core.framework import attr_value_pb2 as tensorflow_dot_core_dot_framework_dot_attrvalue__pb2 File "C:\Users\lin\AppData\Roaming\Python\Python39\site-packages\tensorflow\core\framework\attr_value_pb2.py", line 16, in from tensorflow.core.framework import tensor_pb2 as tensorflow_dot_core_dot_framework_dot_tensorpb2 File "C:\Users\lin\AppData\Roaming\Python\Python39\site-packages\tensorflow\core\framework\tensor_pb2.py", line 16, in from tensorflow.core.framework import resource_handle_pb2 as tensorflow_dot_core_dot_framework_dot_resourcehandlepb2 File "C:\Users\lin\AppData\Roaming\Python\Python39\site-packages\tensorflow\core\framework\resource_handle_pb2.py", line 16, in from tensorflow.core.framework import tensor_shape_pb2 as tensorflow_dot_core_dot_framework_dot_tensorshapepb2 File "C:\Users\lin\AppData\Roaming\Python\Python39\site-packages\tensorflow\core\framework\tensor_shape_pb2.py", line 36, in _descriptor.FieldDescriptor( File "E:\RVC-beta0717\runtime\lib\site-packages\google\protobuf\descriptor.py", line 561, in new _message.Message._CheckCalledFromGeneratedFile() TypeError: Descriptors cannot not be created directly. If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.If you cannot immediately regenerate your protos, some other possible workarounds are:

  1. Downgrade the protobuf package to 3.20.x or lower.
  2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).

More information: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates

These are the issues I encountered while running go-realtime-gui.bat and go-web.bat. Has anyone else encountered these problems or knows how to handle them?

showkeyjar commented 6 months ago

+1