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

No output if used as module #2

Open
lorenzoromani1983 opened this issue Nov 21, 2019 · 1 comment
Open

No output if used as module #2

lorenzoromani1983 opened this issue Nov 21, 2019 · 1 comment

Comments

@lorenzoromani1983
Copy link

While it does convert excel to json from command line, if used as a module it does not convert anything.

This is my code:

import excel2json

file = "path_to_file"
data = excel2json.convert_from_file(file)
print(data)

None

@yilverdeja
Copy link

if used as a module it does not convert anything

The convert_from_file(filepath, location=None) and convert_from_url(url, location=None) do not return anything.

The JSON is saved into files within the directory of your file (or current working directory) or as specified otherwise from the location parameter.

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

2 participants