Open Tc554 opened 1 year ago
So I am trying to use the mediapipe-model-maker which needs the tensorflow_datasets package and this package uses this package (array-record) and I am getting this error while running the code: Traceback (most recent call last): File "C:\venv\lib\site-packages\mediapipe_model_makerinit.py", line 17, in from mediapipe_model_maker.python.vision import image_classifier File "C:\venv\lib\site-packages\mediapipe_model_maker\python\vision\image_classifierinit.py", line 16, in from mediapipe_model_maker.python.vision.image_classifier import dataset File "C:\venv\lib\site-packages\mediapipe_model_maker\python\vision\image_classifier\dataset.py", line 21, in import tensorflow_datasets as tfds File "C:\venv\lib\site-packages\tensorflow_datasetsinit.py", line 43, in import tensorflow_datasets.core.logging as _tfds_logging File "C:\venv\lib\site-packages\tensorflow_datasets\coreinit.py", line 22, in from tensorflow_datasets.core import community File "C:\venv\lib\site-packages\tensorflow_datasets\core\communityinit.py", line 18, in from tensorflow_datasets.core.community.huggingface_wrapper import mock_builtin_to_use_gfile File "C:\venv\lib\site-packages\tensorflow_datasets\core\community\huggingface_wrapper.py", line 31, in from tensorflow_datasets.core import dataset_builder File "C:\venv\lib\site-packages\tensorflow_datasets\core\dataset_builder.py", line 34, in from tensorflow_datasets.core import dataset_info File "C:\venv\lib\site-packages\tensorflow_datasets\core\dataset_info.py", line 47, in from tensorflow_datasets.core import file_adapters File "C:\venv\lib\site-packages\tensorflow_datasets\core\file_adapters.py", line 29, in from array_record.python import array_record_module ImportError: cannot import name 'array_record_module' from 'array_record.python' (C:\venv\lib\site-packages\array_record\pythoninit.py)
I met the same issue when I try to use tensorflow_datasets. You can try to downgrade tensorflow_datasets to 4.8.3. I hope it could help you.
So I am trying to use the mediapipe-model-maker which needs the tensorflow_datasets package and this package uses this package (array-record) and I am getting this error while running the code: Traceback (most recent call last): File "C:\venv\lib\site-packages\mediapipe_model_maker__init.py", line 17, in
from mediapipe_model_maker.python.vision import image_classifier
File "C:\venv\lib\site-packages\mediapipe_model_maker\python\vision\image_classifier__init.py", line 16, in
from mediapipe_model_maker.python.vision.image_classifier import dataset
File "C:\venv\lib\site-packages\mediapipe_model_maker\python\vision\image_classifier\dataset.py", line 21, in
import tensorflow_datasets as tfds
File "C:\venv\lib\site-packages\tensorflow_datasets\ init.py", line 43, in
import tensorflow_datasets.core.logging as _tfds_logging
File "C:\venv\lib\site-packages\tensorflow_datasets\core\ init.py", line 22, in
from tensorflow_datasets.core import community
File "C:\venv\lib\site-packages\tensorflow_datasets\core\community\ init__.py", line 18, in
from tensorflow_datasets.core.community.huggingface_wrapper import mock_builtin_to_use_gfile
File "C:\venv\lib\site-packages\tensorflow_datasets\core\community\huggingface_wrapper.py", line 31, in
from tensorflow_datasets.core import dataset_builder
File "C:\venv\lib\site-packages\tensorflow_datasets\core\dataset_builder.py", line 34, in
from tensorflow_datasets.core import dataset_info
File "C:\venv\lib\site-packages\tensorflow_datasets\core\dataset_info.py", line 47, in
from tensorflow_datasets.core import file_adapters
File "C:\venv\lib\site-packages\tensorflow_datasets\core\file_adapters.py", line 29, in
from array_record.python import array_record_module
ImportError: cannot import name 'array_record_module' from 'array_record.python' (C:\venv\lib\site-packages\array_record\python\ init__.py)