Hello,
I was trying to install schasset and followed the exact steps which were instructed. However, while importing I am getting this error. Can you guide me through the possible reason.
import scbasset
2023-03-30 13:25:35.273020: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libcudart.so.11.0'; dlerror: libcudart.so.11.0: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /cm/shared/apps/slurm/current/lib64/slurm:/cm/shared/apps/slurm/current/lib64:/cm/local/apps/gcc/9.2.0/lib:/cm/local/apps/gcc/9.2.0/lib64
2023-03-30 13:25:35.273064: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
Traceback (most recent call last):
File "", line 1, in
File "/home/hs140402/scBasset/scbasset/init.py", line 2, in
from . import utils, basenji_utils
File "/home/hs140402/scBasset/scbasset/utils.py", line 11, in
import tensorflow as tf
File "/home/hs140402/miniconda3/envs/scbasset/lib/python3.7/site-packages/tensorflow/init.py", line 37, in
from tensorflow.python.tools import module_util as _module_util
File "/home/hs140402/miniconda3/envs/scbasset/lib/python3.7/site-packages/tensorflow/python/init.py", line 37, in
from tensorflow.python.eager import context
File "/home/hs140402/miniconda3/envs/scbasset/lib/python3.7/site-packages/tensorflow/python/eager/context.py", line 29, in
from tensorflow.core.framework import function_pb2
File "/home/hs140402/miniconda3/envs/scbasset/lib/python3.7/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_attrvaluepb2
File "/home/hs140402/miniconda3/envs/scbasset/lib/python3.7/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 "/home/hs140402/miniconda3/envs/scbasset/lib/python3.7/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 "/home/hs140402/miniconda3/envs/scbasset/lib/python3.7/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 "/home/hs140402/miniconda3/envs/scbasset/lib/python3.7/site-packages/tensorflow/core/framework/tensor_shape_pb2.py", line 42, in
serialized_options=None, file=DESCRIPTOR),
File "/home/hs140402/miniconda3/envs/scbasset/lib/python3.7/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:
Downgrade the protobuf package to 3.20.x or lower.
Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).
Hello, I was trying to install schasset and followed the exact steps which were instructed. However, while importing I am getting this error. Can you guide me through the possible reason.
More information: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates
Thanks!