Can't run with Face Recognition imported in Python App - python

When I try to run app.py with Face Recognition imported in Python I get the following error message:
Traceback (most recent call last):
File "app.py", line 10, in <module>
import face_recognition as fr
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/face_recognition/__init__.py", line 7, in <module>
from .api import load_image_file, face_locations, batch_face_locations, face_landmarks, face_encodings, compare_faces, face_distance
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/face_recognition/api.py", line 4, in <module>
import dlib
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/dlib/__init__.py", line 19, in <module>
from _dlib_pybind11 import *
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/_dlib_pybind11.cpython-39-darwin.so, 0x0002): symbol not found in flat namespace '_png_do_expand_palette_rgb8_neon'
The app will run with the import line commented out. I have CMake, dlib and pip installed. Also trie uninstalling and installing again.

Related

I'm trying exececute a .py program, but show this error: ImportError: cannot import name 'COMError' from '_ctypes'

this program need a python 3.9.13 [installed] and i try open that and show this error:
~/Downloads/PyTibia-main$ sudo python3 main.py
Traceback (most recent call last):
File "/home/tibia/Downloads/PyTibia-main/main.py", line 1, in <module>
import dxcam
File "/usr/local/lib/python3.10/dist-packages/dxcam/__init__.py", line 3, in <module>
from dxcam.dxcam import DXCamera, Output, Device
File "/usr/local/lib/python3.10/dist-packages/dxcam/dxcam.py", line 5, in <module>
import comtypes
File "/usr/local/lib/python3.10/dist-packages/comtypes/__init__.py", line 28, in <module>
from _ctypes import COMError
ImportError: cannot import name 'COMError' from '_ctypes' (/usr/lib/python3.10/lib-dynload/_ctypes.cpython-310-x86_64-linux-gnu.so)
Anybody can help me? thanks!!
The program can open normaly.

TPM TSS middleware PYTSS Import Error - undefined symbol: Esys_MAC_Start_Async

I have installed tpm2_pytss and tried to run the tests present in their repo.
When I run any of those tests I always get the same error:
Traceback (most recent call last):
File "/home/xxxxxxxx/thesis/playground/quote.py", line 5, in <module>
from tpm2_pytss import *
File "/usr/local/lib/python3.9/dist-packages/tpm2_pytss/__init__.py", line 2, in <module>
from .ESAPI import ESAPI
File "/usr/local/lib/python3.9/dist-packages/tpm2_pytss/ESAPI.py", line 2, in <module>
from .types import *
File "/usr/local/lib/python3.9/dist-packages/tpm2_pytss/types.py", line 12, in <module>
from ._libtpm2_pytss import ffi, lib
ImportError: /usr/local/lib/python3.9/dist-packages/tpm2_pytss/_libtpm2_pytss.abi3.so: undefined symbol: Esys_MAC_Start_Async
(TPM is working, tpm2_tools is working)
I installed the APIs, it was a requirement of pytss installation. I ran the install with pip and solved all dependency problems (including the missing esapi API package).

python error on "import skimage": ImportError: DLL load failed while importing _remap

Can somebody help me with this? I am using Python 3.8 on Windows 10 and suddenly got this error with SKIMAGE module :/
What could it be? Something about C++?
Traceback (most recent call last):
File "board_detection.py", line 6, in <module>
import skimage
File "C:\Users\joao_\AppData\Local\Programs\Python\Python38\lib\site-packages\skimage\__init__.py", line 125, in <module>
from .util.dtype import (img_as_float32,
File "C:\Users\joao_\AppData\Local\Programs\Python\Python38\lib\site-packages\skimage\util\__init__.py", line 17, in <module>
from ._map_array import map_array
File "C:\Users\joao_\AppData\Local\Programs\Python\Python38\lib\site-packages\skimage\util\_map_array.py", line 2, in <module>
from ._remap import _map_array
ImportError: DLL load failed while importing _remap: the specific module could not found

python image not found after paraview brew install

I am runing python scripts on mac and after a "brew install paraview" a lot of packages are not working anymore : import vtk, or import scipy.linalg ...
Here is for example one of the bug:
Would you have an idea how to fix this?
Traceback (most recent call last):
File "MV15.py", line 3, in <module>
import scipy.linalg as slin File "/usr/local/lib/python2.7/site-packages/scipy/linalg/__init__.py", line 159, in <module>
from .misc import * File "/usr/local/lib/python2.7/site-packages/scipy/linalg/misc.py", line 5, in <module>
from . import blas File "/usr/local/lib/python2.7/site-packages/scipy/linalg/blas.py", line 145, in <module>
from scipy.linalg import _fblas ImportError: dlopen(/usr/local/lib/python2.7/site-packages/scipy/linalg/_fblas.so, 2): Library not loaded: /usr/local/lib/gcc/x86_64-apple-darwin14.0.0/4.9.2/libgfortran.3.dylib Referenced from: /usr/local/lib/python2.7/site-packages/scipy/linalg/_fblas.so Reason: image not found

Getting errors when trying to import pymc

I have installed pymc using easy_install pymc command. While I try to import the package using import pymc.
I am getting following errors :
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.7/dist-packages/pymc-2.3.2-py2.7-linux-i686.egg/pymc/__init__.py", line 29, in <module>
from .CommonDeterministics import *
File "/usr/local/lib/python2.7/dist-packages/pymc-2.3.2-py2.7-linux-i686.egg/pymc/CommonDeterministics.py", line 21, in <module>
from .utils import safe_len, stukel_logit, stukel_invlogit, logit, invlogit, value, find_element
File "/usr/local/lib/python2.7/dist-packages/pymc-2.3.2-py2.7-linux-i686.egg/pymc/utils.py", line 14, in <module>
from . import flib
ImportError: libatlas.so.3gf: cannot open shared object file: No such file or directory
I am using Ubuntu 12.04 and Python 2.7.
What is the reason for these errors?
Try installing that missing library:
apt-get install libatlas3-base-dev

Categories