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

Deprecated python code warning #2073

Open
1 task done
Quasar985 opened this issue Jun 12, 2024 · 1 comment
Open
1 task done

Deprecated python code warning #2073

Quasar985 opened this issue Jun 12, 2024 · 1 comment
Assignees
Labels
bug Something isn't working
Milestone

Comments

@Quasar985
Copy link
Collaborator

Prerequisites

Description

Warning is thrown in constellation_client regarding the read_json function:
FutureWarning: Passing literal json to 'read_json' is deprecated and will be removed in a future version. To read from a literal string, wrap it in a 'StringIO' object.

Steps to Reproduce

  1. Open graph

  2. Start Jupyter Server

  3. Run the following code:

import io
import os
import pandas as pd
import PIL.Image, PIL.ImageDraw, PIL.ImageFilter, PIL.ImageFont

# Also import some of the notebook display methods so we can display nice things.
#
from IPython.display import display, HTML, Image

# This is a convenient Python interface to the REST API.
#
import constellation_client

cc = constellation_client.Constellation()

df = cc.get_dataframe()
df.head()

Expected behaviour: No warnings are thrown.

**Actual behaviour:**Warning is thrown, regarding deprecated code

Reproduces how often: Always

@Quasar985 Quasar985 self-assigned this Jun 12, 2024
@Quasar985 Quasar985 added the bug Something isn't working label Jun 12, 2024
@Quasar985 Quasar985 added this to To do in Constellation via automation Jun 12, 2024
@Quasar985 Quasar985 moved this from To do to In progress in Constellation Jun 12, 2024
@Quasar985 Quasar985 moved this from In progress to PR Review in Constellation Jun 13, 2024
@antares1470 antares1470 added this to the v3.0.0 milestone Jun 13, 2024
@antares1470 antares1470 moved this from PR Review to Testing in Constellation Jun 17, 2024
@HolandCrick
Copy link
Collaborator

@Quasar985 Thanks to addressing the deprecated python code issue. Need bit more work on it. Pls see the error:

image

@HolandCrick HolandCrick moved this from Testing to In progress in Constellation Jun 27, 2024
@Quasar985 Quasar985 moved this from In progress to PR Review in Constellation Jul 15, 2024
@Quasar985 Quasar985 moved this from PR Review to In progress in Constellation Jul 16, 2024
@Quasar985 Quasar985 moved this from In progress to PR Review in Constellation Jul 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
3 participants