[pygr-notify] Issue 54 in pygr: sqlgraph.GraphView unpickle-able error

codesite-noreply at google.com codesite-noreply at google.com
Sat Mar 7 16:57:08 PST 2009


Comment #4 on issue 54 by jqian.ubc: sqlgraph.GraphView unpickle-able error
http://code.google.com/p/pygr/issues/detail?id=54

'unpicklingMode' Error.

Note:  In the attached script issue54.py, when constructing an GraphView  
object, I've
passed the 'serverInfo=conn' as a keyword argument to GraphView:

translationExons = sqlgraph.GraphView(translationTB, exonTB, sql_statement,  
cursor,
serverInfo=conn)

Did I miss something else?

Thanks,
~ Jenny

->
qing at 2[ensembl]$ python issue54.py
95160
95020
95035
95050
95059
95069
95081
95088
95101
95110
95172

->
qing at 2[ensembl]$ python -i
Python 2.5.2 (r252:60911, Nov 14 2008, 19:46:32)
[GCC 4.3.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pygr.Data
>>> pygr.Data.dir('Bio.Ensembl')
['Bio.Ensembl.GraphView.homo_sapiens_core_47_36i.translationExons']
>>> myGraph =  
>>> pygr.Data.Bio.Ensembl.GraphView.homo_sapiens_core_47_36i.translationExons()
Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
   File "pygr/Data.py", line 1126, in __call__
   File "pygr/Data.py", line 743, in __call__
   File "pygr/Data.py", line 495, in __getitem__
   File "pygr/Data.py", line 687, in loads
   File "/usr/lib/python2.5/pickle.py", line 858, in load
     dispatch[key](self)
   File "/usr/lib/python2.5/pickle.py", line 1217, in load_build
     setstate(state)
   File "pygr/classutil.py", line 148, in standard_setstate
   File "/home/qing/workspace2009/pyensembl/pygr/sqlgraph.py", line 1808, in  
__init__
     MapView.__init__(self, sourceDB, targetDB, viewSQL, cursor, **kwargs)
TypeError: __init__() got an unexpected keyword argument 'unpicklingMode'



Attachments:
	issue54.py  1.4 KB

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings



More information about the pygr-notify mailing list