Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: No module named 'bson' #9

Open
nkev opened this issue Apr 19, 2024 · 0 comments
Open

Error: No module named 'bson' #9

nkev opened this issue Apr 19, 2024 · 0 comments

Comments

@nkev
Copy link

nkev commented Apr 19, 2024

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()
image

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant