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

Already on GitHub? Sign in to your account

Using the Python xlrd library #10

Open
nathanathan opened this Issue Nov 28, 2012 · 0 comments

Comments

Projects
None yet
1 participant

Hi, I'm trying to use empythoned along with the Python xlrd library to make a JavaScript Excel file reader.
However, I'm running into problems, and I'm hoping someone could help me with some advice.
My approach so far has been to copy all the xlrd files into the virtual files system by passing them into the python interpreter as strings. Is there a better way to add modules? I haven't been successful in figuring out how to create a file system image directly.

The main problem I'm running into is that the xlrd module is only partially imported.

My workspace is located here:
https://c9.io/nathanathan/empythoned

And you can use the execution environment with xlrd in the sandbox directory here:
https://c9.io/nathanathan/empythoned/workspace/index.html

Running the following it appears that only some of the xlrd module is imported.

import xlrd
print dir(xlrd)

(Also, the above script doesn't produce any output on the first execution for some reason.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment