Skip to content

Conversation

r-b-g-b
Copy link

@r-b-g-b r-b-g-b commented Dec 17, 2024

Environment details

Python 3.12

pip freeze | grep dataone
: dataone.common==3.5.2
: dataone.libclient==3.5.2
: dataone.util==3.5.2

To reproduce

pip install dataone.util dataone.libclient
import d1_client
import d1_util
base_url = 'https://example.com/metacat/d1/mn'  # I used a real DataONE member node here
r = d1_util.download_mn_objects.MemberNodeObjectDownloader(base_url, '/home/robert/Downloads/mn_dl')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/robert/anaconda3/envs/cib/lib/python3.12/site-packages/d1_util/download_mn_objects.py", line 133, in __init__
    self._mn_client = d1_client.mnclient.MemberNodeClient(base_url)
                      ^^^^^^^^^
NameError: name 'd1_client' is not defined

I think it's as simple as a missing import d1_client.mnclient at the top of download_mn_objects. (The d1_client is already a requirement in setup.py.)

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.

1 participant