Dear All,
I am having difficulties downloading the MRI folders. I have only been able to download the csvs. I clicked on the file "AR" and went to download options and used the code that was supplied:
```
import synapseclient
import synapseutils
syn = synapseclient.Synapse()
syn.login(authToken="")
files = synapseutils.syncFromSynapse(syn, ' syn54002190 ' , path=' path to download directory ')
```
Of course, I included my authToken, which recognizes me with:
"Welcome, chienc!" (with my username)
But then I get the following errors:
```
Error occurred
while running ‹coroutine object sync at 0x7£7808411a40> in a sync context.
Traceback (most recent call last):
File "~/opt/anaconda3/lib/python3.8/site-packages/synapseclient/core/async_utils.py", line 93, in wrap_async_to_sync return asyncio.run (coroutine)
File "~/opt/anaconda3/1ib/python3.8/asyncio/runners-py", Line 44, in run return loop.run until complete (main)
rile "~opt/anaconda3/1ib/python3.8/asyncio/base_events.py", line 616, in run _until_complete return future.result()
File "~/opt/anaconda3/1ib/python3.8/site-packages/synapseutils/sync.py", line 273, in _sync
entity_type = entity get ("concreteType", None)
AttributeError: "str'
Downloading files: 0%
object has no attribute 'get'
Traceback (most recent call last):
File "~/Documents/Scripts/synapse.py", line 7, in ‹module>
files = synapseutils.syncFromSynapse (syn, syn54002190 ')
File "~/opt/anaconda3/lib/python3.8/site-packages/synapseutils/sync.py", line 173, in syncFromSynapse root entity = wrap_ async_to_sync(
File *~/opt/anaconda3/1ib/python3.8/site-packages/synapseclient/core/async_utils-py", line 99, in wrap_asyne_to_sync File "~/opt/anaconda3/1ib/python3.8/site-packages/synapseclient/core/async_utils-py", line 93, in wrap_asyne_to_sync return asyncio. run (coroutine)
File "~/opt/anaconda3/1ib/python3.8/asyncio/runners-py", line 44, in run return loop.run until_complete (main)
File "~/opt/anaconda3/1ib/python3.8/asyncio/base_events-py", line 616, in run until_complete return future.result()
File "~/opt/anaconda3/1ib/python3.8/site-packages/synapseutils/sync.py", line 273, in _sync entity_type = entity get ("concreteType", None)
AttributeError: 'str' object has no attribute get
```
Can anyone help? Is it a problem with the synapseclient or my condo python version?
Thanks in advance!
Best Regards,
Claudia
Created by Claudia Chien chienc Dear All,
I figured out the problem had something to do with the conda version of python that was using "mget" instead of "get". However, everything works with python 3.13.1.
Best,
Claudia
Drop files to upload
BrainLat MRI Data Download problem page is loading…