Skip to content

Using the Python xlrd library #10

@nathanathan

Description

@nathanathan

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.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions