dragon2fly / xlrd3 Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
I am trying to read an excel file but getting Unknown cell type
exception.
Code I used to read excel:
import xlrd3 as xlrd
xlrd.open_workbook(file_path)
Below is the excel file I used:
Maintain_Shipment_Structure_13Nov2020.xlsx
Could someone please look into the issue?
Thanks in advance.
When I run
runxlrd.py 3rows ARN1-2013Jun16.xls
I get this error
Traceback (most recent call last):
File "C:\Users\charl\AppData\Local\Programs\Python\Python37\Scripts\runxlrd.py", line 408, in <module>
main(av)
File "C:\Users\charl\AppData\Local\Programs\Python\Python37\Scripts\runxlrd.py", line 301, in main
mmap_arg = xlrd.USE_MMAP
AttributeError: module 'xlrd3' has no attribute 'USE_MMAP'
The package was installed today using pip. Attached is the file in use when the error occurred.
xlrd: 1.0.0, from C:\Users\charl\AppData\Local\Programs\Python\Python37\lib\site-packages\xlrd3\__init__.py
Python: 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 22:22:05) [MSC v.1916 64 bit (AMD64)]
When using xlutils.copy it shows 'BetterBook' object has no attribute 'datemode'
Traceback (most recent call last):
File "ccdiff.pyw", line 418, in <module>
File "ccdiff.pyw", line 272, in main
File "xlrd3/__init__.py", line 112, in open_workbook
File "xlrd3/xlsx.py", line 846, in open_workbook_2007_xml
File "xlrd3/xlsx.py", line 41, in ensure_elementtree_imported
Exception: Failed to import an ElementTree implementation
[71116] Failed to execute script 'ccdiff' due to unhandled exception: Failed to import an ElementTree implementation
[71116] Traceback:
Traceback (most recent call last):
File "ccdiff.pyw", line 418, in <module>
File "ccdiff.pyw", line 272, in main
File "xlrd3/__init__.py", line 112, in open_workbook
File "xlrd3/xlsx.py", line 846, in open_workbook_2007_xml
File "xlrd3/xlsx.py", line 41, in ensure_elementtree_imported
Exception: Failed to import an ElementTree implementation
Environment:
macOS 13.6
Python 3.12.0
Package Version
altgraph 0.17.4
bottle 0.12.25
bottle-websocket 0.2.9
easygui 0.98.3
Eel 0.16.0
et-xmlfile 1.1.0
future 0.18.3
gevent 23.9.1
gevent-websocket 0.10.1
greenlet 3.0.0
macholib 1.16.3
packaging 23.2
pip 23.3
pyinstall 0.1.4
pyinstaller 6.1.0
pyinstaller-hooks-contrib 2023.10
pyparsing 3.1.1
setuptools 68.2.2
six 1.16.0
treelib 1.7.0
whichcraft 0.6.1
xlrd3 1.1.0
xlwt 1.3.0
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.