TensorFlow Addons (TFA) has ended development and introduction of new features.
TFA has entered a minimal maintenance and release mode until a planned end of life in May 2024.
Please modify downstream libraries to take dependencies from other repositories in our TensorFlow community (e.g. Keras, Keras-CV, and Keras-NLP).
warnings.warn(
/home/yyccll/.conda/envs/TF8/lib/python3.8/site-packages/tensorflow_addons/utils/ensure_tf_install.py:53: UserWarning: Tensorflow Addons supports using Python ops for all Tensorflow versions above or equal to 2.11.0 and strictly below 2.14.0 (nightly versions are not supported).
The versions of TensorFlow you are currently using is 2.4.1 and is not supported.
Some things might work, some things might not.
If you were to encounter a bug, do not file an issue.
If you want to make sure you're using a tested and supported configuration, either change the TensorFlow version or the TensorFlow Addons's version.
You can find the compatibility matrix in TensorFlow Addon's readme:
https://github.com/tensorflow/addons
warnings.warn(
Traceback (most recent call last):
File "/home/yyccll/.conda/envs/TF8/lib/python3.8/site-packages/paips/utils/modiuls.py", line 34, in get_modules
module = module_from_file(Path(module_path).stem,module_path)
File "/home/yyccll/.conda/envs/TF8/lib/python3.8/site-packages/paips/utils/modiuls.py", line 8, in module_from_file
module = importlib.util.module_from_spec(spec)
File "", line 553, in module_from_spec
AttributeError: 'NoneType' object has no attribute 'loader'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/yyccll/.conda/envs/TF8/lib/python3.8/site-packages/paips/utils/modiuls.py", line 37, in get_modules
module = module_from_folder(module_path)
File "/home/yyccll/.conda/envs/TF8/lib/python3.8/site-packages/paips/utils/modiuls.py", line 22, in module_from_folder
module = importlib.import_module(module_path.stem)
File "/home/yyccll/.conda/envs/TF8/lib/python3.8/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 975, in _find_and_load_unlocked
File "", line 671, in _load_unlocked
File "", line 843, in exec_module
File "", line 219, in _call_with_frames_removed
File "/home/yyccll/pyPro/ser-with-w2v2/tasks/init.py", line 8, in
from .dienen_tasks import *
File "/home/yyccll/pyPro/ser-with-w2v2/tasks/dienen_tasks.py", line 6, in
from dienen import Model
File "/home/yyccll/.conda/envs/TF8/lib/python3.8/site-packages/dienen/init.py", line 3, in
from .core.model import Model
File "/home/yyccll/.conda/envs/TF8/lib/python3.8/site-packages/dienen/core/init.py", line 1, in
from .architecture import Architecture
File "/home/yyccll/.conda/envs/TF8/lib/python3.8/site-packages/dienen/core/architecture.py", line 2, in
from .layer import Layer
File "/home/yyccll/.conda/envs/TF8/lib/python3.8/site-packages/dienen/core/layer.py", line 4, in
import tensorflow_addons as tfa
File "/home/yyccll/.conda/envs/TF8/lib/python3.8/site-packages/tensorflow_addons/init.py", line 24, in
from tensorflow_addons import callbacks
File "/home/yyccll/.conda/envs/TF8/lib/python3.8/site-packages/tensorflow_addons/callbacks/init.py", line 17, in
from tensorflow_addons.callbacks.average_model_checkpoint import AverageModelCheckpoint
File "/home/yyccll/.conda/envs/TF8/lib/python3.8/site-packages/tensorflow_addons/callbacks/average_model_checkpoint.py", line 18, in
from tensorflow_addons.optimizers.average_wrapper import AveragedOptimizerWrapper
File "/home/yyccll/.conda/envs/TF8/lib/python3.8/site-packages/tensorflow_addons/optimizers/init.py", line 30, in
from tensorflow_addons.optimizers.discriminative_layer_training import (
File "/home/yyccll/.conda/envs/TF8/lib/python3.8/site-packages/tensorflow_addons/optimizers/discriminative_layer_training.py", line 34, in
from tensorflow.keras.utils import tf_utils
ImportError: cannot import name 'tf_utils' from 'tensorflow.keras.utils' (/home/yyccll/.conda/envs/TF8/lib/python3.8/site-packages/tensorflow/keras/utils/init.py)
I have installed all the packages you recommended, while running under TF2.4.1 and keras2.4.3 reported errors, I made sure that my keras can run through other samples.
TensorFlow Addons (TFA) has ended development and introduction of new features. TFA has entered a minimal maintenance and release mode until a planned end of life in May 2024. Please modify downstream libraries to take dependencies from other repositories in our TensorFlow community (e.g. Keras, Keras-CV, and Keras-NLP).
For more information see: https://github.com/tensorflow/addons/issues/2807
warnings.warn( /home/yyccll/.conda/envs/TF8/lib/python3.8/site-packages/tensorflow_addons/utils/ensure_tf_install.py:53: UserWarning: Tensorflow Addons supports using Python ops for all Tensorflow versions above or equal to 2.11.0 and strictly below 2.14.0 (nightly versions are not supported). The versions of TensorFlow you are currently using is 2.4.1 and is not supported. Some things might work, some things might not. If you were to encounter a bug, do not file an issue. If you want to make sure you're using a tested and supported configuration, either change the TensorFlow version or the TensorFlow Addons's version. You can find the compatibility matrix in TensorFlow Addon's readme: https://github.com/tensorflow/addons warnings.warn( Traceback (most recent call last): File "/home/yyccll/.conda/envs/TF8/lib/python3.8/site-packages/paips/utils/modiuls.py", line 34, in get_modules module = module_from_file(Path(module_path).stem,module_path) File "/home/yyccll/.conda/envs/TF8/lib/python3.8/site-packages/paips/utils/modiuls.py", line 8, in module_from_file module = importlib.util.module_from_spec(spec) File "", line 553, in module_from_spec
AttributeError: 'NoneType' object has no attribute 'loader'
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/home/yyccll/.conda/envs/TF8/lib/python3.8/site-packages/paips/utils/modiuls.py", line 37, in get_modules module = module_from_folder(module_path)", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 975, in _find_and_load_unlocked
File "", line 671, in _load_unlocked
File "", line 843, in exec_module
File "", line 219, in _call_with_frames_removed
File "/home/yyccll/pyPro/ser-with-w2v2/tasks/init.py", line 8, in
from .dienen_tasks import *
File "/home/yyccll/pyPro/ser-with-w2v2/tasks/dienen_tasks.py", line 6, in
from dienen import Model
File "/home/yyccll/.conda/envs/TF8/lib/python3.8/site-packages/dienen/init.py", line 3, in
from .core.model import Model
File "/home/yyccll/.conda/envs/TF8/lib/python3.8/site-packages/dienen/core/init.py", line 1, in
from .architecture import Architecture
File "/home/yyccll/.conda/envs/TF8/lib/python3.8/site-packages/dienen/core/architecture.py", line 2, in
from .layer import Layer
File "/home/yyccll/.conda/envs/TF8/lib/python3.8/site-packages/dienen/core/layer.py", line 4, in
import tensorflow_addons as tfa
File "/home/yyccll/.conda/envs/TF8/lib/python3.8/site-packages/tensorflow_addons/init.py", line 24, in
from tensorflow_addons import callbacks
File "/home/yyccll/.conda/envs/TF8/lib/python3.8/site-packages/tensorflow_addons/callbacks/init.py", line 17, in
from tensorflow_addons.callbacks.average_model_checkpoint import AverageModelCheckpoint
File "/home/yyccll/.conda/envs/TF8/lib/python3.8/site-packages/tensorflow_addons/callbacks/average_model_checkpoint.py", line 18, in
from tensorflow_addons.optimizers.average_wrapper import AveragedOptimizerWrapper
File "/home/yyccll/.conda/envs/TF8/lib/python3.8/site-packages/tensorflow_addons/optimizers/init.py", line 30, in
from tensorflow_addons.optimizers.discriminative_layer_training import (
File "/home/yyccll/.conda/envs/TF8/lib/python3.8/site-packages/tensorflow_addons/optimizers/discriminative_layer_training.py", line 34, in
from tensorflow.keras.utils import tf_utils
ImportError: cannot import name 'tf_utils' from 'tensorflow.keras.utils' (/home/yyccll/.conda/envs/TF8/lib/python3.8/site-packages/tensorflow/keras/utils/init.py)
File "/home/yyccll/.conda/envs/TF8/lib/python3.8/site-packages/paips/utils/modiuls.py", line 22, in module_from_folder module = importlib.import_module(module_path.stem) File "/home/yyccll/.conda/envs/TF8/lib/python3.8/importlib/init.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "
I have installed all the packages you recommended, while running under TF2.4.1 and keras2.4.3 reported errors, I made sure that my keras can run through other samples.