Skip to content

Import STAGATE Error #24

@AIBio

Description

@AIBio

Hello, I installed STAGATE according to the code on the official website, but an error occurred when loading data, which resulted in the inability to use related functions. Can you help me solve this problem? Thank you very much.

python setup.py build
running build
running build_py
running egg_info
writing STAGATE.egg-info/PKG-INFO
writing dependency_links to STAGATE.egg-info/dependency_links.txt
writing requirements to STAGATE.egg-info/requires.txt
writing top-level names to STAGATE.egg-info/top_level.txt
reading manifest file 'STAGATE.egg-info/SOURCES.txt'
adding license file 'LICENSE'
writing manifest file 'STAGATE.egg-info/SOURCES.txt'

python setup.py install
running install
/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/setuptools/command/install.py:37: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
setuptools.SetuptoolsDeprecationWarning,
/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/setuptools/command/easy_install.py:147: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
EasyInstallDeprecationWarning,
running bdist_egg
running egg_info
writing STAGATE.egg-info/PKG-INFO
writing dependency_links to STAGATE.egg-info/dependency_links.txt
writing requirements to STAGATE.egg-info/requires.txt
writing top-level names to STAGATE.egg-info/top_level.txt
reading manifest file 'STAGATE.egg-info/SOURCES.txt'
adding license file 'LICENSE'
writing manifest file 'STAGATE.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
creating build/bdist.linux-x86_64/egg
creating build/bdist.linux-x86_64/egg/STAGATE
copying build/lib/STAGATE/utils.py -> build/bdist.linux-x86_64/egg/STAGATE
copying build/lib/STAGATE/model.py -> build/bdist.linux-x86_64/egg/STAGATE
copying build/lib/STAGATE/STAGATE.py -> build/bdist.linux-x86_64/egg/STAGATE
copying build/lib/STAGATE/Train_STAGATE.py -> build/bdist.linux-x86_64/egg/STAGATE
copying build/lib/STAGATE/init.py -> build/bdist.linux-x86_64/egg/STAGATE
byte-compiling build/bdist.linux-x86_64/egg/STAGATE/utils.py to utils.cpython-37.pyc
byte-compiling build/bdist.linux-x86_64/egg/STAGATE/model.py to model.cpython-37.pyc
byte-compiling build/bdist.linux-x86_64/egg/STAGATE/STAGATE.py to STAGATE.cpython-37.pyc
byte-compiling build/bdist.linux-x86_64/egg/STAGATE/Train_STAGATE.py to Train_STAGATE.cpython-37.pyc
byte-compiling build/bdist.linux-x86_64/egg/STAGATE/init.py to init.cpython-37.pyc
creating build/bdist.linux-x86_64/egg/EGG-INFO
copying STAGATE.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying STAGATE.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying STAGATE.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying STAGATE.egg-info/not-zip-safe -> build/bdist.linux-x86_64/egg/EGG-INFO
copying STAGATE.egg-info/requires.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying STAGATE.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
creating 'dist/STAGATE-1.0.1-py3.7.egg' and adding 'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Processing STAGATE-1.0.1-py3.7.egg
creating /home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/STAGATE-1.0.1-py3.7.egg
Extracting STAGATE-1.0.1-py3.7.egg to /home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages
Adding STAGATE 1.0.1 to easy-install.pth file

Installed /home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/STAGATE-1.0.1-py3.7.egg
Processing dependencies for STAGATE==1.0.1
Searching for requests==2.31.0
Best match: requests 2.31.0
Adding requests 2.31.0 to easy-install.pth file

Using /home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages
Searching for certifi==2024.6.2
Best match: certifi 2024.6.2
Processing certifi-2024.6.2-py3.7.egg
certifi 2024.6.2 is already the active version in easy-install.pth

Using /home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/certifi-2024.6.2-py3.7.egg
Searching for urllib3==2.0.7
Best match: urllib3 2.0.7
Adding urllib3 2.0.7 to easy-install.pth file

Using /home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages
Searching for idna==3.4
Best match: idna 3.4
Adding idna 3.4 to easy-install.pth file

Using /home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages
Searching for charset-normalizer==3.3.2
Best match: charset-normalizer 3.3.2
Adding charset-normalizer 3.3.2 to easy-install.pth file
Installing normalizer script to /home/yhw/software/anaconda3/envs/sc.p37/bin

Using /home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages
Finished processing dependencies for STAGATE==1.0.1

import STAGATE

ERROR:root:Internal Python error in the inspect module.
Below is the traceback from this internal error.

ERROR:root:Internal Python error in the inspect module.
Below is the traceback from this internal error.

ERROR:root:Internal Python error in the inspect module.
Below is the traceback from this internal error.

Traceback (most recent call last):
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/IPython/core/interactiveshell.py", line 3553, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "/tmp/ipykernel_179891/1746156631.py", line 1, in
import STAGATE
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/STAGATE-1.0.1-py3.7.egg/STAGATE/init.py", line 11, in
from .Train_STAGATE import train_STAGATE
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/STAGATE-1.0.1-py3.7.egg/STAGATE/Train_STAGATE.py", line 3, in
from .STAGATE import STAGATE
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/STAGATE-1.0.1-py3.7.egg/STAGATE/STAGATE.py", line 1, in
import tensorflow.compat.v1 as tf
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/tensorflow/init.py", line 99, in
from tensorflow_core import *
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/tensorflow_core/init.py", line 28, in
from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import
File "", line 1019, in _handle_fromlist
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/tensorflow/init.py", line 50, in getattr
module = self._load()
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/tensorflow/init.py", line 44, in _load
module = _importlib.import_module(self.name)
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/tensorflow_core/python/init.py", line 52, in
from tensorflow.core.framework.graph_pb2 import *
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/tensorflow_core/core/framework/graph_pb2.py", line 16, in
from tensorflow.core.framework import node_def_pb2 as tensorflow_dot_core_dot_framework_dot_node__def__pb2
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/tensorflow_core/core/framework/node_def_pb2.py", line 16, in
from tensorflow.core.framework import attr_value_pb2 as tensorflow_dot_core_dot_framework_dot_attr__value__pb2
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/tensorflow_core/core/framework/attr_value_pb2.py", line 16, in
from tensorflow.core.framework import tensor_pb2 as tensorflow_dot_core_dot_framework_dot_tensor__pb2
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/tensorflow_core/core/framework/tensor_pb2.py", line 16, in
from tensorflow.core.framework import resource_handle_pb2 as tensorflow_dot_core_dot_framework_dot_resource__handle__pb2
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/tensorflow_core/core/framework/resource_handle_pb2.py", line 16, in
from tensorflow.core.framework import tensor_shape_pb2 as tensorflow_dot_core_dot_framework_dot_tensor__shape__pb2
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/tensorflow_core/core/framework/tensor_shape_pb2.py", line 42, in
serialized_options=None, file=DESCRIPTOR),
File "/home/yhw/software/anaconda3/envs/sc.p37/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:

  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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/IPython/core/interactiveshell.py", line 2099, in showtraceback
stb = value.render_traceback()
AttributeError: 'TypeError' object has no attribute 'render_traceback'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/IPython/core/ultratb.py", line 1101, in get_records
return _fixed_getinnerframes(etb, number_of_lines_of_context, tb_offset)
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/IPython/core/ultratb.py", line 248, in wrapped
return f(*args, **kwargs)
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/IPython/core/ultratb.py", line 281, in _fixed_getinnerframes
records = fix_frame_records_filenames(inspect.getinnerframes(etb, context))
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/inspect.py", line 1502, in getinnerframes
frameinfo = (tb.tb_frame,) + getframeinfo(tb, context)
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/inspect.py", line 1460, in getframeinfo
filename = getsourcefile(frame) or getfile(frame)
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/inspect.py", line 696, in getsourcefile
if getattr(getmodule(object, filename), 'loader', None) is not None:
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/inspect.py", line 733, in getmodule
if ismodule(module) and hasattr(module, 'file'):
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/tensorflow/init.py", line 50, in getattr
module = self._load()
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/tensorflow/init.py", line 44, in _load
module = _importlib.import_module(self.name)
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1006, in _gcd_import
File "", line 983, in _find_and_load
File "", line 953, in _find_and_load_unlocked
File "", line 219, in _call_with_frames_removed
File "", line 1006, in _gcd_import
File "", line 983, in _find_and_load
File "", line 967, in _find_and_load_unlocked
File "", line 677, in _load_unlocked
File "", line 728, in exec_module
File "", line 219, in _call_with_frames_removed
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/tensorflow_core/init.py", line 33, in
from tensorflow._api.v1 import audio
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/tensorflow_core/_api/v1/audio/init.py", line 10, in
from tensorflow.python.ops.gen_audio_ops import decode_wav
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/tensorflow_core/python/ops/gen_audio_ops.py", line 11, in
from tensorflow.python.eager import context as _context
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/tensorflow_core/python/eager/context.py", line 29, in
from tensorflow.core.protobuf import config_pb2
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/tensorflow_core/core/protobuf/config_pb2.py", line 16, in
from tensorflow.core.framework import cost_graph_pb2 as tensorflow_dot_core_dot_framework_dot_cost__graph__pb2
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/tensorflow_core/core/framework/cost_graph_pb2.py", line 16, in
from tensorflow.core.framework import tensor_shape_pb2 as tensorflow_dot_core_dot_framework_dot_tensor__shape__pb2
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/tensorflow_core/core/framework/tensor_shape_pb2.py", line 42, in
serialized_options=None, file=DESCRIPTOR),
File "/home/yhw/software/anaconda3/envs/sc.p37/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:

  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
Traceback (most recent call last):
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/IPython/core/interactiveshell.py", line 3553, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "/tmp/ipykernel_179891/1746156631.py", line 1, in
import STAGATE
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/STAGATE-1.0.1-py3.7.egg/STAGATE/init.py", line 11, in
from .Train_STAGATE import train_STAGATE
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/STAGATE-1.0.1-py3.7.egg/STAGATE/Train_STAGATE.py", line 3, in
from .STAGATE import STAGATE
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/STAGATE-1.0.1-py3.7.egg/STAGATE/STAGATE.py", line 1, in
import tensorflow.compat.v1 as tf
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/tensorflow/init.py", line 99, in
from tensorflow_core import *
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/tensorflow_core/init.py", line 28, in
from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import
File "", line 1019, in _handle_fromlist
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/tensorflow/init.py", line 50, in getattr
module = self._load()
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/tensorflow/init.py", line 44, in _load
module = _importlib.import_module(self.name)
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/tensorflow_core/python/init.py", line 52, in
from tensorflow.core.framework.graph_pb2 import *
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/tensorflow_core/core/framework/graph_pb2.py", line 16, in
from tensorflow.core.framework import node_def_pb2 as tensorflow_dot_core_dot_framework_dot_node__def__pb2
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/tensorflow_core/core/framework/node_def_pb2.py", line 16, in
from tensorflow.core.framework import attr_value_pb2 as tensorflow_dot_core_dot_framework_dot_attr__value__pb2
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/tensorflow_core/core/framework/attr_value_pb2.py", line 16, in
from tensorflow.core.framework import tensor_pb2 as tensorflow_dot_core_dot_framework_dot_tensor__pb2
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/tensorflow_core/core/framework/tensor_pb2.py", line 16, in
from tensorflow.core.framework import resource_handle_pb2 as tensorflow_dot_core_dot_framework_dot_resource__handle__pb2
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/tensorflow_core/core/framework/resource_handle_pb2.py", line 16, in
from tensorflow.core.framework import tensor_shape_pb2 as tensorflow_dot_core_dot_framework_dot_tensor__shape__pb2
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/tensorflow_core/core/framework/tensor_shape_pb2.py", line 42, in
serialized_options=None, file=DESCRIPTOR),
File "/home/yhw/software/anaconda3/envs/sc.p37/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:

  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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/IPython/core/interactiveshell.py", line 2099, in showtraceback
stb = value.render_traceback()
AttributeError: 'TypeError' object has no attribute 'render_traceback'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/IPython/core/interactiveshell.py", line 3473, in run_ast_nodes
if (await self.run_code(code, result, async_=asy)):
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/IPython/core/interactiveshell.py", line 3575, in run_code
self.showtraceback(running_compiled_code=True)
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/IPython/core/interactiveshell.py", line 2102, in showtraceback
value, tb, tb_offset=tb_offset)
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/IPython/core/ultratb.py", line 1368, in structured_traceback
self, etype, value, tb, tb_offset, number_of_lines_of_context)
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/IPython/core/ultratb.py", line 1268, in structured_traceback
self, etype, value, tb, tb_offset, number_of_lines_of_context
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/IPython/core/ultratb.py", line 1125, in structured_traceback
tb_offset)
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/IPython/core/ultratb.py", line 1082, in format_exception_as_a_whole
last_unique, recursion_repeat = find_recursion(orig_etype, evalue, records)
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/IPython/core/ultratb.py", line 382, in find_recursion
return len(records), 0
TypeError: object of type 'NoneType' has no len()

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/IPython/core/interactiveshell.py", line 2099, in showtraceback
stb = value.render_traceback()
AttributeError: 'TypeError' object has no attribute 'render_traceback'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/IPython/core/ultratb.py", line 1101, in get_records
return _fixed_getinnerframes(etb, number_of_lines_of_context, tb_offset)
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/IPython/core/ultratb.py", line 248, in wrapped
return f(*args, **kwargs)
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/IPython/core/ultratb.py", line 281, in _fixed_getinnerframes
records = fix_frame_records_filenames(inspect.getinnerframes(etb, context))
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/inspect.py", line 1502, in getinnerframes
frameinfo = (tb.tb_frame,) + getframeinfo(tb, context)
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/inspect.py", line 1460, in getframeinfo
filename = getsourcefile(frame) or getfile(frame)
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/inspect.py", line 696, in getsourcefile
if getattr(getmodule(object, filename), 'loader', None) is not None:
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/inspect.py", line 733, in getmodule
if ismodule(module) and hasattr(module, 'file'):
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/tensorflow/init.py", line 50, in getattr
module = self._load()
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/tensorflow/init.py", line 44, in _load
module = _importlib.import_module(self.name)
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1006, in _gcd_import
File "", line 983, in _find_and_load
File "", line 953, in _find_and_load_unlocked
File "", line 219, in _call_with_frames_removed
File "", line 1006, in _gcd_import
File "", line 983, in _find_and_load
File "", line 967, in _find_and_load_unlocked
File "", line 677, in _load_unlocked
File "", line 728, in exec_module
File "", line 219, in _call_with_frames_removed
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/tensorflow_core/init.py", line 33, in
from tensorflow._api.v1 import audio
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/tensorflow_core/_api/v1/audio/init.py", line 10, in
from tensorflow.python.ops.gen_audio_ops import decode_wav
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/tensorflow_core/python/ops/gen_audio_ops.py", line 11, in
from tensorflow.python.eager import context as _context
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/tensorflow_core/python/eager/context.py", line 29, in
from tensorflow.core.protobuf import config_pb2
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/tensorflow_core/core/protobuf/config_pb2.py", line 16, in
from tensorflow.core.framework import cost_graph_pb2 as tensorflow_dot_core_dot_framework_dot_cost__graph__pb2
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/tensorflow_core/core/framework/cost_graph_pb2.py", line 16, in
from tensorflow.core.framework import tensor_shape_pb2 as tensorflow_dot_core_dot_framework_dot_tensor__shape__pb2
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/tensorflow_core/core/framework/tensor_shape_pb2.py", line 42, in
serialized_options=None, file=DESCRIPTOR),
File "/home/yhw/software/anaconda3/envs/sc.p37/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:

  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
Traceback (most recent call last):
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/IPython/core/interactiveshell.py", line 3553, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "/tmp/ipykernel_179891/1746156631.py", line 1, in
import STAGATE
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/STAGATE-1.0.1-py3.7.egg/STAGATE/init.py", line 11, in
from .Train_STAGATE import train_STAGATE
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/STAGATE-1.0.1-py3.7.egg/STAGATE/Train_STAGATE.py", line 3, in
from .STAGATE import STAGATE
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/STAGATE-1.0.1-py3.7.egg/STAGATE/STAGATE.py", line 1, in
import tensorflow.compat.v1 as tf
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/tensorflow/init.py", line 99, in
from tensorflow_core import *
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/tensorflow_core/init.py", line 28, in
from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import
File "", line 1019, in _handle_fromlist
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/tensorflow/init.py", line 50, in getattr
module = self._load()
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/tensorflow/init.py", line 44, in _load
module = _importlib.import_module(self.name)
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/tensorflow_core/python/init.py", line 52, in
from tensorflow.core.framework.graph_pb2 import *
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/tensorflow_core/core/framework/graph_pb2.py", line 16, in
from tensorflow.core.framework import node_def_pb2 as tensorflow_dot_core_dot_framework_dot_node__def__pb2
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/tensorflow_core/core/framework/node_def_pb2.py", line 16, in
from tensorflow.core.framework import attr_value_pb2 as tensorflow_dot_core_dot_framework_dot_attr__value__pb2
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/tensorflow_core/core/framework/attr_value_pb2.py", line 16, in
from tensorflow.core.framework import tensor_pb2 as tensorflow_dot_core_dot_framework_dot_tensor__pb2
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/tensorflow_core/core/framework/tensor_pb2.py", line 16, in
from tensorflow.core.framework import resource_handle_pb2 as tensorflow_dot_core_dot_framework_dot_resource__handle__pb2
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/tensorflow_core/core/framework/resource_handle_pb2.py", line 16, in
from tensorflow.core.framework import tensor_shape_pb2 as tensorflow_dot_core_dot_framework_dot_tensor__shape__pb2
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/tensorflow_core/core/framework/tensor_shape_pb2.py", line 42, in
serialized_options=None, file=DESCRIPTOR),
File "/home/yhw/software/anaconda3/envs/sc.p37/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:

  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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/IPython/core/interactiveshell.py", line 2099, in showtraceback
