[Biopython-dev] [Bug 2604] New: test_Restriction failure with Python 2.6 (also cause error in test_CAPS)
bugzilla-daemon at portal.open-bio.org
bugzilla-daemon at portal.open-bio.org
Thu Oct 2 14:07:48 EDT 2008
http://bugzilla.open-bio.org/show_bug.cgi?id=2604
Summary: test_Restriction failure with Python 2.6 (also cause
error in test_CAPS)
Product: Biopython
Version: Not Applicable
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Main Distribution
AssignedTo: biopython-dev at biopython.org
ReportedBy: bsouthey at gmail.com
Running 'python setup.py test --no-gui' gives the following error for
test_Restriction. This is the same line that cause test_CAPS to fail. Both test
outputs below.
This with Linux x86_64 with Python 2.6 compiled using gcc v4.3.2
======================================================================
ERROR: test_Restriction
----------------------------------------------------------------------
Traceback (most recent call last):
File "run_tests.py", line 152, in runTest
self.runSafeTest()
File "run_tests.py", line 165, in runSafeTest
cur_test = __import__(self.test_name)
File "test_Restriction.py", line 8, in <module>
from Bio.Restriction import *
File
"/home/bsouthey/python/biopython_cvs/biopython/build/lib.linux-x86_64-2.6/Bio/Restriction/__init__.py",
line 61, in <module>
from Bio.Restriction.Restriction import *
File
"/home/bsouthey/python/biopython_cvs/biopython/build/lib.linux-x86_64-2.6/Bio/Restriction/Restriction.py",
line 2351, in <module>
newenz = T(k, bases, enzymedict[k])
File
"/home/bsouthey/python/biopython_cvs/biopython/build/lib.linux-x86_64-2.6/Bio/Restriction/Restriction.py",
line 217, in __init__
super(RestrictionType, cls).__init__(name, bases, dict)
TypeError: descriptor '__init__' requires a 'type' object but received a 'str'
----------------------------------------------------------------------
======================================================================
ERROR: test_CAPS
----------------------------------------------------------------------
Traceback (most recent call last):
File "run_tests.py", line 152, in runTest
self.runSafeTest()
File "run_tests.py", line 165, in runSafeTest
cur_test = __import__(self.test_name)
File "test_CAPS.py", line 3, in <module>
from Bio.Restriction import *
File
"/home/bsouthey/python/biopython_cvs/biopython/build/lib.linux-x86_64-2.6/Bio/Restriction/__init__.py",
line 61, in <module>
from Bio.Restriction.Restriction import *
File
"/home/bsouthey/python/biopython_cvs/biopython/build/lib.linux-x86_64-2.6/Bio/Restriction/Restriction.py",
line 2351, in <module>
newenz = T(k, bases, enzymedict[k])
File
"/home/bsouthey/python/biopython_cvs/biopython/build/lib.linux-x86_64-2.6/Bio/Restriction/Restriction.py",
line 217, in __init__
super(RestrictionType, cls).__init__(name, bases, dict)
TypeError: descriptor '__init__' requires a 'type' object but received a 'str'
======================================================================
--
Configure bugmail: http://bugzilla.open-bio.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the Biopython-dev
mailing list