Skip to content

python3 compatibility #20

Open
Open

Description

@FChataigner

at least iter_rows() on sql_query and dataset fail

Activity

  1. victorjourne commented on Feb 7, 2019

    @victorjourne

    I confirm, on a dataikuapi.dss.dataset.DSSDataset object, iter_rows() fails:


    Error Traceback (most recent call last)
    in
    2 print(columns)
    3 row_count = 0
    ----> 4 for row in dataset.iter_rows():
    5 print(row)
    6 row_count = row_count + 1

    /opt/conda/lib/python3.6/site-packages/dataikuapi/utils.py in iter_rows(self)
    83 delimiter='\t',
    84 quotechar='"',
    ---> 85 doublequote=True):
    86 yield [none_if_throws(caster)(val)
    87 for (caster, val) in dku_zip_longest(casters, uncasted_tuple)]

    Error: iterator should return strings, not bytes (did you open the file in text mode?)

    Config:

    • dataiku-api-client 4.3.0
    • Python 3.6
  2. victorjourne commented on Feb 7, 2019

    @victorjourne

    @FChataigner, did you install the package with pip?
    install the latest version of dataikuapi with the setup.py, works now for me!

  3. bandaangosta commented on Apr 18, 2019

    @bandaangosta
    Contributor

    This was fixed with pull request #33, although it appears it has not reached pypi yet.
    In the meantime, you can install latest version directly from this repository:

    pip install git+https://github.com/dataiku/dataiku-api-client-python@master#egg=dataiku-api-client

  4. ankurc9 commented on Aug 2, 2019

    @ankurc9

    @bandaangosta, Thank you so much for the solution. It worked for me. However installing the latest version still does not resolve the problem.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions