Hi have created a docker image with base image python3.6
I have installed ifxpy using "pip install ifxpy" and after successful build ifxpy-3.0.1 I tried to import ifxpy lib and it gives me the error
Successfully built flask-jwt idna-ssl
Installing collected packages: click,
ifxpy-3.0.1 itsdangerous-1.1.0 multidict-4.5.2 pytz-2019.1 requests-2.22.0 schedule-0.6.0 typing-extensions-3.7.4 urllib3-1.25.3 yarl-1.3.0
Error logs from docker :-
Traceback (most recent call last):
File "/home/pythonuser/Informix_Conn.py", line 3, in <module>
import IfxPyDbi as dbapi2
File "/usr/local/lib/python3.6/site-packages/IfxPyDbi.py", line 43, in <module>
import IfxPy
ImportError: libifdmr.so: cannot open shared object file: No such file or directory
libifdmr.so is a library of the Informix Client SDK.
So first install the Informix Client SDK. Furthermore you have to set the enviroment variable LD_LIBRARY_PATH=$INFORMIXDIR/lib:$INFORMIXDIR/lib/esql:$INFORMIXDIR/lib/cli.
Related
I am attempting to use cuPy to speed up some background numpy operations in my python code but when attempting to import cupy I am told that the DLL load failed and the module could not be found, cupy_backends.cuda.libs import nvrtc. (Specific errors at end of post)
I've attempted almost everything the error message suggests. I check my version of cupy and cuda which are cupy-cuda111==8.4.0, I have Cuda 11.2 installed as well. I am running Windows 10 and Python 3.7.6 on Spyder 3. I have tried uninstalling cupy via pip uninstall in hopes of reinstalling correctly but it just hangs and never uninstalls the package.
It appears I have the file its looking for when I go search manually via my file explorer. (Imaged Below)
I am fairly inexperienced when it comes to handling things like this so any help would be greatly appreciated. The entire error message and trace is copied below:
import cupy as cp
Traceback (most recent call last):
File "C:\ProgramData\Anaconda3\lib\site-packages\cupy\__init__.py", line 20, in <module>
from cupy import core # NOQA
File "C:\ProgramData\Anaconda3\lib\site-packages\cupy\core\__init__.py", line 1, in <module>
from cupy.core import core # NOQA
File "cupy\core\core.pyx", line 1, in init cupy.core.core
File "C:\ProgramData\Anaconda3\lib\site-packages\cupy\cuda\__init__.py", line 5, in <module>
from cupy.cuda import compiler # NOQA
File "C:\ProgramData\Anaconda3\lib\site-packages\cupy\cuda\compiler.py", line 14, in <module>
from cupy_backends.cuda.libs import nvrtc
ImportError: DLL load failed: The specified module could not be found.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<ipython-input-1-e011b0e859cc>", line 1, in <module>
import cupy as cp
File "C:\ProgramData\Anaconda3\lib\site-packages\cupy\__init__.py", line 41, in <module>
raise ImportError(_msg) from e
ImportError: CuPy is not correctly installed.
If you are using wheel distribution (cupy-cudaXX), make sure that the version of CuPy you installed matches with the version of CUDA on your host.
Also, confirm that only one CuPy package is installed:
$ pip freeze
If you are building CuPy from source, please check your environment, uninstall CuPy and reinstall it with:
$ pip install cupy --no-cache-dir -vvvv
Check the Installation Guide for details:
https://docs.cupy.dev/en/latest/install.html
original error: DLL load failed: The specified module could not be found.
I installed the module "pyunicorn" in Ubuntu 16.04 LTS and all the dependencies but when I import the module in python 3.7.3 i get this error :
>>> import pyunicorn
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/user/anaconda3/lib/python3.7/site-packages/pyunicorn/__init__.py", line 43, in <module>
from setup import __version__
ModuleNotFoundError: No module named 'setup'
What should i do to make it run properly???
I had this problem. I wanted to install it on Google Colab. I tried installing pyunicorn directly from Github and it worked for me. Try using following instruction:
pip install git+https://github.com/pik-copan/pyunicorn.git#egg=pyunicorn
I am following the smartsheet API's python-sdk example to do some practice.
Below are my steps (using Python 3.4.4 on macOS 10.7.5):
installed the SDK package from their GitHub repo
installed pip using pip install smartsheet-python-sdk in my terminal
created a .py file and moved it into the SDK file
Issue
When I run it, I got following error message:
Traceback (most recent call last):
File "/Users/canny_aiyaya/Desktop/smartsheet-python-sdk-master/smartsheet/charity.py", line 5, in <module>
import smartsheet
File "/Users/canny_aiyaya/Desktop/smartsheet-python-sdk-master/smartsheet/smartsheet.py", line 28, in <module>
import requests
ImportError: No module named 'requests'
Code in the .py file
import smartsheet
ss_client = smartsheet.Smartsheet(access_token)
ss_client.errors_as_exceptions(True)
Analysis
I looked for some possible solutions, and try to install requests on my terminal using sudo pip3 install requests, but it shows:
No matching distribution found for requests
This is my first time trying to use API on Smartsheet, any supports/links/videos will very helpful.
There are a number of dependencies. You can run python setup.py install from the Smartsheet SDK directory to install them.
I've installed the dependences using apk add libxslt-dev libxml2-dev for pip install lxml successfully, but encountering error with
...
Successfully built e6d5e3a0d74b
Successfully tagged 172.16.3.191:5000/spider/parse:1.2
[root#docker-191 Parse]# docker run -p 1000:10002 172.16.3.191:5000/spider/parse:1.2
Traceback (most recent call last):
File "parse.py", line 1, in <module>
from parsel.selector import Selector
File "/usr/local/lib/python3.6/site-packages/parsel/__init__.py", line 10, in <module>
from parsel.selector import Selector, SelectorList # NOQA
File "/usr/local/lib/python3.6/site-packages/parsel/selector.py", line 8, in <module>
from lxml import etree, html
ImportError: Error loading shared library libxslt.so.1: No such file or directory (needed by /usr/local/lib/python3.6/site-packages/lxml/etree.cpython-36m-x86_64-linux-gnu.so)
when I run my app.
I don't know what is the matter with Docker image alpine3.7 or python 3.6.5 or python:3.6.5-alpine3.7?
What should I do? Can someone help me? Thanks.
I have installed leptonica and tesseract in $HOME/local and tesseract is working properly, then tesserocr python package with:
CPPFLAGS="-I/home/user/local/include /home/user/local/lib" pip install tesserocr
and when I want to invoke it I get this:
$ python3 extract.py
Traceback (most recent call last):
File "extract.py", line 4, in <module>
from tesserocr import PyTessBaseAPI, RIL, PyLTRResultIterator, iterate_level
ImportError: liblept.so.5: cannot open shared object file: No such file or directory
please help
As mentioned in my comment on the original post, the proper installation command should be:
CPPFLAGS="-I/home/user/local/include -L/home/user/local/lib" pip install tesserocr