I've got a problem regarding the excel2img module library that is about 'win32com'.
I've check the solutions at link follows:
https://superuser.com/questions/609447/how-to-install-the-win32com-python-library
Still getting an error "ImportError: No module named win32com.client" after installing pywin32 lib
ImportError: No module named win32com.client
However, the error still there.
'''Traceback (most recent call last):
File "C:/Users/Lenovo/PycharmProjects/HO_P1/excelToImage.py", line 4, in
import excel2img
File "C:\Users\Lenovo\PycharmProjects\HO_P1\venv\lib\site-packages\excel2img_init_.py", line 1, in
from .excel2img import export_img
File "C:\Users\Lenovo\PycharmProjects\HO_P1\venv\lib\site-packages\excel2img\excel2img.py", line 18, in
import win32com.client
File "C:\Users\Lenovo\PycharmProjects\HO_P1\venv\lib\site-packages\win32com_init_.py", line 1, in
from win32.com import *
ModuleNotFoundError: No module named 'win32.com'
'''
image shows that I've install the module
Can anyone give me a suggestion to solve this problem?
Did you accidentally misspell the module name?
It's
from win32com import *
Not
from win32.com import *
you maybe installed more lib than you really need and the additional lib creates this reference error
try to only keep pywin32 and uninstall other lib with win32 in the name
Related
trying to import github (PyGithub) but it keeps giving the same error, even though the lib is fully installed.
Code:
from github import Github
Output:
Traceback (most recent call last):
File "...path", line 1, in <module>
from github import Github
ModuleNotFoundError: No module named 'github'
Anyone know how to fix this issue?
This will install the package.
pip3 install PyGithub
If you're getting the same error that could be due to circular imports. Rename if you have any .py files named "github.py" in your work folder.
I had an Import err that says "No module named util", but i cant find any package named util.
what path should I append in?
Code from LSTNet tensorflow by fabdline.
https://github.com/fbadine/LSTNet
# Path appended in order to import from util
import sys
#sys.path.append("..")
sys.path.append('../') #?what path should I Append?
import os
from util.model_util import LoadModel, SaveModel, SaveResults, SaveHistory
from util.Msglog import LogInit
Traceback (most recent call last): File "main.py", line 19, in
from util.model_util import LoadModel, SaveModel, SaveResults, SaveHistory ModuleNotFoundError: No module named 'util'
Follow the install instructions from the link you posted.
Under Installation it's stated:
Clone this prerequisite repository:
git clone https://github.com/fbadine/util.git
All the files you need can be found at https://github.com/fbadine/util
so i'm making my first telegram bot, and when compiling code in ConEmu I got this error:
Traceback (most recent call last):
File "echobot.py", line 1, in <module>
import pyown
ModuleNotFoundError: No module named 'pyown'
help me please.
import pyown
ModuleNotFoundError: No module named 'pyown'
Are you sure that the library is called pyown, not pyowm?
https://pypi.org/project/pyowm/
It can't find pyown library. Install this library first, either to your working folder's library folder or install it globally. Then import pyown library on your py file. Then write rest of the codes.
I used to play with opencv but now I am not able to use it. When I enter :
import cv 2
I get
import cv2
Traceback (most recent call last):
File "<pyshell#1>", line 1, in <module>
import cv2
File "C:\Program Files\Python36-32\lib\site-packages\cv2\__init__.py", line 3, in <module>
from .cv2 import *
ImportError: DLL load failed: The specified module could not be found.
I have 32 bit Windows 7 and Python 3.6.
I had an issue that really looked like this one.
I installed OpenCV on an conda envrionement and someone had installed numpy unsing pip on the base environment.
Please check that:
all your installed package come from compatible sources
You don't have the same package installed twice
The only way that I could fix the issue was starting from a fresh environment.
Hope it helps
I ran both
sudo pip install asprise_ocr_sdk_python_api
pip install asprise_ocr_sdk_python_api
Got message
"Requirement already satisfied: asprise_ocr_sdk_python_api in /Users/myid/miniconda3/envs/competition/lib/python3.5/site-packages"
But when I ran asprise_ocr to test:
Got the following error:
Traceback (most recent call last):
File "/Users/myuser/miniconda3/envs/competition/bin/asprise_ocr", line 7, in <module>
from asprise_ocr_api.ocr_app import run_ocr_app
File "/Users/myuser/miniconda3/envs/competition/lib/python3.5/site-packages/asprise_ocr_api/__init__.py", line 1, in <module>
from ocr import *
ImportError: No module named 'ocr'
The asprise_ocr_api module doesn't do submodule imports correctly in Python 3.
For example init.py contains from ocr import *. For a sub-module in Python 3 that should be from .ocr import *. Idem for from ocr_app import OcrApp, run_ocr_app. That should be from .ocr_app import OcrApp, run_ocr_app.
After making these changes in all files it imports correctly.
i've tried:
import ocr
same error:
ModuleNotFoundError: No module named 'ocr'
i am using python 3