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

Cannot read from file without saving on disk #3

Open
ZNevzz opened this issue Jun 9, 2018 · 1 comment
Open

Cannot read from file without saving on disk #3

ZNevzz opened this issue Jun 9, 2018 · 1 comment
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@ZNevzz
Copy link
Member

ZNevzz commented Jun 9, 2018

#read from upload File viz FileStorage object

def _read_from_file(file):
    _file_content = None
    try:
        _file_content = file.read()
        util.debug_store['file_content at datagatherer'] = _file_content
    except IOError as io_error:
        util.debug_store['io_error at datagatherer'] = io_error.__traceback__
        raise io_error
    else:
        return _file_content
@ZNevzz ZNevzz added bug Something isn't working help wanted Extra attention is needed labels Jun 9, 2018
@ZNevzz
Copy link
Member Author

ZNevzz commented Jun 9, 2018

Meanwhile, follow alternate approach:

  1. store uploaded file on disk with unique name
  2. retrieve full path name of file
  3. load in pandas.read_csv

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant