Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot import 'array_record_module' #47

Open
Tc554 opened this issue Apr 6, 2023 · 1 comment
Open

Cannot import 'array_record_module' #47

Tc554 opened this issue Apr 6, 2023 · 1 comment

Comments

@Tc554
Copy link

Tc554 commented Apr 6, 2023

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)

@Opium1715
Copy link

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)

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants