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

dataset.get_files('latest') fails #34

Open
tomck opened this issue Jul 1, 2016 · 0 comments
Open

dataset.get_files('latest') fails #34

tomck opened this issue Jul 1, 2016 · 0 comments

Comments

@tomck
Copy link

tomck commented Jul 1, 2016

Using an existing dataset with several files in it, I get an error.

Python 2.7.9 (default, Jun 27 2016, 20:10:46)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-11)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from dataverse import Connection
>>> host = 'hostname.example.com'
>>> token = 'token-code-'
>>> connection = Connection(host, token)
>>> dataverse = connection.get_dataverse('test')
>>> dataset = dataverse.get_dataset_by_doi('DOI:10.5072/FK2/ZDNXKZ')
>>> files = dataset.get_files('latest')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'NoneType' object has no attribute 'get_files'

Not sure why. Happened on DV 4.3.1 and 4.4.0.

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

No branches or pull requests

1 participant