stb = value.render_traceback()
AttributeError: 'TypeError' object has no attribute 'render_traceback'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/IPython/core/interactiveshell.py", line 3473, in run_ast_nodes
if (await self.run_code(code, result, async_=asy)):
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/IPython/core/interactiveshell.py", line 3575, in run_code
self.showtraceback(running_compiled_code=True)
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/IPython/core/interactiveshell.py", line 2102, in showtraceback
value, tb, tb_offset=tb_offset)
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/IPython/core/ultratb.py", line 1368, in structured_traceback
self, etype, value, tb, tb_offset, number_of_lines_of_context)
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/IPython/core/ultratb.py", line 1268, in structured_traceback
self, etype, value, tb, tb_offset, number_of_lines_of_context
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/IPython/core/ultratb.py", line 1125, in structured_traceback
tb_offset)
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/IPython/core/ultratb.py", line 1082, in format_exception_as_a_whole
last_unique, recursion_repeat = find_recursion(orig_etype, evalue, records)
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/IPython/core/ultratb.py", line 382, in find_recursion
return len(records), 0
TypeError: object of type 'NoneType' has no len()

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/IPython/core/interactiveshell.py", line 2099, in showtraceback
stb = value.render_traceback()
AttributeError: 'TypeError' object has no attribute 'render_traceback'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/IPython/core/interactiveshell.py", line 3030, in _run_cell
return runner(coro)
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/IPython/core/async_helpers.py", line 78, in _pseudo_sync_runner
coro.send(None)
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/IPython/core/interactiveshell.py", line 3258, in run_cell_async
interactivity=interactivity, compiler=compiler, result=result)
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/IPython/core/interactiveshell.py", line 3492, in run_ast_nodes
self.showtraceback()
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/IPython/core/interactiveshell.py", line 2102, in showtraceback
value, tb, tb_offset=tb_offset)
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/IPython/core/ultratb.py", line 1368, in structured_traceback
self, etype, value, tb, tb_offset, number_of_lines_of_context)
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/IPython/core/ultratb.py", line 1268, in structured_traceback
self, etype, value, tb, tb_offset, number_of_lines_of_context
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/IPython/core/ultratb.py", line 1143, in structured_traceback
chained_exceptions_tb_offset)
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/IPython/core/ultratb.py", line 1082, in format_exception_as_a_whole
last_unique, recursion_repeat = find_recursion(orig_etype, evalue, records)
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/IPython/core/ultratb.py", line 382, in find_recursion
return len(records), 0
TypeError: object of type 'NoneType' has no len()

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/IPython/core/interactiveshell.py", line 2099, in showtraceback
stb = value.render_traceback()
AttributeError: 'TypeError' object has no attribute 'render_traceback'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/IPython/core/ultratb.py", line 1101, in get_records
return _fixed_getinnerframes(etb, number_of_lines_of_context, tb_offset)
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/IPython/core/ultratb.py", line 248, in wrapped
return f(*args, **kwargs)
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/IPython/core/ultratb.py", line 281, in _fixed_getinnerframes
records = fix_frame_records_filenames(inspect.getinnerframes(etb, context))
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/inspect.py", line 1502, in getinnerframes
frameinfo = (tb.tb_frame,) + getframeinfo(tb, context)
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/inspect.py", line 1460, in getframeinfo
filename = getsourcefile(frame) or getfile(frame)
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/inspect.py", line 696, in getsourcefile
if getattr(getmodule(object, filename), 'loader', None) is not None:
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/inspect.py", line 733, in getmodule
if ismodule(module) and hasattr(module, 'file'):
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/tensorflow/init.py", line 50, in getattr
module = self._load()
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/tensorflow/init.py", line 44, in _load
module = _importlib.import_module(self.name)
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1006, in _gcd_import
File "", line 983, in _find_and_load
File "", line 953, in _find_and_load_unlocked
File "", line 219, in _call_with_frames_removed
File "", line 1006, in _gcd_import
File "", line 983, in _find_and_load
File "", line 967, in _find_and_load_unlocked
File "", line 677, in _load_unlocked
File "", line 728, in exec_module
File "", line 219, in _call_with_frames_removed
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/tensorflow_core/init.py", line 33, in
from tensorflow._api.v1 import audio
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/tensorflow_core/_api/v1/audio/init.py", line 10, in
from tensorflow.python.ops.gen_audio_ops import decode_wav
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/tensorflow_core/python/ops/gen_audio_ops.py", line 11, in
from tensorflow.python.eager import context as _context
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/tensorflow_core/python/eager/context.py", line 29, in
from tensorflow.core.protobuf import config_pb2
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/tensorflow_core/core/protobuf/config_pb2.py", line 16, in
from tensorflow.core.framework import cost_graph_pb2 as tensorflow_dot_core_dot_framework_dot_cost__graph__pb2
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/tensorflow_core/core/framework/cost_graph_pb2.py", line 16, in
from tensorflow.core.framework import tensor_shape_pb2 as tensorflow_dot_core_dot_framework_dot_tensor__shape__pb2
File "/home/yhw/software/anaconda3/envs/sc.p37/lib/python3.7/site-packages/tensorflow_core/core/framework/tensor_shape_pb2.py", line 42, in
serialized_options=None, file=DESCRIPTOR),
File "/home/yhw/software/anaconda3/envs/sc.p37/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:

  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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions