pyiterable
pyiterable copied to clipboard
Error: No module named 'bson'
Hi, Thanks for sharing this library!
Use case
In an ongoing scheduled task, I need to process and convert XLS and XLSX files both ways. I can probably get away with just XLSX to XLS conversion.
Error
Using the following code, I'm getting the below error similar to your examples. Actually, any of your examples also produces the same error:
iterable = XLSIterable('routes/admin/tms/202404/TMS_202404D02144.xls')
write_iterable = XLSXIterable('routes/admin/xlsx/TMS_202404D02144.xlsx', mode='w')
n = 0
for row in iterable:
n += 1
write_iterable.write(row)
iterable.close()
write_iterable.close()
BSON is not even in the picture!
I installed your library on my MacBookPro M1 running Sonoma 14.4.1 without errors:
pip install iterabledata
(venv) nuri@MacBook-Pro rdsp % pip show iterabledata
Name: iterabledata
Version: 1.0.2
Summary: Iterable data processing Python library
Home-page: https://github.com/apicrafter/pyiterable/
Author: Ivan Begtin
Author-email: [email protected]
License: MIT
Location: /Users/nuri/DELL 5720 REPOS/rdsp/venv/lib/python3.9/site-packages
Requires: avro, chardet, jsonlines, lxml, lz4, openpyxl, orjson, parquet, pyorc, xlrd
I would appreciate any insight.