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 in importing #115

Open
jgdpsingh opened this issue Jun 16, 2021 · 0 comments
Open

Error in importing #115

jgdpsingh opened this issue Jun 16, 2021 · 0 comments

Comments

@jgdpsingh
Copy link

I am getting following error on importing MTCNN class although I have installed it correctly.

from mtcnn import MTCNN
Traceback (most recent call last):

File "", line 1, in
from mtcnn import MTCNN

File "C:\Users\Jagdeep\Anaconda3\lib\site-packages\mtcnn_init_.py", line 26, in
from mtcnn.mtcnn import MTCNN

File "C:\Users\Jagdeep\Anaconda3\lib\site-packages\mtcnn\mtcnn.py", line 37, in
from mtcnn.network.factory import NetworkFactory

File "C:\Users\Jagdeep\Anaconda3\lib\site-packages\mtcnn\network\factory.py", line 26, in
from keras.layers import Input, Dense, Conv2D, MaxPooling2D, PReLU, Flatten, Softmax

File "C:\Users\Jagdeep\Anaconda3\lib\site-packages\keras_init_.py", line 3, in
from tensorflow.keras.layers.experimental.preprocessing import RandomRotation

File "C:\Users\Jagdeep\Anaconda3\lib\site-packages\tensorflow_init_.py", line 41, in
from tensorflow.python.tools import module_util as _module_util

File "C:\Users\Jagdeep\Anaconda3\lib\site-packages\tensorflow\python_init_.py", line 45, in
from tensorflow.python import data

File "C:\Users\Jagdeep\Anaconda3\lib\site-packages\tensorflow\python\data_init_.py", line 25, in
from tensorflow.python.data import experimental

File "C:\Users\Jagdeep\Anaconda3\lib\site-packages\tensorflow\python\data\experimental_init_.py", line 96, in
from tensorflow.python.data.experimental import service

File "C:\Users\Jagdeep\Anaconda3\lib\site-packages\tensorflow\python\data\experimental\service_init_.py", line 21, in
from tensorflow.python.data.experimental.ops.data_service_ops import distribute

File "C:\Users\Jagdeep\Anaconda3\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\Jagdeep\Anaconda3\lib\site-packages\tensorflow\python\data\experimental\ops\compression_ops.py", line 20, in
from tensorflow.python.data.util import structure

File "C:\Users\Jagdeep\Anaconda3\lib\site-packages\tensorflow\python\data\util\structure.py", line 33, in
from tensorflow.python.ops import tensor_array_ops

File "C:\Users\Jagdeep\Anaconda3\lib\site-packages\tensorflow\python\ops\tensor_array_ops.py", line 38, in
from tensorflow.python.ops import array_ops

File "C:\Users\Jagdeep\Anaconda3\lib\site-packages\tensorflow\python\ops\array_ops.py", line 1475, in
_NON_AUTOPACKABLE_TYPES = set(np.core.numerictypes.ScalarType)

AttributeError: module 'numpy.core' has no attribute 'numerictypes'

from mtcnn import MTCNN
Traceback (most recent call last):

File "", line 1, in
from mtcnn import MTCNN

File "C:\Users\Jagdeep\Anaconda3\lib\site-packages\mtcnn_init_.py", line 26, in
from mtcnn.mtcnn import MTCNN

File "C:\Users\Jagdeep\Anaconda3\lib\site-packages\mtcnn\mtcnn.py", line 37, in
from mtcnn.network.factory import NetworkFactory

File "C:\Users\Jagdeep\Anaconda3\lib\site-packages\mtcnn\network\factory.py", line 26, in
from keras.layers import Input, Dense, Conv2D, MaxPooling2D, PReLU, Flatten, Softmax

File "C:\Users\Jagdeep\Anaconda3\lib\site-packages\keras_init_.py", line 3, in
from tensorflow.keras.layers.experimental.preprocessing import RandomRotation

File "C:\Users\Jagdeep\Anaconda3\lib\site-packages\tensorflow_init_.py", line 41, in
from tensorflow.python.tools import module_util as _module_util

File "C:\Users\Jagdeep\Anaconda3\lib\site-packages\tensorflow\python_init_.py", line 45, in
from tensorflow.python import data

File "C:\Users\Jagdeep\Anaconda3\lib\site-packages\tensorflow\python\data_init_.py", line 25, in
from tensorflow.python.data import experimental

File "C:\Users\Jagdeep\Anaconda3\lib\site-packages\tensorflow\python\data\experimental_init_.py", line 96, in
from tensorflow.python.data.experimental import service

File "C:\Users\Jagdeep\Anaconda3\lib\site-packages\tensorflow\python\data\experimental\service_init_.py", line 21, in
from tensorflow.python.data.experimental.ops.data_service_ops import distribute

File "C:\Users\Jagdeep\Anaconda3\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\Jagdeep\Anaconda3\lib\site-packages\tensorflow\python\data\experimental\ops\compression_ops.py", line 20, in
from tensorflow.python.data.util import structure

File "C:\Users\Jagdeep\Anaconda3\lib\site-packages\tensorflow\python\data\util\structure.py", line 33, in
from tensorflow.python.ops import tensor_array_ops

File "C:\Users\Jagdeep\Anaconda3\lib\site-packages\tensorflow\python\ops\tensor_array_ops.py", line 38, in
from tensorflow.python.ops import array_ops

File "C:\Users\Jagdeep\Anaconda3\lib\site-packages\tensorflow\python\ops\array_ops.py", line 1475, in
_NON_AUTOPACKABLE_TYPES = set(np.core.numerictypes.ScalarType)

AttributeError: module 'numpy.core' has no attribute 'numerictypes'

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

1 participant