I am trying to import xlrd and xlwt module in python in windows and getting following error message please suggest how to resolve it.
While importing xlrd
import xlrd
Traceback <most recent call lst>:
File "<stdin>", line 1,in <module>
File "c:\Python33\lib\site-package\xlrd\__init__.py", line 3, in <module> from info import __Version__
ImportError : No module named 'info'
While importing xlwt
import xlwt
Traceback <most recent call lst>:
File "<stdin>", line 1,in <module>
File "c:\Python33\lib\site-package\xlwt\__init__.py", line 10, in <module> from Workbook import Workbook
ImportError : No module named 'Workbook'
Thanks,
Niraj
Related
I'm doing a project on opencv python which is based on downloaded source code from the internet. When I run the code, this error occurs
C:\Users\Udara\AppData\Local\Programs\Python\Python38-32\python.exe C:/Users/Udara/Desktop/7777/people-counting-opencv/people_counter.py
Traceback (most recent call last):
File "C:/Users/Udara/Desktop/7777/people-counting-opencv/people_counter.py", line 13, in <module>
from pyimagesearch.centroidtracker import CentroidTracker
File "C:\Users\Udara\Desktop\7777\people-counting-opencv\pyimagesearch\centroidtracker.py", line 5, in <module>
import ordereddict
File "C:\Users\Udara\AppData\Local\Programs\Python\Python38-32\lib\site-packages\ordereddict.py", line 23, in <module>
from UserDict import DictMixin
ModuleNotFoundError: No module named 'UserDict'
I'm trying the solution for this issue here: Access and handle chrome extension popup using selenium webdriver
I'm getting an error when trying to import pyrobot and could not find any solution as to why I'm seeing this import error.
Traceback (most recent call last):
File "jungle.py", line 11, in <module>
from pyrobot import Robot
ImportError: cannot import name Robot
Chads-MacBook-Pro:amazon chad$ python jungle.py
Traceback (most recent call last):
File "jungle.py", line 11, in <module>
from pyrobot import Robot
File "/Users/chad/anaconda2/lib/python2.7/site-packages/pyrobot/__init__.py", line 3, in <module>
from .browser import RoboBrowser
File "/Users/chad/anaconda2/lib/python2.7/site-packages/pyrobot/browser.py", line 12, in <module>
from .forms.form import Form
ImportError: No module named forms.form
Python 3.5 On Mac OS 10.12.2
When importing xlwings module i get a:
traceback (most recent call last):
File "<pyshell#5>", line 1, in <module>
import xlwings
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/xlwings/__init__.py", line 24, in <module>
from . import _xlmac as xlplatform
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/xlwings/_xlmac.py", line 10, in <module>
import aem
ImportError: No module named 'aem'
I have appscript installed already.
Any idea what i am missing here please?
I'm having a 'Cannot import name StringIO' error message when importing dateutil which tries to import StringIO but cannot find it. Here is complete trace:
(DEV)arbi#el-oued:~/Work/sentimentpy$ python core/main.py
Traceback (most recent call last):
File "core/main.py", line 7, in <module>
from io.reader import *
File "/home/arbi/Work/sentimentpy/core/io/reader.py", line 4, in <module>
from dateutil import parser
File "/home/arbi/DEV/local/lib/python2.7/site-packages/dateutil/parser.py", line 22, in <module>
from io import StringIO
ImportError: cannot import name StringIO
When I tried to use python3 to launch my program, i had this error:
(DEV)arbi#el-oued:~/Work/sentimentpy$ python3 core/main.py
Traceback (most recent call last):
File "core/main.py", line 1, in <module>
from analyzer.length import LengthAnalyzer
File "/home/arbi/Work/sentimentpy/core/analyzer/length.py", line 4, in <module>
from numpy
ImportError: No module named numpy
Why I'm having this? i've installed numpy in my virtualenv with: pip install numpy
You are masking the built-in io module because you have a package named io in your project:
Traceback (most recent call last):
File "core/main.py", line 7, in <module>
from io.reader import *
File "/home/arbi/Work/sentimentpy/core/io/reader.py", line 4, in <module>
The line from io import StringIO finds /home/arbi/Work/sentimentpy/core/io, not the built-in module.
Rename that package or move it into a new top-level package name that doesn't conflict.
Your second error is unrelated; you simply don't have numpy installed for Python 3.
When I start .py file I got this error? Why?
Traceback (most recent call last):
File "/Users/omercancelikler/webstagram.py", line 3, in <module>
import pycurl
ImportError: No module named pycurl