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

installation error #1

Open
BaohaoLiao opened this issue Aug 1, 2023 · 2 comments
Open

installation error #1

BaohaoLiao opened this issue Aug 1, 2023 · 2 comments

Comments

@BaohaoLiao
Copy link

Hi,

when I install the packages in the requirement, it raises an error of

ERROR: Could not find a version that satisfies the requirement tflite-runtime==2.13.0 (from versions: none)
ERROR: No matching distribution found for tflite-runtime==2.13.0

@SamratThapa120
Copy link
Owner

Are you using the python:3.8.17 docker image?

@BaohaoLiao
Copy link
Author

BaohaoLiao commented Aug 1, 2023

I didn't use docker.

I retry to use docker as your instruction, and make some necessary changes to requirement.txt as:

 mediapipe==0.10.3 # change from 0.10.0 to 0.10.3
 gradio # add

However, it raises an error of

Traceback (most recent call last):
  File "app.py", line 3, in <module>
    import mediapipe as mp
  File "/usr/local/lib/python3.8/site-packages/mediapipe/__init__.py", line 16, in <module>
    import mediapipe.python.solutions as solutions
  File "/usr/local/lib/python3.8/site-packages/mediapipe/python/solutions/__init__.py", line 17, in <module>
    import mediapipe.python.solutions.drawing_styles
  File "/usr/local/lib/python3.8/site-packages/mediapipe/python/solutions/drawing_styles.py", line 20, in <module>
    from mediapipe.python.solutions.drawing_utils import DrawingSpec
  File "/usr/local/lib/python3.8/site-packages/mediapipe/python/solutions/drawing_utils.py", line 20, in <module>
    import cv2
  File "/usr/local/lib/python3.8/site-packages/cv2/__init__.py", line 181, in <module>
    bootstrap()
  File "/usr/local/lib/python3.8/site-packages/cv2/__init__.py", line 175, in bootstrap
    if __load_extra_py_code_for_module("cv2", submodule, DEBUG):
  File "/usr/local/lib/python3.8/site-packages/cv2/__init__.py", line 28, in __load_extra_py_code_for_module
    py_module = importlib.import_module(module_name)
  File "/usr/local/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "/usr/local/lib/python3.8/site-packages/cv2/mat_wrapper/__init__.py", line 33, in <module>
    cv._registerMatType(Mat)
AttributeError: partially initialized module 'cv2' has no attribute '_registerMatType' (most likely due to a circular import)

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