Skip to content

Conversation

@pdurbin
Copy link
Member

@pdurbin pdurbin commented Oct 30, 2025

api = Api(base_url, api_token)
print(api.status)
api = NativeApi(base_url, api_token)
print(api.get_info_version())
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't seem to print anything. 🤷

Copy link

@JR-1991 JR-1991 Nov 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pdurbin you need to invoke .json() to receive the content of the response. The object returned by any method of the current pyDataverse version returns a raw Response object, which needs to be handled. Here is a Colab for demo:

https://colab.research.google.com/drive/1g61CEb5yVr3IhwD3hTKftgTbd6II4y01?usp=sharing

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JR-1991 thanks! Fixed in d523e26.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

upgrade to modern pyDataverse (0.3.2+)

3 participants