Category : importerror

I need to install pandas on a LinuxOS. Initially, I used sudo apt-get install python3-pandas It looked like the installation was complete but then I switch to Thonny and import pandas and get this Traceback (most recent call last): File "<pyshell>", line 1, in <module> File "/usr/local/lib/python3.7/dist-packages/pandas/_init_.py", line 22, in <module> from pandas.compat import ( ..

Read more

I know there are number of solutions posted on stackoverflow for this problem, however none of them works for me that’s why I am posting this question. When I try to run following command in a conda environment ( using redhatlinux) on a HPC Cluster (QGN) [[email protected] SparseConvNet]$ bash develop.sh I get the following error ..

Read more

Trying to read a shapefile (.shp) and received an ImportError after executing the below line of code. I even pip installed GDAL, geopandas, fiona and shapely before executing the below code. shapefile = gpd.read_file(r’C:Users….Data Analysisshapefileslouisville.shp’) Error received is as follows, ————————————————————————— ImportError Traceback (most recent call last) <ipython-input-164-16243badadbe> in <module> —-> 1 shapefile = gpd.read_file(r’C:Users….Data ..

Read more

I’m trying to start up an AI and the terminal is not even running through the import. This is the error I get when I try to run my code: File "Face_Detector.py", line 1, in <module> import cv2 ImportError: No module named cv2 I’ve tried pip3 install opencv-python and pip3 install opencv-python-headless, and nothing seems ..

Read more

When I try to run the code, the error ‘TypeError: Unable to convert function return value to a Python type! The signature was () -> handle’ occurs. I have reinstalled python and anaconda. Earlier it was running alright. now its giving me errors. import os os.environ[‘CUDA_VISIBLE_DEVICES’] = ‘0’ os.environ["SM_FRAMEWORK"] = "tf.keras" from tensorflow.keras.utils import plot_model ..

Read more

i am trying to import the library psycopg2 but i get this error: Traceback (most recent call last): File "c:UsersmeOneDriveDesktoppythonProjectfromSMStoDBapp.py", line 2, in import psycopg2 File "C:UsersmeAppDataLocalProgramsPythonPython310libsite-packagespsycopg2_init_.py", line 51, in from psycopg2._psycopg import ( # noqa ImportError: DLL load failed while importing _psycopg: the specified module could not be found. I am using python version: ..

Read more