Stream: python

Topic: pyDataverse 0.4.0beta1


view this post on Zulip Philip Durbin πŸš€ (Jun 23 2026 at 16:06):

I see https://github.com/gdcc/pyDataverse/pull/235 got merged. What's the easiest way to install pyDataverse 0.4.0beta1?

Is it the "Install from local source (repository checkout)" option in the README at https://github.com/gdcc/pyDataverse ?

view this post on Zulip Jinjie Liu (Jun 24 2026 at 21:51):

I try to test pyDataverse 0.4.0beta1 version. This link https://gdcc.github.io/pyDataverse/getting-started/ has only code examples. Do you have something like reference/API documents that have class/function signatures (parameter types/values, return types, etc.) so that I can test it systematically? Something like https://pydataverse.readthedocs.io/en/latest/reference.html is for old 0.3 version. Is there the equivalent docs for the pyDataverse 0.4.0beta1 version?

view this post on Zulip Jan Range (Jun 25 2026 at 12:10):

@Jinjie Liu, thanks for considering testing! There’s no API Reference available yet, but I can investigate if this can be generated using the new Docs backend, Astro, to make this easier.

view this post on Zulip Jan Range (Jun 29 2026 at 15:13):

@Jinjie Liu I have now added the API Reference to the docs

https://gdcc.github.io/pyDataverse/reference/overview/

view this post on Zulip Jinjie Liu (Jul 15 2026 at 01:05):

I have tested pyDataverse/dataverse/dataverse.py through two ways: (1) Expand and modify tests/dataverse/test_dataverse.py, run tests in pytest framework; and (2) Run examples onΒ https://gdcc.github.io/pyDataverse/high-level/dataverse/Β as a user. Some tests failed. I can report the testing results in tomorrow's meeting.

view this post on Zulip Philip Durbin πŸš€ (Jul 15 2026 at 19:48):

@Jan Range and Max (is he on Zulip?), I opened two issues that affected both me and @Jinjie Liu:

view this post on Zulip Philip Durbin πŸš€ (Jul 15 2026 at 19:49):

I'm happy to start separate topics here in #python for these if you like.

view this post on Zulip Philip Durbin πŸš€ (Jul 15 2026 at 20:08):

I also started a draft PR to make some tweaks to the docs: https://github.com/gdcc/pyDataverse/pull/242

view this post on Zulip Philip Durbin πŸš€ (Jul 16 2026 at 14:00):

I made a draft recipe for creating a dataset: https://github.com/gdcc/dataverse-recipes/pull/37

view this post on Zulip Jinjie Liu (Jul 17 2026 at 00:29):

@Jan Range @Philip Durbin πŸš€ and Max, I opened two issues about pyDataverse 0.4.0.beta1:

view this post on Zulip Philip Durbin πŸš€ (Jul 17 2026 at 14:30):

@Jinjie Liu thanks! I'm seeing "bad API key" in both issues you opened. Do you want to try this script: https://github.com/gdcc/dataverse-recipes/pull/37 ? In the README, I explain how to specify the API token/key.

view this post on Zulip Jinjie Liu (Jul 21 2026 at 15:19):

@Philip Durbin πŸš€ I have tried the script you pointed to, but it still reported the same error. I tried to both set API_TOKEN environment variable and run in Visual studio and set it and run via terminal. Below is the screenshot:
image.png

view this post on Zulip Jinjie Liu (Jul 21 2026 at 15:22):

@Philip Durbin πŸš€ Also, for this line: dv = Dataverse(base_url="http://localhost:8080"), when I run it. it reported error: "time out".

view this post on Zulip Philip Durbin πŸš€ (Jul 21 2026 at 15:41):

@Jinjie Liu hmm, which server are you testing against? You're welcome to use https://demo.dataverse.org if you like.

view this post on Zulip Jinjie Liu (Jul 21 2026 at 16:13):

@Philip Durbin πŸš€ I am testing against this server. This is the code:
dv = Dataverse(
base_url="https://demo.dataverse.org",
api_token="my_token"
)
This step succeeded.

view this post on Zulip Philip Durbin πŸš€ (Jul 21 2026 at 17:27):

Hmm. @Jinjie Liu can you please go to your account page under https://demo.dataverse.org and click "regenerate token"?

Screenshot 2026-07-21 at 1.25.52β€―PM.png

view this post on Zulip Philip Durbin πŸš€ (Jul 21 2026 at 17:27):

And then try using the new token, of course.

view this post on Zulip Jinjie Liu (Jul 21 2026 at 20:00):

@Philip Durbin πŸš€ Previously I got token from Harvard Dataverse Account. I didn't notice this. Now I got token from Demo Dataverse Account, and I can run dv.create_dataset(). But for pytest, for the same set of test functions, I got new error: ERROR: HTTP 401 - User @liujinjie1 is not permitted to perform requested action.

view this post on Zulip Philip Durbin πŸš€ (Jul 21 2026 at 20:06):

Sounds like progress! :smile:

view this post on Zulip Philip Durbin πŸš€ (Jul 21 2026 at 20:06):

I'm looking at this line:

collection=os.getenv("COLLECTION", ":root")

view this post on Zulip Philip Durbin πŸš€ (Jul 21 2026 at 20:07):

You should be able to create datasets in the root collection of the demo site, I think. :thinking: What if you create your own collection first? Does that help? You could just create the collection using the web interface, if that's easier.

view this post on Zulip Jinjie Liu (Jul 21 2026 at 20:16):

@Philip Durbin πŸš€ when I run dv.create_dataset(), it worked and I got output: Dataset doi:10.70122/FK2/JIQKK1 created at :root. But when I run dv.create_collection(), I got error: httpx.HTTPStatusError: ERROR: HTTP 401 - User @liujinjie1 is not permitted to perform requested action.

view this post on Zulip Philip Durbin πŸš€ (Jul 21 2026 at 20:32):

Interesting. I haven't tried dv.create_collection yet. I'm glad you were able to create a dataset! :tada:

view this post on Zulip Philip Durbin πŸš€ (Jul 27 2026 at 18:34):

@Jinjie Liu you're now getting a different error from dv.create_collection than what you posted in #245, right? Originally the error was ERROR: HTTP 401 - Bad API key but now it's ERROR: HTTP 401 - User @liujinjie1 is not permitted to perform requested action, right?

view this post on Zulip Jan Range (Jul 27 2026 at 19:00):

Hi @all I just wanted to let you know that I follow your threads here, but havent yet found time to properly answer/react :slight_smile:

view this post on Zulip Philip Durbin πŸš€ (Jul 27 2026 at 20:01):

@Jan Range no worries! Thanks for merging PRs from @Sy! Do you have anything else for her to work on for beta1?


Last updated: Aug 18 2026 at 08:27 UTC