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

upgrade from pyDataverse 0.2.1 to 0.3.3 #44

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

pdurbin
Copy link
Member

@pdurbin pdurbin commented May 10, 2024

A draft PR for now because of this error:

$ python create_sample_data.py 
Using API token from config file.
Traceback (most recent call last):
  File "/Users/pdurbin/github/iqss/dataverse-sample-data/create_sample_data.py", line 17, in <module>
    print(api.status)
          ^^^^^^^^^^
AttributeError: 'Api' object has no attribute 'status'

Here's a handy link to line 17:

Also add `requests` because it was pulled in as a transitive dependency
previously.
@jp-tosca
Copy link
Contributor

It is working for me in Python 3.12.2:

image

image

@jp-tosca
Copy link
Contributor

@pdurbin pointed to me that I was still using the old version despite me being on the right branch, this is after checking that I was on pyDV 0.3.2

image

No status on the payload

@jp-tosca
Copy link
Contributor

@pdurbin solved this by using api.get_info_version() just in case someone comes here looking for an answer 😆

@pdurbin
Copy link
Member Author

pdurbin commented Jul 17, 2024

@JR-1991 @donsizemore and I just discussed this issue during a pyDatavese meeting. Now that this PR has been merged...

... it should just be a matter of upgrading this PR to use 0.3.3.

@pdurbin pdurbin changed the title upgrade from pyDataverse 0.2.1 to 0.3.2 upgrade from pyDataverse 0.2.1 to 0.3.3 Jul 17, 2024
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+)
2 participants