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

Error importing retineface #22

Closed
007rohitSaini opened this issue Jan 9, 2022 · 5 comments
Closed

Error importing retineface #22

007rohitSaini opened this issue Jan 9, 2022 · 5 comments
Labels
help wanted Extra attention is needed

Comments

@007rohitSaini
Copy link

007rohitSaini commented Jan 9, 2022

from retinaface import RetinaFace
RuntimeError: module compiled against API version 0xe but this version of numpy is 0xd
RuntimeError: module compiled against API version 0xe but this version of numpy is 0xd
ImportError: numpy.core.multiarray_umath failed to import
ImportError: numpy.core.umath failed to import
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\ROHIT\anaconda3\envs\jarvis\lib\site-packages\retinaface\RetinaFace.py", line 10, in
import tensorflow as tf
File "C:\Users\ROHIT\anaconda3\envs\jarvis\lib\site-packages\tensorflow_init
.py", line 41, in
from tensorflow.python.tools import module_util as module_util
File "C:\Users\ROHIT\anaconda3\envs\jarvis\lib\site-packages\tensorflow\python_init
.py", line 46, in
from tensorflow.python import data
File "C:\Users\ROHIT\anaconda3\envs\jarvis\lib\site-packages\tensorflow\python\data_init_.py", line 25, in
from tensorflow.python.data import experimental
File "C:\Users\ROHIT\anaconda3\envs\jarvis\lib\site-packages\tensorflow\python\data\experimental_init_.py", line 99, in
File "C:\Users\ROHIT\anaconda3\envs\jarvis\lib\site-packages\tensorflow\python\data\experimental\service_init_.py", line 140, in from tensorflow.python.data.experimental.ops.data_service_ops import distribute
File "C:\Users\ROHIT\anaconda3\envs\jarvis\lib\site-packages\tensorflow\python\data\experimental\ops\data_service_ops.py", line 25, in from tensorflow.python.data.experimental.ops import compression_ops
File "C:\Users\ROHIT\anaconda3\envs\jarvis\lib\site-packages\tensorflow\python\data\experimental\ops\compression_ops.py", line 20, in from tensorflow.python.data.util import structure
File "C:\Users\ROHIT\anaconda3\envs\jarvis\lib\site-packages\tensorflow\python\data\util\structure.py", line 26, in from tensorflow.python.data.util import nest
File "C:\Users\ROHIT\anaconda3\envs\jarvis\lib\site-packages\tensorflow\python\data\util\nest.py", line 40, in from tensorflow.python.framework import sparse_tensor as _sparse_tensor
File "C:\Users\ROHIT\anaconda3\envs\jarvis\lib\site-packages\tensorflow\python\framework\sparse_tensor.py", line 28, in from tensorflow.python.framework import constant_op
File "C:\Users\ROHIT\anaconda3\envs\jarvis\lib\site-packages\tensorflow\python\framework\constant_op.py", line 29, in from tensorflow.python.eager import execute
File "C:\Users\ROHIT\anaconda3\envs\jarvis\lib\site-packages\tensorflow\python\eager\execute.py", line 27, in from tensorflow.python.framework import dtypes
File "C:\Users\ROHIT\anaconda3\envs\jarvis\lib\site-packages\tensorflow\python\framework\dtypes.py", line 32, in _np_bfloat16 = _pywrap_bfloat16.TF_bfloat16_type()
TypeError: Unable to convert function return value to a Python type! The signature was
() -> handle

@serengil
Copy link
Owner

your tensorflow installation seems problematic

@serengil serengil added the help wanted Extra attention is needed label Jan 10, 2022
@007rohitSaini
Copy link
Author

i tried reinstalling tensorflow and got this error
tf_version = int(tf.version.split(".")[0])
AttributeError: module 'tensorflow' has no attribute 'version'

@serengil
Copy link
Owner

serengil commented Jan 26, 2022

what is your tf version? mine is 2.2.0.

@007rohitSaini
Copy link
Author

007rohitSaini commented Jan 26, 2022

I have 2.5.0 I tried installing 2.2.0 but again got an error
ERROR: Could not find a version that satisfies the requirement TensorFlow==2.2.0 (from versions: 2.5.0rc0, 2.5.0rc1, 2.5.0rc2, 2.5.0rc3, 2.5.0, 2.5.1, 2.5.2, 2.6.0rc0, 2.6.0rc1, 2.6.0rc2, 2.6.0, 2.6.1, 2.6.2, 2.7.0rc0, 2.7.0rc1, 2.7.0, 2.8.0rc0, 2.8.0rc1)
ERROR: No matching distribution found for TensorFlow==2.2.0

actually I think the problem is my gpu(gt 730 ddr3 4gb) does not support CUDA anymore so that may be the problem I have also checked on TensorFlow repository that TensorFlow 2.2.0 is failed on CPU it only works on gpu on a windows machine.

@serengil
Copy link
Owner

closed due to inactivity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants