We're updating the issue view to help you get more done. 

error downloading data from synapse (python client)

Description

FYI there is a similar ticket for R client

I have tried the following test three times on belltown and each time it has failed with the same error

1 2 3 4 5 6 7 8 9 10 11 import synapseclient sys.path.append(os.environ['HOME'] + "/dev/appys/lib/") #internal modules import synapseutils syn = synapseclient.login() bam_ids = syn.query("select id from entity where parentId == 'syn4516568'") bam_ids = synapseutils.query2df(bam_ids) #function to convert query to pandas df temp = [ syn.get(i, downloadLocation="/scratch/apratap/Synodos_RNASeq_libs") for i in bam_ids.id]

*Error

--> 612 s = self.fp.read(amt)
613 if not s and amt:
614 # Ideally, we would raise IncompleteRead if the content-length

/home/apratap/softwares/anaconda/lib/python2.7/socket.pyc in read(self, size)
382 # fragmentation issues on many platforms.
383 try:
--> 384 data = self._sock.recv(left)
385 except error, e:
386 if e.args[0] == EINTR:

/home/apratap/softwares/anaconda/lib/python2.7/ssl.pyc in recv(self, buflen, flags)
732 "non-zero flags not allowed in calls to recv() on %s" %
733 self._class_)
--> 734 return self.read(buflen)
735 else:
736 return self._sock.recv(buflen, flags)

/home/apratap/softwares/anaconda/lib/python2.7/ssl.pyc in read(self, len, buffer)
619 v = self._sslobj.read(len, buffer)
620 else:
--> 621 v = self._sslobj.read(len or 1024)
622 return v
623 except SSLError as x:

error: [Errno 104] Connection reset by peer

Environment

None

Status

Assignee

Kimyen Truong

Reporter

Larsson Omberg

Labels

None

Validator

Larsson Omberg

Release Version History

None

Components

Fix versions

Affects versions

py-1.5
py-1.4
py-1.7.5
py-1.2

Priority

Major