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 ?
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?
@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.
@Jinjie Liu I have now added the API Reference to the docs
https://gdcc.github.io/pyDataverse/reference/overview/
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.
@Jan Range and Max (is he on Zulip?), I opened two issues that affected both me and @Jinjie Liu:
I'm happy to start separate topics here in #python for these if you like.
I also started a draft PR to make some tweaks to the docs: https://github.com/gdcc/pyDataverse/pull/242
I made a draft recipe for creating a dataset: https://github.com/gdcc/dataverse-recipes/pull/37
@Jan Range @Philip Durbin π and Max, I opened two issues about pyDataverse 0.4.0.beta1:
Errors when using pyDataverse 0.4.0.beta1: HTTP 401 - Bad API key
https://github.com/gdcc/pyDataverse/issues/245
Errors when testing pyDataverse 0.4.0.beta1 using pytest: HTTP 401 - Bad API key
https://github.com/gdcc/pyDataverse/issues/246
@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.
@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:
![]()
@Philip Durbin π Also, for this line: dv = Dataverse(base_url="http://localhost:8080"), when I run it. it reported error: "time out".
@Jinjie Liu hmm, which server are you testing against? You're welcome to use https://demo.dataverse.org if you like.
@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.
Hmm. @Jinjie Liu can you please go to your account page under https://demo.dataverse.org and click "regenerate token"?
![]()
And then try using the new token, of course.
@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.
Sounds like progress! :smile:
I'm looking at this line:
collection=os.getenv("COLLECTION", ":root")
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.
@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.
Interesting. I haven't tried dv.create_collection yet. I'm glad you were able to create a dataset! :tada:
@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?
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:
@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